* {
  border: 0;
  padding: 0;
  margin: 0;
}

body {
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

#logo {
  position: absolute;
  background: url("ra3.png") 0 0/100% 100%;
  z-index: 1;
}

.numbers {
  position: absolute;
  top: 19.5%;
  left: 52.65%;
  width: 5%;
  color: #333;
  padding-top: 29%;
  text-align: center;
  line-height: 80%;
  transform-origin: center top;
}

.anim {
  transition: transform 1s ease, opacity 1s ease, visibility 1s;
}

#ostracon {
  perspective: 1000px;
  transform-style: preserve-3d;
  mix-blend-mode: screen;
}

#dialFront {
  position: absolute;
  background: url("dial.jpg") 0 0/100% 100%;
  backface-visibility: hidden;
  transform: rotateY(0deg);
  transition: transform 1s ease;
}

#dialBack {
  position: absolute;
  background: url("dialb.jpg") 0 0/100% 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  transition: transform 1s ease;
}

#shadow {
  position: absolute;
  top: 19.3%;
  left: 52.65%;
  margin-left: 2.8%;
  width: 0;
  height: 70%;
  opacity: 0.5;
  transform-origin: center top;
}

#caption, #ruler {
  position: absolute;
  color: #cfb990;
  transform-origin: left center;
}

#ruler {
  opacity: 0;
  visibility: hidden;
}

.button {
  position: absolute;
  cursor: pointer;
}

#eye {
  background: url("eye.png") 0 0/100% 100%;
}

#sun {
  background: url("sun.png") 0 0/100% 100%;
}

#num {
  background: url("ten.png") 0 0/100% 100%;
}

#contact {
  background: url("roll.png") 0 0/100% 100%;
}

#exit {
  background: url("cross.png") 0 0/100% 100%;
}

#about {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  background: #000;
  background-color: rgba(0,0,0,0);
  z-index: 2;
  transition: top 1s ease, background-color 1s ease;
}

#about p, #about p a {
  color: #cfb990;
}

#about p span {
  float: right;
  cursor: pointer;
}

#source {
  opacity: 0;
  transition: opacity 1s ease;
}

@media (orientation:landscape) {
  #logo {
    top: 5vh;
    left: 5vh;
    width: 15vh;
    height: 19.5vh;
  }

  .numbers {
    font-size: 4vh;
  }

  .big {
    font-size: 5vh;
  }

  #dialFront, #dialBack {
    height: 100vh;
    width: 100vh;
    left: 50vw;
    margin-left: -50vh;
  }

  #shadow {
    box-shadow: 0 0 1vh 1vh #000;
    border-radius: 0.5vh;
  }

  #caption, #ruler {
    bottom: 5vh;
    left: 5vh;
    font-size: 1em;
    transform: rotate(0deg);
  }

  #ruler {
    height: auto;
    width: 58vh;
  }

  .button {
    bottom: 5vh;
    height: 8vh;
    width: 8vh;
  }
  
  #qr {
    height: 32vh;
    width: 32vh;
  }

  #eye {
    right: 41vh;
  }
  
  #sun {
    right: 29vh;
  }
  
  #num {
    right: 17vh;
  }

  #contact {
    right: 5vh;
  }

  #about p {
    font-size: 1.2em;
    padding: 8vh;
  }

  #about p span {
    height: 8vh;
    width: 8vh;
    margin: 0 0 8vh 8vh;
  }
}

@media (orientation:portrait) {
  #logo {
    top: 5vw;
    left: 5vw;
    width: 20vw;
    height: 26vw;
  }

  .numbers {
    font-size: 4vw;
  }

  .big {
    font-size: 5vw;
  }

  #dialFront, #dialBack {
    height: 100vw;
    width: 100vw;
    top: 50vh;
    margin-top: -50vw;
  }

  #shadow {
    box-shadow: 0 0 1vw 1vw #000;
    border-radius: 0.5vh;
  }

  #caption, #ruler {
    bottom: 5vw;
    left: 5vw;
    font-size: 0.8em;
    transform: rotate(-90deg);
  }

  #ruler {
    height: auto;
    width: 50vw;
  }

  .button {
    bottom: 5vw;
    height: 10vw;
    width: 10vw;
  }
  
  #qr {
    height: 40vw;
    width: 40vw;
  }

  #eye {
    right: 50vw;
  }
  
  #sun {
    right: 35vw;
  }
  
  #num {
    right: 20vw;
  }
  
  #contact {
    right: 5vw;
  }

  #about p {
    font-size: 1em;
    padding: 4vh;
  }

  #about p span {
    height:10vw;
    width: 10vw;
    margin: 0 0 5vw 5vw;
  }
}

