@font-face {
    font-family: "Rubik";
    src: url(./Assets/Rubik-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Rubik-Italic";
    src: url(./Assets/Rubik-Italic-VariableFont_wght.ttf);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: #494D5F;
}

p {
    margin: 0;
    padding: 0;
}

#display {
    display: flex;
    flex: 1;    
    justify-content: center;
    align-items: center;
    margin-top: -20px;
    font-family: "Rubik";
    font-size: 20px;
    font-weight: 400;
}

#displayText {
    font-family: "Rubik-Italic";
    font-size: 20px;
    font-weight: 400;
}

.display-lower p {
    font-weight: 500;    
    margin-left: 10px;
    margin-right: 10px;
    font-family: "Rubik-Italic"
}

#display,
#displayText,
.display-lower p {
    color: white;
}

.calc-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 452px;
    height: 550px;
    border: 2px solid black;
    border-radius: 20px;
}

.calc-display {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    flex-direction: column;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: black;
}


.display-alt {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.display-main {
    display: flex;
    margin-bottom: 40px;
    justify-content: center;
    border-top: 2px dotted black;
    flex: 1;
    margin: 0;
}

.display-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dotted black;
}

.calc-buttons {
    display: flex;
    flex-wrap: wrap-reverse;
    flex: 1;
    justify-content: space-between;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background-color: #8458B3;
    gap: 5px;
}

.calc-display,
.calc-buttons {
    border: 10px solid #8458B3;
}


.row {
    display: flex;
    flex: 1;
}

button {
    transition: transform 0.2s ease;
    border: none;
    background-color: #e5eaf5;
    border-radius: 30px;
    flex: 1;
    height: 60px;
    width: 100px;
    font-family: "Rubik";
    font-size: 15px;
}

button:active {
    transform: scale(1.2);
}

button:hover {
    background-color: #d0bdf4;
}

button.press {
    transform: scale(1.2);
    background-color: #d0bdf4;
}
