/* DOS Terminal Style */

:root {
    --dos-green: #00aa00;
    --dos-dark: #000000;
    --dos-bg: #000044;
    --dos-border: #00aa00;
    --dos-yellow: #aaaa00;
}

body.dos-background {
    background: linear-gradient(45deg, #000011, #000044);
    color: var(--dos-green);
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.dos-container {
    max-width: 900px;
    margin: 0 auto;
}

.dos-terminal {
    background-color: var(--dos-bg);
    border: 3px solid var(--dos-green);
    box-shadow: 0 0 20px rgba(0, 170, 0, 0.5), 
                inset 0 0 20px rgba(0, 170, 0, 0.1);
    overflow: hidden;
    animation: screenFlicker 0.15s infinite;
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0.98; }
    50% { opacity: 1; }
}

.dos-header {
    background-color: var(--dos-green);
    color: var(--dos-dark);
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.dos-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
}

.dos-bar-text {
    flex: 1;
}

.dos-bar-close {
    cursor: pointer;
    padding: 0 4px;
}

.dos-content {
    padding: 20px;
    background-color: var(--dos-bg);
    color: var(--dos-green);
    font-size: 14px;
    line-height: 1.8;
    min-height: 400px;
}

.dos-text {
    color: var(--dos-green);
    text-shadow: 0 0 10px rgba(0, 170, 0, 0.3);
}

.dos-text strong {
    color: var(--dos-yellow);
    text-shadow: 0 0 5px rgba(170, 170, 0, 0.5);
}

/* Story Text Animation */
.story-text {
    animation: typewriter 0.05s steps(60, end);
    border-right: 2px solid var(--dos-green);
    padding-right: 5px;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Choices */
.choices-form {
    margin-top: 15px;
}

.choice-item {
    margin: 8px 0;
    animation: fadeInChoice 0.3s ease-in;
}

@keyframes fadeInChoice {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.choice-button {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--dos-bg);
    color: var(--dos-green);
    border: 1px solid var(--dos-green);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.4;
}

.choice-button:hover {
    background-color: var(--dos-green);
    color: var(--dos-bg);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 170, 0, 0.6);
    transform: translateX(2px);
}

.choice-button:active {
    transform: translateX(1px);
    box-shadow: inset 0 0 10px rgba(0, 170, 0, 0.3);
}

/* Buttons */
.reset-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--dos-green);
    color: var(--dos-dark);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--dos-green);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.reset-button:hover {
    background-color: var(--dos-yellow);
    box-shadow: 0 0 15px rgba(170, 170, 0, 0.6);
    transform: scale(1.05);
}

.reset-button:active {
    transform: scale(0.98);
}

/* Footer */
.dos-footer {
    background-color: var(--dos-green);
    color: var(--dos-dark);
    padding: 4px 8px;
    font-size: 11px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dos-content {
        padding: 15px;
        font-size: 12px;
    }

    .choice-button {
        font-size: 11px;
    }

    .dos-bar-text {
        font-size: 10px;
    }
}

/* CRT Effect */
.dos-terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}
