body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    background-color: hsl(222, 26%, 31%);
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
}

body.light {
    background-color: hsl(0, 0%, 90%);
}

body.dark {
    background-color: hsl(268, 75%, 9%);
}

.calculator {
    width: 400px;
    height: 470px;
}


.regulator {
    display: flex;
    justify-content: end;
}

.numbers {
    display: flex;
    justify-content: space-between;
    width: 77px;
    margin: 0;
    line-height: 0%;
    color: hsl(0, 0%, 100%);
    font-size: 0.8rem;
}

.light .numbers,
.light .heading,
.light .switch-container p,
.light .screen,
.light button,
.dark .red-button {
    color: hsl(60, 10%, 19%);
}

.dark .numbers,
.dark .heading,
.dark .switch-container p,
.dark .screen,
.dark button {
    color: hsl(52, 100%, 62%);
}

.heading {
    margin: -5px 0;
    color: hsl(0, 0%, 100%);
    font-size: 1.7rem;
}

.switch {
    width: 80px;
    height: 30px;
    border-radius: 20px;
    background-color: hsl(223, 31%, 20%);
}

.light .switch {
    background-color: hsl(0, 5%, 81%);
}

.dark .switch {
    background-color: hsl(268, 71%, 12%);
}

.flicker {
    width: 20px;
    height: 20px;
    top: 5px;
    left: 5px;
    border-radius: 50%;
    background-color: hsl(6, 63%, 50%);
    position: relative;
    box-shadow: inset 6px 0 8px hsl(6, 70%, 34%);
    transition: 0.3s;
    cursor: pointer;
}

.light .flicker {
    transform: translateX(27px);
    background-color: hsl(25, 98%, 40%);
    box-shadow: inset 6px 0 8px hsl(25, 99%, 27%);
  }

.dark .flicker {
    transform: translateX(54px);
    background-color: hsl(176, 100%, 44%);
    box-shadow: inset 4px 3px 8px  hsl(177, 92%, 70%);
}

.calc-heading {
    display: flex;
    justify-content: space-between;
}

.switch-container {
    display: flex;
    width: 150px;
    justify-content: space-between;
}

.switch-container p{
    font-size: 0.8rem;
    color: hsl(0, 0%, 100%);
    margin: 6px 0;
}

.screen {
    margin-top: 20px;
    width: 380px;
    border-radius: 10px;
    background-color: hsl(224, 36%, 15%);
    color: hsl(0, 0%, 100%);
    text-align: end;
    font-size: 50px;
    padding: 10px;
}

.light .screen {
    background-color: hsl(0, 0%, 93%);
}

.dark .screen {
    background-color: hsl(268, 71%, 12%);
}

.buttons {
    margin: 18px 0;
    width: 345px;
    display: flex;
    flex-wrap: wrap;
}

.operations {
    margin: 16px 0;
    background-color: hsl(223, 31%, 20%);
    width: 400px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.light .operations {
    background-color: hsl(0, 5%, 81%);
}

.dark .operations {
    background-color: hsl(268, 71%, 12%);
}

button {
    background-color: hsl(30, 25%, 89%);
    border: none;
    color: hsl(221, 14%, 31%);
    font-size: 22px;
    width: 65px;
    height: 30px;
    border-radius: 5px;
    margin: 10px;
    font-weight: bold;
    box-shadow: 0 2px 0 hsl(28, 16%, 65%);
    cursor: pointer;
}

button:hover {
    background-color: hsl(0, 0%, 100%);
}

.light button {
    background-color: hsl(45, 7%, 89%);
    box-shadow: 0 2px 0 hsl(35, 11%, 61%);
}

.light button:hover {
    background-color: hsl(0, 0%, 100%);
}


.dark button {
    background-color: hsl(268, 47%, 21%);
    box-shadow: 0 2px 0 hsl(290, 70%, 36%);
}

.dark button:hover {
    background-color: hsl(268, 41%, 42%);
}

.blue-button {
    background-color: hsl(225, 21%, 49%);
    box-shadow: 0 2px 0 hsl(224, 28%, 35%);
    color: hsl(0, 0%, 100%);
}

.blue-button:hover {
    background-color: hsl(223, 41%, 64%);
}

.light .blue-button {
    background-color: hsl(185, 42%, 37%);
    box-shadow: 0 2px 0 hsl(185, 58%, 25%);
}

.light .blue-button:hover {
    background-color: hsl(185, 35%, 55%);
}

.light .blue-button,
.dark .blue-button,
.light .red-button {
    color: hsl(0, 0%, 100%);
}

.dark .blue-button {
    background-color: hsl(281, 89%, 26%);
    box-shadow: 0 2px 0 hsl(285, 91%, 52%);
}

.dark .blue-button:hover {
    background-color: hsl(281, 83%, 45%);;
}

.big-buttons button {
    width: 150px;
}

.red-button {
    background-color: hsl(6, 63%, 50%);
    box-shadow: 0 2px 0 hsl(6, 70%, 34%);
    color: hsl(0, 0%, 100%);
}

.red-button:hover {
    background-color: hsl(6, 57%, 60%);
}

.light .red-button {
    background-color: hsl(25, 98%, 40%);
    box-shadow: 0 2px 0 hsl(25, 99%, 27%);
}

.light .red-button:hover {
    background-color: hsl(25, 57%, 58%);
}

.dark .red-button {
    background-color: hsl(176, 100%, 44%);
    box-shadow: 0 2px 0 hsl(177, 92%, 70%);
}

.dark .red-button:hover {
    background-color: hsl(176, 100%, 50%);
}

@media (max-width: 400px) {
    .numbers {
        width: 48px;
        font-size: 0.6rem;
    }

    .flicker {
        width: 15px;
        height: 15px;
        left: 2px;
        top: 2px;
    }

    .regulator {
        display: flex;
        justify-content: end;
    }

    .calculator {
        width: 300px;
        height: 450px;
    }

    .light .flicker {
        transform: translateX(15px);
    }

    .dark .flicker {
        transform: translateX(30px);
    }

    .switch {
        width: 50px;
        height: 20px;
    }

    .switch-container {
        width: 100px;
    }

    .switch-container p {
        margin: 3px 0;
        font-size: 0.7rem;
    }

    .heading {
        margin: -13px 2px;
        font-size: 2rem;
    }

    .screen {
        width: 280px;
        font-size: 40px;
    }

    .buttons {
        width: 250px;
    }

    button {
        width: 48.2px;
        height: 50px;
        font-size: 19px;
        margin: 7px;
        
    }

    .operations {
        width: 300px;
    }

    .big-buttons button {
        width: 106px;
    }
}