*{
    margin: 0;
    padding: 0;
}

body{
    background-color: hsl(222, 26%, 31%);
    font-family:"League Spartan", sans-serif;;
}

h2{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
    margin-right: 1px;
    letter-spacing: 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

header{
    width: 75%;
}

main{
   
    display: flex;
    justify-content: center;
    margin-top: 75px; 
}

#titleCalc{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

#themeCheckbox{
    display: flex;
}

.pTheme{
    font-size: 10px;
    font-weight: bold;
    color: white;
    align-self: center;
    margin-right: 15px;
}

.pCalc{
    color: white;
    font-weight: bold;
    font-size: 22px;
}

#calcBox{
    display: flex;
    justify-content: flex-end;
    background-color: hsl(224, 36%, 15%);
    margin-bottom: 15px;
    border-radius: 5px;
    height: 35px;
    padding: 15px;
}

#calcBox p{
    align-self: center;
    font-size: 32px;
    color: white;
}

#pad{
    background-color: hsl(223, 31%, 20%);
    border-radius: 5px;
    padding: 5px;
}

#mainPad{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

#bottomPad{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

button{
    width: 75%;
    height: 40px;
    margin: 8px;
    border-radius: 5px;
    border-style: none;
    background-color: hsl(30, 25%, 89%);
    color: hsl(221, 14%, 31%);
    box-shadow: 0px 3px hsl(28, 16%, 65%);
    font-weight: bold;
    font-size: 24px;
    letter-spacing: -1px;
    cursor: pointer;
}

.keyDel{
    color: white;
    background-color:hsl(225, 21%, 49%);
    box-shadow: 0px 3px hsl(224, 28%, 35%);
}

.keyReset{
    color: white;
    background-color:hsl(225, 21%, 49%);
    box-shadow: 0px 3px hsl(224, 28%, 35%);
}

.KeyEqual{
    color: white;
    background-color: hsl(6, 63%, 50%);
    box-shadow: 0px 3px hsl(6, 70%, 34%);
}

button:active{
    background-color: white;
}

.keyDel:active{
    background-color:hsl(225, 21%, 60%);
}

.keyReset:active{
    background-color:hsl(225, 21%, 60%);
}

.KeyEqual:active{
    background-color:hsl(6, 60%, 58%);
}

#bottomPad button{
    width: 90%;
    margin: 8px;
}

#mainPad p{
    text-align: center;
}

#bottomPad p{
    text-align: center;
}

.container{
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 22px;
}

.container input{
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
  
.checkmark{
    position: absolute;
    top: 5.5px;
    left: 5px;
    height: 15px;
    width: 15px;
    border-radius: 100%;
}
  
.container:hover input ~ .checkmark{
    background-color: #ccc;
}
  
.container input:checked ~ .checkmark{
    background-color: hsl(6, 63%, 50%);
}
    
.checkBox{
    background-color: hsl(223, 31%, 20%);
    border-radius: 15px;
    height: 26px;
}

.attribution { 
    font-size: 11px; text-align: center;
    margin-top: 100px;
}

.attribution a {
     color: hsl(228, 45%, 44%); 
    }

@media (min-width: 768px) {
    header {
        width: 30%;
    }

    #titleCalc {
        margin-bottom: 25px;
    }

    .pTheme {
        font-size: 14px;
        margin-right: 20px;
    }

    .pCalc {
        font-size: 28px;
    }

    #calcBox {
        height: 50px;
        padding: 20px;
    }

    #calcBox p {
        font-size: 36px;
    }

    #pad {
        padding: 10px;
    }

    button {
        width: 80%;
        height: 50px;
        margin: 10px;
    }

    #bottomPad button {
        width: 95%;
        margin: 10px;
    }
}