/* ===== DEV Toggles ===== */

/*.clickable-area {
    background-color: red;
    opacity: 0.6;
}*/


/* ========== Fonts ========== */
@font-face {
    font-family: "Architects Daughter";
    src: url("../fonts/ArchitectsDaughter.ttf");
}
@font-face {
    font-family: "MyriadPro Regular";
    src:url("../fonts/MyriadPro-Regular.otf");
}
@font-face {
    font-family: "MyriadPro Cond";
    src:url("../fonts/MyriadPro-Cond.otf");
}
@font-face {
    font-family: "MyriadPro Light";
    src:url("../fonts/MyriadPro-Light.otf");
}
@font-face {
    font-family: "MyriadPro SemiBold";
    src:url("../fonts/MyriadPro-SemiBold.otf");
}
@font-face {
    font-family: "MyriadPro Bold";
    src:url("../fonts/MyriadPro-Bold.otf");
}
@font-face {
    font-family: "MyriadPro BoldCond";
    src:url("../fonts/MyriadPro-BoldCond.otf");
}

/* ========== Root Variables ========== */
:root {
    --scale: 1vw;
}

/* Max container width, sides fill with whitespace beyond this width */
@media (min-width: 1080px) {
    :root {
        --scale: 10.8px;  /* 1% of 1080px */
    }
}

/* ========== Global ========== */
div, p {
    font-family: "MyriadPro Regular";
    font-size: calc(var(--scale) * 2);
}

html {
    margin: auto;
    font-size: 16px;
}

body {
    color: #f2f2f2;
    background-color: #000000;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    max-width: 1080px;
    margin: 0 auto;
/*    padding: calc(var(--scale) * 1.85);*/
    padding-left: 0;
    padding-right: 0;
}

body .container {
    background-image: url("../imgs/backgrounds/black-paper.jpg");
}

h1 {
    font-family: "MyriadPro Cond";
    font-size: calc(var(--scale) * 7.5);
}

.image-button {
    display: block;
    margin: 0 auto;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
}

.centered {
    text-align: center;
}

.row .pad-0 {
    padding: 0;
    margin: 0;
}

.caption {
    text-align: center;
    font-family: "MyriadPro Light";
    font-size: calc(var(--scale) * 1.9);
    line-height: 1.2;
    padding: 0;
    color: #f2f2f2;
    text-decoration: none;  /* No underline */
}

.bio {
    background-color: #e5decb;
}

.interview {
    background-color: #000000;
    color: black;
}

.interview > .container {
    background-image: url("/imgs/IV-Background.jpg");
}

.interview .caption {
    color: black;
}

/* Dark theme for audio player */
audio {
    filter: invert(100%);
    opacity: 0.7;
    margin-top: 10px;
    width: calc(var(--scale) * 35);
}

audio:hover, audio:focus {
    opacity: 1.0;
}

/* ========== Container Settings ========== */
.container {
    width: calc(var(--scale) * 100);
    height: calc(var(--scale) * 56.25);
    max-width: 1080px;
    min-height: calc(var(--scale) * 56.25);  /* 9/16 of the width */
    margin: 0 auto;
    padding: 0;
}

.container > .row, .carousel-item > .row {
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.row {
    --bs-gutter-x: 0;
}

/* ========== Scaleable Map ========== */
.image-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: calc(var(--scale) * 1.85);
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
}

.clickable-area {
    position: absolute;
    cursor: pointer;
}

.overlay-button {
    position: absolute;
    padding: calc(var(--scale) * 0.93) calc(var(--scale) * 1.85);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ========== Carousel Settings ========== */
.carousel .container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}

.carousel .container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

#carouselPages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-item {
    background-size: 100% auto;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: calc(var(--scale) * 5);
    height: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
}

.carousel-control-prev {
    left: calc(var(--scale) * 3);
}

.carousel-control-next {
    right: calc(var(--scale) * 3);
}

/* Override all opacity states to ensure arrows stay fully visible */
.carousel-control-prev,
.carousel-control-next,
.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 1;
}

/* Custom thick arrow icons */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    width: calc(var(--scale) * 6);
    height: calc(var(--scale) * 6);
    opacity: 1;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    width: calc(var(--scale) * 6);
    height: calc(var(--scale) * 6);
    opacity: 1;
}

/* Ensure arrows stay visible in all states */
.carousel-control-prev-icon,
.carousel-control-next-icon,
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    filter: none;
}

.carousel-indicators {
    position: absolute;
    bottom: calc(var(--scale) * 2);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    width: calc(var(--scale) * 1);
    height: calc(var(--scale) * 1);
    border-radius: 50%;
    margin: 0 calc(var(--scale) * 0.5);
    background-color: #666666; /* Dark grey for inactive indicators */
    border: none; /* Remove default border */
    opacity: 1; /* Ensure full opacity */
}

.carousel-indicators button {
    width: calc(var(--scale) * 1);
    height: calc(var(--scale) * 1);
    border-radius: 50%;
    margin: 0 calc(var(--scale) * 0.5);
}

.carousel-indicators .active {
    background-color: #000000; /* Solid black for active indicator */
    opacity: 1;
}

.carousel-fill-img {
    max-width: calc(var(--scale) * 64); /* Similar width to other images */
    margin: 0 auto;  /* Centers the image horizontally */
    display: block;
}

/* ========== END ========== */