/* CSS for the Scavenger Hunt Portal */
* {
    box-sizing: border-box;
}
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --accent-color: #38bdf8;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --terminal-green: #4ade80;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* CSS for the Classification Banner */

.classification-banner {
    background-color: 	#ff8c00;
    color: #FFFFFF;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 10px 0;
    
    /* FIXES START HERE */
    width: 100%; 
    display: block;
    margin: 0 auto; /* Keeps it centered if inside a container */
    border-bottom: 2px solid #000;
}

.compartment {
    color: #FFEB3B;
    margin-left: 10px;
}

.content-container {
    /* Instead of margin-top: 60px, use padding to prevent 'margin collapse' */
    padding-top: 20px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items inside the container */
} 
.terminal-container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--terminal-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

h1 {
    margin: 0;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.coords {
    font-size: 0.9rem;
    color: #fbbf24;
}

.mission-brief {
    margin-bottom: 30px;
}

.code-window {
    background: #000;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 30px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

pre { margin-top: 15px; overflow-x: auto; }
.comment { color: #64748b; }
.tag { color: #f472b6; }
.attr { color: #fbbf24; }
.string { color: #38bdf8; }

.btn {
    display: block;
    text-align: center;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.02);
    background: #7dd3fc;
}

footer {
    margin-top: 40px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
}

#countdown-clock {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #591F0A; /* Your typography color */
  text-align: center;
}

#countdown-clock div {
  background: #FDFCF0; /* Your background color */
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #0267C1; /* Your primary blue */
  min-width: 80px;
}

#countdown-clock span {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #0075C4; /* Your link/UI blue */
}

.loading-text {
    font-family: 'Segoe UI', sans-serif;
    color: #591F0A; /* Your typography color */
    font-size: 1.2rem;
    font-weight: bold;
}

.dots::after {
    content: '';
    display: inline-block;
    width: 0;
    /* This animation named 'cycle' takes 2 seconds and repeats forever */
    animation: cycle 2s infinite;
    text-align: left;
}

@keyframes cycle {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

.code-window {
    background-color: #000; /* Black background */
    color: #0267C1;        /* Using your primary blue for the code */
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    height: 300px;
    overflow-y: hidden;    /* Hides the scrollbar for a cleaner look */
    border: 2px solid #591F0A; 
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.unlock-btn {
    background-color: #EFA00B; /* Your CTA Gold */
    color: #591F0A;            /* Your Typography Red-Brown */
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border: 3px solid #D65108; /* Your Secondary Orange for a border */
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.unlock-btn:hover {
    background-color: #D65108; /* Shifts to Orange on hover */
    color: #FDFCF0;            /* Light text on hover */
    transform: scale(1.05);    /* Slight pop-out effect */
}