@import url('https://fonts.googleapis.com/css2?family=BBH+Bogle&display=swap');

body {
    font-family: 'BBH Bogle', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100svh; /* Use small viewport height for mobile browsers */
    background-color: #000;
    overflow: hidden;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    overflow: hidden;
    width: 90%;
}

.slide {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.text {
    color: #fff;
    font-size: 2rem;
    padding: 15px;
    height: 100px; /* Fixed height to prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev, .next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,1);
    z-index: 100;
}

.next {
    right: calc((100vw - 1000px) / 2);
    border-radius: 3px 0 0 3px;
}

.prev {
    left: calc((100vw - 1000px) / 2);
}

@media only screen and (max-width: 1100px) {
    .next {
        right: 10px;
    }
    .prev {
        left: 10px;
    }
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,1);
}

@media only screen and (max-width: 600px) {
    .prev, .next {
        display: none !important;
    }
}

/* Swipe Hint Animation */
.swipe-hint {
    position: fixed;
    top: calc(50% - 50px); /* Center vertically relative to the image area which is centered in the viewport, minus half the height of the text container approx */
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    background-color: #000;
    padding: 20px;
    border-radius: 15px;
    min-width: 160px;
}

.hand-icon {
    animation: swipe-animation 1.5s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hand-icon svg {
    width: 80px;
    height: 80px;
}

.swipe-text {
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
}

@keyframes swipe-animation {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        transform: translateX(-30px);
        opacity: 1;
    }
    100% {
        transform: translateX(-30px);
        opacity: 0;
    }
}

@media only screen and (max-width: 600px) {
    .swipe-hint {
        display: flex;
    }
}

.fade-out {
    animation: fadeOut 1s forwards;
}

.hide {
    display: none;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}s