/* Sivun perusmuotoilu */
body {
    font-family: 'Press Start 2P', sans-serif; /* Pikselityylinen fontti */
    text-align: center; /* Keskitetään tekstit */
    background: linear-gradient(to bottom, #6EC6FF, #A0E0FF); /* Vaaleansininen liukuväri taustalle */
    color: #333; /* Tumma teksti */
    margin: 0;
    padding: 0;
}

/* Logojen säiliö */
.logo-container {
    text-align: center;
    margin: 20px 0; /* Ylä- ja alareunaan tyhjää */
}

/* Pelilogon tyyli */
.game-logo {
    width: 200px;
    max-width: 50%; /* Skaalaa mobiilissa */
    margin: 0 auto;
}

/* Koulun logon tyyli */
.school-logo {
    width: 300px;
    max-width: 100%; /* Skaalaa mobiilissa */
    margin-top: 10px;
}

/* Valikon sijainti */
.menu {
    margin-top: 50px;
}
.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Napit rivittyvät mobiilissa */
    align-items: center;
    flex-direction: row; /* Varmistaa vaakasuuntaisen järjestyksen */
}


/* Otsikko (h1) tyyli */
h1 {
    font-size: 24px;
    text-shadow: 2px 2px #fff; /* Vaalea varjostus */
    color: #444;
}

/* Painikkeiden yleistyylit */
button {
    display: block;
    width: 200px;
    margin: 1px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #ff8800; /* Oranssi tausta */
    border: 3px solid #333;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 4px 4px #555; /* Varjostus */
    transition: 0.2s; /* Siirtymäefekti */
}

/* Painikkeen hover-efekti */
button:hover {
    background: #ff6600;
    box-shadow: 4px 4px #444;
}

/* Lopeta-napin erikoistyyli */
.quit {
    background: gray;
    box-shadow: 4px 4px #222;
}

.quit:hover {
    background: darkgray;
}

/* Responsiivisuus: näytöille joiden leveys enintään 768px */
@media (max-width: 768px) {
    .game-logo {
        width: 60%;
    }

    .school-logo {
        width: 60%;
    }

    h1 {
        font-size: 20px;
    }

    button {
        width: 70%;
        font-size: 14px;
    }
}

/* Responsiivisuus: näytöille joiden leveys enintään 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 18px;
    }

    button {
        width: 90%;
        font-size: 12px;
    }
}

/* Kielivalikon tyyli */
#language-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7); /* Läpinäkyvä musta tausta */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    z-index: 999; /* Näkyy kaiken päällä */
}

/* Kielivalikon sisältölaatikko */
.language-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Lippukuvien koko painikkeissa */
button img {
    width: 150px;
    height: 60px;
    margin: 10px;
}

/* Poista painikkeesta oletuskehys */
button:focus {
    outline: none;
}

/* TIKO-logon tyyli */
.tiko-logo {
    width: 300px;
    max-width: 100%;
    margin: 20px auto;
}

/* --- Kuvagalleria --- */

/* Gallerian ulkoinen kehys */
.gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px auto;
}

.gallery-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}


/* Tiimin jäsenten galleria */
.team-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tiimin jäsenen kuva */
.team-member {
    position: relative;
    display: inline-block;
    width: 200px;
    margin: 20px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Taustan väri */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Varjo */
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-member p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 20px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
}

#trailer-video {
    border: none;
}


