/**
 * Classes for the game play version.
 */

/* @import url('https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&display=swap');

.game-letter {
transform-style: preserve-3d;
    width: 450px;
    min-height: 290px;
    background: white;
    display: inline-block;
    color: black;
    padding: 48px 40px 0px 102px;
    text-align: left;
    margin: 20px;
    vertical-align: top;
    font-size: 15px;
    line-height: 17px;
    font-family: 'Nothing You Could Do';
    top: 100%;
    position: absolute;
    left: 50%;
    margin-left: -225;
    margin-bottom: 120px;
    transform: scale(1.2) translate(0,-319px) rotateY(180deg);
    transform-origin: center center;
    color: #25408f;
    z-index: 50;
    backface-visibility: hidden;
    background-image: url(../img/game-letter.jpg);
    background-size: 100% 100%;
    transition: transform .5s;
    box-shadow: 0px 14px 20px -10px rgb(0 0 0 / 40%);
}
.game-letter div, .game-letter span  {
  font-size: 12px !important;
}
.game-desk.flipped .game-letter {
  transform: scale(1.2) translate(0,-500px) rotateY(180deg);
}

.game-move-button {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
}
.game-map-button {
  position: fixed;
  top: 50px;
  left: 0;
  z-index: 110;
}

.game-envelope-front {
  position: fixed;
  width: 800px;
  margin-left: -400px;
  left: 50%;
  bottom: 0;
  height: 40px;
  background-color: red;
  transform: scale(1.2);
  transform-origin: top center;
  z-index: 200;
  display: none;
}

.game-desk {
  perspective-origin: 50% 50%;
  perspective: 1000px;
  z-index: 50;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
}
.game-desk.dropped {
  pointer-events: none;
}


.game-envelope {
position: fixed;
    width: 600px;
    margin-left: -400px;
    left: 50%;
    top: 50%;
    height: 400px;
    background-image: url(../img/game-envelope.jpg);
    background-size: 100% 100%;
    transform-origin: top center;
    z-index: 20;
    transform-style: preserve-3d;
    box-shadow: -10px 14px 8px rgb(0 0 0 / 40%);
    font-family: 'Alex Brush', cursive;
    text-align: left;
    padding: 41px 91px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0,0,0,.8);
    user-select: none;
    cursor: pointer;
    transition: .5s transform, .5s box-shadow;
    xbackface-visibility: hidden;
    margin-top: -130px;
    pointer-events: all;
}
.game-envelope i {
  font-family: 'Nothing You Could Do';
  color: rgba(46,49,146,.7);
  font-size: 27px;
}

.game-envelope::before {
  content: "";
  position: absolute;
  display: block;
  width: 600px;
  height: 400px;
  left: 0;
  top: 0;
  background-image: url(../img/game-envelope-back.png);
  background-size: 100% 100%;
  transform-origin: top center;
  z-index: 60;
  transform-style: preserve-3d;
  box-shadow: none;
  font-family: 'Homemade Apple';
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  color: rgba(37,64,143,.7);
  user-select: none;
  cursor: pointer;
  transition: .5s transform, .5s box-shadow, .5s color, .5s background-image;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.game-envelope::after {
  content: "";
  position: absolute;
  display: block;
  width: 600px;
  height: 400px;
  left: 0;
  top: 0;
  background-image: url(../img/game-envelope-flap.png);
  background-size: 100% 50%;
  background-repeat: no-repeat;
  transform-origin: top center;
  z-index: 40;
  transform-style: preserve-3d;
  box-shadow: none;
  font-family: 'Homemade Apple';
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  color: rgba(37,64,143,.7);
  user-select: none;
  cursor: pointer;
  transition: .5s transform, .5s box-shadow, .5s color;
  opacity: 0;
}

.game-desk.centered .game-envelope {
  transform: translate(210px, 50px) scale(0.5) rotate(-25deg) rotateX(1deg);
}
.game-desk.dropped .game-envelope {
  transform: translate(-450px, 60px) scale(0.5) rotate(-18deg) rotateX(1deg);
}
/*
.game-desk.centered .game-envelope:hover {
  outline: 8px solid darkred;
}
*/
.game-desk.zoomed .game-envelope {
  transform: scale(.75) rotate(0deg) rotateX(0deg) translate(130px, -120px);
  z-index: 50;
  box-shadow: -90px 380px 40px rgb(0 0 0 / 40%);
}
.game-desk.flipped .game-envelope {
    transform: scale(.75) rotate(0deg) rotateY(180deg) translate(-130px, 81px) translateZ(-150px);
  box-shadow: 0px 600px 20px rgba(0,0,0,.1);
  xcolor: rgba(37,64,143,.1);
  z-index: 200;
  background-image: url(../img/game-envelope-inside.jpg);
  color: rgba(0,0,0,0);
}

.game-desk.flipped .game-envelope::after {
  opacity: 1;
}


.game-desk.flipped .game-envelope::after {
  transform: rotateX(180deg);
}


.blurred {
  filter: blur(10px);
}

.game-envelope em {
  float: left;
  font-size: 26px;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid darkred;
  border-radius: 30px;
  width: 40px;
  height: 40px;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  color: darkred;
  padding: 10px 4px 0 0;
  letter-spacing: -2px;
  margin-bottom: 20px;
  margin-right: 12px;
  margin-top: 3px;  
}
.game-envelope center {
  margin-top: 70px;
  text-align: center;
  font-size: 22px;
  line-height: 30px;
}
.game-envelope p {
  margin-top: 11px;
}

.game-bg {
  background-image: url(../img/game-bg.jpg);
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: .5s filter;
}

.game-phone {
  background-image: url(../img/game-phone.png);
  background-size: 100% auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  height: 600px;
  max-width: 600px;
  background-repeat: no-repeat;
  z-index: 2;
  transition: .5s filter;
}

.game-typewriter {
  background-image: url(../img/game-typewriter.png);
  background-size: 100% auto;
  position: fixed;
  top: -50px;
  right: 0;
  width: 50%;
  height: 600px;
  max-width: 450px;
  background-repeat: no-repeat;
  z-index: 30;
  transition: .5s filter;
}