body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keep the canvas behind other elements */
}

/* Overlay styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Line styling */
.black-line {
    position: absolute;
    bottom: 10%;
    left: 3%;
    width: 94%;
    height: 1px;
    background-color: rgb(24, 24, 24);
    display: flex; /* Use flexbox for even distribution of circles */
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.circle {
    position: relative; /* Ensure inner elements are positioned relative to the parent circle */
    width: 50px;
    height: 50px;
    background-color: rgb(24, 24, 24);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth animation for movement */
}

.tooltip {
    display: none; /* Hidden by default */
    position: absolute; /* Absolutely positioned relative to .black-line */
    transform: translateX(-50%); /* Center horizontally */
    background-color: rgba(255, 255, 255, 1); /* White background */
    font-size: 12px;
    font-family: Arial, sans-serif; /* Explicitly set the font */
    padding: 6px 12px; /* Independent size */
    border-radius: 4px; /* Rounded edges */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    white-space: nowrap; /* Prevent text wrapping */
    z-index: 50; /* Ensure tooltip appears above other elements */
    pointer-events: none; /* Prevent interactions with the tooltip */
}

.tooltip .gray {
    color: rgb(83, 83, 83); /* Gray color for the first part */
    font-weight: normal;
}

.tooltip .black {
    color: rgb(24, 24, 24); /* Black color for the second part */
    font-weight: bold;
}


.inner-circle {
    position: absolute;
    top: 2%; /* Center the inner circle */
    left: 2%;
    width: 96%; /* Adjust size relative to the parent circle */
    height: 96%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1); /* Fully transparent by default */
    pointer-events: none; /* Prevent interactions with the inner circle */
}

.inner-circle-logo {
    position: absolute;
    top: 0%; /* Center the inner circle */
    left: 0%;
    width: 100%; /* Adjust size relative to the parent circle */
    height: 100%;
    background: transparent;
    pointer-events: none; /* Prevent interactions with the inner circle */
}


/* Big text styling */
.big-text {
    position: absolute;
    top: 3%; /* 3% height */
    left: 3%; /* 3% width */
    font-size: 7vh; /* Height takes 7% of the viewport height */
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7); /* Optional text shadow */
    font-family: Arial, sans-serif; /* Choose a font */
    z-index: 1; /* Ensure it's above other elements */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
}

/* Normal text (RAI) */
.normal-text {
    color: rgb(83, 83, 83);
    font-weight: normal; /* Regular weight */
}

/* Bold text (W) */
.bold-text {
    color: rgb(24, 24, 24);
    font-weight: bold; /* Bold weight */
}

.content-frame {
    position: absolute;
    top: 5%; /* Already defined */
    bottom: 15%; /* Already defined */
    left: 6%;
    right: 6%;
    background-color: rgba(255, 255, 255, 0);
    z-index: 2;
    overflow: hidden; /* Prevent content spilling out of the frame */
    display: flex; /* Arrange the columns side-by-side */
}

/* Bottom navigation buttons */
.bottom-left, .bottom-right {
    position: absolute;
    bottom: 1%; /* Start 3% from the bottom */
    height: 4%; /* Occupy 4% of the viewport height */
    display: flex;
    flex-direction: column; /* Align text and arrow vertically */
    justify-content: center;
    align-items: center; /* Center-align by default */
    font-size: 2.25vh;
    font-family: Arial, sans-serif;
    color: rgb(83, 83, 83);
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

.bottom-left {
    display: flex; /* Use flexbox for easy alignment */
    justify-content: flex-start; /* Align text to the left */
    align-items: center; /* Vertically center text */
    position: absolute; /* Positioned relative to container */
    left: 2%; /* Align near the left edge */
    bottom: 2%; /* Align near the bottom edge */
    background-color: rgba(255, 255, 255, 1); /* White background */
    font-size: 2.25vh;
    height: 3vh;
    font-family: Arial, sans-serif; /* Explicitly set the font */
    padding: 6px 12px; /* Padding around the text */
    border-radius: 4px; /* Rounded edges */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.33); /* Subtle shadow */
    white-space: nowrap; /* Prevent text wrapping */
    z-index: 50; /* Ensure element appears above others */
    text-align: left; /* Align text to the left */
}


.bottom-right {
    display: flex; /* Use flexbox for easy alignment */
    justify-content: flex-end; /* Align text to the right */
    align-items: center; /* Vertically center text */
    position: absolute; /* Positioned relative to container */
    right: 2%; /* Align near the right edge */
    bottom: 2%; /* Align near the bottom edge */
    background-color: rgba(255, 255, 255, 1); /* White background */
    font-size: 2.25vh;
    height: 3vh;
    font-family: Arial, sans-serif; /* Explicitly set the font */
    padding: 6px 12px; /* Padding around the text */
    border-radius: 4px; /* Rounded edges */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.33); /* Subtle shadow */
    white-space: nowrap; /* Prevent text wrapping */
    z-index: 50; /* Ensure element appears above others */
    text-align: right; /* Align text to the right */
}


/* Top-right container for logo and text */
.top-right-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    z-index: 1;
    margin-left: auto; /* Pushes the container to the right */

}

.top-right-logo {
    position: relative; /* Make it possible to use "top" */
    top: -0.5vh;
    height: 10.5vh; /* Adjust logo size */
    object-fit: contain; /* Ensure the logo scales proportionally */
}

.top-right-num {
    font-family: Arial, sans-serif;
    font-size: 1.85vh; /* Height takes 3.5% of the viewport height */
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7); /* Optional text shadow */
    display: flex;
    font-weight: bold;
    color: rgb(83, 83, 83); /* Gray text color */
    flex-direction: column;
    align-items: flex-end; /* Aligns content to the right */
    text-align: right; /* Ensures text is right-aligned */
}

.top-right {
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7); /* Optional text shadow */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns content to the right */
    text-align: right; /* Ensures text is right-aligned */
}

.top-right-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* Align to the right */
    font-size: 5vh;
    white-space: nowrap; /* Prevent breaking inside words */
    line-height: 1; /* Reduce default line spacing */
    gap: 2px; /* Adjust spacing between wrapped elements */
}

.top-right-text span {
    display: inline-block;
    white-space: nowrap;
    margin-bottom: -0.3vh; /* Adjust this value to reduce spacing */
}


.top-right-info {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-end; /* Aligns items to the right horizontally */
    gap: 7px; /* Space between date and place */
    margin-top: 0.0vh; /* Space below the main text */
    height: 3.5vh; /* Consistent height for container */
}
    

.top-right-date, .top-right-place {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    font-size: 2vh; /* Adjust text size */
    color: rgb(83, 83, 83); /* Gray text color */
}

.calendar-icon, .country-icon {
    display: inline-block;
    width: 2vh;
    height: 2vh;
    margin-right: 5px; /* Space between icon and text */
    object-fit: contain; /* Ensure the logo scales proportionally */
    border: 0px solid black; /* Adds a thin black outline */
    border-radius: 50%; /* Optional: slightly round the corners */
}


.date-text, .place-text {
    white-space: nowrap; /* Prevent text wrapping */
}

.scroll-text {
    opacity: inherit; /* Inherits from the parent container */
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 4px white;
}
.arrow {
    font-size: 100px;
    line-height: 1;
    text-shadow: 2px 2px 4px white;
}




body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative; /* Ensure inner elements are positioned relative to the parent circle */
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative; /* Ensure inner elements are positioned relative to the parent circle */
}

.column {
    flex: 1; /* Both columns share equal space */
    height: 100%; /* Constrain columns to the content frame */
    box-sizing: border-box;
}

#image-column {
    overflow: hidden; /* Prevent scrolling for the image column */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;

    position: relative; /* For stacking images */
}

.column:nth-child(1) {
    background-color: #ffffff; /* Light background for the image column */
}

.column:nth-child(2) {
    background-color: #ffffff; /* White background for the text column */
}

.image-container {
    position: absolute; /* Stack images on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure it occupies the full column height */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center elements horizontally */
    justify-content: center; /* Center image vertically */
    background-color: transparent;

    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease; /* Smooth fade in/out effect */
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the caption with the image */
    text-align: center; /* Ensures the caption stays centered */
}


.image-container figcaption {
    margin-top: 10px; /* Add spacing between image and caption */
    text-align: center; /* Center align the text */
    font-size: 14px; /* Adjust font size as needed */
    color: #333; /* Adjust color for better visibility */
}

.image-container img {
    max-width: 100%; /* Fit to the column's width */
    max-height: 100%; /* Fit to the column's height */
    object-fit: contain; /* Maintain aspect ratio */
    background-color: transparent;
}

.image-container figure {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    max-width: 100%;
    max-height: 100%;
    background-color: transparent;
}

.image-container figure img {
    height: 85%;
    width: auto; /* Maintain aspect ratio */
}


#text-column {
    overflow-y: scroll; /* Enable vertical scrolling */
    height: 100%; /* Ensure it stays within the content frame */
    padding: 10px 0px; /* Add padding for better readability */
    box-sizing: border-box;

    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0, 0) 0%, /* Transparent start */
        rgb(255, 255, 255, 0.7) 10%, /* Black fades out */
        rgb(255, 255, 255, 0.7) 90%, /* Black fades in */
        rgb(0, 0, 0, 0) 100% /* Transparent end */
    );

    /* Apply masking to fade the content */
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%, /* Fully transparent */
        rgba(0, 0, 0, 1) 10%, /* Fully visible */
        rgba(0, 0, 0, 1) 90%, /* Fully visible */
        rgba(0, 0, 0, 0) 100% /* Fade out */
    );
    -webkit-mask-size: 100% 100%; /* Ensure the mask spans the full element */
    -webkit-mask-repeat: no-repeat; /* No repetition */
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%, /* Fully transparent */
        rgba(0, 0, 0, 0) 5%, /* Fade in */
        rgba(0, 0, 0, 1) 10%, /* Fully visible */
        rgba(0, 0, 0, 1) 90%, /* Fully visible */
        rgba(0, 0, 0, 0) 95%, /* Fully visible */
        rgba(0, 0, 0, 0) 100% /* Fade out */
    );
    mask-size: 100% 100%;
    mask-repeat: no-repeat;

    /* Hide scrollbar for Webkit browsers */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in Internet Explorer 10+ */
}

#text-column::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Webkit browsers */
}

.text-section {
    height: auto; /* Allows normal height adjustment */
    min-height: 60vh; /* Ensures a minimum height of 60vh */
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    justify-content: top; /* Align content to the top */
    padding: 20px; /* Add some padding for better readability */
    box-sizing: border-box;

    /* Text styling for emphasis */
    line-height: 1.6; /* Improves readability */
    color: #000000; /* Darker text for better contrast */
    font-family: 'Arial', sans-serif; /* Use a clean, readable font */
}

.text-section h2 {
    font-weight: 600; /* Slightly bolder than normal */
    font-family: "Playfair Display", serif; /* Elegant handwritten-style font */
    text-align: left; /* Align titles to the left */
    margin-bottom: 10px; /* Add some space below the title */
    font-style: italic; /* Make the text italic */
}

.text-section p {
    text-indent: 20px; /* Indent the first line by 20px */
    text-align: left; /* Align text to the left */
    line-height: 1.6; /* Improve readability */
}

.text-section:nth-child(odd) {
    color: rgb(24, 24, 24);
}

.text-section:nth-child(even) {
    color: rgb(24, 24, 24);
}

.divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0, 0) 0%, /* Transparent start */
        rgb(150, 150, 150, 0.6) 30%, /* Black fades out */
        rgb(150, 150, 150, 0.6) 70%, /* Black fades in */
        rgb(0, 0, 0, 0) 100% /* Transparent end */
    );
    height: 100%;
}

.pseudo-scrollbar {
    width: 10px;
    background-color: black;
    position: absolute;
    top: 0;
    border-radius: 5px;
    transition: top 0.01s linear; /* Smooth movement */
    z-index: 10; /* Ensure it stays above other elements */
}


.dividercenter {
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0, 0) 0%, /* Transparent start */
        rgba(115, 115, 115, 0.75) 20%, /* Black fades out */
        rgba(115, 115, 115, 0.75) 80%, /* Black fades in */
        rgb(0, 0, 0, 0) 100% /* Transparent end */
    );
    height: 100%;
}

.dividermid {
    width: 5vw;
    background: transparent;
    height: 100%;
}





.waveform-container-transcribe {
    position: relative;
    width: 100%; /* Ensure container stretches as needed */
    height: 100px;
    overflow: hidden;
}




.image-outline {
    display: inline-block; /* Ensures the wrapper fits the image */
    padding: 4px; /* Adds spacing around the image */
    margin: 0vh 0; /* Adds vertical space (10px above and below) */
    border: 1px solid rgb(24, 24, 24); /* Black outline */
    border-radius: 8px; /* Optional: Rounds the corners */
    max-height: 75%; /* Ensures the image doesn't overflow vertically */
    overflow: hidden; /* Ensures the image stays inside the outline */
}

.image-outline img {
    display: block; /* Removes extra spacing around the image */
    max-width: 100%; /* Ensures the image doesn't overflow horizontally */
    max-height: 100%; /* Ensures the image doesn't overflow vertically */
    object-fit: contain; /* Keeps the entire image visible */
    object-position: center; /* Centers the image inside the container */
    border-radius: 6px; /* Matches the inner image radius */
}

.image-outline-2 {
    max-height: 100%; /* Ensures the image doesn't overflow vertically */
    display: inline-block; /* Ensures the wrapper fits the image */
    padding: 4px; /* Adds spacing around the image */
    margin: 0.25vh 0; /* Adds vertical space (10px above and below) */
    border: 1px solid rgb(24, 24, 24); /* Black outline */
    border-radius: 8px; /* Optional: Rounds the corners */
    overflow: hidden; /* Ensures the image stays inside the outline */
    object-fit: contain; /* Prevents cropping */
}

.image-outline-2 video {
    width: 100%; /* Ensure the video fits the container */
    max-width: 100%; /* Prevent video from being larger than its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Make sure the entire video is visible */
    display: block; /* Remove any extra spacing issues */
}

.image-outline-none {
    display: inline-block; /* Ensures the wrapper fits the image */
    padding: 4px; /* Adds spacing around the image */
    margin: 0vh 0; /* Adds vertical space (10px above and below) */
    border-radius: 8px; /* Optional: Rounds the corners */
    max-height: 75%; /* Ensures the image doesn't overflow vertically */
    overflow: hidden; /* Ensures the image stays inside the outline */
}

.image-outline-none img {
    display: block; /* Removes extra spacing around the image */
    max-width: 100%; /* Ensures the image doesn't overflow horizontally */
    max-height: 100%; /* Ensures the image doesn't overflow vertically */
    object-fit: contain; /* Keeps the entire image visible */
    object-position: center; /* Centers the image inside the container */
    border-radius: 6px; /* Matches the inner image radius */
}

.element-constraint {
    max-height: 100%;
    height: 90%;
    object-fit: contain; /* Prevents cropping */
    max-width: 100%;
    display: flex; /* Enables flexbox */
    align-items: center; /* Centers image vertically */
    justify-content: center; /* Centers image horizontally */}


.sub-container {
    flex-direction: row; /* Stack everything vertically */
    display: flex;
}


audio {
    width: 95%;
    outline: 1px solid black; /* Thin black outline */
    border-radius: 25px; /* Optional: Slightly rounded edges */
}



@media (max-aspect-ratio: 1/1.125) {
    .container {
        flex-direction: column; /* Stack everything vertically */
    }

    #image-column {
        flex: none; /* Remove flex grow/shrink behavior */
        width: 100%; /* Full width for each column */
        height: 45%; /* Adjust height naturally */
    }

    #text-column {
        flex: none; /* Remove flex grow/shrink behavior */
        width: 100%; /* Full width for each column */
        height: 50%; /* Adjust height naturally */
        position: relative; /* Needed so the .divider stays within it */
        z-index: 1;
    }

    .image-outline {
        margin: 1vh 0; /* Adds vertical space (10px above and below) */
    }

    .content-frame {
        top: 2.5%; /* Already defined */
        bottom: 12.5%; /* Already defined */
        left: 4%;
        right: 4%;
    }

    .divider {
        position: absolute; /* Position it relative to text-column */
        top: 48.5%; /* Align to the top of text-column */
        bottom: 12.5%; /* Stretch to the bottom of text-column */
        right: 0; /* Align it to the rightmost edge */
        width: 1px; /* Thin vertical divider */
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%, /* Transparent start */
            rgb(150, 150, 150, 0.6) 10%, /* Black fades out */
            rgb(150, 150, 150, 0.6) 40%, /* Black fades in */
            rgba(0, 0, 0, 0) 50% /* Transparent end */
        );
        z-index: 2;
    }    

    .dividercenter {
        position: absolute; /* Position it relative to text-column */
        top: 48.5%; /* Align to the top of text-column */
        bottom: 12.5%; /* Stretch to the bottom of text-column */
        left: 0; /* Align it to the rightmost edge */
        width: 1px; /* Thin vertical divider */
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%, /* Transparent start */
            rgba(115, 115, 115, 0.75) 10%, /* Fades in */
            rgba(115, 115, 115, 0.75) 40%, /* Fades out */
            rgba(0, 0, 0, 0) 50% /* Transparent end */
        );
        z-index: 2;
    }    

    .big-text,
    .dividermid {
        display: none; /* Hide dividers */
    }

    #image-column {
        order: 1; /* Place the image column above */
    }

    #text-column {
        order: 2; /* Place the text column below */
    }

    .image-outline {
        max-height: 90%; /* Ensures the image doesn't overflow vertically */
    }
}

