body
{
  /* remove margins and scroll bars */
  margin: 0;
  overflow: hidden;

  /* style text */
  text-align: center;
  font-size: 1em;
  font-family: Sans-Serif;
  background: linear-gradient(#212121, #d7d7d9);


  /* color text */
  color: #202020;
  height: 100vh;
}

.hidden {
  opacity:0;
}

.show {
  transition: opacity 3s;
  opacity: 1;
}

.hide {
  transition: opacity 0.5s;
  opacity: 0;
}

.display-none {
  display: none;
}

.scene-container canvas {
  width: 100% !important;
  height: 100% !important;
} 

.custom-loader {
  position: absolute;
  left:50%;
  top: 50vh;
  width:50px;
  height:50px;
  border-radius:50%;
  color:#FFFFFF;
  background: 
    linear-gradient(currentColor 0 0) center/100% 4px,
    linear-gradient(currentColor 0 0) center/4px 100%,
    radial-gradient(farthest-side,#0000 calc(100% - 6px),currentColor calc(100% - 5px)),
    radial-gradient(circle 6px,currentColor 94%,#0000 0);
  background-repeat: no-repeat;
  animation:s10 2s infinite linear;
}

.custom-loader:before {
  content: "";
  position: absolute;
  inset:0;
  border-radius: inherit;
  background:inherit;
  transform:rotate(45deg);
}
@keyframes s10 {to{transform: rotate(.5turn)}}


h1
{
  /* position the heading */
  position: absolute;
  margin-top: 1em;
  margin-left: 1em;
  text-align: left;

  /* make sure that the heading is drawn on top */
  z-index: 1;
}

h1 svg {
  width: 4em;
  fill: #999;
}

#scene-container
{
  /* tell our scene container to take up the full page */
  width: 100%;
  height: 100%;
  outline: none;
  /*
  Set the container's background color to the same as the scene's
  background to prevent flashing on load
  */
}


.loadingBar{
  position: absolute;
  top:50%;
  width: 100%;
  height: 5px;
  background: #666666;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ;
}

.loadingBar.ended
{
    transform: scaleX(0);
    transform-origin: 100% 0;
    transition: transform 1.5s fade-out;
}

.helpers {
  position: absolute;
  display: flex;
  justify-content: space-around;
  width: 100%;
  bottom: 1em;
  font-family: sans-serif;
  font-style: normal;
  font-weight: lighter;
  text-align: left;
  font-size: 0.9em;
  color: #575757;
}

.left {
  /* position the heading */
  margin-left: 0.5em;
}

.middle {
 text-align: center;
 }

.right {
  margin-right: 0.5em;
}

 .helpers button {
    width: 55px;
    height: 55px;
    background: transparent;
    border: none;
 }

 .helpers img {
    width: 100%;
 }

 #refImage {
    position: absolute;
    height: 100vh;
    top: 0;
    z-index: 1;
    background-color: #7f7f7f;
 }

 #refImage a {
    color: #fff;
    text-decoration: none;
 }

 #colours {
    position: absolute;
    height: 80vh;
    top: 30px;
    right: 50px;
    z-index: 1;
 }

 #refImage img, #colours img {
    height: 90%;
 }

#bt_closeRefImage, #bt_closeColours {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    text-align: center;
 }

#bt_closeColours {
    top: 0px;
    left: 70px;
}


  .sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
    -webkit-clip-path: inset(50%) !important;
      clip-path: inset(50%) !important;  /* 2 */
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;            /* 3 */
  }

@media screen and (max-width: 680px){
      .middle p {
        display: none;
      }
      #mainTitle {
        font-size: 1em;
      }

      #secondTitle {
        font-size: 0.5em;
      }

      #refImage {
        width: 100%;
        height: 100%;
        padding-top: 60px;
      }

      #refImage img {
        width: 90%;
        height: auto;
      }

      #bt_closeRefImage {
        top: 50px;
      }

      #colours {
        top: 50px;
        right: 5px;
      }

      #bt_closeColours {
        left: -30px;
      }

      h1 svg {
        width: 3em;
      }

      .helpers img {
        width: 30px;
      }
  }