/* General Styles */
html { /* Or apply to the container itself */
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, #3b3434, #2d2d2d);
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.game-header {
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

.game-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
    letter-spacing: 1px;
}

/* Health bar */
.health-bar-container {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 5px;
    width: 300px;
    margin: 1rem auto;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.health-bar {
    height: 25px;
    border-radius: 8px;
    background: linear-gradient(to right, #ff4444, #44ff44);
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(68, 255, 68, 0.4);
}

.health-bar-container p {
    text-align: center;
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: #ffffff;
}

/* Instructions */
.game-instructions {
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #444;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-instructions h2 {
    color: #44ff44;
    text-shadow: 0 0 10px #44ff44, 0 0 20px rgba(68, 255, 68, 0), 0 0 30px rgba(68, 255, 68, 0);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(68, 255, 68, 0), 0 0 20px rgba(68, 255, 68, 0), 0 0 30px rgba(68, 255, 68, 0);
    }
    to {
        text-shadow: 0 0 20px rgba(68, 255, 68, 0), 0 0 30px rgba(68, 255, 68, 0), 0 0 40px rgba(68, 255, 68, 0);
    }
}

.instructions-content h3 {
    color: #ffffff;
    margin-top: 0;
    font-size: 1.4rem;
}

.instructions-content p {
    font-size: 1.1rem;
}

/* Commands styles */
.commands-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.commands-table th, .commands-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

.commands-table th {
    background-color: #354d69;
    color: #fff;
}

.commands-table td {
    background-color: rgba(40, 40, 40, 0.9);
}

.instructions-content ul, .instructions-content ol {
    margin: 1rem 0;
    padding-left: 20px;
}

.instructions-content li {
    margin-bottom: 10px;
}

.instructions-content code {
    background: rgba(40, 40, 40, 0.9);
    padding: 2px 5px;
    border-radius: 3px;
    color: #ffcc00;
}

/* Game Container */
.game-container {
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
}

.game-output {
    height: 400px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow-y: auto;
    overflow-anchor: none;
    border: 1px solid #333;
    font-size: 0.9rem;
}

.welcome-message {
    color: #44ff44;
    text-shadow: 0 0 10px rgb(68, 255, 68), 0 0 20px rgb(68, 255, 68), 0 0 30px rgb(68, 255, 68);
    font-size: 1.5rem;
}
.help-hint {
    color: greenyellow
}

/* Input Container */
.input-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

#game-input {
    flex-grow: 1;
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #444;
    padding: 12px;
    border-radius: 8px;
    color: #848f84;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#game-input:focus {
    border-color: #357abd;
    box-shadow: 0 0 10px rgba(53, 122, 189, 0.3);
    outline: none;
}

.submit-button {
    background: #354d69;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(53, 122, 189, 0.4);
}

/* Help Panel */
.game-help {
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.command-list {
    padding: 0;
    margin: 0;
}

.command-list li {
    background: rgba(40, 40, 40, 0.9);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    list-style-type: none;
    border-left: 4px solid #357abd;
    transition: transform 0.2s ease;
}

.command-list li:hover {
    transform: translateX(5px);
}

/* Footer */
.game-footer {
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }

    .input-container {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }
}
.game-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: Add margin or padding as needed */
    margin: 20px 0;
    padding: 10px; 
}

.game-illustration img {
    /* Optional: Add max-width or max-height for responsiveness */
    /* max-width: 100%; */
    /* max-height: 100%; */
    /* Optional: Add display: block; to remove any extra spacing */
    display: block;
}