* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

main {
    width: 100%;
    height: 100vh;

    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

#timer {

    position: fixed;
    top:50vh;
    left: 50vw;
    transform: translate(-50%, -50%);

}

#timer p {

    font-size: 90vh;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: rgba(124, 102, 30, 0.075);
    user-select: none;

}

.scorer {
    position: fixed;
    top: 10px;
    right: 10px;

    width: 150px;
    height: 200px;

    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;

    transition: ease-in 300ms;
}

.scorer p {
    opacity: 1;
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    transition: opacity ease-in 300ms, transform 300ms ease;
    transform: translateY(0);
}

.scorer p.disapear { /* Ajout du sélecteur plus spécifique */
    transform: translateY(-20px); /* Changement de la transformation */
    opacity: 0; /* L'élément devient invisible */
}

.superPT {

    transition: ease-in 300ms;

    font-size: 26px;
    font-weight: bold;
    color: red;

}

.end {

    position: fixed;
    width:100vw; 
    height:100vh; 
    top:0; 
    left:0; 
    border-radius:0; 
    background-color: rgba(185, 180, 187, 0.788);
    backdrop-filter: blur(5px);

}



.final {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    z-index: 5;

    width: 300px;
    height: 300px;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);

    background-color: rgba(0, 0, 0, 0.644);

    color: white;

    padding: 25px;
    border: 0 solid;
    border-radius: 10px;

    transition: ease-in 1s;
}

.final h2 {
    margin: 0;
    color: white;
}

.final p {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    gap: 5px;
    margin: 5px;
    justify-content: space-between;
}

.final button {
    align-self: flex-end;
    padding: 5px 10px;
    border: 0 solid;
    border-radius: 5px;  
    transition: ease-in 100ms; 
}

.final button:hover {
    background-color: rgb(125, 176, 218);
    transition: ease-in 100ms;
}

.final__group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}


.normalPT {

    transition: ease-in 300ms;
    color: green;

}

.objet {
    position: absolute;
    background-color: red;
    width: 30px;
    height: 30px;
    border-radius: 50%;

    top: 50%; /* Position initiale verticale */
    left: 50%; /* Position initiale horizontale */


    transition: ease-in 300ms;
}

h1 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: rgba(114, 135, 153, 0.581);
    font-size: 150px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fond 8s infinite;
    user-select: none;
}

h2 {
    display: flex;
    flex-direction: column;
    color: black;
    text-align: center;
    color: gray;
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
    
}

@keyframes fond {
    0% {
        color: rgba(114, 135, 153, 0.581);
    }
    30% {
        color: rgba(30, 151, 203, 0.521);
    }
    60% {
        color: rgba(180, 76, 173, 0.562);
    }
    90% {
        color: rgba(45, 194, 169, 0.465);
    }
    100% {
        color: rgba(114, 135, 153, 0.581);
    }
}

@keyframes rainbow {
    0% {
        background-color: red;
        transition: ease-in 300ms;
        top: 10vh;
        left: 50vw;
    }
    10% {
        background-color: orange;
        transition: ease-in 300ms;
        top: 25vh;
        left: 35vw;
    }
    20% {
        background-color: yellow;
        transition: ease-in 300ms;
        top: 35vh;
        left: 25vw;
    }
    30% {
        background-color: yellowgreen;
        transition: ease-in 300ms;
        top: 50vh;
        left: 10vw;
    }
    40% {
        background-color: green;
        transition: ease-in 300ms;
        top: 65vh;
        left: 25vw;
    }
    50% {
        background-color: aqua;
        transition: ease-in 300ms;
        top: 75vh;
        left: 35vw;
    }
    60% {
        background-color: aquamarine;
        transition: ease-in 300ms;
        top: 90vh;
        left: 50vw;
    }
    70% {
        background-color: blue;
        transition: ease-in 300ms;
        top: 75vh;
        left: 65vw;
    }
    80% {
        background-color: blueviolet;
        transition: ease-in 300ms;
        top: 65vh;
        left: 75vw;
    }
    90% {
        background-color: violet;
        transition: ease-in 300ms;
        top: 50vh;
        left: 90vw;
    }
    100% {
        background-color: magenta;
        transition: ease-in 300ms;
        top: 10vh;
        left: 50vw;
    }
}