#popupContainer {
    height: 100%;
    width: 100%;
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 0.549);
    z-index: 1;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#flashEffect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    z-index: 999999;
    /* above everything */
}

#btnScreenshot {
    position: absolute;
    bottom: 10%;
    right: 50%;
    height: 80px;
    width: 80px;
    cursor: pointer;
    z-index: 10;
    background-color: #6ea52b;
    border-radius: 50%;
}

#popupContainer.visible {
    display: flex;
    opacity: 1;
}

#popUp {
    width: 55%;
    position: absolute;
    display: flex;
    padding: 12px;
    background-color: antiquewhite;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    flex-direction: column;
}

#popupContainer.visible #popUp {
    transform: scale(1);
}

#popUpImage {
    width: 40%;
    height: auto;
    margin-right: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
}

#popUpText {
    color: black;
    font-size: 18px;
    text-align: left;
    font-family: "Cardo", sans-serif;
    ;
}

#closePopUp {
    height: 5vh;
    width: 5vh;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    top: 5px;
    right: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

#closePopUp:hover {
    background-color: #ddd;
}

/* #startPage {
    height: 100%;
    width: 100%;
    position: absolute;
    display: none;
    background-color: white;
    opacity: 1;
    transition: opacity 0.3s ease;
    background-image: url(./models/Starting\ page\ with\ button.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 101;
}*/

/* Smooth transitions for buttons */
#controlButtons button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#controlButtons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#controlButtons button:active {
    transform: translateY(0);
}

/* Scrollbar styling for modal */
#infoModal>div::-webkit-scrollbar {
    width: 8px;
}

#infoModal>div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#infoModal>div::-webkit-scrollbar-thumb {
    background: #3d5a4d;
    border-radius: 10px;
}

#startPage.hide {
    opacity: 0;
    pointer-events: none;
}

/* === FULLSCREEN START PAGE === */
#startPage {
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    position: absolute;
    align-items: center;
    background: #0000004f;
    z-index: 100;
    font-family: "Poppins", sans-serif;
    transition: opacity 0.3s ease;
    background-color: beige;
}

/* === CONTAINER === */
#Btnpage {
    text-align: center;
    /* background-color: white; */
    padding: 5%;
    border-radius: 30px;
}

/* === HEADING === */
#Btnpage h3 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #9c7b2e;
    /* Golden brown */
}

/* === SUBTEXT === */
#Btnpage h5 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 35px;
    color: #b79a4a;
}

/* === BUTTON === */
#Btnpage button {
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #0c1b2e, #6ea52b);
    color: #fff;
    transition: 0.25s ease-in-out;
}

/* Hover should not be boring */
#Btnpage button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}


#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    display: block;
    background-color: black;
}

#loadingVideo {
    width: 50%;
    height: 50%;
    top: 25%;
    position: absolute;
    left: 25%;
    object-fit: cover;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    width: 80%;
    max-width: 900px;
    background: antiquewhite;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button */
.close-btn {
    height: 3vh;
    width: 3vh;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    top: 5px;
    right: 5px;
    cursor: pointer;
    z-index: 1;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    top: 2vh;
}

.carousel-track {
    display: flex;
    gap: 5%;
    transition: transform 0.4s ease-in-out;
}

.carousel-track img {
    width: 50%;
    border-radius: 10px;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(189, 186, 186, 0.7);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.popup-text {
    color: black;
    padding: 5px 10px;
    text-align: center;
    position: relative;
    top: 2vh;
    font-size: 20px;
    font-weight: 400;
}

/* CTA Button */
.cta-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: black;
    border: none;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    position: relative;
}