@font-face {
    font-family: 'Euclid Circular B';
    src: url('/Fonts/EuclidCircularBBold.ttf') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('/Fonts/EuclidCircularBLight.ttf') format('woff2');
    font-weight: 300;
    font-style: normal;
}

body, html{
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black;
    font-family: 'Euclid Circular B', sans-serif;
}

body {
    background-image: url('/images/background.webp');
    background-position: center bottom;
    background-size: cover;
    background-repeat:no-repeat;
}

section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
/*    background-color: black;*/
    color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    /*justify-content: space-around;*/
    gap: 2rem;
    z-index: 10;
}

section.active {
    display: flex;
}

.style-slide {
    width:80%;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 20vw; /* create some side space for centering */
}

.style-option {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 60vw; /* adjust size */
    max-width: 300px;
    overflow: hidden;
    aspect-ratio: 9/16;
}
    .style-option img {
        width: 100%;
        height: auto;
        border-radius: 9px;
    }
.style-slide::-webkit-scrollbar {
    display: none;
}

.style-option.active-style {
    border: 4px solid gold;
    border-radius: 12px;
    box-sizing: border-box;
    transition: border 0.2s ease;
}

/* Optional: cursor during drag */
.style-slide.dragging {
    cursor: grabbing;
    user-select: none;
}

#logo {
    width: 50%;
    max-width: 300px;
    margin-bottom: 2rem;
}

#button-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 2rem;

}

button {
    background-color: transparent;
/*    aspect-ratio: 2.42;*/
    width: 40%;
    max-width: 200px;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 3.5vw, 2rem);
/*    background-image: url("/images/button.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;*/
    color: #ae9967;
    border: none;
    cursor: pointer;
    font-family: 'Euclid Circular B', sans-serif;
}



#capture canvas {
    width: 100%;
    height: auto;
    display: none;
}
#capture video{
    width: 100%;
/*    height: auto;*/
    display: block;
    transform: scaleX(-1);
    margin:auto;
/*    max-height:60%;*/
}

#outro-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
    z-index: 1000;
}

    #qr img#qr-code {
        width: 200px;
        height: 200px;
    }

    #qr .qr-label {
        font-size: 24px;
        font-weight: bold;
    }

.countdown-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ae9967;
    font-size: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Euclid Circular B Bold', sans-serif;
}

.hidden {
    display: none;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(128, 128, 128, 0.5); /* gray with 0.5 opacity */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ffffff;
    border-top: 6px solid #888888;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.oval-overlay {
    border: 4px solid #fff;
    border-radius: 50%;
    width: 45%;
    position: absolute;
    aspect-ratio: 4/5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wave span {
    display: inline-block;
    animation: wave 1.5s infinite;
}

    .wave span:nth-child(1) {
        animation-delay: 0s;
    }

    .wave span:nth-child(2) {
        animation-delay: 0.1s;
    }

    .wave span:nth-child(3) {
        animation-delay: 0.2s;
    }
/* Add more as needed */

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}