@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Fahkwang:wght@400;500;700&display=swap');


* {
    box-sizing: border-box;
    /* border: solid 1px red; */
}
body {
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 3rem;
    margin-top: 3rem;
    font-family: 'Chakra Petch', 'Fahkwang', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    /* background-image: linear-gradient(to top, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%); */
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;

}

/* left */
#left {
    background-color: rgb(65,59,145);
    color: white;
    border-style: solid;
    border-color: darkblue;
    /* border: 20px; */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 10px 5px 5px rgb(0 0 255 / 20%);
}
#calculator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#pplBox, #taxBox {
    display: flex;
    align-content: center;
    gap: .5rem;
    justify-content: space-between;
}
#dollar{
    color: white;
}
#tipBox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    margin-top: -1rem;
}
h1 {
    margin-top: 0;
    font-size: 2rem;
}
input[type="range"] {
    -webkit-appearance: none;
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    border-radius: 10px;
    width: 120px;
    height: 1.1vh;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: chocolate;
    border-radius:50%;
}
input[type="radio"] {
    display: none;
}
label[for=t5],label[for=t15],label[for=t25],label[for=t10],label[for=t20],label[for=t30] {
    background-color: antiquewhite;
    border-radius: 7px;
    color: black;
}
label[for=t15] {
    background-color: rgb(241, 180, 99);
    border-radius: 7px;
    color: black;
}
label[for=t5]:hover,label[for=t15]:hover,label[for=t25]:hover,label[for=t10]:hover,label[for=t20]:hover,label[for=t30]:hover{
    background-color: rgb(241, 180, 99);
    border-radius: 7px;
    color: black;
}

/* right */
#right {
    background-color: rgb(241, 228, 176);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 10px 5px 5px rgba(0, 0, 255, .2);
    height: 100%;
    border-style: solid;
    border-color: burlywood;
}
h2 {
    margin-top: 0;
    font-size: 1.8rem;
}
#totalBox {
    font-weight: 500;
    font-size: 1.1rem;
}
span {
    color:rgb(65,59,145);
}
hr {
    border: 1px solid black;
}
#tpd, #tp {
    font-size: 1.8rem;
    font-weight: 600;
}

@media all and (max-width: 750px){
    body {
        margin-left: 4rem;
        margin-right: 4rem;
        gap: 1rem;
        flex-direction: column;
    }
    #pplBox, #taxBox {
        justify-content: unset;
    }
    #pv {
        width: max-content;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        text-align:center;
    }
    
}

@media all and (max-width: 450px){
    body {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    #dinersOutput {
        font-size: .8rem;
    }
    #tpd, #tp {
        font-size: 1.3rem;
    }
}