body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    text-align: center;
    height: 100%;
    overflow: hidden; 
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: calc(100vh - 50px);
    background-color: #fff;
    padding-top: 60px; 
    overflow-y: auto; 
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.level-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 80px;
}

.level-button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.level-button:hover,
.level-button.active {
    background-color: #EDF4FF;
}

.puzzle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    width: 90%;

}

#puzzle {
    font-size: 2.5em;
    margin-bottom: 40px;
    word-break: break-word; 
}

.line {
    margin: 10px 0;
}

.answer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#answer {
    font-size: 1.5em;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-bottom: 3px solid #ccc; 
    text-align: center;
    width: 100px;
    margin-right: 20px; 
    height: 50px; 
}

#answer:focus {
    outline: none;
    border-bottom: 3px solid #84A9E8;
}

.correct {
    border-bottom: 3px solid #00BF63 !important; 
}

.incorrect {
    border-bottom: 3px solid #FF5757 !important;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-button {
    background-color: #ADCBFD;
    border: none;
    padding: 10px;
    height: 50px; /* Set height */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#submit-button i {
    font-size: 1.7rem;
    line-height: 1; /* Ensure the icon is centered */
}

#submit-button:hover {
    background-color: #84A9E8;
}

#next-button {
    background-color: #ADCBFD;
    border: none;
    padding: 10px;
    height: 50px; 
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 40px;
}

#next-button i {
    font-size: 1.7rem;
    line-height: 1; 
}

#next-button:hover {
    background-color: #84A9E8;
}


#stars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    width: 100%;
    z-index: 20; 
    position: relative;
    background-color: white; 
}

#total-stars {
    font-size: 2em;
    margin-right: 5px;
}

@media (max-width: 600px) {
    #puzzle {
        font-size: 1.7em; 
    }
}
