*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    font-family: Verdana, sans-serif;
    text-align: center;
    background-color: hsl(210, 29%, 22%);
}
.menu {
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 6rem;
}

.exercise-screen {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    justify-items: center;
    background-color: #34495e;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    height: 100vh;
}

.hidden {
    display: none;
}
h1 {
    font-weight: normal;
    color: hsl(210, 29%, 85%);
    padding: 0.5rem 2rem;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
}
.home-header {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

}
.question-container {
    display: grid;
    align-items: center;
}
.punkte {
    font-size: 1rem;
    color: hsl(210, 29%, 85%);
    background-color: #2c3e50;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem 2rem;
}

.score-header {
    font-size: 0.7rem;
}
.activity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
    color: white;
    background-color: #2c3e50;
    height: 100%;
}

.home-button {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: #ecf0f1;
    background-color: #3498db;
    padding: 0 1rem;
    margin: 0;
    text-decoration: none;
    border-radius: 0px;
}

.question {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}
#answer {
    font-size: 24px;
    margin-bottom: 20px;
}
.userAnswer {
    font-size: 2rem;
    background-color: transparent;
    border: none;
    color: #ecf0f1;
    width: 4ch;
    text-align: center;
    margin-bottom: 2rem;
}
.feedback {
    position: fixed;
    top: 80px;
    right: 10px;
    width: 150px;
    font-size: 1rem;
    padding: 20px;
    background-color: #2ecc71;
    border-radius: 10px;
    border: 3px solid white
}
/* ####################################
    KEYPAD STYLES
  ##################################### */

  .keypad-container {
    display: grid;
    justify-items: center;
    align-items: center;
    margin-bottom: 20px;
}
.keypad{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    
}

.keypad button {
    font-size: 1.4rem;
    aspect-ratio: 1;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.enter {
    grid-row: 3 / 5;
    grid-column: 4 / 5;
    background-color: hsl(204, 64%, 74%) !important;
    color: hsl(210, 29%, 22%) !important;
    aspect-ratio: auto !important;
}


.backspace {
    grid-row: 1 / 3;
    grid-column: 4 / 5;
    background-color: hsl(204, 64%, 54%) !important;
    aspect-ratio: auto !important;
}

/* ####################################
    LOGIN STYLES
  ##################################### */

.auth-area {
    display: grid;
    justify-items: center;
    align-items: center;
}
.login-form-container {
    display: inline-block;
    text-align: left;
    width: 300px;
}
.login-input {
    font-size: 18px;
    padding: 10px 20px;
    margin: 5px;
    border: none;

}
.home-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #2c3e50;
    margin-top: 3rem;
}

input[type="text"]:focus {
    outline: none;
    border: none;
    caret-color: transparent;
}
button {
    font-size: 18px;
    padding: 10px 20px;
    margin: 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #2980b9;
}
.menu button {
    font-size: 1.5rem;  
    padding: 2rem;
    border-radius: 0 !important;
    position: relative;
    min-width: 150px; 
}
.lesson-button-container {
    display: grid;
}
.lesson-button, .lesson-button-back{
    grid-area: 1 / 1 / 2 / 2;
}
.lesson-button-back{
    background-color: hsl(204, 70%, 73%);
    z-index: -1;
}
.invisible{
    display: none;
}
#result {
    font-size: 18px;
    margin-top: 10px;
    color: #2ecc71;
}


.rightAnswer {
    font-size: 4rem;
    color: #2ecc71;
    background-color: hsla(145, 63%, 49%, 0.1);
    margin-left: 1rem;
    border-radius: 8px;
}
.task {
    display: inline-block;
    background-color: hsla(0, 0%, 0%, 0.104);
    margin: 2px;
    padding: 1px 5px;
    border-radius: 4px;
}
.correct{
    color: #2ecc71;
}
.correct2{
    color: green;
    background:  hsla(145, 63%, 49%, 1);
}
.wrong{
    color: #e74c3c;
    text-decoration: line-through;
}
.completed{
    position: relative;
    box-shadow: 2px 2px 10px hsla(204, 70%, 73% ,0.4);
}
.completed:before {
    content: '';
    background-image: url('img/Batman_Approval.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    position: absolute;
    height: 100%;
    width: 100%;
    top: -30px;
    right: -30px;
    display: block;
    z-index: 100;
}
.remaining-problems {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80%;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    padding: 3rem;
    overflow: hidden;
}

.explode {
    animation: explode 1s forwards ease-out;
    background-color: #2ecc71;
    transform-origin: center;
}

@keyframes explode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 10px #2ecc71;
    }
    10% {
        transform: scale(1.2) rotate(10deg);
    }
    20% {
        transform: scale(1.4) rotate(-10deg);
    }
    30% {
        transform: scale(1.6)rotate(10deg);
    }
    40% {
        transform: scale(1.8)rotate(-10deg);
    }
    50% {
        transform:scale(2)rotate(10deg);
    }
    60% {
        transform: scale(2.2) rotate(-10deg);
    }
    70% {
        transform: scale(2.4) rotate(10deg);
    }
    80% {
        transform: scale(2.6) rotate(-10deg);
        opacity: 0.5;
    }
    90% {
        transform: scale(2.8) rotate(0deg);
        opacity: 0.3;
    }
    100% {
        transform: scale(3) rotate(0deg);
        opacity: 0;
    }
}
.blob {
    color: #2ecc71;
    animation: blobAnimation 0.6s forwards ease-out;
}
@keyframes blobAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(3);
    }
    100% {
        transform: scale(1);
    }
}

