
body {
    background-color: black;
   font-family: "Source sans 3", sans-serif;
  
}
.navbar ul {
    list-style-type: none;
    background-color: rgb(32, 1, 1);
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.navbar li {
    display: block;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    display: block;
    font-size: 30px;
}

.navbar a:hover {
    background-color: #ff6500;
}

h3 {
    color: white;
}
h1 { 
    text-align: left;
}

.logo {
  position: absolute;
  top: 5px;
  left: 0px;
  width: 50px;
}
.logo-link {
    position: absolute;
    top: 5px;
    left: 30;
    display: block;
}

.logo {
    width: 100px;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: none;
}

.logo-link:hover .logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px darkorange);
}
.yhteystiedot {
position: relative;
width: 100%;
min-height: 100vh;
min-height: 100svh;
padding: 0;
background-color: black;
font-size: 25px;
}
/* Että kuva täyttää koko alueen */
.kuva-boksi img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
/* Teksti kuvan päällä */
.kuva-peite {
position: relative;
z-index: 1;
min-height: 100vh;
min-height: 100svh;
padding: 5%;
display: flex;
flex-direction: column;
justify-content: center;
color: white;
background: rgba(0, 0, 0, 0.45); /* tummennus jotta tekstiä on helpompi lukea */
}

   .kuva-peite h1,
.kuva-peite h2,
.kuva-peite h3,
.kuva-peite p,
.kuva-peite a {
    color: #ff6500;
}
.kuva-peite h3 {
    color: white;
}
.kuva-peite p{
    color: white;
}
/* =========================
   PALVELUT-SIVU
   ========================= */

.palvelut-sivu {
    min-height: 100vh;
    padding: 60px 20px;
    box-sizing: border-box;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url("kuvat/tausta.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
    text-align: center;
}


/* Palvelusivun aloitus */

.palvelut-alku {
    padding: 40px 20px;
}

.palvelut-alku h1 {
    color: white;
    text-align: center;
    font-size: 50px;
    margin-bottom: 15px;
}

.palvelut-alku p {
    color: white;
    font-size: 22px;
}


/* Palvelut */

#palvelut {
    padding: 30px 20px;
}

#palvelut h2,
#ilmoittaudu h2 {
    color: white;
    font-size: 40px;
    text-align: center;
    margin-bottom: 30px;
}


/* Palvelukortit */

.kortti {
    background-color: #1a1a1a;

    border-left: 5px solid #ff6500;

    width: 60%;
    max-width: 700px;

    margin: 25px auto;
    padding: 25px;

    box-sizing: border-box;

    text-align: center;

    transition: 0.3s ease;
}

.kortti:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 101, 0, 0.3);
}

.kortti h3 {
    color: #ff6500;
    font-size: 28px;
    margin-top: 0;
}

.kortti p {
    color: white;
    font-size: 19px;
}


/* Ilmoittautuminen */

#ilmoittaudu {
    padding: 50px 20px;
}

.nappi {
    display: inline-block;

    background-color: #ff6500;
    color: white;

    padding: 15px 30px;

    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;

    transition: 0.3s ease;
}

.nappi:hover {
    background-color: #ff8533;
    transform: translateY(-2px);
}


/* =========================
   PALVELUT-SIVU MOBIILI
   ========================= */

@media (max-width: 600px) {

    .palvelut-sivu {
        padding: 30px 10px;
    }

    .palvelut-alku h1 {
        font-size: 35px;
    }

    .palvelut-alku p {
        font-size: 18px;
    }

    #palvelut h2,
    #ilmoittaudu h2 {
        font-size: 30px;
    }

    .kortti {
        width: 95%;
        padding: 20px 15px;
    }

    .kortti h3 {
        font-size: 24px;
    }

    .kortti p {
        font-size: 17px;
    }

    .nappi {
        padding: 12px 25px;
    }
}


.hero {
    min-height: 100vh;
    padding: 30px 5%;
    font-size: 30px;

    background-image: url("kuvat/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    

    display: flex;
    flex-direction: column;
    justify-content: center;
    
}




/* Tutustu meihin kohta */
.hero-button {
    display: inline-block;

    padding: 15px 30px;

    background-color: #ff6500;
    color: white;

    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;

    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: #ff8533;
    transform: translateY(-1px);
}
/* Nuolet */

.slider-btn {
    position: absolute;
    top: 56%;
    transform: translateY(-300%);

    width: 45px;
    height: 45px;

    border: 0px solid white;
    border-radius: 100%;

    background: rgba(0, 0, 0, 0.3);
    color: white;

    font-size: 30px;
    cursor: pointer;

    z-index: 5;
}

.slider-btn:hover {
    background: #ff6500;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}
h3{
    color: white;
}
h4{
    color: white;
   position: relative;
    top: -20px;
}
.lisätietoa {
    color:white;
    position:relative;
    top: -35px;
}



.AJANKOHTAISTA {
    position: relative;
    width: 300px;
    padding: 10px;
    background-color: black;
    color: white;
    
    /* Suurentaa koko laatikkoa */
    transform: scale(1.6);
    transform-origin: top left;
}
.joukkue-kuva {
    position: relative;
    width: 600px;
    margin-left: 55%;
    margin-top: -39%;
}

.joukkue-kuva img {
    width: 94%;
    height: auto;
    display: block;
}

.kuva-teksti {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);

    color: white;
    z-index: 10;
}

.kuva-teksti h2 {
    font-size: 40px;
    margin: 0 0 20px 0;
}

.kuva-teksti p {
    font-size: 20px;
    margin-bottom: 25px;
}

.liity-nappi {
    display: inline-block;
    padding: 15px 30px;

    background-color: #ff6500;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}
.liity-nappi:hover {
    background-color: #ff8533;
    transform: translateY(-1px);}

.footer {
    background-color: darkorange;
    min-height: 50px;
    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: space-between;
   

    padding: 0 40px;
    box-sizing: border-box;
}

/* Vasemman puolen linkit */
.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-social a:hover {
    color: black;
}

/* Keskellä oleva copyright */
.footer-copyright {
    color: white;
    font-weight: bold;
}

/* Oikealla oleva sähköposti */
.footer-email a {
    color: white;
    text-decoration: none;
}

.footer-email a:hover {
    color: black;
}
/* Puhelimelle */
/* ===== MOBIILIVERSIO (alle 600px) ===== */
@media (max-width: 600px) {
    /* Navbar mobiilissa */
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar a {
        padding: 10px 15px;
        font-size: 18px;
        text-align: center;
    }
    
    /* Logo mobiilissa */
    .logo-link {
        position: static;
        text-align: center;
        margin: 10px 0;
    }
    
    .logo {
        width: 60px;
    }
    
    /* Main mobiilissa */
    main {
        padding: 20px 3%;
        font-size: 20px;
        min-height: auto;
    }
    
    /* Hero button mobiilissa */
    .hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* Slider buttons mobiilissa */
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 50%;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    /* Tekstit mobiilissa */
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 16px;
        top: 0;
    }
    
    .lisätietoa {
        font-size: 14px;
        top: 0;
    }
    
    /* Ajankohtaista mobiilissa */
    .AJANKOHTAISTA {
        position: static;
        width: 95%;
        padding: 15px;
        transform: scale(1);
        margin: 20px auto;
    }
    
    /* Joukkuekuva mobiilissa - KORJATTU */
    .joukkue-kuva {
        position: relative;  /* Tärkeä: teksti on absolute tähän nähden */
        width: 95%;
        margin-left: 2.5%;
        margin-top: 20px;
    }
    
    .joukkue-kuva img {
        width: 100%;
        display: block;
    }
    
    /* Kuva-teksti mobiilissa - KORJATTU */
    .kuva-teksti {
        position: absolute;  /* Pysyy kuvan päällä */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);  /* Keskelle kuvaa */
        text-align: center;
        width: 90%;  /* Ei mene reunojen yli */
        padding: 20px;
    }
    
    .kuva-teksti h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .kuva-teksti p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .liity-nappi {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* Footer mobiilissa */
    .footer {
        flex-direction: column;
        gap: 20px;
        padding: 25px 10px;
        text-align: center;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-social a {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-email a {
        font-size: 14px;
    }
 

    
}