body {
    background-color: #0d0d0d;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.terminal {
    background-color: #111;
    border: 2px solid #00ff66;
    padding: 30px;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

#corrupted-link {
    color: #00ff66;
    text-decoration: none;
    cursor: default;
}

#corrupted-link:hover {
    color: #ff0055;
}
.video-grid {
  display: grid;
  /* Automatically fits as many 250px columns as possible */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px;
  padding: 20px;
}

/* Header Centering */
.archive-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.archive-header h1 {
    color: #00ff66;
    font-size: 2rem;
    margin-bottom: 10px;
}

.archive-header .subtitle {
    color: #cccccc;
    font-size: 1rem;
}

/* 4-Column Video Grid */
.video-grid-4col {
    display: grid;
    /* Forces exactly 4 equal columns on desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 0 40px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #111111;
    border: 1px solid #00ff66;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: monospace;
    padding: 10px;
    margin: 0;
    text-align: left;
}

/* Adjusts to 2 columns on smaller screens so cards don't get squished */
@media (max-width: 900px) {
    .video-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fullscreen layout for the console screen */
.console-body {
    background-color: #000000;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    height: 100vh;
    overflow: hidden; /* Prevents scrollbars from appearing during rapid output */
}

.console-wrapper {
    width: 100%;
    height: 100%;
}

#console-output {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Styling for the timed puzzle inputs */
#puzzle-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#solution-input {
    background-color: #000;
    border: 1px solid #00ff66;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px;
    flex-grow: 1;
}

#puzzle-form button {
    background-color: #00ff66;
    color: #000;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
}

#puzzle-form button:hover {
    background-color: #ff0055;
    color: #fff;
}