*{
    background-color: rgb(39, 39, 39);
    font-family: monospace;
}

#title-area{
    width: 100%;
}

#title-area h1{
    color: rgb(115, 255, 87);
    text-align: center;
}

#main-area{
    display: block;
    width: 100%;
}

#task-container{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

#task-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#task-title{
    display: block;
    width: 90px;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(115, 255, 87);
    background-color: rgb(115, 255, 87);
}

#task-counter{
    display: block;
    width: 120px;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(115, 255, 87);
    background-color: rgb(115, 255, 87);
    text-align: center;
}

#task{
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    color: rgb(255, 255, 255);
    border: 1px solid rgb(115, 255, 87);
    text-align: center;

}

#answer-container{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

#answer-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#answer-title{
    display: block;
    width: 90px;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(115, 255, 87);
    background-color: rgb(115, 255, 87);
}

#answer-timer{
    display: block;
    width: 100px;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(115, 255, 87);
    background-color: rgb(115, 255, 87);
    text-align: center;
}


#solution-container{
    width: 90%;
    display: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

#solution{
    display: flex;
    padding: 5px;
    color: rgb(255, 149, 87);
    border: 1px solid  rgb(255, 149, 87);   
    font-size: 18px;
}

#solution-title{
    display: block;
    width: 400px;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(255, 149, 87);
    background-color: rgb(255, 149, 87);
}

#solution-text{
    color: rgb(255, 255, 255);
    font-size: 17px;
    width: 85%;
    margin-left: 14px;
}

#answer{
    display: block;
    padding: 5px;
    color: rgb(155,255,87);
    border: 1px solid  rgb(155,255,87);   
    font-size: 18px;
}

#answer input{
    color: rgb(255, 255, 255);
    margin-left: auto;
    margin-right: auto;
    border: none;
    font-size: 17px;
    width: 85%;
}

#answer input:focus{
    outline: none;
}

#game-controls{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    text-align: left;
}

#game-controls button{
    color: rgb(115, 255, 87);
    border: solid 1px rgb(115, 255, 87);
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
}

#game-controls button:hover{
    background-color: rgb(115, 255, 87);
    color: rgb(0, 0, 0);
}

#level-list h2{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    text-align: left;
    display: block;
    color: rgb(115, 255, 87);
}

.level-select-list{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    text-align: left;
    display: block;
}

.level-select-item{
    color: rgb(115, 255, 87);
    border: solid 1px rgb(115, 255, 87);
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    min-width: 220px;
}

.level-select-item a{
    text-decoration: none;
    color: rgb(115, 255, 87);
}

.level-select-item:hover{
     border: solid 1px rgb(244, 255, 87);
}

.level-select-item:hover > a > .level-select-category{
     background-color:  rgb(244, 255, 87);
}

.level-select-item:hover > a > .level-select-title{
    color: rgb(244, 255, 87);
}

.level-select-item:hover > a > .level-select-type{
    background-color: rgb(244, 255, 87);
}

.level-select-item-selected{
    background-color: rgb(115, 255, 87);
    color: rgb(0, 0, 0);
}

.level-select-category{
    display: block;
    font-weight: bold;
    font-size: 12px;
    padding: 3px;
    color: rgb(13, 28, 10);
    background-color: rgb(115, 255, 87);
    margin-bottom: 10px;
    text-decoration: none;
}

.level-select-level{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
    color: rgb(143, 142, 142);
    text-decoration: none;
}

.level-select-title{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    text-align: left;
    color: rgb(115, 255, 87);
    text-decoration: none;
    min-height: 38px;
    font-size: 18px;
}

.level-select-type{
    display: block;
    font-weight: bold;
    font-size: 14px;
    padding: 3px;
    color: rgb(34, 75, 26);
    background-color: rgb(115, 255, 87);
    margin-top: 15px;
    text-decoration: none;
        width: 80%;
    border-radius: 0px 50px 0px 0px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(20, 20, 20, 0.85); /* Semi-transparent dark overlay */
    font-family: 'Fira Mono', 'Consolas', monospace;
}

.modal-content {
    background: #222;
    color: #eee;
    margin: 8% auto;
    padding: 32px 24px 24px 24px;
    border-radius: 8px;
    border: 2px solid #00ff99;
    width: 350px;
    box-shadow: 0 0 24px #00ff99a0;
    text-align: center;
    position: relative;
}

.close-modal {
    color: #00ff99;
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ff0055;
}

#result-modal-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: #00ff99;
    text-shadow: 0 0 4px #00ff99a0;
}

#result-modal-message {
    font-size: 1.1rem;
    margin-top: 8px;
    color: #eee;
    word-break: break-word;
}

