/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    overflow: hidden;
    width: 100vw;
}


.calculator {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(113, 113, 113, 0.1);

    display: grid;
    padding: 30px 20px;
    border-radius: 16px;
    border: 2px solid #494949;
    width: 280px;
    height: 500px;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: inset 0 0 40px rgb(255, 255, 255, 0.2);
    align-content: space-between;
    animation: fadeIn 1s;
}


#result {
    grid-column: span 4;
    height: 60px;
    line-height: 60px;
    color: white;
    padding: 0 15px;
    font-size: 35px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 5px;
    animation: fade 3s;
    user-select: text !important;
    -webkit-user-select: text !important;

    /* SCROLL */
    display: block;
    text-align: right;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

#result::-webkit-scrollbar {
    height: 4px;
}

#result::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}


button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(85, 85, 85, 0.4);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    animation: fade 3s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 -10px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: rgba(85, 85, 85, 0.6);
}

#plus,
#minus,
#equal,
#multiply,
#divide,
#clear,
#delete,
#percentage {
    background: rgba(236, 236, 236, 0.3);
}


#plus:hover,
#minus:hover,
#equal:hover,
#multiply:hover,
#divide:hover,
#clear:hover,
#delete:hover,
#percentage:hover {
    background: rgb(236, 236, 236, 0.6);
}

#equal {
    font-weight: 600;
    grid-column: span 2;
    width: 100%;
    border-radius: 30px;
}


#result {
    overflow-x: auto;
    white-space: nowrap;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* MOBILE STYLES */

@media (max-width: 768px) {

    body {
        min-height: 500px;
    }
}

