@font-face {
    font-family: 'Helvetica';
    src: url('fonts/steelfish\ bd.otf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
}

.container {
    display: flex;
    height: auto;
}

.content-section {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Ensures it takes the full height of its parent container */
}

.video-container {
    width: 80vw; /* 80% of the viewport width for responsive resizing */
    max-width: 1200px; /* Maximum width to prevent it from getting too large */
    position: relative; /* Set relative positioning to contain the absolute element */
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border: 1px solid rgb(40, 40, 40);
    border-radius: 8px;
    margin: 15vh 0; /* Vertical margin to space between video containers */
    margin-bottom: 25vh;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* No internal iframe border */
}

.video-description {
    position: absolute;
    margin-top: 20px; /* Sticks to the bottom of the video container */
    width: 100%;
    padding: 0px;
    background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent background */
    color: #ffffff;
    font-family: 'Oswald';
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    transform: translateY(0px);
}

.menu-item {
    position: relative;
    font-family: "Oswald";
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.5s ease;
    cursor: pointer;
    padding-left: 18px;
    color: #7e7e7e;
    touch-action: manipulation;
}

.menu-item:hover {
    color: #e3e3e3ab;
}

.menu-item.active {
    color: #ffffff;
}

.content {
    margin-left: 200px; /* Offset content to the right of the fixed menu */
    display: flex;
    flex-direction: column;
    padding-left: 6%;
    align-items: center; /* Center video containers */
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.menu-container {
    position: fixed; /* Keeps the menu fixed in place */
    top: 0; /* Aligns to the top of the viewport */
    left: 0; /* Aligns to the left of the viewport */
    width: 250px; /* Fixed width for the left column */
    height: 100vh; /* Full viewport height */
    background-color: #000000;
    overflow-y: auto; /* Allows scrolling within the menu if content exceeds height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
}

.menu-full {
    justify-items: center;
    transform: translate(20px, 0px);
}

.menu-header {
    text-align: center; /* Center the text inside the header */
    width: 100%; /* Ensure it takes up full width of the menu for centering */
    font-family: "Helvetica";
    font-size:35px;
    font-weight: 400;
    position: relative;
    color: rgb(255, 255, 255);
    background-color: transparent;
    letter-spacing: .75px;
    transform: scaleX(120%);
    touch-action: manipulation
}

.menu-items {
    width: 100%; /* Full width for items */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the menu items horizontally */
    transform: translate(-10px, 15px);
}

/* Photo gallery styling */
#photo-gallery {
    display: flex;
    flex-direction: column; /* Stack photos in a single column */
    align-items: center;
    margin-bottom: 5vh;
}

.photo-container {
    width: 100%; /* Full width to create one photo per row */
    max-width: 800px; /* Optional: Limit the width for better readability */
    margin-bottom: 20px; /* Space between photos */
    margin-top: 100px;
    display: flex;
    flex-direction: column; /* Stack photo and description vertically */
    align-items: center;
}

#photos-content {
    height: 100vh;         /* Set a height for the container */
    overflow-y: auto; 
    padding-right: 7vw;
    -ms-overflow-style: none;
}

#photos-content::-webkit-scrollbar {
    width: 5px;
}

#photos-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

#photos-content::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.photo-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 7vh;
}

.photo-thumbnail {
    max-width: 80vw;
    display: flex;
    align-items: center;
    justify-self: center;
    object-fit: contain; /* Ensures the photo maintains its aspect ratio */
    max-height: 70vh; /* Limit height to 80% of the viewport */
    border: 1px solid rgb(29, 29, 29);
}

.photo-description {
    margin-top: 10px; /* Space between photo and description */
    color: #ffffff;
    font-size: 15px;
    font-family: 'Oswald';
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.bio-container {
    display: flex;
    align-items: center;
    justify-content:space-between;
    width: 90%;
    max-width: 650px;
    gap: 20px;
    margin: 0 auto;
    border: 0px solid white;
    margin-top: 50vh;
    transform: translateY(-50%);  
}

/* Biography Heading Styling */
.bio-heading {
    flex: 1;
    text-align: center;
    font-size: 30px;
    font-family: 'Oswald';
    font-weight: 400;
    color: #e3e3e3;
    margin-top: 20px;
    margin-bottom: 25px;
}

.bio-text {
    flex: 1;
    color: #ffffff;
    font-family: 'Oswald';
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    justify-items: left;
}

.bio-photo {
    flex: 1;
    display: flex;
    justify-content: right;
    
}

.bio-photo img {
    width: 100%;
    max-width: 200px;
    border: 0px solid #333;
    object-fit: contain;
    
}

#contact-content {
    transform: translateY(45vh);
    
    text-align: center;
}

/* Tablet and Mobile View - 1024px and below */
@media (max-width: 1024px) {
    body {
        
        overflow: hidden;
    }

    .menu-container {
        position: fixed;
        width: 100vw;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        justify-content: center;
        padding-bottom: 2vh;
        background-color: #191919;
        height: 9vh;
        overflow-x: visible;
        border: 0px solid white;
    }

    .menu-full {
        transform: translate(0px, 5px);
    }

    /* Center "Karuna Sagar" in mobile view */
    .menu-header {
        font-size: 22px;
        font-weight: 500;
        color: white;
        text-align: center;
        width: 100%;
        touch-action: manipulation
    }

    .menu-items {
        display: flex;
        flex-direction: row;
        padding-top: 1vh;
        padding-bottom: 0vh;
        justify-content: center;
        align-items: center;
        width: 100%;
        transform: translate(-10px, 5px);
    }

    .menu-item {
        width: 100%;
        font-size: 15px;
        color: rgb(135, 135, 135);
        margin: 0;
        cursor: pointer;
        touch-action: manipulation;
    }

    .menu-item:hover,
    .menu-item.active {
        color: #e9e9e9;
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 0px;
        margin-top: 3vh;
        border: 0px solid white;
    }

    #bio-content {     
        margin-top: 25vh;
        transform: translateY(-50%); 
        justify-content: space-between; 
    }

    #projects-content {
        height: 100vh;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #projects-content::-webkit-scrollbar {
        display: none;
    }

    #photos-content {
        height: 100vh;
        padding-right: 0vh;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #photos-content::-webkit-scrollbar {
        display: none;
    }

    #contact-content {
        transform: translateY(15vh);
    }
    
}
