* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', Arial, sans-serif;
}

body {
    transition: all ease-out 500ms;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(222, 26%, 31%);
}

main {
    max-width: 500px;
    min-width: 300px;
    min-height: 600px;
    background: transparent;
}

.nameAndThemeArea {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.appName {
    margin-top: 20px;
    font-weight: 800;
    font-size: 24px;
    color: hsl(0, 0%, 100%);
}

.themeItemsWraper {
    display: flex;
}

.themeNumbers {
    width: 70px;
    display: flex;
    padding-left: 8px;
    padding-right: 8px;
    justify-content: space-between;
    color: hsl(0, 0%, 100%);
}

.themeSwitch {
    width: 70px;
    display: flex;
    justify-content: space-between;
    /* to be controlled by selected theme */
    background: hsl(223, 31%, 20%);
    border-radius: 12px;
    padding: 2px;
    cursor: pointer;
}

.themeSwitchAndLabel {
    width: 100%;
    position: relative;
}

label[for="themeSwitch"] {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    right: 90px;
    top: 25px;
    color: hsl(0, 0%, 100%);
}

/* hide the default btn */
.radioBtn {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.customRadio {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: hsl(223, 31%, 20%);
    /* switch background */
    border-radius: 50%;
}

.radioBtn:checked+.checkmark {
    background: hsl(6, 63%, 50%);
    transition: all ease-out 500ms;
}

/************************* OUTPUT AREA **************************/
.outputArea {
    display: flex;
    width: 100%;
    height: 120px;
    align-items: center;
    justify-content: flex-end;
    padding: 5px;
    margin-top: 20px;
    border-radius: 5px;
    background-color: hsl(224, 36%, 15%);
}

#output {
    resize: none;
    background-color: transparent;
    text-align: right;
    line-height: 120px;
    border: none;
    outline: none;
    font-size: 48px;
    font-weight: 700;
    color: white;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-right: 18px;
}

/* blinking cursor */
.outputWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.blinking-cursor {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: white;
    animation: blink 1s steps(1) infinite;
    pointer-events: none;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/*********************************** INPUT AREA ***********************************/
.inputArea {
    position: relative;
    width: 100%;
    margin-top: 30px;
    background: hsl(223, 31%, 20%);
    border-radius: 5px;
    padding: 30px;
}

.smallButtons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.bigButtons {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

button {
    border-radius: 8px;
    border: none;
    font-size: 32px;
    height: 55px;
    font-weight: 800;
    padding-top: 10px;
    padding-bottom: 10px;
}

.normalBtn {
    color: hsl(221, 14%, 31%);
    background: hsl(30, 25%, 89%);
    box-shadow: 0px 4px 0px 0px hsl(28, 16%, 65%);
}

.normalBtn:hover {
    background: hsl(0, 0%, 100%);
}

.specialBtn {
    background: hsl(225, 21%, 49%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 4px 0px 0px hsl(224, 28%, 35%);
    font-size: 24px;
}

.specialBtn:hover {
    background: hsl(225, 48%, 65%);
}

.equalsBtn {
    background: hsl(6, 63%, 50%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 4px 0px 0px hsl(6, 70%, 34%);
    font-size: 24px;
}

.equalsBtn:hover {
    background: hsl(6, 100%, 60%);
}

/* THEME 2 */
body.theme2{
    background: hsl(0, 0%, 90%);
    transition: all ease-out 500ms;
}
body.theme2 .appName{
    color: hsl(60, 10%, 19%);
}
body.theme2 .themeNumbers{
    color: hsl(60, 10%, 19%);
}
body.theme2 .themeSwitch{
    background: hsl(0, 5%, 81%);
}
body.theme2 label[for="themeSwitch"] {
    color: hsl(60, 10%, 19%);
}
body.theme2 .checkmark {
    background: hsl(0, 5%, 81%);
}

body.theme2 .radioBtn:checked+.checkmark {
    background: hsl(25, 98%, 40%);
}

body.theme2 .outputArea{
    background: hsl(0, 0%, 93%);
}
body.theme2 #output{
    color: hsl(60, 10%, 19%);
}
body.theme2 .blinking-cursor{
    background: hsl(60, 10%, 19%);
}
body.theme2 .inputArea{
    background: hsl(0, 5%, 81%);
}

body.theme2 .normalBtn{
    color: hsl(60, 10%, 19%);
    background: hsl(45, 7%, 89%);
    box-shadow:  0px 4px 0px 0px hsl(35, 11%, 61%);
}

body.theme2 .normalBtn:hover {
    background: hsl(0, 0%, 100%);
}

body.theme2 .specialBtn {
    background: hsl(185, 42%, 37%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 4px 0px 0px hsl(185, 58%, 25%);
    font-size: 24px;
}

body.theme2 .specialBtn:hover {
    background: hsl(185, 34%, 53%);
}

body.theme2 .equalsBtn {
    background:hsl(25, 98%, 40%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 4px 0px 0px hsl(25, 99%, 27%);
    font-size: 24px;
}

body.theme2 .equalsBtn:hover {
    background: hsl(6, 100%, 60%);
}

/* THEME 3 */
body.theme3{
    background: hsl(268, 75%, 9%);
    transition: all ease-out 500ms;
}
body.theme3 .appName{
    color: hsl(52, 100%, 62%);
}
body.theme3 .themeNumbers{
    color: hsl(52, 100%, 62%);
}
body.theme3 .themeSwitch{
    background: hsl(268, 71%, 12%);
}
body.theme3 label[for="themeSwitch"] {
    color: hsl(52, 100%, 62%);
}
body.theme3 .checkmark {
    background: hsl(268, 71%, 12%);
}

body.theme3 .radioBtn:checked+.checkmark {
    background: hsl(176, 100%, 44%);
}

body.theme3 .outputArea{
    background: hsl(268, 71%, 12%);
}
body.theme3 #output{
    color: hsl(52, 100%, 62%);
}
body.theme3 .blinking-cursor{
    background: hsl(52, 100%, 62%);
}
body.theme3 .inputArea{
    background: hsl(268, 71%, 12%);
}

body.theme3 .normalBtn{
    color: hsl(52, 100%, 62%);
    background: hsl(268, 47%, 21%);
    box-shadow:  0px 4px 0px 0px hsl(281, 89%, 26%);
}

body.theme3 .normalBtn:hover {
    background: hwb(276 2% 29%);
}

body.theme3 .specialBtn {
    background: hsl(281, 89%, 26%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 4px 0px 0px hsl(285, 91%, 52%);
    font-size: 24px;
}

body.theme3 .specialBtn:hover {
    background: hsl(285, 91%, 52%);
}

body.theme3 .equalsBtn {
    background:hsl(176, 100%, 44%);
    color: hsl(198, 20%, 13%);
    box-shadow: 0px 4px 0px 0px hsl(177, 92%, 70%);
    font-size: 24px;
}

body.theme3 .equalsBtn:hover {
    background: hwb(176 33% 0%);
}


@media (max-width: 800px) {
    .inputArea {
        padding: 15px;
    }

    .smallButtons {
        gap: 15px;
    }

    .bigButtons {
        gap: 15px;
        margin-top: 15px;
    }
}