* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── hamburger button ── */
.hamburger {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}


/*calls for the open class inside the hamburger button which is controlled by javascript file(open, close)*/
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── desktop nav (always visible) ── */
.nav-menu {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.6;
}

/*---language buttons----*/
.lang-switcher {
    display: flex;
    gap: 6px;
}

.lang-btn {
    padding: 2px 10px;
    border: 1px solid black;
    border-radius: 20px;
    font-size: 0.8rem;
}

.lang-btn.active {
    background: black;
    color: white;
}

/*mobile max 768px*/
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: relative;
        width: 100%;
        background: #f5b667;
        padding: 0.5rem 0;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .nav-menu li {
        border-bottom: none;
        /* removes the divider lines */
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px 1rem;
    }

    .lang-switcher {
        display: flex;
        justify-content: center;
        padding: 10px 1rem;
        gap: 8px;
    }
}

/* ── responsive — photos wrap but never resize ── */
@media (max-width: 900px) {
    .team-container {
        gap: 30px;             /* tighter gap on medium screens */
    }
}

@media (max-width: 600px) {
    .team-container {
        gap: 20px;             /* even tighter on small screens */
        justify-content: center;
    }
}

/* ── Trailer + download button ──*/
/*Background box for tailer + download*/
#trailer {
    background-color: #f5b667;
    border: 3px solid #8B4513;
    border-radius: 8px;
    /* mobile: tighter padding */
    padding: 16px 10px;
    margin-bottom: 6px;
    text-align: center;
    /* centers the heading */
}

/*Controls elements inside*/
.trailer-container {
    display: flex;
    /* mobile: stack vertically */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* stacks on small screens */
}

#trailer h1 {
    text-align: center;
    margin-bottom: 16px;
    /* gap between heading and content below */
}

.trailer-left {
    flex: 1;
}

/*Controls the positioning of download button*/
.trailer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* mobile: full width so iframe fills correctly */
    width: 100%;
}

/* responsive iframe wrapper — fixes overflow on mobile
   padding-bottom 56.25% = 16:9 ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;      /* add this — caps it at original size on desktop */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* TABLET — 480px*/
@media (min-width: 480px) {
    #trailer {
        padding: 24px 16px;
    }

    .trailer-right {
        width: auto;
        flex: none;
        max-width: 560px;
    }
}

/*LARGE TABLET — 768px*/
@media (min-width: 768px) {
    #trailer {
        padding: none;
    }

    .trailer-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
    }

    .video-wrapper {
        width: 560px;
        padding-bottom: 0;
        height: 315px;
    }

    .trailer-right {
        width: 560px;
        flex: none;
    }
}

/* Team container, sets background photo + layout */
#team {
    background-color: #f5b667;
    border: 3px solid #8B4513;
    border-radius: 8px;
    /* mobile: tighter padding */
    padding: 16px 10px;
    margin-bottom: 6px;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

/* Flex container for team member cards, puts them in a row */
.team-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* mobile: tighter gap */
    gap: 16px;
    padding-top: 16px;
    flex-wrap: wrap;
}

/*Invidual team-member cards*/
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;              /* matches photo width exactly */
    text-align: center;
}

/* text under cards */
.team p {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Positioning of the title text for the box, spaghetti but it works :) */
.team-title {
    display: block;
    /* removes absolute positioning */
    position: static;
    /* resets any absolute/relative */
    transform: none;
    /* removes the transform offset */
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    /* space between title and photos */
    color: black;
    font-weight: bold;
}


/*h2 header alignment */
#team h2 {
    align-items: center;
    margin-bottom: 30px;
}

/* Scales the team-member photos to wanted size/shape */
.member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/*TABLET — 480px*/
@media (min-width: 480px) {
    #team {
        padding: 24px 16px;
    }

    .team-container {
        gap: 24px;
        padding-top: 24px;
    }
}

/*DESKTOP — 1024px*/
@media (min-width: 1024px) {
    #team {
        padding: 30px 20px;
    }

    .team-container {
        gap: 40px;
        padding-top: 30px;
    }
}

/*Outer section element for the sponsors box*/
#sponsors {
    background-color: #f5b667;
    border: 3px solid #8B4513;
    border-radius: 8px;
    /* mobile: tighter */
    padding: 12px 10px;
    margin-bottom: 6px;
    width: 100%;
    /* match the other boxes */
    box-sizing: border-box;
    display: block;
    /* override the flex that was there */
    text-align: center;
}

/*Inner box that holds the content, controls the scaling of the box on wider screens + auto centers it inside the sponsors outer element*/
.sponsor-box {
    max-width: 800px;
    margin: 0 auto;
}

/*Flex row that holds the images side by side*/
.photo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* mobile: tighter gap */
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding-top: 12px;
}

/*Invidual collabarator logo image settings*/
.sponsor-photos {
    /* mobile: smaller logos */
    width: clamp(100px, 28vw, 250px);
    height: auto;
    object-fit: contain;
}

/*DESKTOP — 1024px
   sponsors full size logos*/
@media (min-width: 1024px) {
    #sponsors {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .sponsor-photos {
        width: 250px;
    }
}

/*Game logo picture settings + positioning*/
.logo {
    /* mobile: wider relative to screen */
    width: clamp(180px, 65%, 500px);
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/*Top bar that contains the nav + hamburger*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    height: auto;
    width: 100%;
}

/*Controls the bodys "general" settings, font, font size etc. */
body {
    font-family: 'Rubik';
    line-height: 1.5;
    /* mobile: smaller base font */
    font-size: clamp(14px, 3.5vw, 20px);
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('Photos/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* mobile: small side padding */
    padding: 0 4px;
}

/*TABLET — 480px*/
@media (min-width: 480px) {
    body {
        padding: 0 8px;
    }
}

/*DESKTOP — 1024px*/
@media (min-width: 1024px) {
    body {
        font-size: 20px;
        padding: 0;
    }
}

/*background box for info box, includes positioning and size*/
#info {
    background-image: none;
    background-color: #f5b667;
    border: 3px solid #8B4513;
    border-radius: 8px;
    /* mobile: tighter padding */
    padding: 20px 14px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 6px;
    text-align: center;
}

/*DESKTOP — 1024px+*/
@media (min-width: 1024px) {
    #info {
        padding: 40px 20px;
        margin-bottom: 8px;
    }
}

/*info boxes header2 positioning*/
.info-box h2 {
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

/*Positioning and file for logo*/
.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centers logo and nav horizontally */
    justify-content: center;
    background-color: #f5b667;
    border: 3px solid #8B4513;
    border-radius: 8px;
    /* mobile: tighter padding */
    padding: 16px 12px;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

/*TABLET — 480px*/
@media (min-width: 480px) {
    .logo-box {
        padding: 22px 16px 16px 16px;
        margin-bottom: 8px;
    }
}

/* DESKTOP — 1024px*/
@media (min-width: 1024px) {
    .logo-box {
        padding: 30px 20px 20px 20px;
    }
}

/*Selects font for all the headers on the page*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rubik';
    color: black;
}
