/* Perusasetukset */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Lisää tilaa taustavideolle */
    z-index: -1;
}

#background-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

/* Valkoinen tausta */
.white-background {
    background-color: rgba(230,230,230,1.00);
    padding-top: 80px; /* Lisää tilaa yläpuolelle */
}

/* Overlay content */
.overlay {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
    margin-top: 10%;
    margin-bottom: 10%;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
}

p {
    font-size: 1.5em;
    max-width: 80%;
    margin: 0 auto;
}

/* Showreel bar */
.showreel-bar {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    width: 100%;
    height: 35vh;
    box-sizing: border-box;
    margin-top: 1000px; /* Lasketaan mustan palkin kohtaa */
}

.showreel-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showreel-img {
    width: 180px;
    height: 180px;
    margin-right: 1em;
    border-radius: 50%;
}

.showreel-text {
    font-size: 1.2em;
    margin: 0;
    text-align: left;
    max-width: 600px;
}

/* Esimerkkivideot */
.samples {
    padding: 40px 0;
    text-align: center;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.sample {
    position: relative;
    overflow: hidden;
}

.sample img {
    width: 100%;
    height: auto;
    max-width: 450px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Reunukset tietyille kuville */
.sample img.bordered {
    border: 2px solid #d3d3d3;
}

.sample p {
    font-size: 1.2em;
    margin-top: 10px;
}

.sample img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Musta palkki: Ota yhteyttä */
.black-contact-bar {
    background-color: #000; /* Musta tausta */
    color: #fff; /* Valkoinen teksti */
    padding: 40px 20px;
    text-align: center;
}

/* Ota yhteyttä */
.contact {
    max-width: 900px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2em;
}

.contact form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: #f4f4f4;
    border-radius: 5px;
    color: black;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact form button {
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.contact form button:hover {
    background-color: #106600;
}

/* Sosiaalisen median linkit */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.social-links a img {
    width: 40px;
    height: 40px;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .overlay h1 {
        font-size: 1.8em;
    }

    .overlay p {
        font-size: 1.2em;
    }

    .showreel-bar {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .showreel-img {
        margin: 0 auto 20px auto;
    }

    .showreel-text {
        text-align: center;
        max-width: 90%;
    }

    .sample-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .sample img {
        max-width: 90%;
        margin: 0 auto;
    }

    .contact form {
        padding: 20px;
    }
}
