@font-face {
    font-family: Spartan;
    src: url(https://fonts.google.com/specimen/Spartan);
}

:root{
    --mian-backround-color: hsl(222, 26%, 31%);
    --keypad-backround-color: hsl(223, 31%, 20%);
    --heighlight-bright: hsl(6, 63%, 50%);

}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: Spartan;
    font-weight: 700;
}

.container-body{
    background-color: var(--mian-backround-color);
    width: 100vw;
    height: 100vh;
    
}

.container{
    max-width: 30em;
    min-height: 75vh;
    margin: auto;
    margin-top: .5em;
}

.header{
    font-size: 2em;
    display: flex;
    padding: .5em 0em;
    width: calc(100% - 1em);
    margin: auto;
}

.toggel{
    padding-left: 1em;
    display: flex;
    height: 100%;
}

.toggelBox{
    display: relative; 
    height: 100%;
}

.label {
    position: absolute;
    font-size: 2em;
    line-height: .5em;
    padding: .2em .25em;
    margin-bottom: .25em;
}

.toggel{
    position: relative;
    margin-left: 1em;
    /* z-index: 1; */
}

.toggel::before, .toggel::after{
    content: '';
    position: absolute;
    pointer-events: none;
}

.toggel::before{
    background-color: var(--keypad-backround-color);
    height: 2em;
    top: 35%;
    left: 1em;   
    border-radius: 30px;
    right: 0;
}

.toggel::after{
    width: 1.5em;
    height: 1.5em;
    top: 38%;
    left: 1.25em;   
    border-radius: 100%;
    background-color: var(--heighlight-bright);
    
}

input{
    visibility: hidden;
    margin-top: 1.5em;
}

.theme{
    font-size: .25em;
    margin-left: auto;
    display: flex;
    height: 7em;
    line-height: 6em;
}

.result{
    width: calc(100% - 2em);
    height: 6em;
    background-color: var(--keypad-backround-color);
    margin: 0 1em 1.5em;
    border-radius: 10px;
    line-height: 6em;
}

.result p {
    font-size: 3em;
    text-align: end;
    padding: 0 1rem;
}

.keypad {
    width: calc(100% - 2em);
    padding: 1em 2em;
    margin: auto;
    background-color: var(--keypad-backround-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;

}
 
.row{
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.key{
    flex-grow: 1;
    text-align: center;
    background-color: hsl(30, 25%, 89%);
    color: hsl(198, 20%, 13%);
    font-size: 2em;
    padding: .25em .5em;
    margin: .35em;
    border-radius: 10px;
    box-shadow: 0px 4px hsl(28, 16%, 65%);
}

.specail{
    font-size: 1.75em;
    background-color: hsl(225, 21%, 49%);
    color: white;
    box-shadow: 0px 4px hsl(224, 28%, 35%);

}

.large {
    padding: .5em;
}

.specail.equals {
    background-color: var(--heighlight-bright);
    box-shadow: 0px 4px hsl(6, 70%, 34%);

}

.small{
    width: 3em;
    font-size: 1em;
    padding-top: 1.5em;
    line-height: 1em;
    display: inline;
}