
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  /* // <weight>: Use a value from 100 to 700
  // <uniquifier>: Use a unique and descriptive class name
   */
  .josefin-sans{
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
  }



  body {
    font-family: Helvetica, sans-serif;
    line-height: 1.6;
    margin: 24px;
    height: 100vh;
    margin-left: 5%;
    margin-right: 5%;
}


header {
    position: fixed; /* Makes it stick to the top */
    top: 0; /* Ensures it stays at the top */
    left: 0;
    width: 90vw; /* Full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    overflow: hidden; /* Prevents scrolling inside the header */
    background-color: white; /* Add background to avoid content overlap */
    padding: 16px 5%;
    height: 56px;
}




.footer {
    position:relative;
    color: rgb(0, 0, 0); /* White text for readability */
    padding-top: 160px;
    padding-bottom: 24px;
    width: 90vw;
    font-size: 12px;
    text-align: center;
    align-items: center;
}

a {
    text-decoration: none;
}




nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

nav ul {
    /* font-family: "Josefin Sans", sans-serif; */
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

/* Regular language toggle */
.language-toggle {
    display: flex !important;  /* Always show on desktop */
    margin-left: 1rem;
    margin-right: 0;
    order: 2;
}

/* Nav language toggle */
.nav-language-toggle {
    display: none;  /* Hidden by default on desktop */
}

.nav-language-toggle button {
    width: 80px;
    height: 24px;
    padding: 2px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #fff;
    color: white;
}

.nav-language-toggle button:hover {
    background-color: white;
    color: #333;
}

.language-toggle button {
    width: 80px;
    height: 24px;
    padding: 2px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background-color: rgb(255, 255, 255);
    border: 1px solid #000;
    color: black;
}

.language-toggle button:hover {
    background-color: black;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    
    color: black;
    white-space: nowrap;
}

#logo-zh{
    font-size: 24px;
}
#logo-en{
    font-size: 16px;
}


main {
    margin-top: 16px;
    width: 90vw;
    overflow-x: hidden;
}

/* Filmography specific styles */
.filmography-container {
    /* width: 90vw; */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.film-category {
    margin-bottom: 4rem;
}

.film-category h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.film-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1vh;     /* 20px vertical gap */
    column-gap: 1vw; 
   
}

.film-item {
    flex: 0 0 24%;
    display: flex;
    flex-direction: column;
    /* padding: 10px; */
}

.film-poster {
    width: 100%;
    aspect-ratio: 2/3;  /* Standard movie poster ratio */
    /* overflow: hidden; */
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.film-poster img:hover {
    transform: scale(1.05);
}

.film-info {
    flex: 1;
    padding-top: 5px;
    padding-bottom: 20px;
}

.film-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.film-info p {
    font-size: 14px;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
    color: #666;
}

@media screen and (max-width: 768px) {
    .film-item {
        flex: 0 0 46%;
    }

    .film-poster {
        aspect-ratio: 2/3; /* 这里加上这一行以确保小屏时仍保持比例 */
    }

    .film-list {
        display: flex;
        flex-wrap: wrap;
        row-gap: 1vh;     /* 20px vertical gap */
        column-gap: 5vw; 
       
    }
}

@media screen and (max-width: 840px) {
    .hamburger {
        display: flex;
        order: 2;
        margin-left: 16px;
    }

    .language-toggle {
        display: none !important;  /* Hide header toggle on mobile */
    }

    .nav-language-toggle {
        display: block;  /* Show nav toggle in hamburger */
        margin: 1.5rem 0;
    }

    .logo {
        font-size: 14px;
        white-space: normal;
        order: 0;
    }

    main {
        width: 100%;
        margin-top: 7vh;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #333;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        color: white;
    }

    /* Add these styles */
    nav ul li.nav-language-toggle {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    nav ul li.nav-language-toggle a {
        display: flex;
        justify-content: center;
    }

    nav ul li.nav-language-toggle button {
        background-color: transparent;
        color: white;
        border-color: white;
        margin: 0 auto;  /* Center the button */
    }

    nav ul li.nav-language-toggle button:hover {
        background-color: white;
        color: #333;
    }
}

@media screen and (max-width: 480px) {
    body {
        margin: 12px;
        width: calc(100vw - 24px);
    }

  
    .film-category {
        margin-bottom: 2rem;
    }

    .film-category h2 {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .film-poster {
        width: 100%;
    }

    

    .language-toggle {
        display: none;
    }
}