.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0); /* Transparent background */
    color: #fff; /* Text color for the navigation bar */
    text-align: center;
    z-index: 2; /* Ensure it's above other content */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.navbar-roles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    line-height: 1.25;
    font-family: Futura, sans-serif;
    font-weight: bold;
    color: #fff;
    letter-spacing: 3px;
    font-size: 15px;
    text-shadow:
       -1px -1px 0 rgb(138, 138, 138),
       1px -1px 0 rgb(138, 138, 138),
       -1px 1px 0 rgb(138, 138, 138),
       1px 1px 0 rgb(138, 138, 138);
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.5));
}

.navbar h1 {
    color: #fff; /* Text color for links */
    text-decoration: none;
    margin: 0; /* Adjust spacing between links */
    font-size: 36px; /* Adjust font size as needed */
    font-family: Futura, sans-serif; /* Futura font */
    font-weight: bold;
    padding: 0px;
    text-align: justify;
    letter-spacing: 10px;
       /* Add a black border-like effect using text-shadow */
    text-shadow:
       -1px -1px 0 rgb(138, 138, 138),
       1px -1px 0 rgb(138, 138, 138),
       -1px 1px 0 rgb(138, 138, 138),
       1px 1px 0 rgb(138, 138, 138);
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.5)); /* Apply drop shadow to opaque parts */
}

.navbar h1 a {
    text-decoration: none;
}

/* Add styles for active link if needed */
.navbar a.active {
    font-weight: bold;
}  

body {
    margin: 0;
    padding: 0;
}

body.is-loading {
    overflow: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1.2s ease, visibility 1.2s ease, transform 1.2s ease;
}

#loading-screen.loading-complete {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    pointer-events: none;
}

.loading-animation {
    display: block;
    width: 160px;
    height: 160px;
    max-width: 35vw;
    max-height: 35vw;
}

#loading-percentage {
    display: block;
    width: 100%;
    margin-top: 14px;
    font-size: 13px;
    color: #999;
    text-align: center;
    font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .loading-animation {
        width: 110px;
        height: 110px;
        max-width: 40vw;
        max-height: 40vw;
    }

    #loading-percentage {
        font-size: 11px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (adjust as needed) */
    margin-bottom: 20px; /* Add some spacing between each video container */
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-pause-button, .forward-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    padding: 20px; /* Add padding to increase hitbox size */
    border: none;
    cursor: pointer;
    color: transparent; /* Hide text content by setting text color to transparent */
    opacity: 0.6; /* Adjust as per your preference. Here, it's set to 60% opaque (or 40% transparent) */
    transition: opacity 0.3s; /* Smooth transition for opacity changes */
}

.play-pause-button {
    position: relative; /* Ensure it is above other elements */
    z-index: 9999; /* High z-index to bring above other elements */
    pointer-events: auto; /* Ensure the button can capture pointer events */
}

.play-pause-button {
    visibility: visible; /* default */
}

.play-pause-button:hover, .forward-button:hover {
    opacity: 1; /* Fully opaque on hover */
}

.play-pause-button:active, .forward-button:active {
    opacity: 1; /* Fully opaque when clicked */
}

.forward-button {
    left: calc(50% + 34px); /* Assuming the image size is 24px and we're giving 10px spacing */
    margin-left: 75px;
}

/* Styles for both play and pause images */
.play-pause-button img, .forward-button img {
    width: 24px; /* Adjust the image width as needed */
    height: 24px; /* Adjust the image height as needed */
    border: none;
    background-color: transparent;
    content: url('images/forward_icon.png'); /* Replace with the path to your forward icon */
    filter: drop-shadow(3px 3px 3px rgba(22, 22, 22, 0.5)); /* Apply drop shadow to opaque parts */
}

/* Style for the "Play" state */
.play-pause-button[data-state="play"] img {
    content: url('images/play_icon.png'); /* Replace with the path to your play icon */
    filter: drop-shadow(3px 3px 3px rgba(22, 22, 22, 0.5)); /* Apply drop shadow to opaque parts */
}

/* Style for the "Pause" state */
.play-pause-button[data-state="pause"] img {
    content: url('images/pause_icon.png'); /* Replace with the path to your pause icon */
    filter: drop-shadow(3px 3px 3px rgba(22, 22, 22, 0.5)); /* Apply drop shadow to opaque parts */
}

/* Style for the "Forward" state */
.play-pause-button[data-state="forward"] img {
    content: url('images/forward_icon.png'); /* Replace with the path to your forward icon */
    filter: drop-shadow(3px 3px 3px rgba(22, 22, 22, 0.5)); /* Apply drop shadow to opaque parts */
}


/* Hide the audio player and its controls */
.audio {
    display: none;
}

.video-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-family: Futura, sans-serif;
    text-align: center;
    opacity: 0; /* Initial opacity set to 0 for the fade-in effect */
    transition: opacity 2s ease; /* Smooth opacity transition */
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.8));
    z-index: 1; /* This will ensure that the text is below the buttons but above the video */
    opacity: 1; /* Make the text visible. If you want to fade it in based on certain conditions, you can control the opacity in your JS code. */
}

@keyframes hue-cycle {
    from { filter: sepia(1) saturate(2.5) hue-rotate(0deg)   drop-shadow(5px 5px 5px rgba(26,26,26,0.8)); }
    to   { filter: sepia(1) saturate(2.5) hue-rotate(360deg) drop-shadow(5px 5px 5px rgba(26,26,26,0.8)); }
}

.corner-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3; /* This ensures the icon stays above other elements on the page */
}


.corner-icon-container img {
    width: 80px; /* Adjust to your preferred size */
    height: auto; /* Adjust to your preferred size */
    opacity: 0.75; /* Adjust as per your preference. Here, it's set to 60% opaque (or 40% transparent) */
    transition: opacity 0.3s; /* Smooth transition for opacity changes */
    animation: hue-cycle 6s linear infinite;
}

.corner-icon-container img:hover {
    opacity: 1;
}

.corner-icon-container img:active {
    opacity: 1;
}

.play-pause-button img, .forward-button img {
   width: 60px;
   height: 60px;
   }


@media (max-width: 768px) {
   .video-text {
    font-size: 10px !important; /* Force smaller font on mobile */
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.8));
   }
   .navbar h1 {
    font-size: 14px;
   }

   .navbar-roles {
    font-size: 8px;
    letter-spacing: 1.5px;
   }

   .play-pause-button[data-state="forward"] img {
    width: 14px;
    height: 14px;
   }

   .corner-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3; /* This ensures the icon stays above other elements on the page */  
    }

   .corner-icon-container img {
    width: 40px; /* Adjust to your preferred size */
    height: auto; /* Adjust to your preferred size */
   }
   
   .play-pause-button img, .forward-button img {
    width: 42px !important; /* Force smaller size on mobile */
    height: 42px !important;
}

    /* Add spacing between the buttons on mobile */
    .play-pause-button {
        margin-right: 20px !important; /* Space to the right */
    }

    .forward-button {
        margin-left: 50px !important; /* Space to the left */
    }

    .about-photo {
        width: 180px;
        height: 180px;
    }

    .about-text {
        width: 210px;
        max-width: 210px;
    }

    .about-text p {
        font-size: 10px;
    }

    .about-content {
        margin: 36px auto 80px;
    }

}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-pause-button, .forward-button {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.play-pause-button img, .forward-button img {
    width: 60px;
    height: 60px;
}

/* Fade-in effect for text */
.video-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 2s ease;
}

/* When the text is in view, fade it in */
.video-container:hover .video-text {
    opacity: 1;
}

/* ── About page ─────────────────────────────────────────── */

.about-page {
    background-color: #fff;
}

.about-page .navbar {
    background-color: #fff;
    padding: 12px 20px;
}

.about-page .navbar-roles {
    color: #aaa;
    text-shadow: none;
    filter: none;
}

.about-content {
    max-width: 680px;
    margin: 60px auto 100px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes ring-hue-cycle {
    0%    { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(0,   80%, 50%); }
    8%    { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(30,  80%, 50%); }
    17%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(60,  80%, 50%); }
    25%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(90,  80%, 45%); }
    33%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(120, 80%, 42%); }
    42%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(150, 80%, 42%); }
    50%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(180, 80%, 45%); }
    58%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(210, 80%, 50%); }
    67%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(240, 80%, 58%); }
    75%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(270, 80%, 58%); }
    83%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(300, 80%, 52%); }
    92%   { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(330, 80%, 50%); }
    100%  { box-shadow: 0 0 0 6px #fff, 0 0 0 9px hsl(360, 80%, 50%); }
}

.about-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    margin-bottom: 36px;
    display: block;
    animation: ring-hue-cycle 6s linear infinite;
}

.about-text {
    width: 300px;
    max-width: 300px;
}

.about-text p {
    font-family: Futura, 'Century Gothic', sans-serif;
    font-size: 10px;
    line-height: 2;
    color: #555;
    text-align: justify;
    letter-spacing: 0.4px;
    overflow-wrap: break-word;
    margin: 0;
}

.about-text a {
    color: #555;
    text-decoration: underline;
}