* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

body,
html {
    height: 100%;
    width: 100%;
    background-color: #FEFAE0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.calculator_body {
    background-color: #0A400C;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.display {
    height: 80px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;
    font-size: 2rem;
    text-align: right;
    color: white;
    outline: none;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

input[type="button"] {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.05),
        4px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease-in-out;
}

input[type="button"]:hover {
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transform: scale(1.05);
}

.equals {
    grid-column: span 2;
    background-color: #4CAF50;
    color: white;
}

@media (max-width: 500px) {
    .display {
        font-size: 1.5rem;
        height: 60px;
    }

    input[type="button"] {
        height: 50px;
        font-size: 1.2rem;
    }

    .equals {
        font-size: 1.2rem;
    }
}

footer {
  color: #000000;
  font-family: sans-serif;
}