:root{
    --very-dark-cyan: hsl(183, 100%, 15%);
    --dark-grayish-cyan: hsl(186, 14%, 43%);
    --grayish-cyan: hsl(184, 14%, 56%);
    --light-grayish-cyan: hsl(185, 41%, 84%);
    --very-light-grayish-cyan: hsl(189, 41%, 97%);
    --strong-cyan: hsl(172, 67%, 45%);
    --light-cyan: hsl(173, 61%, 76%);
    --white: hsl(0, 0%, 100%);
}

/* ELEMENTS GENERIQUES */
body{
    background-color: var(--light-grayish-cyan);
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
    color:var(--dark-grayish-cyan);

    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input{
    border: none;
    background-color: var(--very-light-grayish-cyan);
    width: 100%;
    border-radius: 5px;
    padding: 1rem 2rem;

    color:var(--very-dark-cyan);
    font-size: 2.1rem;
    text-align: end;
}

::placeholder{
    text-align: end;
}

/* MAIN */
.contenu_main{
    width: 50%;
    height: auto;
    margin: auto;
}

.logo{
    margin: 5rem auto;
}

.article{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5rem ;
    padding: 3rem;
    border-radius: 25px;
    background-color: var(--white);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


/* PARTIE GAUCHE DU MAIN */
.contenu_gauche{
    width: 50%;
    background-color: var(--white);
    border-radius: 15px;
}

/* input 1 : bill + input 2 : people*/
.div_bill{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.div_bill input, .div_people input{
    background-position: 1rem;
    background-repeat: no-repeat;
}

.div_bill input:focus, .div_people input:focus{
    outline: 2px solid var(--strong-cyan);
}

.div_bill input{
    background-image: url("../img/icon-dollar.svg");
}

.div_people input{
    background-image: url("../img/icon-person.svg");
    margin-top: 1rem;
}

.div_people div, .div_bill div{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.message_correct{
    visibility: hidden;
    color: #e17457;
    font-size: 1.2rem;
}

/* division boutons : tip */
.btn_tip{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 1rem;
    margin : 1rem 0;
    position: relative; 
}

.btn_tip div{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    margin-top: -0.5rem;

    grid-column: 3;
    grid-row: 3;
}

.radio_tip{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	cursor: pointer;
    border: none;

    margin: 0;
    width: 100%;
    height: 100%;
	border-radius: 5px;
    padding: 1rem;
	background-color: var(--very-dark-cyan);
	color: var(--white);
	font-size: 1.8rem;
    text-align: center;
}

.radio_tip:checked, .radio_tip:focus{
	background-color:var(--light-cyan) ;
    color:var(--very-dark-cyan) ;	
}

.radio_tip:before{
	content: attr(label);
}

.radio_tip:hover{
    background-color: var(--strong-cyan);
    color:var(--very-dark-cyan) ;
}

.input_custom{
    padding: 0.6rem 1rem;
    text-align: center;
}

.input_custom::placeholder{
    text-align: center;
}

.input_custom:focus{
    outline: 2px solid var(--strong-cyan);
}


/* PARTIE DROITE DU MAIN */
.contenu_droite{
    width: 50%;
    background-color: var(--very-dark-cyan);
    border-radius: 15px;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

/* partie 1 : resultat */
.ensemble_resultats{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.div_resultat div{
    display: flex;
    flex-direction: column;
}

.para_blanc{
    color: var(--white);
}

.prix_resultats{
    color: var(--strong-cyan);
    font-size: 3.8rem;
}

/* partie 2 : bouton reset */
.div_reset{
    display: flex;
}

.btn_reset{
    background-color: #0D686D;
    color: #00474B;
    
    width: 90%;
    margin: auto;
    border: none;
    border-radius: 5px;
    text-align: center;

    font-weight: 600;
    padding: 0.5rem;
    cursor: not-allowed;
}

.couleur_reset{
    background-color: var(--strong-cyan);
    color: var(--very-dark-cyan);
    cursor: pointer;
}

.couleur_reset:hover{
    background-color: var(--light-cyan);
}

.couleur_reset:focus, .couleur_reset:active{
    background-color: var(--light-cyan);
    outline: 2px solid var(--strong-cyan);
}

/* MEDIAS QUERIES */
@media only screen and (max-width: 800px) {
    .contenu_main,.contenu_gauche, .contenu_droite{
        width: 100%;
    }
    .article{
        display: flex;
        flex-direction: column;
        border-radius: 25px 25px 0 0;
    }
    .div_resultat{
        margin-bottom:2rem;
    }    
    .ensemble_resultats{
        gap: 1rem;
    }
    .btn_tip{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .btn_tip div{
        grid-column: 2;
        grid-row: 4;
    }
}

