/* 1. FONT DECLARATIONS */
@font-face {
    font-family: 'PP Neue Machina';
    src: url('fonts/NeueMachina-Bold.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'PP Neue Machina Light';
    src: url('fonts/NeueMachina-Light.otf') format('opentype');
    font-weight: 300;
}

/* 2. BASE STYLES */
:root {
    --bg-blue: #0034CE;
    --white: #FFFFFF;
    --hover-grey: #B5B4B4;
    --container-width: 600px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--bg-blue);
    color: var(--white); /* Restores white text */
    font-family: 'PP Neue Machina', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-transform: uppercase;
    text-align: center;
    overflow-x: hidden;
}

/* 3. HEADER/LOGO */
.main-header {
    width: 95%;
    max-width: var(--container-width);
    margin: 40px 0 50px 0;
}

.logo {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: bold;
    line-height: 1;
}

.subtitle {
    font-family: 'PP Neue Machina Light', sans-serif;
    font-size: clamp(0.7rem, 2vw, 1.2rem);
    margin-top: 15px;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* 4. HOMEPAGE GRID & BUTTONS */
.center-content {
    width: 95%;
    max-width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.random-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-box {
    background: var(--white);
    color: var(--bg-blue);
    border: none;
    flex: 1;
    height: 70px;
    font-family: 'PP Neue Machina', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 50px;
}

.letter-link {
    background: var(--white);
    color: var(--bg-blue);
    text-decoration: none;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background 0.2s;
}

.letter-link:hover { background: var(--hover-grey); }

/* 5. VIDEO & CARD PAGE LAYOUT */
.video-container {
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-frame img, video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.bottom-interface { margin-top: 30px; }

.control-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white); 
    padding: 10px 20px;
    font-family: 'PP Neue Machina Light', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* 6. NAVIGATION & FOOTER */
.about-nav { padding: 60px 0; }
.back-link { 
    color: var(--white); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.1rem; 
    border-bottom: 1px solid var(--white); /* Makes the link visible */
}

/* 7. MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .alphabet-grid { grid-template-columns: repeat(3, 1fr); }
    .random-actions { width: 100%; }
    .btn-box { height: 60px; font-size: 0.8rem; }
}
