@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');
: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%);
    --White: hsl(0, 0%, 100%);
}
body{
    font-family:'Space Mono',sans-serif;
    background-color: var(--Light-grayish-cyan);
    overflow-x: hidden;
    height: 100vh;
}
html{
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}  
body, h1, h2,p{
     margin: 0;
     padding: 0;
}
img {
    max-width: 100%;
    height: auto;
}
::placeholder{
    color: var(--Dark-grayish-cyan);
}
#bill,#custom1,#Custom,#people{
    outline: none;
}
input{
    color: var(--Very-dark-cyan);
    font-family:'Space Mono',sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0px;
    text-align: right;  
}
.background-container{
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}
.spli-tter{
    text-align: center;
    color: var(--Very-dark-cyan);
    letter-spacing: 10px;
    margin: 3.125rem 0  2.554rem 0;
}
.white-container{
    margin: auto;
    padding: 0 1.5rem 0 1.5rem;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    background-color: var(--White);
    box-shadow: 0px 32px 43px 0px #4FA6AF33;
    border-radius: 25px 25px 0px 0px;
}
.bill-input-section,.people-section{
   margin-top: 2rem;
}
.side-of-values{
    margin-left: 2rem;
}
.green-container{
    width: 20.438rem;
    padding: 2.313rem 1.375rem 1.5rem 1.5rem;
    background-color: var(--Very-dark-cyan);
    margin: 2rem auto 2rem auto;
    border-radius: 15px;
}
.bill-input img,
.people-input img{
    margin: 0rem 0rem 0rem -19rem;
}
label,.bill-h2,.select-tip,#tip-amount,#total-p{
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left; 
}
label,.bill-h2,.select-tip{
    padding-left: 0.5rem;
    margin-top: 0.5rem;
}
label,.bill-h2,.select-tip,span{
    color: var(--Grayish-cyan);
}
button,#tip-amount,#total-p{
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    color: var(--White);
}
#bill,#people{
    padding-right:0.3rem;
    margin-top: 6px;
    background-color: var(--Very-light-grayish-cyan);
    border-radius: 5px;
    border: none;
    min-width: 19.438rem;
    text-align: right;
}
.tip_button{
    color: var(--White);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0px;
    text-align: center;
}
button,#Custom,#custom1{
    padding: 0.375rem 1rem 0.375rem 1rem;
    min-width: 9.188rem;
    margin: 1rem 1rem 0 0;
    width: 9.188rem;
    height: 3rem; 
    border-radius: 5px; 
    border: none;
    background-color: var(--Very-dark-cyan);
    font-family: 'Space Mono',sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0px;
    text-align: center;
}
button:hover, #reset:hover{
    cursor: pointer;
    background: hsla(172, 61%, 77%, 1);
    color: hsla(183, 100%, 15%, 1);
}
.tip_button_active {
    background-color: #26C2AE;
}
#bill:hover,#people:hover,input:hover,#Custom:hover,#custom1:hover{
    cursor: pointer;
    border: 2px solid #26c2ae;
    background-color:hsla(185, 38%, 97%, 1)
}
#Custom,#custom1{
    background-color: var(--Very-light-grayish-cyan);
    padding: 0.375rem 1rem 0.375rem 1.188rem;
    text-align: right;
}
.tip-Button{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.amount,.total{
    display: flex;
    justify-content: space-between;
}
#reset{
    width: 17.563rem;
    padding:0.563rem  2.063rem 0.563rem 2.063rem;
    color:hsla(183, 100%, 15%, 1);
    background-color: hsla(172, 67%, 46%, 1);
}
#amount,#total{
    color: hsla(172, 67%, 46%, 1);
    font-size: 32px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.6666666865348816px;
    text-align: right;  
}
span{
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left; 
}
#tip-amount{
    margin-bottom:1.563rem ;
}
.total{
    margin-bottom: 2.188rem;
}
.error {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    color: #E17457;
    display: none;

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

}
@media screen and (min-width:50px) {
    .spli-tter{
        padding: 0 10rem 0 10rem;
    }
}
@media screen and (min-width:508px) {
    .white-container{
        border-radius: 25px;
        padding: 0;
        min-width: 30rem;
    }  
}
@media  screen and (min-width:1200px) {
    .background-container{
        align-items: center;
        justify-content: center;
        align-content: center;
    }
    .white-container{
        flex-direction: row;
        min-width: 57.5rem;
        padding: 0;
     /*   margin-bottom: 10rem;*/
        align-items: center;
        padding: 2rem 2rem 0 0rem;
        justify-content: flex-start;
    }
    .bill-input-section{
        margin: 0;
    }
    .spli-tter{
      /*   margin: 10.188rem 0 5.5rem 0;*/
    }
    .tip-Button{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
    .side-of-values{
         display: flex;
         flex-direction: column;
         margin: 0rem 3rem 3rem 3rem;
    }
    input{
        width:25rem ;
        height: 3rem;
    }
    label,.select-tip{
        margin: 2.5rem 0 0 0;
    }
    button, #Custom,#custom1{
        color: var(--Dark-grayish-cyan);
        margin: 1rem 0rem 0 0;
        width: 8rem;
        min-width: 8rem;
        padding: 0.375rem 0.875rem 0.375rem 0.875rem;
        font-size: 22px;
    }
    .bill-input img, .people-input img {
        position: absolute;
        margin: 1.3rem 0rem 0rem -24rem;
    }
    .green-container{
        margin: 0rem 0 2rem 0;
        height: 26rem;
        width: 25rem;
        padding: 2.5rem;
    }
    #reset{
        margin-top: 7rem ;
        width: 20.813rem;
    }
    #amount, #total, #tip-amount{
        margin-top: 1rem;
    }
}
