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

/* Body background and text settings */
body {
    font-family: 'Kalam', sans-serif;
    line-height: 1.5;
    font-size: 20px;
    background-image: url('images/bc2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Main header, responsive */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #493735;
    position: relative;
    height: 100px;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'KalamBold', sans-serif;
    color: #000000;
}

/* Navigation bar styling */
nav {
    display: flex;
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Language switcher */
.language-switcher {
    display: flex;
    margin-left: auto;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

/* Mobile view - Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-top: 0;
    padding: 0;
}

/* Title styling */
.title {
    font-family: 'BoldReel', sans-serif;
    font-size: 7vw;
    color: #ffffff;
    letter-spacing: 10px;
    background-color: #493735;
    text-align: center;
    margin: 0;
    padding: 0px;
    text-shadow:
        -3px -3px 0 black,
        3px -3px 0 black,
        -3px 3px 0 black,
        3px 3px 0 black;
}

/* Main content section */
main {
    padding: 20px;
    text-align: center;
}

.container p {
    text-align: left;
}

/* Section background, padding, and styling */
section {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Button styles */
button {
    font-family: 'kalam', sans-serif;
    background-color: #493735;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 auto;
}

button:hover {
    background-color: #D9ABA6;
}

/* Trailer section styling */
.trailer-container {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    /* Set the container to 80% of its parent's width */
    max-width: 80%;
    /* Center the container horizontally */
    margin: 0 auto;
    /* Rounded corners */
    border-radius: 8px;
}

/* Iframe size and position */
.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

iframe {
    border: none;
}

/* Team-member images and roles styling */
.team {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    margin: 20px;
}

.team-img {
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    height: 150px;
    width: 150px;
}

/* Partners section styling */
#partners {
    background-color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.partners-container {
    max-width: 800px;
    margin: 0;
}

/* Gallery layout */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.gallery-item {
    width: 60%;
    max-width: 200px;
    object-fit: contain;
    margin: 0 15px;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 1em;
}

footer p {
    margin-bottom: 10px;
}

footer .footer-logo img {
    width: 100%;
    height: auto;
}

/* Media queries for responsiveness */
@media (max-width: 767px) {
    /* Adapt header to content on small screens */
    header {
        height: auto;
    }

    /* Hamburger menu icon in mobile view */
    .hamburger {
        display: block;
    }

    /* Scale title */
    .title {
        font-size: 12vw;
    }

    /* Hide menu initially, show menu when clicked */
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #493735;
        text-align: center;
        padding: 20px 0;
        flex-direction: column;
        z-index: 100; /* Show menu above other elements*/
    }

    /* When menu open, display vertically */
    nav.open ul {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Language switcher positioning */
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .gallery-container {
        flex-direction: column;
    }

    .gallery-item {
        width: 90%;
        margin-bottom: 15px;
    }

    /* Team member image positioning */
    .team-member {
        width: 90%;
        margin: 20px 0;
    }

    .team-img {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
    }

    footer {
        padding: 30px 20px;
        font-size: 1.2em;
    }
}