/* Yleiset asetukset ja muuttujat */
:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc;
    --text-primary-color: #e1e1e1;
    --text-secondary-color: #8e8e8e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Perus-reset ja body-tyylit */
body {
    background-color: var(--background-color);
    color: var(--text-primary-color);
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center; /* Keskitetään sisältö pystysuunnassa */
}

/* Container, joka keskittää sisällön */
body > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--surface-color);
    padding-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* Pääsisältö */
main {
    margin-bottom: 3rem;
}

/* Videosoitin (responsiivinen) */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Videon otsikko */
#latest-video-player h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    text-align: center;
}

.loading-text {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary-color);
}


/* Footer */
footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-color);
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

/* Image Gallery */
#image-gallery {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

#image-gallery video,
#image-gallery img {
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Image */
.floating-left-image {
    position: fixed;
    left: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.floating-right-image {
    position: fixed;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Breakpoint for Floating Image */
@media (max-width: 1440px) {
    .floating-left-image {
        display: none;
    }
    .floating-right-image {
        display: none;
    }
}
