/* ===================== RESET & BASE ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #f5f5f7;
    color: #333;
    line-height: 1.6;
}
/* ===================== MISSION WORDS ===================== */
.mission-words-display {
    text-align: center;
    margin: 2rem auto;
    font-size: 1.6rem;
    font-weight: 600;
    color: #444;
}
/* ===================== HEADER ===================== */
header {
    background: #1a1a1d;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===================== GAME CONTAINER ===================== */
.game-container {
    width: 90vw;
    max-width: 800px;
    height: 60vh;
}

@media(max-width:600px){
    .game-container { height: 45vh; }
    .ball { width: 45px; height: 45px; }
    .score { font-size: 1.2rem; }
}

/* ===================== NAVIGATION ===================== */
nav {
    background: #27272b;
    padding: .75rem 0;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    padding: .5rem .75rem;
    transition: .25s;
}

nav a:hover,
nav a.active {
    background: #3b3b40;
    border-radius: 6px;
    color: #fff;
}

/* ===================== MOBILE NAVIGATION (Slide-in Drawer) ===================== */
.nav-toggle {
    display: none;
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    transition: 0.4s ease;
}

/* Hamburger → X animation */
.nav-open-btn span:nth-child(1){ transform: rotate(45deg) translate(5px, 6px); }
.nav-open-btn span:nth-child(2){ opacity: 0; }
.nav-open-btn span:nth-child(3){ transform: rotate(-45deg) translate(5px, -6px); }

/* Slide-in menu container */
nav ul {
    display: flex;
    flex-direction: row;
}

@media(max-width:850px){
    nav ul {
        flex-direction: column;
        gap: 1.2rem;
        position: fixed;
        top: 0;
        right: -260px;
        width: 250px;
        height: 100vh;
        padding-top: 6rem;
        background: #1e1e21;
        box-shadow: -2px 0 15px rgba(0,0,0,0.4);
        transition: 0.4s ease;
        z-index: 1000;
    }

    nav.nav-open ul {
        right: 0;
    }

    .nav-toggle { display: flex; }
}

/* Overlay behind sliding menu */
#navOverlay {
    display: none;
}

@media(max-width:850px){
    #navOverlay {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.55);
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    #navOverlay.active {
        opacity: 1;
        pointer-events: all;
    }
}


/* ===================== CONTENT ===================== */
.content {
    max-width: 1000px;
    margin: 2rem auto;
    text-align: center;
    padding: 1rem 2rem;
}

.small-paragraph,
.medium-paragraph {
    font-size: 1.15rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

@media(max-width:600px){
    .content { padding: 1rem; }
    .small-paragraph, .medium-paragraph { font-size: 1rem; padding: 1rem; }
}

/* ===================== LOTTERY & LOGO ===================== */
.lottery-and-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto;
    flex-wrap: wrap;
}

#lotteryFrame {
    width: 350px;
    height: 300px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.Logo {
    height: 200px;
    object-fit: contain;
}

@media(max-width:600px){
    #lotteryFrame { width: 95%; height: 250px; }
    .Logo { height: 140px; }
}

/* Polaroid Album Layout */
.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Individual Polaroid */
.album {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 230px;       /* prevents huge scaling on large screens */
    margin: auto;
}

.album img {
    width: 100%;
    height: 220px;          /* consistent height */
    object-fit: cover;      /* crop evenly instead of stretching */
    border-radius: 4px;
}

/* Caption if you have one */
.album p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Hover effect */
.album:hover {
    transform: scale(1.04) rotate(0deg);
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Mobile layout */
@media (max-width: 600px) {
    .album img {
        height: 160px;     /* smaller photos for small screens */
    }
}


/* ===================== PRODUCT-GALLERY ===================== */
@media(max-width:900px){
    .album { width: 90%; }
}

/* Default carousel layout (desktop) */
.carousel-container {
    overflow: hidden; /* hides extra slides */
    display: block;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
}

/* Mobile: stack carousel items vertically */
@media (max-width: 768px) {
    .carousel-track {
        display: block;   /* stack vertically */
        transform: none !important;
        width: 100%;
    }

    .carousel-item {
        width: 90%;           /* make them smaller than full screen */
        max-width: 350px;     /* prevents huge images */
        margin: 0 auto 1rem;  /* center them & add spacing */
    }

    .carousel-item img {
        width: 100%;          /* fill container */
        height: auto;         /* keep aspect ratio */
        object-fit: cover;    /* crop nicely if needed */
        border-radius: 8px;
    }

    .carousel-btn {
        display: none;        /* hide buttons */
    }
}

/* ===================== TEAM DISPLAY ===================== */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    padding: 1rem 2rem;
    justify-items: center;
}

/* Each Team Member Card */
.team-member {
    background: white;
    padding: 14px;
    border-radius: 10px;
    max-width: 250px;  /* prevents weird huge scaling */
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Team Member Photo */
.team-member img {
    width: 100%;
    height: 260px;          /* consistent height */
    object-fit: cover;      /* prevents stretching, keeps framing even */
    border-radius: 6px;
}

/* Member Name */
.team-member h3 {
    font-weight: 700;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}

/* Role / Description */
.team-member p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Hover lift effect */
.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .team-member img {
        height: 190px;
    }
}


/* ===================== GAME CONTAINER ===================== */
.game-container {
    width: 90vw;
    max-width: 800px;
    height: 60vh;
}

@media(max-width:600px){
    .game-container { height: 45vh; }
    .ball { width: 45px; height: 45px; }
    .score { font-size: 1.2rem; }
}

/* ===================== LIGHTBOX ===================== */
#lightbox img {
    max-width: 95%;
    max-height: 95%;
}

/* ===================== FOOTER ===================== */
footer {
    background: #1a1a1d;
    color: #fff;
    text-align: center;
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-size: .9rem;
}

@media(max-width:550px){
    header h1 { font-size: 1.7rem; }
}
