body {
    padding: env(safe-area-inset);
}

/* ---------- GLOBAL BUTTONS ---------- */

button {
    align-self: center;
    padding: 20px;
    width: 30vw;
    margin: 15px 0;
    border-radius: 25px;
    transition: 0.5s ease;
    cursor: pointer;
    font-size: 20px;
    will-change: transform, opacity;
}

/* ---------- LANDING NAVBAR ---------- */

.menuBar.landingPage {
    background-color: transparent;
    box-shadow: none;
}

.menuBar.landingPage #menuButton {
    color: white;
}

.menuBar.landingPage #logo {
    filter: brightness(0) invert(1);
}

.menuBar.landingPage .userName {
    color: white;
}

.signOutMenu.landingPage {
    background-color: transparent;
    box-shadow: none;
}

/* ---------- HERO VIDEO ---------- */

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 41.9%;
    overflow: hidden;
    background-color: black;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-controls {
    position: absolute;
    bottom: 1%;
    right: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    color: white;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
    width: fit-content;
    margin: 0;
}

/* ---------- AWARDS ---------- */

.awards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: black;
    width: 100%;
    gap: 2vw;
}

.carouselContainer {
    overflow: hidden;
    width: calc(100vw - 120px);
}

.carouselTrack {
    display: flex;
    gap: 6vw;
    transition: 0.5s ease-in-out;
    width: max-content;
    padding: 0 2px;
}

.carouselTrack img {
    margin: 10px 0;
    width: calc((100vw - 100px - 4vw - 24vw) / 5);
    flex: 0 0 calc((100vw - 100px - 4vw - 24vw) / 5);
    height: auto;
}

.awards .material-icons {
    color: white;
    font-size: 40px;
    cursor: pointer;
    will-change: transform, opacity;
}

/* ---------- THE CONSEQUENCE ---------- */

.theConsequence {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: black;
    padding: 20px;
}

.theConsequence h2,
.theConsequence h4 {
    padding-bottom: 20px;
    margin: 0;
    color: white;
}

.theConsequence button {
    color: white;
    background-color: black;
    border: solid white;
}

.theConsequence button:hover {
    color: black;
    background-color: white;
    border: solid white;
    transform: scale(1.05);
}

/* ---------- BROWN GIRL INDIE FILMS ---------- */

#BGIFilmsTitle {
    font-family: custom_font;
}

.brownGirlFilms {
    padding: 20px;
}

.brownGirlFilms h2,
.brownGirlFilms h4 {
    color: black;
    margin: 0;
    padding-bottom: 20px;
}

.brownGirlFilms .textLogo {
    display: flex;
    align-self: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
}

.brownGirlFilms .textLogo img {
    width: 200px;
    height: 200px;
    margin-left: 10px;
    margin-right: 15px;
    align-self: center;
}

.textButton {
    display: flex;
    flex-direction: column;
}

.brownGirlFilms #text {
    align-self: flex-start;
    text-align: left;
    padding-top: 0;
}

.brownGirlFilms button {
    color: black;
    background-color: white;
    border: solid black;
    align-self: center;
}

.brownGirlFilms button:hover {
    color: white;
    background-color: black;
    border: solid black;
    transform: scale(1.05);
}

/* ---------- OTHER PROJECTS ---------- */

.otherProjects {
    position: relative;
    overflow: hidden;
    background-color: black;
    padding: 20px;
    text-align: center;
}

.otherProjects h2 {
    color: white;
    will-change: transform, opacity;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4%;
    padding-bottom: 20px;
}

.project {
    perspective: 1200px;
    flex: 1 1 300px;
    max-width: 300px;
    border-radius: 20px;
    padding: 2px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.project:hover {
    transform: translateY(-8px);
}

.flipCardInner {
    position: relative;
    width: 100%;
    height: 440px;
    border: solid 2px #d4af37;
    border-radius: 20px;
    background: black;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transition: transform 0.8s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22),
        0 0 0 rgba(212, 175, 55, 0);
    animation: goldBorderPulse 3.8s ease-in-out infinite;
    will-change: transform;
}

.project:hover .flipCardInner {
    transform: rotateY(180deg);
    box-shadow:
        0 0 10px rgba(212, 175, 55, 0.18),
        0 0 18px rgba(212, 175, 55, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.flipCardFront,
.flipCardBack {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.flipCardFront {
    z-index: 2;
    transform: rotateY(0deg) translateZ(1px);
}

.flipCardBack {
    background-color: black;
    color: white;
    transform: rotateY(180deg) translateZ(1px);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.flipCardFront img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flipCardTitle{
  margin: 8px 0 10px 0;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 600;
}

.flipCardBack .date{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.flipCardBack .date .material-icons{
    color: #ffd700;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.flipCardBack .date h5{
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.project:hover .flipCardFront img {
    transform: scale(1.04);
}
.flipCardBack {
    background-color: black;
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: background-color 0.35s ease;
}

.flipCardBack .material-icons {
    color: #ffd700;
}

.flipCardBack p,
.flipCardBack h5 {
    margin-top: 5px;
    margin-bottom: 15px;
}

.flipCardDesc {
    margin: 0;
    font-weight: normal;
}

/* ---------- EDUCATIONAL PROGRAMME ---------- */

.educationalProgramme {
    position: relative;
    background-image: url("../content/pictures/other/theatreSchool(Filler).png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: white;
    text-align: center;
}

.educationalProgramme::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.educationalProgramme .overlayContent {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.educationalProgramme h2 {
    margin-bottom: 20px;
    color: white;
    will-change: transform, opacity;
}

.educationalProgramme h4 {
    color: white;
}

.educationalProgramme button {
    color: white;
    background-color: transparent;
    border: solid white;
}

.educationalProgramme button:hover {
    background-color: white;
    border: solid black;
    color: black;
}

/* ---------- MISC ---------- */

.award-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin: 0 8px;
    transition: transform 0.3s ease;
}

/* ---------- ANIMATIONS ---------- */

@keyframes goldBorderPulse {
    0% {
        border-color: #b8891b;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.22),
            0 0 0 rgba(212, 175, 55, 0);
    }
    50% {
        border-color: #f0cf69;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.22),
            0 0 8px rgba(212, 175, 55, 0.14),
            0 0 16px rgba(212, 175, 55, 0.08);
    }
    100% {
        border-color: #b8891b;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.22),
            0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes goldInnerGlow {
    0% {
        opacity: 0.18;
    }
    50% {
        opacity: 0.42;
    }
    100% {
        opacity: 0.18;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
    .project {
        flex: 1 1 100%;
        max-width: 90vw;
    }

    button {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        font-size: 20px;
    }

    .carouselTrack img {
        width: calc((100vw - 100px - 4vw - 12vw) / 2) !important;
        flex: 0 0 calc((100vw - 100px - 4vw - 12vw) / 2) !important;
    }

    .video-controls {
        bottom: 10px !important;
        right: 10px !important;
    }

    .video-controls i {
        font-size: 20px;
    }

    .video-controls button {
        padding: 0;
    }


    .brownGirlFilms {
        position: relative;
        text-align: center;
    }

    .brownGirlFilms .textLogo {
        flex-direction: column;
        align-items: center;
    }

    .brownGirlFilms .textLogo img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 220px;
        opacity: 0.08;
        pointer-events: none;
    }

    .brownGirlFilms #text {
        text-align: center;
    }

    .educationalProgramme {
        padding: 50px 20px;
    }
}

/* ---------- HOVER DEVICES ---------- */

@media (hover: hover) and (pointer: fine) {
    .video-controls button:hover {
        transform: scale(1.2);
    }
}