/* WebDevAI: Version 9.0 */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --monitor-bg: #030703;
    --scanline-color: rgba(0, 0, 0, 0.3);
    --text-color: #0060ff; /* lt blue */
    --text-shadow-color: rgba(50, 205, 50, 0.4); /* Green Shadow */
    --border-color: #005fff;
    --link-hover-bg: #0060ff;
    --link-hover-color: #030703;
}

body {
    background-color: #000;
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 28px;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, var(--scanline-color) 51%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}

#app-container {
    width: 100%;
    max-width: 900px;
    background: var(--monitor-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 25px var(--text-shadow-color), inset 0 0 15px rgba(0,0,0,0.5);
    text-shadow: 0 0 5px var(--text-shadow-color);
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
}

#story-image {
    text-align: center;
    margin-bottom: 20px;
    min-height: 50px;
}

#story-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    background-color: #000;
}

#story-text {
    margin-bottom: 25px;
}

#story-text p {
    margin: 0 0 1em 0;
}

#choices ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#choices li {
    margin-bottom: 10px;
}

#choices a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

#choices a:before {
    content: '> ';
    white-space: pre;
}

#choices a:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-color);
    text-shadow: none;
    border-color: var(--border-color);
}

footer {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
}

#inventory-display {
    margin-top: 10px;
    min-height: 24px;
}
#inventory-display span {
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    margin: 0 5px;
    border-radius: 4px;
    white-space: nowrap;
}

#game-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#game-controls button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 18px;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#game-controls button:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-color);
}
        
#game-controls button:disabled {
    color: #446444;
    border-color: #446444;
    cursor: not-allowed;
    background-color: transparent;
}

#save-message {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#save-message.visible {
    opacity: 1;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}