/* MINDflow Insight
 *
 * Copyright 2024 Shape-Shift Studio. All rights reserved.
 *
 * This file is part of the MINDflow Insight.
 * Do not copy, modify, or distribute without permission.
 * Do not remove this notice.
 */

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2 {
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 20px 0px;
    font-size: 14px;
    min-width: 100%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.33);
}

a {
    cursor: hand;
    color: white;
    text-decoration: none;
}

.content {
    flex: 1;
    justify-content: center;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    max-width: 100px;
    max-height: 50px;
    width: auto;
    height: auto;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: white;
    margin-left: 20px;
}

header div {
    display: contents;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        align-items: center;
    }

    .header-left img {
        margin: 0 0 10px 0;
    }
}



section {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
}

#infoSection {
    display: flex;
    justify-content: center;
    align-items: center;

}

.infoFlex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.infoMessage {
    margin: 20px;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 15px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
}

.infobox {
    padding: 20px;
    background-color: #444;
    color: white;
    border-radius: 15px;
    text-align: center;
    max-width: 800px;

    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.infobox div {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
}

.infobox h2 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.infobox a {
    color: #1e90ff;
    text-decoration: none;
}

.infobox a:hover {
    text-decoration: underline;
}

.infobox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
}

.panorama {
    margin: 20px 0;
    height: 60vh;
    position: relative;
}

.panoramaListContainer {
    display: flex;

    gap: 10px;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
}

.panoramaListButton {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    align-self: flex-end;
    font-size: 24px;
}

#panoramaList {

    margin: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;

    display: none;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.25s ease-in-out, opacity 0.25s ease-in-out;
    white-space: nowrap;
}

#panoramaList button {
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 5px;
    border: none;
    padding: 8px;
}

#panoramaList button.active {
    background-color: #4CAF50;
    color: white;
}

.hotspot {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: absolute;
}

.hotspot-inner {
    width: 24px;
    height: 24px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
}

.hotspot-inner div.icon {
    font-size: 24pt;
    padding: 5px;
    min-width: 42px;
    text-align: center;
    border-radius: 29px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
}

.hotspot-inner img {
    width: 100%;
    height: 100%;
}

.hotspot-inner .description {
    display: none;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotspot:hover .description {
    display: block;
    opacity: 1;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #333;
}

#pano {
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
    width: 100%;
    height: 60vh;
    position: relative;
    background: #000;
}



.vertical-button-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.vertical-button-list button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.vertical-button-list button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



#toggleDeviceOrientation {}

#toggleDeviceOrientation img {
    width: 24px;

}

#toggleDeviceOrientation .disable {
    display: none;
}

#toggleDeviceOrientation.enabled .disable {
    display: block;
}

#toggleDeviceOrientation.enabled .enable {
    display: none;
}


#nav-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.nav-row {
    display: flex;
    justify-content: center;
}



/* Carousel CSS*/

.carousel-container {
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.33);
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    user-select: none;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
    transform: translateX(-100%);
}

.carousel-inner:active {
    cursor: grabbing;
}

.carousel-item {
    flex: 1 0 100%;
    height: 60vh;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrow Button Styles */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 5;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Pagination Dots Styles */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.carousel-dots .dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.carousel-dots .dot.active {
    background-color: #717171;
}

@media (max-width: 768px) {

    /* Adjust height for smaller screens */
    .carousel-item {
        height: 30vh;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 20px 0px;
    font-size: 14px;
    min-width: 100%;
}

.footer-left,
.footer-right,
.footer-center {
    display: flex;
    align-items: center;
}

.footer-left img,
.footer-right img {
    margin-right: 20px;
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.footer-left p,
.footer-right p,
.footer-center p {
    margin: 4px 0;
}

.footer-right {
    text-align: left;
}

.footer-left>div {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-right>div {
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-center>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        align-items: center;
    }

    .footer-left img,
    .footer-right img {
        margin: 0 0 10px 0;
    }

    .footer-right>div {
        margin-right: 0;
    }
}