* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}



body {
    min-height: 100vh;
    padding-top: 75px;
    background-color: #404454;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.calculator {
    width: 450px;
    padding: 5px;
    border-radius: 15px 15px 5px 5px;
    background-color: #2C3333;
    display: flex;
    flex-direction: column;



}

.displayBar {
    height: 120px;
    padding: 18px;
    border-radius: 10px 10px 10px 10px;
    margin-bottom: 10px;
    background-color: #1d2327;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.display {
    font-size: 76px;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
    align-self: flex-end;

}

.buttons {

    border-radius: 10px;
    padding: 0px;
    background-color: #2C3333;
    display: flex;
    flex-direction: column;

}

.row {
    height: 96px;
    display: flex;

}

.numButton {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    color: #57D2CB;
    margin: 1px;
    border: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: #4A5A72;
    background-color: #4A5A72;
}

.numButton:hover {

    border-style: solid;
    border-width: 1px;
    border-color: #698793
}

.numButton:active {
    background-color: #698793;

}

.keydown-active {
    background-color: #698793;
}

.numButton.number {
    color: white
}

.dot {
    font-weight: 700;
    color: white;
}

.operation,
.equal {
    color: #ED7C3F;
}

.color-change {
    background-color: #9AC1CA;
}


.InstruContainer {
    width: 450px;
    border-radius: 10px;
    background-color: rgba(44, 51, 51, 0.2);
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}

.instructionBody {
    line-height: 1.5;
}

p {
    color: white;
    font-size: 16px;
}

.title,
p {
    font-family: 'Roboto', sans-serif;
    opacity: 0.4;
}

strong {
    color: #ED7C3F
}

.footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 15px 0
}

.icon {
    position: absolute;
    bottom: 0;
    width: 24px;
    opacity: 0.8;
}

.icon:hover {
    transform: scale(1.2);
    filter: sepia(1) hue-rotate(150deg) saturate(15);
}

.footnote {
    font-size: 16px;
}



/*Responsive design portion*/
@media (min-width:375px) and (max-width:450px) {
    .container {
        transform: scale(0.8);
        margin-top:-70px;
    }
    
    body{
        padding-top:0;
        min-height: 100vh;
    }
    .footer{
        margin-top:-60px;
        margin-bottom: 100px;
    }
}

@media only screen and (max-width: 375px){
    .container {
        transform: scale(0.75);
        margin-top:-90px;
    }
    body{
        padding-top:0;
        min-height: 100vh;
    }

    .footer{
        margin-top:-90px;
    }

    .footnote{
        font-size:14px;
    }
    .icon{
        width: 20px;
    }

}