@font-face {
    font-family: 'Calibre-Regular';
    src: url("../fonts/CalibreWeb-Regular.woff2") format("woff2"), url("../fonts/CalibreWeb-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibre-Semibold';
    src: url("../fonts/CalibreWeb-Semibold.woff2") format("woff2"), url("../fonts/CalibreWeb-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* { 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box; 
 }
 
 html, body, div, h1, h2, h3, h4, h5, h6, p { 
    margin: 0; 
    padding: 0; 
 } 


body {
    padding: 0;
    margin: 0;
    font-family: 'Calibre-Regular';
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    background-color: #000000;
    /* background: #000000 url(../images/milkyway.jpg) no-repeat;
    background-attachment: fixed;
    background-size: cover; */
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 0 !important;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* #scene {
    width: 100vw;
    height: calc(200vh - 20px);
    overflow: hidden;
} */

.window{
    /* width: 100vw;
    height: 80vh; */
    position: fixed;
    top: 0;
    left:0;
}

.window img{
    height: 60vh;
    width: auto;
    z-index: 1;
    transform: translateX(-10vw);
}
.milkyway {
    width: 100vw;
    height: 200vh;
    /* right: -20vw;
    left: auto !important; */
    overflow: hidden;
    /* background: #000000 url(../images/milkyway.jpg) no-repeat 10vw center;
    background-size: cover; */
}

.milkyway img{
    height: 100%;
    width: auto;
}
.back {
    width: 100vw;
    height: 100vh;
}

.back img {
    max-height: 100%;
    width: auto;
    transform: translateX(-2vw) translateY(-2vh);
}


.ship {
    position: absolute;
    width: 100vw;
    text-align: right;
}

.ship img {
    max-width: 45vw;
    height: auto;
    transform: translateX(-8vw) translateY(65vh);
}

.intro {
    position: absolute;
    top: 0;
    left: 0;
    /* padding: 5vw 10vw; */
    padding: 5vw 7vw;
    color: #ffffff;
    z-index: 2;
    
}

.intro p.small{
    display: block;
    font-size: .875em;
    text-transform: uppercase;
    color:#a5a5a5;
}

.intro p.small a{
    color:#a5a5a5;
}

.date, .place, .text, .milkyway img, .ship img, .play{
    opacity: 0;
}

.date {
    font-family: 'Calibre-Semibold', sans-serif;
    font-size: 2.6em;
    line-height: 1;
    color: #ec0133;
    animation: opacityAnimation 1.6s ease-out .5s forwards;
}

.place {
    font-size: 1.55em;
    animation: opacityAnimation 1.6s ease-out 1s forwards;
}

.text {
    font-size: 1.2em;
    max-width: 47ch;
    margin-top: .35em;
    animation: opacityAnimation 1.6s ease-out 2s forwards;
}
.play {
    position: relative;
    margin-top: .75em;
    padding: 5px 15px;
    font-size: 1em;
    background-color: #ffffff;
    color: #000204;
    border-radius: 5px;
    border: none;
    cursor: default;
    animation: opacityAnimation 1.6s ease-out 2.5s forwards;
}

.audioLoaded .play{
    cursor: pointer;
}

@keyframes opacityAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.play .loading, .playSong .loading{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play .loading span, .playSong .loading span{
    width: 8px;
    height: 8px;
    margin: 10px 3px 2px 3px;
    background: #000204;
    border-radius: 50%;
    animation: bounce 0.45s infinite alternate;
}

.loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    100% {
        opacity: 0.3;
        transform: translate3d(0, -5px, 0);
    }
}

.play .label {
    visibility: hidden;
}


.play.isVisible .loading {
    display: none;
}

.audioLoaded .play.isVisible .label {
    visibility: visible;
}

.audioLoaded .play.isHidden {
    visibility: hidden;
}

.audioLoaded .play .loading, .songLoaded .playSong .loading {
    display: none;
}

.play.isVisible.changeLabel .label {
    display: none;
}

.replayLabel {
    display: none;
}

.bodyLoaded .play.isVisible.changeLabel .replayLabel {
    display: block;
}



.bodyLoaded .milkyway img{
    opacity: 1;
    transition: opacity .6s ease-out 2.5s;
}

.bodyLoaded .ship img{
    opacity: 1;
    transition: opacity .6s ease-out 3s;
}


.messagesContainer {
    display: flex;
    flex-direction: column-reverse;
    height: 18rem;
    position: relative;
    overflow: hidden;
    position: absolute;
    top: 235px;
    /* left: 10vw; */
    left: 7vw;
    width: 75vw;
    max-width: 400px;
    opacity: 0;
}

/* .messagesContainer:after {
    content:'';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
background: -moz-linear-gradient(top,  rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.7) 16%,  rgba(0,0,0,0) 20%, rgba(0,0,0,0) 100%);
background: -webkit-linear-gradient(top,  rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.7) 16%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 100%);
background: linear-gradient(to bottom,  rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.7) 16%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3000000', endColorstr='#00000000',GradientType=0 );
}  */

.messages {
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 80%;
}

.loadMessages .messagesContainer{
    opacity: 1;
}

.loadMessages .messageContent {
    /* flex: 0 1 auto; */
    border-radius: 10px;
    color: #000204;
    max-height: 0;
    overflow: hidden;
    animation: message .3s ease-out 0s forwards;
    transform: scale(0);
    animation-delay: var(--timeline);

}

 .messageContent p {
    display: inline-block;
    padding: .75em;
    border-radius: 10px;
    margin: 0;
} 

.messageContent span {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.loadMessages .messageContent span {
    animation: darkenWhite 0.3s ease-in-out var(--timeline2) forwards, black 0.01s ease-in-out var(--timeline4) forwards;
}

.gemini6 .messageContent {
    transform-origin: 0 100%;
}

.gemini6 .messageContent p {
    background-color: #22e3c3;
}

.loadMessages .gemini6 .messageContent p {
    animation: darken6 0.3s ease-in-out var(--timeline2) forwards, darkenest6 0.3s ease-in-out var(--timeline3) forwards, black 0.01s ease-in-out var(--timeline4) forwards;
}

.gemini7, .houston {
    flex-direction: row-reverse;
    text-align: right;
    align-self: flex-end;
}

.gemini7 .messageContent, .houston .messageContent {
    transform-origin: 100% 100%;
}

.gemini7 .messageContent p {
    background-color: #ec0133;
}

.loadMessages .gemini7 .messageContent p {
    animation: darken7 0.3s ease-in-out var(--timeline2) forwards, darkenest7 0.3s ease-in-out var(--timeline3) forwards, black 0.1s ease-in-out var(--timeline4) forwards;
}

.houston .messageContent p {
    background-color: #ac22e3;
}

.messageContent + .messageContent {
    margin-top: .5em;
}

.messageContent.changeColor {
    opacity: .5;
}

@keyframes message {
    0% {
        max-height: 0;
        transform: scale(0);
    }

   80% {
        transform: scale(1.05);
    }

    100% {
        max-height: 6em;
        transform: scale(1);
        overflow: visible;
    }
}

/* @keyframes height {
    0% {
        max-height: 0;
    }

 
    100% {
        max-height: 200px;/
    }
} */

@keyframes darkenWhite {
    0% {
        color: #ffffff;
    }

    100% {
        color: #c0c0c0;
    }
}

@keyframes darken6 {
    0% {
        background-color: #22e3c3;
    }

    100% {
        background-color: #168a78;
    }
}

@keyframes darkenest6 {
    0% {
        background-color: #168a78;
    }

    100% {
        background-color: #0d5e52;
    }
}

@keyframes darken7 {
    0% {
        background-color: #ec0133;
    }

    100% {
        background-color: #bb032b;
    }
}

@keyframes darkenest7 {
    0% {
        background-color: #bb032b;
    }

    100% {
        background-color: #a10124;
    }
}

@keyframes black{
   0% {
        opacity: 1;
        display: block;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

/* .greetings:before{
    content: '';
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/stars.jpg) no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0;
}

.bodyLoaded .greetings:before{
    opacity: .5;
} */



.moon {
    width: 100vw;
    /* height: 110vh; */
    height: 100vh;
    position: absolute;
    left: 50%;
    /* transform: translateY(100vh) translateX(-50%); */
    transform: translateY(80vh) translateX(-50%);
}

.moon div {
    width: 100%;
    text-align: center;
}

.logo, .christmas {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
}

.logo div, .christmas div {
    width: 100%;
    text-align: center;
}

.christmas {
    transform: translateY(20vh);
}

.christmas svg{
    max-width: 60vw;
}

.logo {
    transform: translateY(55vh);
}

.logo svg {
    max-width: 250px;
}


.stars {
    width: 100vw;
    height: 100vh;
    margin-top: 100vh;
    position: absolute;
    display: grid;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.stars img {
    max-width: 100%;
    opacity: .5;
}

.bodyLoaded .moon, .bodyLoaded .stars {
    opacity: 1;
    transition: opacity 0.1s ease-out 2s;
}

.bodyLoaded .moon img {
    max-width: 100%;
}

.greetings {
    display: none;
     width: 100vw;
    height: 100vh; 
    position: absolute;
    top: 100vh;
}

.bodyLoaded .loadGreetings.greetings {
    display: block;
}

.soundtrack{
    position: relative;
    max-width: 41ch;
    margin: -7vh auto 0 auto;
    padding: 2em;
    color: #ffffff;
    background-color: rgba(0,0,0, .6
    );
}


h2{
    margin-bottom: 1em;
}


button{
-webkit-appearance: none;
    -moz-appearance: none;
}

form{
    font-size: 16px;
}

input[type="text"]{
    max-width: 18ch;
    padding: .5em .5em .35em .5em;
    margin: 0 .25em .5em .25em;
    font-size: 17px;
    line-height: 1;
    color: #000000;
    border-radius: 5px;
    border: 2px solid #000000;
    outline: none;
}

input[type="submit"]{
    padding: .75em 1.5em;
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    border: none;
    margin-top: 1em;
    margin-left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all .15s ease-in;
}

input[type="submit"]:hover{
    color: #000000;
    background-color: #22e3c3;
    transition: all .15s ease-out;
}

::-webkit-input-placeholder {
    font-size: 17px;
    color: #000000;
  }
  ::-moz-placeholder { 
    font-size: 17px;
    color: #000000;
  }
  :-ms-input-placeholder { 
    font-size: 17px;
    color: #000000;
  }

  input:focus {
    border-color: #22e3c3;
  }

  input:focus::placeholder {
    color: transparent;
  }

  hr{
      border-top: 1px solid rgba(#ffffff, .75);
      border-bottom: none;
      appearance: none;
  }

  fieldset{
      padding: 0;
      border: none;
  }

  legend{
      margin-bottom: 10px;
  }

  fieldset div{
      position: relative;
      padding-left: 25px;
      margin-bottom: 7px;
  }

  input[type="radio"]{
      position: absolute;
    width: 16px;
    height: 16px;
      opacity: 0;
      z-index: 10;
  }

  input[type=radio]+label {
      position: relative;
      font-size: 16px;
      cursor: pointer;
  }

  input[type=radio]+label:before {
    content: " ";
    display: inline-block;
    position: absolute;
    top: -1px;
    left: -25px;
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

input[type=radio]:checked+label:after{
    content: " ";
    display: inline-block;
    position: absolute;
    top: 3px;
    left: -21px;
    width: 12px;
    height: 12px;
    background-color: #000000;
    border-radius: 50%;
    z-index: 1;
}

input[type=radio]:checked+label:before {
    background-color: #22e3c3;
}

@media (max-height: 700px) {
    .bodyLoaded .moon img {
        width: 75vw;
        height: auto;
    }
}

@media (min-width: 768px) {
    /* .window{
        height: 100vh;
    } */


.date {
    font-size: 3em;
}
    .window img{
        height: 100vh;
        transform: translateX(-1vw);
    }

    .greetings{
        top:100vh;
    }
    .moon {
        transform: translateY(75vh) translateX(-50%);
    }

.logo {
    transform: translateY(75vh);
}
    .milkyway{
        top: -5vh !important;
    }
    .milkyway img{
        transform: translateX(40vw);
    }
    .christmas {
        transform: translateY(40vh);
    }
    
    .christmas svg{
        max-width: 25vw;
    }
    .messagesContainer {
        width: 50vw;
        max-width: 400px;
        top: 250px;
        opacity: 0;
    }
    .soundtrack{
        max-width:73ch;
    }

    .logo svg {
        max-width: 350px;
    }
    
}

@media (max-width: 991px) {
.backDx{
    display: none;
}
}
@media (min-width: 1280px) {
    .intro {
        padding: 2.75vw 12vw;
    }

    .messagesContainer {
        left: 12vw;
    }

    .ship img {
        max-width: 30vw;
        transform: translateX(-15vw) translateY(35vh);
    }

    .moon{
        transform: translateY(60vh) translateX(-50%)
    }

    .christmas {
        transform: translateY(15vh);
    }
    

    .logo{    
        transform: translateY(70vh);
    }
}



/* CARD */

.card {
    max-width: 320px;
    width: 640px;
    height: 414px;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -webkit-perspective: 2000px;
    perspective: 2000px;
    font-size: 1.25em;
    color: #03071e;
    transition: 1s;
}

.card span{
    font-size: 1.5em;
}

.playSong{
    width: 75px;
height: 75px;
    opacity: 1;
    padding: 21px 4px;
    position: absolute;
    top: 50%;
    left: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background: rgba(255, 255, 255, .85);
border: 2px solid #03071e;
transition: all .15s linear;
}

.playSong.isVisible{
    cursor: pointer;
}

.playSong.isVisible:hover{
    background: rgba(255, 255, 255, .6);
    transition: all .15s linear;
}

.playSong.isVisible .triangle{
    display: inline-block;
    width: 0;
height: 0;
border-style: solid;
border-width: 15px 0 15px 25px;
border-color: transparent transparent transparent #03071e;
transform: translateX(3px);
}

.front img {
    max-width: 100%;
    height: auto;
    z-index: 1;
}

 .card.open .outside {
    transform: rotateY(-160deg) translateX(160px);
}

.card.open .completed {
    display: none;
}

.outside,
.inside {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.inside {
    background: linear-gradient(to right, #F7ECCF, #F8F0DC 30%);
    line-height: 3;
    padding: 0 1.25em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 50%;
    opacity: 0;
}

.inside.isVisible {
    opacity: 1;
    transform: translateX(-160px) scale(1.03);
    transition: 1s;
}

.outside {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 1;
    transform-origin: left;
    transition: 1s;
}

.front,
.back {
    height: 100%;
    width: 100%;
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: rotateX(0deg);
}


.back {
    transform: rotateY(180deg);
    background: linear-gradient(to left, #f3e8c9, #F8F0DC 30%);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card p{
    line-height: 1.2;
}

.working, .completed {
    transform: translateY(-2em);
    margin-bottom: -1em;
    text-align: center;
color: #ffffff;
}

.completed{
    display: none;
}

.songLoaded .working{
    display: none;
}

.songLoaded .completed{
    display: block;
}

.inside span{
    display: block; 
 }

 audio{
     max-width: 100%;
     margin-top: 1em;
 }

 @media(min-width:768px){
     .card{
         max-width: none;
     }

    .outside,
    .inside {
        width: 50%;
    }

    .inside {
        padding: 0 2.5em;
    }

.back {
    background: linear-gradient(to left, #F7ECCF, #F8F0DC 30%);
}
 }