/* <style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style> */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');

/* font-family: 'Space Mono', monospace; */

:root{
    --main-bg-color: hsl(185, 41%, 84%);
    --hover--and--btn-color:hsl(172, 67%, 45%);
    --primary--color:hsl(183, 100%, 15%);
    --subTitle--color:hsl(186, 14%, 43%);
    --inputs--bg-color:hsl(189, 41%, 97%);
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    
}

body{
    background-color: var(--main-bg-color);
}

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

h1{
    color: hsl(184, 14%, 56%);
    margin: 20px 0;
}

.contenedorCalculadora{
    border-radius: 20px;
    width: 320px;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    background-color: white;
}

.contenedorCuenta,
.contenedorPersonas{
    display: flex;
    flex-direction: column;
}

label{
    text-align: start;
    color: var(--subTitle--color);
    margin-bottom: 7px;
}

.inputs{
    border: none;
    text-align: end;
    background-color: var(--inputs--bg-color);
    height: 30px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    color: var(--primary--color);
    margin-bottom: 20px;
}

#cuenta{
    background-image: url(./images/icon-dollar.svg);
    background-repeat: no-repeat;
    background-position: 5%;
}



#comensales{
    background-image: url(./images/icon-person.svg);
    background-repeat: no-repeat;
    background-position: 5%;
}



.tituloPropina{
    text-align: start;
    color: var(--subTitle--color);
    margin-bottom: 5px;
}

.contenedorGrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding: 10px 0px;
}

.btn-Propina{
    width: 7rem;
    border: none;
    background-color: var(--primary--color);
    color: white;
    height: 2rem;
    font-size: 16px;
    border-radius: 5px;
}

.btn-Propina:hover{
    cursor: pointer;
}

.btn-Propina_select{
    background-color: hsl(172deg, 67%, 45%);
    color: hsl(183deg, 100%, 15%);
    transition: all  0.8s;
}

.btn-Personalizar{
    width: 7rem;
    border-radius: 5px;
    text-align: right;
    border: none;
    font-size: 16px;
}

.messageError{
    color: red;
    font-size: 16px;
    text-align: end;
    display: block;
}



.contenedorResultados{
    background-color: var(--primary--color);
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 16px;
    border-radius: 6px;
}


.resultados{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.resultados>div>p{
    font-size: 12px;
    color: var(--subTitle--color);
}

.pagos{
    font-size: 26px;
    color: var(--hover--and--btn-color);
}


.btn-reiniciar{
    width: 200px;
    text-align: center;
    align-self: center;
    border-radius: 6px;
    padding: 8px;
    background-color: var(--hover--and--btn-color);
    border: none;
    color: var(--primary--color);
    margin-bottom: 30px;
}


@media (min-width: 767px){

    .contenedorCalculadora{
        flex-direction: row;
        width:700px;
    }

    .contenedorCalculadora>div{
        margin: 0 0px;
        width: 50%;
    }


    .contenedorGrid{
        grid-template-columns: 1fr 1fr 1fr;
        margin-bottom: 20px;
    }



    .btn-Propina{
        width: 6rem;
    }
    
    .btn-Personalizar{
        width: 6rem;
    }

    label{
        margin-bottom: 12px;
    }
    
    .contenedorResultados{
        margin-left: 15px;
        width:100%;
        height: 300px;
        padding: 20px;
    }

    .resultados{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    
    .pagos{
        font-size: 32px;
    }
    


    .btn-reiniciar{
        width: 240px;
        text-align: center;
        align-self: center;
        margin-bottom: 0px;
        margin-top: 80px;
    }
    
}