@charset "utf-8";
/* Everwinter CRT Terminal Theme - Amber/Olive */

/* Import Terminal Font */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Color Palette Variables */
:root {
    --amber-primary: #ff9500;
    --amber-light: #ffaa33;
    --amber-dim: #cc7700;
    --amber-text: #ffaa00;
    --olive-dark: #2a3d2a;
    --olive-muted: #3d4f3d;
    --olive-accent: #4a5d4a;
    --olive-light: #5a6d5a;
    --green-terminal: #669966;
    --bg-dark: #0d0f0d;
    --bg-panel: #1a1f1a;
    --error-red: #ff4400;
    --success-green: #66aa44;
}

/* CRT Animation Effects */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.98; }
    10% { opacity: 0.95; }
    15% { opacity: 1; }
    25% { opacity: 0.98; }
    30% { opacity: 0.99; }
    35% { opacity: 0.93; }
    40% { opacity: 1; }
    45% { opacity: 0.96; }
    50% { opacity: 0.98; }
    60% { opacity: 1; }
    70% { opacity: 0.97; }
    80% { opacity: 0.98; }
    90% { opacity: 0.96; }
    100% { opacity: 0.98; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes textGlitch {
    0%, 100% { 
        text-shadow: 
            0.02em 0 0 rgba(255, 149, 0, 0.8),
            -0.02em -0 0 rgba(74, 93, 74, 0.8),
            0.01em -0.01em 0 rgba(255, 170, 51, 0.8);
    }
    15% { 
        text-shadow: 
            0.5em 0 0 rgba(255, 149, 0, 0.8),
            -0.5em -0 0 rgba(74, 93, 74, 0.8),
            0.05em -0.05em 0 rgba(255, 170, 51, 0.8);
    }
    16% { 
        text-shadow: 
            -0.02em -0.02em 0 rgba(255, 149, 0, 0.8),
            0.02em 0.02em 0 rgba(74, 93, 74, 0.8),
            -0.01em 0 0 rgba(255, 170, 51, 0.8);
    }
}

@keyframes dataGlitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes bootSequence {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 149, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 149, 0, 0.8);
    }
}

/* Base Typography & Reset */
html {
    color: var(--amber-text);
    font-family: "Roboto", "Courier New", monospace;
    font-size: 16px;
    height: 100%;
    line-height: 1.6;
    text-shadow: 0 0 2px rgba(255, 170, 0, 0.3);
    animation: flicker 0.15s infinite;
}

/* Body with CRT Effects */
body {
    margin: 0;
    background-color: var(--bg-dark);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent 0,
            rgba(0, 0, 0, 0.3) 1px,
            transparent 1px,
            transparent 2px
        ),
        url(../images/bg-everwinter.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 0;
    position: relative;
}

/* CRT Scanline Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(255, 149, 0, 0.01) 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999999;
    animation: flicker 0.1s infinite;
}

/* Moving Scanline */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 149, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.2);
    pointer-events: none;
    z-index: 999998;
    animation: scanline 8s linear infinite;
}

/* Links */
a:link, a:visited, a:active {
    text-decoration: none;
    color: var(--amber-light);
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    text-shadow: 0 0 3px rgba(255, 170, 51, 0.4);
}

a:hover {
    color: var(--amber-primary);
    text-shadow: 0 0 8px rgba(255, 149, 0, 0.6);
    animation: textGlitch 0.3s infinite;
}

/* Main Container */
#container {
    position: relative;
    background: linear-gradient(135deg, 
        var(--bg-dark) 0%, 
        var(--bg-panel) 100%);
    margin: 40px auto;
    padding: 35px;
    width: 700px;
    max-width: 90%;
    z-index: 2;
    border: 1px solid var(--olive-dark);
    border-radius: 4px;
    box-shadow: 
        inset 0 0 30px rgba(42, 61, 42, 0.2),
        0 0 20px rgba(255, 149, 0, 0.1);
    animation: bootSequence 0.5s ease-out;
}

/* Terminal Header */
#container::before {
    content: '▓▓▓ EVERWINTER TERMINAL v2.847 ▓▓▓';
    position: absolute;
    top: -25px;
    left: 20px;
    color: var(--green-terminal);
    font-size: 10px;
    letter-spacing: 2px;
    font-family: "VT323", monospace;
    text-shadow: 0 0 5px rgba(102, 153, 102, 0.6);
    animation: textGlitch 3s infinite;
}

/* Vignette Effect */
#container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 4px;
}

/* Title & Step Sections */
#title {
    float: right;
    clear: both;
    text-align: right;
}

#step {
    float: right;
    clear: both;
    position: relative;
    top: -80px;
}

#form {
    position: relative;
    clear: both;
    z-index: 4;
    margin: 0 auto;
    width: 650px;
    top: -75px;
}

/* Decorative Background Names */
#firstName, #lastName {
    position: fixed;
    z-index: 1;
    white-space: nowrap;
    opacity: 0.02;
    pointer-events: none;
    color: var(--olive-muted);
    text-shadow: 0 0 30px rgba(61, 79, 61, 0.3);
    font-family: "Orbitron", monospace;
    animation: dataGlitch 10s infinite;
}

#firstName {
    top: -100px;
    width: 100%;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}

#lastName {
    bottom: 25%;
    left: 30%;
    width: 100%;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
}

/* Typography */
h1 {
    font-family: "Orbitron", monospace;
    font-weight: 700;
    color: var(--amber-primary);
    font-size: 42px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(255, 149, 0, 0.5),
        2px 2px 0 var(--olive-dark);
    margin: 20px 0;
    animation: textGlitch 5s infinite;
}

h2 {
    font-family: "Orbitron", monospace;
    font-weight: 600;
    color: var(--amber-text);
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(255, 170, 0, 0.4),
        1px 1px 0 var(--olive-dark);
    margin: 15px 0;
}

h3 {
    font-family: "Orbitron", monospace;
    font-weight: 500;
    color: var(--amber-primary);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0;
    border-bottom: 1px solid var(--olive-muted);
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.4);
}

h4 {
    font-family: "Orbitron", monospace;
    color: var(--olive-accent);
    font-size: 300px;
}

h5 {
    font-family: "Orbitron", monospace;
    color: var(--olive-accent);
    font-size: 400px;
}

/* Highlights */
.highlight {
    color: var(--green-terminal);
    font-weight: 500;
    text-shadow: 0 0 8px rgba(102, 153, 102, 0.6);
}

/* Form Labels */
label {
    display: block;
    background: linear-gradient(135deg, 
        rgba(61, 79, 61, 0.1) 0%, 
        transparent 100%);
    color: var(--amber-light);
    padding: 12px;
    margin: 10px 0;
    border-left: 3px solid var(--olive-accent);
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

label::before {
    content: '>';
    position: absolute;
    left: -15px;
    color: var(--green-terminal);
    animation: blink 1s infinite;
}

label:hover {
    background: linear-gradient(135deg, 
        rgba(74, 93, 74, 0.15) 0%, 
        transparent 100%);
    border-left-color: var(--amber-primary);
    transform: translateX(3px);
}

/* Form Inputs */
input[type="text"], 
input[type="email"], 
input[type="number"], 
textarea, 
select {
    width: 100%;
    padding: 10px;
    background: rgba(13, 15, 13, 0.7);
    border: 1px solid var(--olive-dark);
    color: var(--amber-light);
    font-family: "Courier New", monospace;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 2px rgba(255, 170, 51, 0.3);
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="number"]:focus,
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--amber-primary);
    background: rgba(13, 15, 13, 0.9);
    box-shadow: 
        0 0 15px rgba(255, 149, 0, 0.2),
        inset 0 0 5px rgba(255, 149, 0, 0.1);
    animation: dataGlitch 0.5s;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid var(--olive-dark);
    background: rgba(13, 15, 13, 0.6);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background: var(--olive-muted);
    border-color: var(--amber-primary);
    animation: dataGlitch 0.2s;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--amber-primary);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.8);
}

/* Buttons */
.button {
    background: linear-gradient(135deg, var(--olive-accent) 0%, var(--olive-dark) 100%);
    border: 1px solid var(--olive-muted);
    color: var(--amber-primary);
    font-family: "Orbitron", monospace;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.5);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 149, 0, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 20px rgba(255, 149, 0, 0.3),
        inset 0 0 20px rgba(255, 149, 0, 0.1);
    border-color: var(--amber-primary);
    animation: dataGlitch 0.3s infinite;
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(0);
    animation: textGlitch 0.1s;
}

/* CLASS RADIO BUTTONS - Wider 2x2 Grid Layout */
#path {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 30px auto;
    padding: 15px;
    width: 90%;
}

#path input[type="radio"] {
    display: none;
}

#path label {
    display: none !important;
}

/* Style the radio button images - wider layout */
img.radio-select-img-item {
    width: 100%;
    height: auto;
    max-width: 280px;
    border: 2px solid var(--olive-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    filter: none !important;
    -webkit-filter: none !important;
    margin: 0 auto !important;
    display: block;
}

img.radio-select-img-item:hover {
    border-color: var(--amber-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.4);
    filter: none !important;
}

img.radio-select-img-item.item-checked {
    border: 3px solid var(--amber-primary);
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.6);
    transform: scale(1.05);
    filter: none !important;
}

/* SUBCULTURE CARDS - 3x2 Grid with More Height */
.subculture-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 15px;
}

.subculture-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    min-height: 320px;
    height: 380px;
    overflow: hidden;
    border: 1px solid var(--olive-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-dark);
}

.subculture-card:hover {
    border-color: var(--amber-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.subculture-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    filter: none !important;
    -webkit-filter: none !important;
}

.subculture-card:hover img {
    opacity: 0.15;
    transform: scale(1.1);
}

.subculture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(13, 15, 13, 0.2) 20%, 
        rgba(13, 15, 13, 0.5) 50%, 
        rgba(13, 15, 13, 0.85) 80%, 
        rgba(13, 15, 13, 0.98) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.subculture-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    background: rgba(13, 15, 13, 0.95);
    transition: opacity 0.4s ease;
}

.subculture-card:hover .subculture-info {
    opacity: 1;
}

.subculture-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--amber-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 149, 0, 0.6);
}

.subculture-descriptor {
    font-size: 12px;
    margin-bottom: 15px;
    color: var(--amber-light);
    line-height: 1.4;
    font-style: italic;
}

.subculture-lore {
    font-size: 11px;
    line-height: 1.5;
    color: #ccaa88;
    max-height: 200px;
    overflow-y: auto;
}

/* Custom scrollbar for lore text */
.subculture-lore::-webkit-scrollbar {
    width: 4px;
}

.subculture-lore::-webkit-scrollbar-track {
    background: rgba(13, 15, 13, 0.5);
}

.subculture-lore::-webkit-scrollbar-thumb {
    background: var(--olive-muted);
    border-radius: 2px;
}

.subculture-lore::-webkit-scrollbar-thumb:hover {
    background: var(--amber-primary);
}

.subculture-card.selected {
    border-color: var(--amber-primary);
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

/* Loading Overlay */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(13, 15, 13, 0.98) 0%, 
        rgba(0, 0, 0, 1) 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loadingOverlay.show {
    display: flex;
}

.loading-text {
    color: var(--amber-primary);
    font-family: "VT323", monospace;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 149, 0, 0.8);
    animation: textGlitch 0.5s infinite;
}

.loading-subtext {
    color: var(--amber-light);
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(74, 93, 74, 0.3);
    border: 1px solid var(--olive-muted);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--amber-primary), 
        transparent);
    animation: loading 2s linear infinite;
}

/* Validation Messages */
.LV_validation_message {
    font-weight: bold;
    margin: 5px 0 0 5px;
    padding: 5px 8px;
    border-radius: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.LV_valid {
    color: var(--success-green);
    background: rgba(102, 170, 68, 0.1);
    border: 1px solid rgba(102, 170, 68, 0.3);
    text-shadow: 0 0 3px rgba(102, 170, 68, 0.5);
}

.LV_invalid {
    color: var(--error-red);
    background: rgba(255, 68, 0, 0.2);
    border: 1px solid var(--error-red);
    animation: dataGlitch 0.3s;
    text-shadow: 0 0 3px rgba(255, 68, 0, 0.8);
}

.LV_valid_field {
    border-color: var(--success-green) !important;
    box-shadow: 0 0 10px rgba(102, 170, 68, 0.3);
}

.LV_invalid_field {
    border: 2px solid var(--error-red) !important;
    box-shadow: 0 0 10px rgba(255, 68, 0, 0.3);
    animation: dataGlitch 0.5s;
}

/* Paragraphs */
p {
    line-height: 1.8;
    margin: 15px 0;
    color: var(--amber-text);
    text-shadow: 0 0 1px rgba(255, 170, 0, 0.2);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px;
    color: var(--amber-primary);
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid var(--olive-muted);
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.4);
}

td {
    padding: 12px 10px;
    color: var(--amber-text);
    border-bottom: 1px solid rgba(61, 79, 61, 0.3);
}

tr:hover {
    background: rgba(74, 93, 74, 0.1);
}

/* Remove ALL image color manipulation */
img {
    filter: none !important;
    -webkit-filter: none !important;
}

* img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Additional hover states */
h1:hover, h2:hover, h3:hover {
    animation: textGlitch 0.2s infinite;
}

*:focus {
    animation: dataGlitch 0.3s;
}

/* Responsive Design */
@media (max-width: 900px) {
    .subculture-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #path {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        width: 85%;
    }
    
    img.radio-select-img-item {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    #container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 32px; }
    h3 { font-size: 20px; }
    
    #firstName, #lastName {
        display: none;
    }
    
    .subculture-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #path {
        grid-template-columns: repeat(2, 1fr);
        max-width: 450px;
        width: 90%;
        gap: 15px;
    }
    
    img.radio-select-img-item {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .subculture-showcase {
        grid-template-columns: 1fr;
    }
    
    .subculture-card {
        height: 300px;
        min-height: 280px;
    }
    
    #path {
        grid-template-columns: 1fr;
        max-width: 300px;
        width: 80%;
    }
    
    img.radio-select-img-item {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .subculture-showcase {
        grid-template-columns: 1fr;
    }
    
    #form {
        width: 100%;
    }
}