* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

html, body {
    min-width: 100%;
    min-height: 100%;
    text-align: center;
    overflow-x: hidden;
    background: linear-gradient(169deg, rgba(0, 0, 41, 1) 0%, rgba(20, 0, 28, 1) 100%);
    color: white;
}

p {
    font-size: 20px;
}

section {
    scroll-margin-top: 80px;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    padding: 1rem 0;
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* --------- SCROLL NUOLI  --------- */
.scroll-arrow {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: #a83dff;
    background-color: #31135c;
    border: 2px solid #a83dff;
    border-radius: 60%;
    padding: 10px 14px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1050;
    cursor: pointer;
}

.scroll-arrow:hover {
    background-color: #5821a6;
    color: white;
}

/* --------- LANDING SIVU  --------- */
.landing-video-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 40px;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(45%);
}

.landing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.landing-text h1 {
    font-size: 3rem;
    margin-bottom: 0;
}

.landing-text h2 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .landing-text h1 {
        font-size: 2rem;
    }

    .landing-text h2 {
        font-size: 1.2rem;
    }
}

/* --------- PELIT --------- */
.game-section {
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.game-description {
    font-size: 20px;
}

.game-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.heading-wrapper {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.game-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    margin: 0;
    font-size: 2rem;
}

.game-btn {
    background-color: #31135c;
    color: #a83dff;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.game-btn:hover {
    background-color: #5821a6;
    color: white;
}


/* --------- PELI KUVAT --------- */
.preview-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 150px;
    height: 500px;
    justify-content: start;
}

.preview-column img {
    max-width: 100%;
    height: calc((500px - 40px - 30px) / 4);
    object-fit: cover;
    cursor: pointer;
    padding: 0 !important;
    border: none !important;
}

.preview.active {
    transition: 0.5s;
    box-shadow: 4px 4px 2px #a800d6;
}

.main-image-container {
    max-height: 500px;
    padding: 0 !important;
    border: none !important;
}

.main-image-container img {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
    padding: 0 !important;
    border: none !important;
}

/* --------- MOBIILI --------- */
@media (max-width: 1023px) {
    .heading-wrapper {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .game-row {
        flex-direction: column;
        align-items: center;
    }

    .preview-column {
        flex-direction: row;
        max-width: 100%;
        width: auto;
        height: auto;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }

        .preview-column img {
            width: calc((100% - 24px) / 4);
            height: auto;
            object-fit: cover;
        }

    .main-image-container {
        max-height: none;
        width: 100%;
    }

        .main-image-container img {
            max-height: none;
            width: 100%;
            height: auto;
        }

    .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        gap: 10px;
        width: 100%;
    }


        .button-container button {
            width: auto;
        }
}

/* --------- PELI VIDEOT --------- */
.video-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}