:root{
    --dark-navy:#1A2A33;
    --semi-dark-navy: #1F3641;
    --silver: #A8BFC9;
    --silver-hover: #DBE8ED;
    --light-blue: #31C3BD;
    --light-blue-hover: #65E9E4;
    --light-yellow: #F2B137;
    --light-yellow-hover: #FFC860;
}

body{
    font-family: "Outfit", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--dark-navy);
    background-color: var(--dark-navy);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container{
    width: 85%;
    height: auto;
    margin: auto;
}

/* PAGE D'ACCUEIL : CHOIX PLAYER */
.page_accueil{
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

img{
    width: 3rem;
    height: auto;
}

.logo{
    width: 7rem;
    height: auto;
    margin: auto;
}

.fenetre_player{
    background-color: var(--semi-dark-navy);
    padding: 2rem 2rem 3rem 2rem;
    border-radius: 15px;
    box-shadow: #13232a 0px 6px;
}

.fenetre_player p:first-child{
    font-weight: 700;
    color: var(--silver);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.fenetre_player p:last-child{
    font-weight: 400;
    color: var(--silver);
    text-transform: uppercase;
    text-align: center;
    margin-top: 1.5rem;
}

.div_symboles{
    background-color: var(--dark-navy) ;
    padding: 0.8rem 1rem;
    border-radius:10px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.div_symboles div{
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}
  
.btn_radio{
    /* display: none; */
    position: absolute;
    opacity: 0;
    left: 40%;
}
  
.div_symboles label{
    cursor: pointer;
    padding: 1rem 37%;
}

label img{
    max-width: initial;
}

.btn_radio:hover + label{
    background-color: var(--semi-dark-navy);
    border-radius:10px;
}

.btn_radio:checked + label, .btn_radio:focus + label {
    background-color: #a8bfc9;
    border-radius:10px;
}

/* BOUTONS */
.div_btn{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.btn_game{
  /* appearance: button; */
  border: solid transparent;
  border-width: 0 0 6px;
  border-radius: 13px;
 
  /* box-sizing: border-box; */
  font-weight: 700;
  
  outline: none;
  overflow: visible;
  padding: 1.3rem 1.6rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--dark-navy);

  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;

  /* user-select: none;
  -webkit-user-select: none; */
  /* vertical-align: middle; */
  /* white-space: nowrap; */
  width: 100%;
}
.btn_game:after{
    background-clip: padding-box;
    border: solid transparent;
    border-radius: 15px;
    border-width: 0 0 6px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
  }
  
.btn_game:hover{
    filter: brightness(1.2);
    -webkit-filter: brightness(1.2);
}
  
.btn_game:active, .btn_game:focus{
    border-width: 6px 0 0;
    background: none;
}

.btn_yellow{
    background-color: #a37b31;
}
.btn_yellow::after{
    background-color: var(--light-yellow);
}

.btn_blue{
    background-color: #1c9692;
}
.btn_blue::after{
    background-color: var(--light-blue);
}

/* PLATEAU DE JEU */
    /* INFORMATIONS HAUT */
.plateau_jeu{
    display: grid;
    grid-template-columns: repeat(3, 10rem);
    grid-template-rows: 15rem 10rem 10rem 10rem 6rem;
    align-items: center;
    gap: 2rem;
    /* margin: auto; */
}

.logo2{
    width: 6.5rem;
    height: auto;
}

.infos_haut_turn{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    background-color: var(--semi-dark-navy);
    padding: 1rem 2rem;
    border-radius: 10px;
    border-bottom: 4px solid #14222a;
}

.infos_haut_turn img{
    width: 2rem;
    height: auto;
}

.infos_haut_turn p{
    color: var(--silver);
    font-weight: 700;
    font-size: 1.6rem;
}

.btn_restart img{
    width: 2rem;
    height: auto;
}

.btn_restart{
    border: solid transparent;
    border-width: 0 0 4px;
    border-radius: 10px;
    background-color: #536167;
    
    /* box-sizing: border-box; */
    font-weight: 700;
    
    outline: none;
    overflow: visible;
    padding: 1.5rem;

    touch-action: manipulation;
    transform: translateZ(0);
    transition: filter .2s;
}

.btn_restart:after{
    background-clip: padding-box;
    background-color: var(--silver);
    border: solid transparent;
    border-radius: 10px;
    border-width: 0 0 4px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.btn_restart:hover{
    filter: brightness(1.1);
    -webkit-filter: brightness(1.1);
}
  
.btn_restart:active, .btn_restart:focus{
    border-width: 4px 0 0;
    background: none;
}

/* GRILLE DE JEU */
.case{
    background-color: var(--semi-dark-navy);
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border-bottom: 8px solid #14222a;
    margin: auto;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case_gagnante_croix{
    background-color: var(--light-blue);
    background-image: url("../img/icon-x-dark.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 5.5rem;
    border-bottom: 5px solid#1c9692;
}

.case_gagnante_cercle{
    background-color: var(--light-yellow);
    background-image: url("../img/icon-o-dark.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 5.5rem;
    border-bottom: 5px solid #a37b31;
}

.div_btn_restart{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
}

/* INFORMATIONS BAS */
.box{
    border-radius: 15px;
    /* margin: auto; */
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.5rem;
}

.score{
    font-weight: 700;
    font-size: 2rem;
}

.box_blue{
    background-color: var(--light-blue);
}

.box_silver{
    background-color: var(--silver);
}

.box_yellow{
    background-color: var(--light-yellow);
}


/* MEDIAS QUERIES */
@media only screen and (min-width: 576px){
    .container {
        width: 70%;
    }

    .plateau_jeu{
        display: grid;
        grid-template-columns: repeat(3, 12rem);
        grid-template-rows:5rem 12rem 12rem 12rem 6rem;
    }

    .div_symboles label {
        padding: 1rem 43%;
    }
}

@media only screen and (min-width: 768px){
    .container {
        width: 50%;
    }
}
@media only screen and (min-width: 992px) {
    .container {
        width: 40%;
    }
    .case_croix:hover{
        background-image: url('../img/icon-x-outline.svg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 6rem;
    }
    
    .case_cercle:hover{
        background-image: url('../img/icon-o-outline.svg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 6rem;
    }
}
@media only screen and (min-width: 1200px){
    .container {
        width: 30%;
    }
}


/* DESSIN DU PENDU */
.trait_pendu{
    stroke-dasharray: 314; /*définit les traits et les espaces entre eux = tirets*/
    stroke-dashoffset: 314; /*décale la position de départ des pointillés sur les lignes */
    animation: dessine 2s 1 paused both; /*both : regarder l'état de fin pas revenir à l'état de départ*/
    animation-play-state: running; /*exécuter l'animation qui était en pause*/
}


@keyframes dessine{
    100%{
        stroke-dashoffset: 0;
    }
}
