* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

    body {
        background-color: rgb(22, 34, 34);
    }

}

body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

h1 {
    text-align: center;
    background-color: blueviolet;
    padding: 5px;
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border-radius: 0px 0px 274px 274px;
}

.main {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.main-section {

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;

    padding-bottom: 35px;
    border-radius: 10px;

    background-color: black;
    border-radius: 10px 10px 30px 30px;
    box-shadow: 10px 10px 10px 0px #22455e;
}

.main-screen {
    display: flex;
    margin: 15px 0px 0px 20px;

    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.main-screen p {
    color: white;
    opacity: 0.5;
    padding-right: 15px;
}

.screen {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 3.5rem;
    font-weight: 900;
    background-color: #bdbdbd;
    width: 80vh;
    overflow: hidden;
    border-radius: 6px;
    padding: 10px;
    overflow: hidden;

}



.button-section {
    display: flex;
    flex-direction: column;


    width: 100%;
    height: 100%;
}

.operator-buttons {
    display: flex;
    align-items: center;
    margin: 5px 10px 0px 10px;
    height: 4rem;
    gap: 5px;
    background-color: #232432cc;
    padding: 10px 10px 10px 10px;
    border-radius: 10px 10px 0px 0px;

}

.operator-buttons .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    -webkit-tap-highlight-color: transparent;

    width: 3.5rem;
    background-color: black;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    border: 1px solid grey;
    box-shadow: 0 4px 10px rgba(52, 1, 235, 0.884),
        inset 0 4px 10px rgba(9, 239, 78, 0.5);


}

.operator-buttons .buttons:hover {
    border: 2px solid purple;
}

.number-buttons {
    display: flex;
    background-color: #232432cc;
    margin: 1px 10px 0px 10px;
    height: 100%;
    border-radius: 0px 0px 30px 30px;
    gap: 30px;
}

.number-rows {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    padding: 10px;
}

.numbuttons {
    -webkit-tap-highlight-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 4.5rem;
    background-color: black;
    border-radius: 10px;
    color: aliceblue;
    box-shadow: 0 4px 10px rgba(52, 1, 235, 0.44),
        inset 0 4px 10px rgba(9, 239, 78, 0.5);
    border: 1px solid grey;
    cursor: pointer;
}

.numbuttons:hover {
    border: 1px solid purple;
}

.right-button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    gap: 8px;
    height: 100%;
    -webkit-tap-highlight-color: transparent;

    width: 6rem;
    padding: 11px 0px 11px 0px;
}

.clear-button {
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36%;
    color: orangered;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 900;
    -webkit-tap-highlight-color: transparent;

    border-radius: 6px;
    background-color: black;
    border: 1px solid grey;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 1, 235, 0.44),
        inset 0 4px 10px rgba(9, 239, 78, 0.5);
}

.clear-button:hover {
    border: 1px solid purple;
}

.equal-button {
    width: 4rem;
    color: green;
    font-weight: 900;
    font-size: 1.5rem;
    height: 70%;
    background-color: black;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 6px;
    padding-bottom: 10px;
    border: 1px solid grey;
    cursor: pointer;
    font-weight: 900;
    -webkit-tap-highlight-color: transparent;

    box-shadow: 0 4px 10px rgba(0, 0, 225, 0.44),
        inset 0 4px 10px rgba(9, 239, 78, 0.5);

}

.equal-button:hover {
    border: 1px solid purple;
}

clicked {
    background-color: #333;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);

}

.numbuttons:active,
.buttons:active,
.equal-button:active:active,
.clear-button:active {
    background-color: #333;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);

}

.numbuttons:focus,
.buttons:focus,
.equal-button:focus,
.clear-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #51a7e8;
}

footer {
    height: 30vh;
    background-color: black;
    color: rgb(160, 163, 165);
    display: flex;
    margin-top: 85px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 426px) {
    h1 {
        font-size: 1.5rem;
    }

    body {
        background-color: rgb(224, 240, 240);
    }

    .main-section {
        box-shadow: none;
    }

    .main-screen p {
        display: none;

    }

    .main-screen {
        margin: 15px 0px 0px 0px;

    }

    .screen {

        height: 2.5rem;
        margin: 0px 10px 0px 10px;

        width: 100%;



    }

    #square {
        display: none;
    }




    .operator-buttons {

        height: 3.5rem;


    }

    .operator-buttons .buttons {

        height: 2.5rem;
        width: 2.5rem;
        font-size: 13px;



    }

    .number-buttons {

        border-radius: 0px 0px 10px 10px;
        gap: 0px;
    }



    .numbuttons {
        font-size: 15px;
        height: 4rem;
        width: 3.5rem;


    }

    .numbuttons:hover {
        border: 1px solid purple;
    }

    .right-button {


        width: 4rem;

    }




    footer {
        font-size: 10px;
    }
}