@charset "UTF-8";
/* CSS Document */


@font-face {
    font-family: "Script12 BT";
    src: url(../fonts/Script12Pitch/Script12Pitch-Normal.ttf) format("truetype");
}

@font-face {
    font-family: "Full Auto";
    src: url(../fonts/fullauto.ttf) format("truetype");
}


@font-face {
    font-family: "PlotterWave";
    src: url(../fonts/PierWavexsRegA.otf) format("opentype");
}

body {
    overflow: hidden;
    /* empêche le défilement de la page */
    font-size: 3em;
    line-height: 120%;
    height: 110vh;
    overflow-x: hidden;


    --text-color: #000000;
    --background-color: #fff;
    --margin: 1em;
    margin: var(--margin);
    color: var(--text-color);
    background-color: var(--background-color);
}

body.night-mode {
    --text-color: #fff;
    --background-color: #000000;
    color: var(--text-color);
    background-color: var(--background-color);
}


#body {}


.body {
    position: relative;
    height: 100px;
    /* Ajustez la hauteur de la div selon vos besoins */
    overflow: hidden;
    border: 1px solid #ccc;
}

.container {
    text-shadow: 5px 5px 10px #777;
    padding: 100vh 0 100vh 0;
    position: absolute;
    top: 0;
    animation: scroll linear infinite;
    /* La vitesse sera définie en JavaScript */
}





section.controls {
    background: linear-gradient(rgb(0, 92, 212) 0%, rgba(0, 0, 0, 0) 100%);
    transition: all 1s ease;

    font-size: 0.4em;
    line-height: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: grid;
    font-family: sans-serif;
    grid-template-columns: repeat(4, 1fr);

}

section.controls button {
    background-color: #fff;
    color: var(--text-color);
    border: 1px solid #000;
    border-radius: 0.5em;
    cursor: pointer;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 100%;
    transition: all 1s ease;
}

section.controls>* {
    margin: 0.2em;
    height: 2em;
    text-align: center;
}


#calendar,
#time,
#temperature {
    display: none;
    box-shadow: 5px 5px 10px #777;
    position: fixed;
    border: 1em solid #777;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55vw;
    height: 55dvh;
}

#time,
#time>iframe {
    border: none;
}


iframe {
    width: 100%;
    height: 100%;
    margin: auto;
}


@keyframes scroll {
    from {
        top: 0;
    }

    to {
        top: -100%;
        /* La hauteur de la div, assurez-vous que c'est négatif et égal à la hauteur de la div parent pour un défilement complet */
    }
}


a:hover {
    text-decoration: underline;
    cursor: pointer;
}

a#switcher:hover {
    cursor: grab;
}

a#switcher:active {
    cursor: grabbing;
}

/* #time {
    font: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;

    position: absolute;
    right: 20px;
    line-height: 100%;
    text-align: right;
    margin-top: -30px;
    z-index: 1;
} */

#worms {
    height: 600vh;
    width: 100%;
}

#canvas {
    height: 100%;
    width: 100%;
}




div.marquee2 {
    z-index: 100;
    position: absolute;
    width: 100%;
    text-align: center;
    animation-name: marquee2;
    animation-duration: 100s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

div.block-type-direction {
    letter-spacing: 2px;
}

.block>* {
    font-variant-ligatures: normal;

    font-family: "Times";
}

section.text p {
    /* text-indent: 100px; */
    text-align: center;
    font-size: 300%;
    line-height: 0.8;
    margin: 0;
}

section.titles .talking {
    font-family: "Times New Roman", Times, serif;
    padding: 0px 0px;
    font-size: 52px;
    line-height: 1.1em;
    letter-spacing: 2px;
    word-spacing: 1px;
    font-weight: normal;
    word-wrap: break-word;
    font-style: italic;
    margin: 0;


}

section.titles .talking:first-child {
    text-indent: 1em;
}



.container {
    width: calc(100% - var(--margin) * 2);
    animation: scroll 30s linear infinite;
    /* Vous pouvez ajuster la durée ici */
    font: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
    font-family: Times New;
    font-variant-ligatures: normal;
    line-height: 1.1;

}

@keyframes scroll {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}


section.titles>p:not(.talking) {
    margin-top: 0;
    margin-bottom: 2em;
}


.fallingobjects {
    position: absolute;
    width: 30vw;
    top: -500px;
    z-index: 500;
    /* penser à changer la valeur positionY dans default.js */
}

@keyframes marquee {
    from {
        top: 0;
    }

    to {
        top: -10500px;
    }

}

@keyframes marquee2 {
    from {
        top: -100vh;
    }

    to {
        top: 10500px;
    }

}

#switcher {
    z-index: 200;
    position: absolute;
    width: auto;


    /* Change the cursor to a grabbing hand icon */

}

#switcher img {
    width: auto;

    height: 250px;
}

div.block {
    width: calc(100% - var(--margin) * 2);
}

.block-type-direction>*>* {

    text-align: center;
    font-weight: normal;
    font-family: "Script12 BT", cursive;
    letter-spacing: 3px;
    line-height: 1.1em;

}

.ongoing {
    animation: blink 1s 1;

}

@keyframes blink {
    from {
        opacity: 0.2;
    }


    to {
        opacity: 1;
    }

}

#player {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, auto 1fr);
    align-items: flex-start;
}