body{
 margin: 0;
 padding: 0;
 max-width: 100%;
 
 min-height: 100vh;
}
body, html {
    overflow-x: hidden;
}

.bg{
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    bottom: 0;
    background-image: url(images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -2;
    min-height: 100vh;
    
}

.nav{
    height: 3.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: azure;
}

.nav__logo {
    font-size: 1.5rem;
    margin: auto 1rem;
    font-family: 'Times New Roman', serif;
    font-size: 30px;
    text-transform: uppercase; /* Make sure it's uppercase */
}


.nav__menu ul {
    margin: 0;
    padding: 0;
    display: flex;
}


.nav__menu ul li {
    list-style: none;


}

.nav__menu ul li a {
    text-decoration: none;
    color: #ffff;
    padding: 1rem;
    display: block;

}

.nav__menu li:hover{
    background-color: rgba(255, 255, 255, 0.5);
}

.nav__navi{
    width: 1.875rem;
    height: 1.313rem;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.nav_navi_line{
    height: 0.188rem;
    width: 100%;
    background-color: #ffff;
    border-radius: 0.625rem;
    transition: all ease-in-out 0.2s;
}

.slider{
width: 100vw;
height: 100vh;
border-radius: 10px;
overflow: hidden;
position: relative;
}

.slides{
    width: 500%;
    height: 500px;
    display: flex;
    text-align: center;
    overflow-y: hidden;
}
.slides input{
    display: none;
    
}

.slide{
    width: 20%;
    transition: 2s;
}
.slide img{
    width: 50%;
    height: 100%;
    

}
.navigation-manual{
    position: absolute;
    width: 750px;
    margin-top: -30px;
    display: flex;
    justify-content: right;
}

.manual-btn{
    border: 2px solid #f0d822cc;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
    
}

.manual-btn.active {
    background-color: yellow; /* Yellow when active */
}

.manual-btn:not(:last-child){
    margin-right: 50px;

}

.manual-btn.hover{
    background-color: #cccccccc;
}

#radio1:checked ~ .first{
 margin-left: 0;
}

#radio2:checked ~ .first{
    margin-left: -20%;
   }

#radio3:checked ~ .first{
    margin-left: -40%;
   }
#radio4:checked ~ .first{
    margin-left: -60%;
   }
   


.image-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    width: 100vh; /* Take full width */
    height: 100vh;
    max-width: 600px; /* Limit maximum width */
    margin: 20px auto; /* Center horizontally */
    padding: 0 20px; /* Add padding for spacing */
    box-sizing: border-box; /* Include padding in width calculation */
}

.image-column img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}
.card {
    width: 400px; /* Base width */
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card a {
    text-decoration: none; /* Poistaa alleviivauksen */
    color: inherit; /* Peri tekstin väri vanhemmalta elementiltä */
}

.card a:hover {
    /* Jos haluat, että linkki muuttuu hiiren päälle vietäessä */
    text-decoration: underline; /* Lisää alleviivaus hiiren päälle vietäessä */
    color: inherit;/*älä muuta väriä */
}
.card:hover {
    transform: translateY(-5px);
}
card img {
    width: 100%;
    height: auto;
    display: block;
}

.card h3 {
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    
}

.card table{
    margin: 0 auto;
}
.card p {
    padding: 0 20px 20px;
    line-height: 1.5;
}



footer {
    text-align: center;
    padding: 20px 0;
    
}

.social-media img {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin: 0 10px;
}

.text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em; /* Muokkaa fontin kokoa tarpeen mukaan */
    font-weight: 400; /* Normaali paino */
    line-height: 1.2; /* Riviväli */
    color: #333; /* Tummanharmaa väri */
    letter-spacing: 0.05em; /* Kirjainväli */
    margin-bottom: 20px; /* Alamarginaali */
}

.text p {
    font-family: 'Lora', serif;
    font-size: 1.1em; /* Muokkaa fontin kokoa tarpeen mukaan */
    font-weight: 400;
    line-height: 1.6;
    color: #555; /* Hieman vaaleampi harmaa */
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-column {
        max-width: 100%; /* Take full width on medium screens */
        padding: 0 10px; /* Adjust padding */
        margin-top: 20%;
    }
    
    .nav__logo {
        font-size: 90%;
    }
}

@media (max-width: 480px) {
    .image-column {
        padding: 0 5px; /* Adjust padding for small screens */
    }
    .card {
        width: 100%; /* One card per row */
    }
    
}

@media (max-width: 320px){
    .image-column {
        margin-top: 30%;
        padding: 0; /* Remove padding on very small screens */
    }
    .manual-btn{
        margin-top: 15px;
        padding: 10px;
        justify-content: center;
    }
}

.image-column img {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.image-column img:hover {
    transform: scale(1.1); /* Slightly enlarge the image */
    filter: brightness(1.2); /* Slightly brighten the image */
}


@media screen and (max-width: 700px){
    
    .manual-btn{
        margin-top: 15px;
        padding: 10px;
        justify-content: center;
    }
    .manual-btn:not(:last-child){
        margin-right: 40px;
        
    }
   .text.shifted-down{
        transform: translateY(calc(20% + 5vh)); /* Adjust as needed */
        transition: transform 0.6s ease;
   }
    /*laskee slideria eli kuvia kun drop menu tulee*/
    .Slider.shifted-down {
        transform: translateY(calc(20% + 5vh)); /* Adjust as needed */
        transition: transform 0.6s ease;
    }
    .image-columns.shifted-down{
        transform: translateY(calc(20% + 5vh)); /* Adjust as needed */
        transition: transform 0.6s ease;
    
    }
    
    .Slider {
        transition: transform 0.6s ease;
        width: 100vw;
    }
    
    .navigation-manual{
        position: absolute;
        width: 100%;
        margin-top: -40px;
        display: flex;
        justify-content: center;
    }

    .slide img {
        width: 100%; /* Example: Fixed width */
        height: 100%; /* Example: Fixed height */
        display: block;
        
    }
    .nav__navi{
        display: flex;
        position: absolute;
    }
    .nav__menu{
        position: absolute;
        display: flex;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.2);
        top: -10rem;
        width: 100%;
        transition: all ease-in-out 0.4s;
     
    }
    .nav{
        flex-direction: column;
        align-items: flex-start;
    }
    .nav__menu ul{
        flex-direction: column;
        width: 100%;
        padding: 3rem 0 0.6rem;
    } 
    .nav__menu ul li{
        text-align: center;
    }
    .nav__menu ul li a{
       padding: 0.5rem;
    }
    .nav__menu{
        z-index: 0;
    }
    .nav__menu.active{
        top: 0;
        z-index: 0;
        
    }
    .nav__navi.active :nth-child(1){
        transform: rotate(45deg) translate(0.45rem,0.1875rem);
    }
    .nav__navi.active :nth-child(2){
        opacity: 0;
    }
    .nav__navi.active :nth-child(3){
        transform: rotate(-45deg) translate(0.45rem,-0.1875rem);
    }
  
    
    
    
}

