/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white; /* Dark blue background */
    color: #dcdcdc; /* Light grey text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #015289; /* Slightly lighter dark blue */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    /*max-width: 800px;*/
    text-align: center;
}

header h1 {
    color: white; /* Light blue */
    margin-bottom: 10px;
}

header h1 i {
    margin-right: 10px;
}

header p {
    color: white; /* Muted purple/blue */
    margin-bottom: 20px;
}

/* Game Area Styles */
.game-area {
    margin-top: 20px;
}

.log-display {
    background-color: #1a1a2e; /* Very dark blue */
    border: 1px solid #4a4a6a; /* Muted blue border */
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.log-display h2 {
    color: #ffb86c; /* Orange accent */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #4a4a6a;
    padding-bottom: 5px;
}

.log-display h2 i {
    margin-right: 8px;
}

#log-content {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break words if necessary */
    color:white; /* Off-white for code */
    font-size: 16px;
    min-height: 150px; /* Ensure minimum height */
    line-height: 1.4;
}

/* Controls */
.controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}

.btn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    color: black;
    font-weight: bold;
}

.btn i {
    margin-right: 8px;
}

.allow {
    background-color: #50fa7b; /* Green */
    color: #1a1a2e;
}

.allow:hover {
    background-color: #42d969;
}

.block {
    background-color: #ff5555; /* Red */
}

.block:hover {
    background-color: #f44336;
}

.btn:active {
    transform: scale(0.98);
}

.next {
    background-color: #6272a4; /* Muted blue */
}

.next:hover {
    background-color: #5a689a;
}

/* Utility class */
.hidden {
    display: none;
}

/* Feedback Area */
.feedback-area {
    background-color: whitesmoke;
    border: 1px solid #4a4a6a;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.feedback-area h2 {
    color: black; /* Purple accent */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.feedback-area h2 i {
    margin-right: 8px;
}

#feedback-text {
    font-size: 1em;
    min-height: 40px; /* Reserve space for feedback */
    line-height: 1.5;
    color: black;
    
}

.feedback-correct {
    color: #50fa7b; /* Green */
    font-weight: bold;
}

.feedback-incorrect {
    color: #ff5555; /* Red */
    font-weight: bold;
}

.score {
    margin-top: 15px;
    color:black; /* Muted purple/blue */
    font-size: 0.9em;
}

.score span {
    font-weight: bold;
    color: black; /* Off-white */
}

footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #6a6a8a; /* Darker muted blue */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }

    #log-content {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }
    header p {
        font-size: 0.9em;
    }
     #log-content {
        font-size: 0.75em;
    }
    .btn {
        font-size: 0.9em;
    }
}