* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui;
    min-height: 100vh;
}

.topbar {
    width: 100vw;
    padding: 1rem;
    background: #1447e6;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

main {
    text-align: center;
    animation: fadein 0.3s ease-in-out;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translate(0);
    }
}

.upload-description {
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: none;
    padding: 1rem 2rem;
    border-radius: .25rem;
    cursor: pointer;
    font-weight: bold;
    background: #1447e6;
    color: white;
    transition: 0.2s;
}

.button:hover {
    background: #193cb8;
}

.button:disabled {
    background: gray;
    color: black;
    cursor: auto;
}

.gallery-wrap {
    width: 100vw;
    overflow: hidden;
    margin-top: 1rem;
}

.gallery-container {
    display: flex;
    animation: gallery 40s linear infinite;
    animation-delay: 0.1s;
}

@media screen and (max-width: 600px) {
    .gallery-container {
        animation-duration: 30s;
    }

    .gallery-image {
        max-width: 30vw;
    }
}

.gallery {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    padding-right: 0;
}


.gallery-image {
    object-fit: cover;
    max-width: 100vw;
    max-height: 400px;
    border-radius: .5rem;
}

@keyframes gallery {
    to {
        transform: translate(calc(var(--gallery-w) * -1));
    }
}

#resultSection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#result-image {
    margin-top: 2rem;
    display: block;
    max-width: 70vw;
}