body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(23, 149, 203);
}

/* My calculator */
.calculator {
    background-color: rgb(97, 60, 218);
    padding: 20px;
    border-radius: 10px;
}

/* Display */
.screen {
    width: 224px;
    background-color: rgb(172, 197, 208);
    font-size: 40px;
    text-align: end;
    padding: 4px;
    margin-bottom: 10px;
    overflow: auto;
}

.buttons {
    width: 232px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    background-color: rgb(39, 111, 200);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin: 5px;
    flex: 1 1 50px;
}

/* Hover actions */
.buttons button:hover{
    background-color: rgb(39, 140, 250);
}
.buttons button:active{
    background-color: rgb(45, 180, 250);
}

#equals {
    background-color: rgb(255, 81, 0);
}

#equals:hover {
    background-color: rgb(255, 100, 0);
}

#equals:active {
    background-color: rgb(255, 120, 0);
}

#clear {
    background-color: rgb(255, 0, 0);
    width: 100%;
    font-size: 30px;
}

#clear:hover {
    background-color: rgb(255, 100, 0);
}

#clear:active {
    background-color: rgb(255, 160, 0);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: cadetblue;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    z-index: 1000; /* Make sure the button is on top of everything */
}

.back-button:hover {
    background-color: #0056b3;
}

.back-button:active {
    transform: scale(0.95); /* Slightly shrink the button on click */
}

body a {
    font-family: "Akaya Kanadaka", system-ui;
    font-weight: 400;
    font-style: normal;
    color: rgb(20, 107, 144);
}
