/* import font used */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

/* basic reset */
*,
*::before,
*::after,
p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Generality */
html {
    font-size: 3.5vw;
    font-family:  'Lato';
    font-weight: bold;
}
body {
    width: 100%;
    height : 100%;
    text-align: center;
 }
 #game, #modal, #win {
    height: 100%;
}
h1 {
    margin: 4%;
    font-size: 3rem;
}
#game section {
    height: 150vw;
    display: flex;
    justify-content:center;

}

/*Players zones elements*/
#p1Zone, #p2Zone {
    width: 50%;
    padding: 25% 0;
    display:flex;
    flex-direction: column;
    justify-content:space-around;
    background-color:hsl(195,100%,50%);
}
#p1Zone {
    border-radius: 1.5rem 0 0 1.5rem;
}
#p2Zone {
    border-radius: 0 1.5rem 1.5rem 0;
}
article p {
    font-size: 1rem;
}
#replay{
    width: 40%;
    margin:auto;
}

/*Dice zones elements*/
.diceZone {
    height: 150vw;
    width: 25%;
    position: absolute;
    z-index: 1;
}
.dice {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding : 25% 0;
}
#hold  {
    margin-top: 20% ;
}

/*Index*/
.background {
    border-radius: 1.5rem;
    background-color:hsl(195,100%,50%);
    margin: 15% 0;
    height: 150vw;
    padding: 0 3%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.background h3 {
    padding: 2% 0 0.5% 0;
    text-decoration: underline;
    font-size: 1.5em;

}

.background h3, .background input {
    display: inline;
    margin-top: 2%;
}

#submit, #replay {
    margin-top:7%;
}
.background>p {
    font-size: 1.5rem;
}
.winnerText {
    height: 60%;
    margin: auto;
    display:flex;
    flex-direction: column;
    justify-content:space-around;
}
#win p {
    font-size: 3rem;
    font-weight: bold;
}
.inputForm {
    margin-top: 5%;
}
.rules {
    margin-top:2%;
    margin-bottom:10%
}

@media screen and (min-width: 600px) {
    html {
        font-size: 1vw;
    }    
    body {
        width: 100%;
        height: 90vh;
    }    
    h1 {
        margin: 2.5%;
        font-size: 2rem;
    }
    section, .background {
        width: 100%;
        height: 80%;
        margin: auto;
    }
    .background {
        width: 80%;
    }
    #p1Zone, #p2Zone {
        width: 40%;
        padding: 3% 0;
    }
    #game section {
        height: 80%;
    }
    .diceZone {
        width: 8%;
        height: 70%;
    }
    article>p {
        font-size: 2rem;
    }
    #win p {
        font-size: 4rem;
    }
    .inputForm {
        margin-top: 0.5%;
    }
    .rules {
        margin-top:1%;
        margin-bottom:1%
    }
    #submit {
        margin-top:2%;
    }
}