/* COLORS */
:root {
    --bg: #ebebeb;
    --white: #FFFFFF;
    --great: #09C59A;
    --wrong: #fdc841;
    --absent: #f18259;
    --gray: rgba(74, 67, 85, 0.6);
    --primary: #2C7EF9;
  }

/* GENERAL STYLE*/
body{
    background-color: var(--bg);
    color: var(--white) ;
    font-family: "Sour Gummy", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.container{
    width: 93%;
    height: auto;
    margin: auto; 
}

h1{
    text-align: center;
    color: var(--primary);
}

.div_header div:nth-of-type(2){
    display : flex;
    flex-direction: column;
    justify-content : center;
    align-items: center;
}

.div_header div:nth-of-type(2) p{
    color: var(--bg);
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    border-radius: 1rem;
}

/* HEADER */
.header{
    padding: 2rem 0;
}

.div_header{
    display : flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn_restart, .btn_info{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: transparent; 
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* button restart */
.btn_restart .svg_restart{
    transition: transform 3s ease-in-out; 
}
.btn_restart:hover .svg_restart{
    transform: rotate(360deg);
}

/* button info */
.btn_info .svg_info{
    transition: transform .6s ease-in-out; 
}
.btn_info:hover .svg_info{
    transform: scale(1.2);
}

/* TABLE STYLE */
 table{
    border-spacing: 1rem  2.5rem;
    margin: auto;
}

td{
    width: 5rem;
    height: 5rem;
    background-color: var(--gray);
    border: none;
    border-radius: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* LIGNES */
.not_visible{
    visibility: hidden;
}

.visible{
    visibility: visible;
}

/* ANIMATION DE SAUT */
@keyframes jump{
    0%{
      transform: translateY(0);
    }
    30%{
      transform: translateY(-10px); /* Monte de 10px */
    }
    50%{
      transform: translateY(0); /* Revient à sa position initiale */
    }
    70%{
      transform: translateY(-5px); /* Petit rebond */
    }
    100%{
      transform: translateY(0); /* Retour final à la position d'origine */
    }
}

.box_jump{
    animation: jump .9s ease-out;
}

/* COULEURS DE CORRESPONDANCE */
.good_place {
    background-color: var(--great);
    color: white;
} 

.wrong_place {
    background-color: var(--wrong);
    color: white;
}

.absent {
    background-color: var(--absent);
    color: white;
}


/* MEDIAS QUERIES */
@media only screen and (min-width: 500px) {
    h1{
        font-size: 4rem;
    }

    .div_header div:nth-of-type(2) p{
       font-size: 1.8rem;
    }

    table{
        border-spacing: 1.5rem  2rem;
    }
    
    td{
        width: 7rem;
        height: 7rem;
        font-size: 3rem;
    }

    .svg_restart, .svg_info{
        width: 30px;
        height: 30px;
    }

    .container{
        width: 70%;
    }
}

@media only screen and (min-width: 800px) {
    .modal_zone .modal{
        font-size: 1.6rem;
    }

    .strong_title, ::marker{
        font-size: 1.7rem;
    }

    .modal_button{
        font-size: 1.6rem;
    }

    .modal_text{
        font-size: 2rem;
    }

    .container{
        width: 60%;
    }
}

@media only screen and (min-width: 1000px) {
    .container{
        width: 50%;
    }
}

@media only screen and (min-width: 1200px) {
    .container{
        width: 40%;
    }
}

