/* Shared stylesheet for the generated /languages/ typer pages.
   Derived from the homepage inline styles; regenerate via
   node scripts/generate-language-pages.js */
body {
    margin: 0;
    padding: 0;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: text;
    min-height: 100vh;
    padding-bottom: 40px;
    position: relative;
}
#terminal {
    flex: 1;
    padding: 10px;
    cursor: text;
    outline: none !important;
    font-size: calc(14px + 0.5vw);
}
#terminal:focus,
#terminal .xterm-viewport,
.xterm-screen:focus {
    outline: none !important;
}
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #0f0;
    padding: 8px 10px;
    font-family: 'Menlo', Monaco, 'Courier New', monospace;
    border-top: 1px solid #0f0;
    display: flex;
    gap: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
    min-height: 40px;
}
.status-item {
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    text-decoration: none;
    color: #0f0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}
.status-item:hover {
    color: #000;
    background: #0f0;
}
.status-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -12px;
    color: #0f0;
    opacity: 0.5;
}
.status-bar.hidden {
    transform: translateY(100%);
}
:fullscreen .status-bar,
:-webkit-full-screen .status-bar {
    transform: translateY(100%);
    visibility: hidden;
}
.status-bar-content {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.close-button {
    cursor: pointer;
    padding: 2px 12px;
    color: #0f0;
    background: transparent;
    border: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-size: 24px;
    font-weight: lighter;
    line-height: 1;
}
.close-button:hover {
    opacity: 1;
}
.modal {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 10px;
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 8px;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 300px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}
.modal-content {
    background-color: #000;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: #0f0;
    max-height: 80vh;
    overflow-y: auto;
}
.language-group {
    flex: 1;
    min-width: 180px;
}
.language-group-title {
    color: #666;
    padding: 4px 8px;
    font-size: 0.9em;
    border-bottom: 1px solid #333;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.language-option {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 2px;
    margin: 2px 0;
    transition: background-color 0.15s ease;
}
.language-option:hover {
    background: #333;
}
.language-option.selected {
    background: #0f0;
    color: #000;
}
.settings-content {
    padding: 20px;
    min-width: 400px;
}
.settings-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #0f0;
    border-bottom: 1px solid #0f0;
    padding-bottom: 10px;
}
.setting-item {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.setting-item label {
    min-width: 120px;
    color: #0f0;
}
.theme-options {
    display: flex;
    gap: 10px;
}
.theme-option {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}
.theme-option.selected {
    border-color: #fff;
}
.theme-option.matrix { background: #00ff00; }
.theme-option.cyberpunk { background: #ff00ff; }
.theme-option.hacker { background: #00ffff; }
.theme-option.retro { background: #ffa500; }
input[type="range"] {
    flex: 1;
    background: #333;
    height: 5px;
    -webkit-appearance: none;
    border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #0f0;
    border-radius: 50%;
    cursor: pointer;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #0f0;
    transition: .4s;
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #0f0;
}
input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #000;
}
.color-picker-wrapper {
    position: relative;
    width: 25px;
    height: 25px;
}
.color-picker-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: #333;
    border: 2px solid #0f0;
    border-radius: 4px;
    color: #0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}
.color-picker-label:hover {
    background: #444;
}
input[type="color"] {
    opacity: 0;
    position: absolute;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
.sound-style-options {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}
.sound-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #0f0;
    opacity: 0.5;
}
.sound-option:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}
.sound-option.selected {
    opacity: 1;
    background: rgba(0, 255, 0, 0.15);
    transform: translateY(-2px);
}
.sound-icon {
    font-size: 20px;
    margin-bottom: 4px;
}
.sound-label {
    font-size: 12px;
    color: #0f0;
}
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    display: none;
}
.crt-overlay.enabled {
    display: block;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    animation: flicker 0.15s infinite;
}
@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}
.access-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}
.access-overlay.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}
.access-content {
    text-align: center;
    color: #0f0;
    font-family: 'Courier New', monospace;
    transform: scale(0.9);
    opacity: 0;
}
.access-overlay.show .access-content {
    animation: popIn 0.5s 0.3s forwards;
}
.access-text {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}
.progress-bar {
    width: 300px;
    height: 4px;
    background: #030;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #0f0;
    animation: progress 1s ease-out forwards;
}
.access-subtext {
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
}
.access-overlay.show .access-subtext {
    animation: slideUp 0.5s 1s forwards;
}
.press-key {
    font-size: 14px;
    opacity: 0;
    margin-top: 20px;
    color: #666;
}
.access-overlay.show .press-key {
    animation: fadeIn 0.5s 5s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes progress {
    0% { width: 0; }
    50% { width: 40%; }
    80% { width: 65%; }
    100% { width: 100%; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.help-divider {
    border-top: 1px solid #0f0;
    margin: 10px 0;
    opacity: 0.5;
}
.about-section {
    background: #000;
    color: #0f0;
    font-family: 'Menlo', Monaco, 'Courier New', monospace;
    border-top: 1px solid #0f0;
    padding: 40px 20px 80px;
}
.about-inner {
    max-width: 800px;
    margin: 0 auto;
}
.about-section h1 {
    font-size: 1.5em;
    margin: 0 0 16px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}
.about-section h2 {
    font-size: 1.18em;
    margin: 38px 0 12px;
}
.about-section p,
.about-section li {
    line-height: 1.6;
    color: #9f9;
}
.about-section ol,
.about-section ul {
    margin: 12px 0;
    padding-left: 24px;
}
.about-section a {
    color: #0f0;
    text-decoration: none;
    border-bottom: 1px solid #0f0;
}
.about-section a:hover {
    color: #000;
    background: #0f0;
}
.sample-note {
    border: 1px solid #174d27;
    background: #031006;
    padding: 12px 16px;
    margin: 18px 0;
}
.preset-links,
.related-languages {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.preset-links a,
.related-languages a {
    border: 1px solid #0f0;
    padding: 8px 12px;
}
@media screen and (max-width: 480px) {
    .status-bar {
        padding: 10px 5px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .status-item {
        padding: 6px 8px;
        font-size: 14px;
    }
    .modal-content {
        margin: 10% auto;
        padding: 15px;
        width: 95%;
    }
    .settings-content {
        min-width: 0;
    }
    .setting-item,
    .theme-options,
    .sound-style-options {
        flex-wrap: wrap;
    }
    input[type="range"] {
        height: 20px;
    }
}
@media screen and (min-width: 1200px) {
    #terminal {
        padding: 20px;
        font-size: 16px;
    }
}
