/* Main page styling to match timopr.fi */
html {
    height: 100%;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 5px 5px;
    padding: 0px;
    background-size: cover;
    background-image: url('https://timopr.fi/pukala-bg.jpg');
    background-repeat: repeat-y;
    background-color: #111;
    color: #ddd;
    height: auto;
    min-height: 100%;
}

.page-container {
    width: 85%;
    max-width: 1080px;
    margin: 0px auto;
    padding: 15px;
    border: 1px solid #888;
    background-color: #222;
    border-radius: 15px;
    opacity: 0.95;
}

.site-title {
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #ddd;
    text-align: center;
}

.navigation {
    background-color: #555;
    font-size: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #ddd;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.navigation a {
    color: #eee;
    font-weight: bold;
    text-decoration: underline;
}

.navigation a:hover {
    color: #ccc;
    text-decoration: underline;
}

.content {
    margin-top: 40px;
}

.content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 15px 0;
    color: #ddd;
}

.content p {
    margin-bottom: 20px;
    color: #ddd;
}

/* Light mode support */
@media (prefers-color-scheme: light) {
    body {
        background-color: #ccc;
        color: #000;
    }
    
    .page-container {
        background-color: #ddd;
        border: 1px solid #ccc;
    }
    
    .site-title {
        color: #000;
    }
    
    .navigation {
        background-color: #ccc;
        color: #000;
    }
    
    .navigation a {
        color: #000;
        font-weight: bold;
        text-decoration: underline;
    }
    
    .navigation a:hover {
        color: #222;
        text-decoration: underline;
    }
    
    .content h2 {
        color: #000;
    }
    
    .content p {
        color: #000;
    }
}

/* Terminal styling - isolated in its own container */
.terminal-container {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.terminal {
    background-color: #000;
    color: #00ff00;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 400px;
    font-size: 14px;
    line-height: 1.4;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    background-color: #000;
}

.prompt {
    color: #00ff00;
    margin-right: 5px;
    font-family: 'Courier New', monospace;
}

input[type="text"] {
    background-color: #000;
    color: #00ff00;
    border: none;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    flex: 1;
    caret-color: #00ff00;
}

input[type="text"]:focus {
    background-color: #000;
}

.braille {
    font-size: 20px;
}

.fallout-grid {
    font-family: monospace;
    line-height: 1.2;
}

.battle-grid {
    font-family: monospace;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hidden {
    display: none;
}

.error {
    color: #ff6b6b;
}

.success {
    color: #51cf66;
}
