html{
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.montserrat {
     font-family: "Montserrat", sans-serif;
     font-optical-sizing: auto;
     font-weight: 300;
     font-style: normal;
 }

body{
    margin: 0;
    padding: 0;
    font-weight: 300;
    font-family: "Montserrat", serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.hidden{
    display: none;
}

#card{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    width: 82%;
    aspect-ratio: 1.7;
    border-radius: 1rem;
    backface-visibility: hidden;
    cursor: pointer;
}
#card_back{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    width: 82%;
    aspect-ratio: 1.7;
    border-radius: 1rem;
    backface-visibility: hidden;
    cursor: pointer;
}

#container_background{
    width: 100%;
    height: 100%;
    background-image: url("./img/colorful_texture.png");
    background-size: cover;
    z-index: 1;
    border-radius: 4vw;
}
#container_background_back{
    width: 100%;
    height: 100%;
    background-image: url("./img/colorful_texture_dark.png");
    background-size: cover;
    z-index: 1;
    border-radius: 4vw;
}
#front_shadow{
    position: absolute;
    top: 4%;
    left: 4%;
    width: 93%;
    height: 93%;
    transition: all 0.2s ease-out;
    box-shadow: 0 0 3rem rgba(14, 21, 47, 0.6);
    z-index: -1;
}


#container_text_box {
    position: absolute;
    height: 83%;
    top: 0;
    right: 0;
    left: 0;
    padding-top: 5%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
    overflow: hidden;
    display: grid;
    place-items: center;
    transform: translateZ(1rem);
}
#container_text_box_back{
    position: absolute;
    height: 45%;
    top: 0;
    right: 0;
    left: 0;
    padding-top: 5%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
    overflow: hidden;
    display: grid;
    place-items: center;
    transform: translateZ(1rem);
}
#front_text {
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    padding: 0;
    color: floralwhite;
}
#back_text {
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    padding: 0;
    color: floralwhite;
    /* -webkit-text-stroke: #0000001c; */
    /* -webkit-text-stroke-width: 1px; */
}
#turn_button{
    position: absolute;
    bottom: 0;
}





/* --- layout hook --- */
.tilt { perspective: 200vw;  }
.card {

    transform-style: preserve-3d;
    transition: transform .2s ease, box-shadow .2s ease;
    will-change: transform;

}

/* subtle pop on hover */
.tilt:hover .card {

}

/* glare */
.card::after{
    content:"";
    position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
    background: radial-gradient(80vw circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.18), transparent 40%);
    opacity: 0; transition: opacity .2s ease;
}
.tilt:hover .card::after{ opacity: .9; }

.tilt:not(:hover) .autoback { transform: rotateX(0) rotateY(0) translateZ(0) !important; }

.notransformtransition { transition: none !important; }
