/* Estilo base para todos los selectores */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: 0;
    transition: all 0.5s ease;
}

body {
    font-family: sans-serif;
}

a {
    text-decoration: none;
    color: #fff;
}

body {
    background: #303030;
}

/* Capa base */
.container {
    height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
}

/* Capa principal */
.calculator {
    position: relative;
    height: auto;
    width: auto;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 0 30px #000;
}

/* Estilo del tema */
.theme-toggler {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.theme-toggler .active {
    color: #000;
}

.theme-toggler.active::before {
    background-color: #fff;
}

/* Boton de cambio de tema */
.theme-toggler::before {
    content: '';
    height: 30px;
    width: 30px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #333;
    z-index: -1;
}

/* Posicionamiento del boton */
#display {
    margin: 0 10px;
    height: 150px;
    width: auto;
    max-width: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 30px;
    margin-bottom: 20px;
    overflow-x: scroll;
}

#display::-webkit-scrollbar {
    display: block;
    height: 3px;
}

/* Estilo de botones (aumento de tamaño de botones) */
button {
    height: 75px;
    width: 75px;
    border: 0;
    border-radius: 30px;
    margin: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: all 200ms ease;
}

/* Animacion de botone (estiramiento) */
button:hover {
    transform: scale(1.1);
}

button#equal {
    height: 165px;
}
/* Estilo de dia-light */

.calculator {
    background-color: #fff;
}

.calculator#display {
    color: #0a1e23;
}

.calculator button#clear {
    background-color: #77dd77;
    color: #f8fafd;
}

.calculator button.btn-number {
    background-color: whitesmoke;
    color: #000;
}

.calculator button.btn-operator {
    background-color: #77dd77;
    color: #f8fafd;
}

.calculator button.btn-equal {
    background-color: #77dd77;
    color: #f8fafd;
}

/* Estilo de noche-black */

.calculator.dark {
    background-color: #000;
}

.calculator.dark #display {
    color: #f8fafd;
}

.calculator.dark button#clear {
    background-color: #a6a6a6;
    color: #000;
}

.calculator.dark button.btn-number {
    background-color: #333333;
    color: #f8fafb;
}

.calculator.dark button.btn-operator {
    background-color: #ff9501;
    color: #f8fafd;
}

.calculator.dark button.btn-equal {
    background-color: #ff9501;
    color: #ffffff;
}

