
/* Font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #002b49;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

a {
    color: #164331;
}

/* Overlay styling */
h1, h2, h3, h4, h5, h6 {
    color: #164331;
    font-weight: bold;
}

h1 {
    padding-bottom: 36px;
}

h3 {
    color: #002b49;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
    padding: 20px;
}

/* Style for the timeline years */
.timeline-year {
    font-size: 1.5rem;
    position: relative;
    padding-left: 2em;
    cursor: pointer;
    color: #002b49;
    text-decoration: none !important;
}

/* Carousel Controls Styling */

/* Customize the carousel control icons to be black */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 40px;
    height: 40px;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background-color: black;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.carousel-control-prev-icon::after {
    mask-image: url('data:image/svg+xml;utf8,<svg fill="black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M5 0L0 4l5 4V0z"/></svg>');
}

.carousel-control-next-icon::after {
    mask-image: url('data:image/svg+xml;utf8,<svg fill="black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M3 0l5 4-5 4V0z"/></svg>');
}

/* Position the carousel controls at the bottom */
.carousel-control-prev,
.carousel-control-next {
    position: fixed;
    bottom: 20px;
    top: auto;
    width: auto;
    opacity: 1;
    background: transparent;
}

/* Position the previous arrow to the left */
.carousel-control-prev {
    left: 20px;
}

/* Position the next arrow to the right */
.carousel-control-next {
    right: 20px;
}

/* Remove default hover effects and maintain consistent color */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: transparent;
    opacity: 1;
}

/* BUTTON STYLE */

.btn {
    font-size: 1.5rem;
}

#currentLayerIcon {
    font-size: 1.25rem;
}

#resetButton {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: transparent;
}

/* Primary Button Override */
.btn-primary {
    background-color: #002b49;
    border-color: #002b49;
    color: #fff;
}

/* Hover State */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #000d16;
    border-color: #000d16;
    color: #fff;
}

/* Active State */
.btn-primary:active,
.btn-primary.active {
    background-color: #000d16;
    border-color: #000d16;
    color: #fff;
}

/* Disabled State */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #002b4980;
    border-color: #002b4980;
    opacity: 0.65;
    color: #fff;
}

/* AR BUTTONS */

.layer-button-wrapper {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    padding-right: 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

#changeLayerBtn {
    margin-right: 10px;
    /* Space between button and icon */
}

.icon-section {
    padding: 5px;
    /* Adjust padding as necessary */
    color: white;
    /* Color for the icon */
    display: flex;
    align-items: center;
}

/* PAGE BUTTONS */

/* Position the Close and Back buttons at the bottom center */
#overlay .close-btn,
#overlay .back-btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    /* Ensure they are above other elements */
}

/* RESPONSIVE ADJUSTMENTS */

/* Ensure the overlay content is scrollable on smaller screens */
@media (max-width: 768px) {
    #overlay {
        padding: 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        bottom: 10px;
        /* Slightly adjust for smaller screens */
    }

    /* Adjust timeline-year font size */
    .timeline-year {
        font-size: 1.2rem;
    }
}

/* Ensure Year Overlay Covers Entire Viewport */
#yearOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Image Styling */
#imageModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#imageModal .modal-body img {
    max-width: 100%;
    max-height: 100vh;
}

/* Ensure the carousel controls do not interfere with modal */
.modal {
    z-index: 4000;
    /* Higher than overlay */
}

/* Orientation alert */ 
#orientation-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    /* Higher than typical content */
}

#orientation-alert .alert {
    max-width: 90%;
    text-align: center;
}

/* Hidden by default */
.hidden {
    display: none !important;
}