:root{
    --radius: 5rem;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: lavender;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    align-items: center;
}
.inpt, .result, .statement{
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
}
.statement{
    font-size: 2.5rem;
    margin-top: 2rem;
    height: 3.5rem;
}
.inpt{
    height: fit-content;
}
.result{
    margin-top: 1rem;
    font-size: 1.5rem;
    gap: 1rem;
}
.result input{
    border: none;
    background: transparent;
    width: 3rem;
    font-size: 2rem;
    font-family: 'Courier New', Courier, monospace;
    color: darkcyan;
    font-weight: 550;
    text-align: center;
}
button{
    margin-left: 1rem;
    margin-top: 1rem;
    height: var(--radius);
    width: var(--radius);
    font-size: calc(var(--radius) - 1.8rem);
    border-radius: 50%;
    border: 3px solid black;
    background: aqua;    
}

#initialize{
    background: #cfffee;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin-top: 1rem;
    height: 4rem;
    width: max-content;
    font-size: 3rem;
    border-radius: 1.2rem;
}

header{
    text-align: center;
    background: #cfffee;
    border: 3px solid black;
    border-width: 0 0 3px 0;
    padding-bottom: 0.7rem;
    border-radius: 0 0 1rem 1rem;
}

button:active, #initialize:active{
    background: white;
    transform: scale(1.1);
    transition-duration: 70ms;
}

#otpt{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

span{
    height: 2rem;
    margin-top: 1rem;
    font-size: 1.7rem;
    width: max-content;
    border-radius: 0.5rem;
}

#total{
    height: 2.5rem;
    font-size: 2rem;
    margin-top: 0.7rem;
    text-align: center;
}


/* Toggle settings */
#toggle{
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    width: fit-content;
    --width: 3rem;
    --height: calc(var(--width)/2);
    --brdr-radius: calc(var(--width)/4);
    display: flex;
    align-items: center;
}
#toggle input{
    display: none;
}
#tgl{
    position: relative;
    width: var(--width);
    height: var(--height);
    border-radius: var(--brdr-radius);
    background: black;
    transition-duration: 0.2s;
    cursor: pointer;
}

#toggle input:checked ~ #tgl{
    background: cyan;
}

#tgl::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: var(--height);
    width: var(--height);
    border-radius: var(--height);
    background: cyan;
    transition-duration: 0.15s;
    box-shadow: 0 0 10px cyan;
}

#toggle input:checked ~ #tgl::after{
    transform: translateX(var(--height));
    background: black;
    box-shadow: 0 0 10px black;
}

.bottom{
    width: 100%;
    position: absolute;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}