html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
}

@media (min-width: 1080px) {
    :root {
        font-size: 1.2em;
    }

    .content-container, footer {
        padding: 3rem;
    }
}


#main {
    position: static;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.landing-container {
    width: 100%;
    height: 100%;
    background: #fefefe;
    overflow: scroll;
}

#landing-text {
    margin-top: 3rem;
}

.landing-container p {
    font-family: "Poppins", sans-serif;
    margin-top: 1.5rem;
}

.landing-container h1 {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    line-height: 1.0;
    font-size: 2.5rem;

}

.landing-container .content-container {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0rem;
    line-height: 1.75;
    color: #222;
    padding: 1rem;
}

footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 0.8rem;
}

#thank-you-container > div > button > div > div.thank-you-label {
    font-size: 0.8rem !important;
}

.author {
    text-align: right;
}

header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 7rem;
}

#main-btn-container {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.main-btn {
    background-color: #4a637d; /* Un bleu-gris sobre et professionnel */
    border-radius: 8px; /* Coins légèrement arrondis pour un look moderne mais pas enfantin */
    text-decoration: none;
    border: none; /* Pas de bordure pour un design plus épuré */
    padding: 0.8rem 2.2rem; /* Un padding équilibré */
    color: #ffffff; /* Texte blanc pour un bon contraste */
    font-family: 'Poppins', sans-serif; /* Utilisation de la police */
    font-size: 1rem; /* Taille de police élégante et discrète */
    font-weight: 500; /* Poids moyen pour un style contemporain */
    letter-spacing: 0.05em; /* Légère espacement pour un effet raffiné */
    cursor: pointer; /* Indicateur interactif */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animation fluide pour les interactions */
}

.main-btn:hover {
    background-color: #394d62; /* Couleur plus sombre au survol */
    transform: translateY(-2px); /* Légère élévation pour un effet interactif subtil */
}

.main-btn:active {
    background-color: #2c3c4f; /* Couleur encore plus sombre pour le clic */
    transform: translateY(0); /* Effet de bouton enfoncé */
}

#cam-video {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    transform: rotateY(180deg)
}

#mask-video {
    display: block;
    position: absolute;
    background: #000;
    width: 100vw;
    height: 100vh;
    z-index: 4;
}

#face-box {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 30px;
    display: none;
    z-index: 2;
    overflow: hidden;
    transition: transform 0.1s linear;
    transform-style: preserve-3d;
}

#face-box p {
    margin: 0;
    padding: 5px;
    font-size: 2.0rem;
    text-align: center;
    width: 100%;
    color: #fff;
    font-family: Inter, Helvetica, Arial, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8),
    0 0 10px rgba(0, 255, 255, 0.6),
    0 0 20px rgba(0, 255, 255, 0.4),
    0 0 40px rgba(0, 255, 255, 0.2);

}

.holo-container {
    position: relative; /* Permet de manipuler top/left */
    width: 300%;
    height: 300%;
    background: conic-gradient(
            #c0c0c0 0%,
            #a7c7e7 25%,
            #fff5ba 50%,
            #c0c0c0 75%,
            #a7c7e7 100%
    );
    filter: blur(8px);
    transform-origin: center;

    background-size: 120% 120%;
    background-repeat: no-repeat;
    transition: transform 0.15s linear;
}

/* Optionnel : Canevas pour déboguer les keypoints */
#keypoints-canvas {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
}

.quit-btn-container {
    position: absolute;
    z-index: 1000;
    right: 1rem;
    top: 1rem;
}

#quit-btn {
    border: 0;
    background: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.loading {
    color: white;
    font-size: 2rem;
    margin: auto 20vh;
}