@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');



body {
    display: grid;
    justify-content: center;
    min-height: 100%;
    height: 2300px;
    margin: ;
    padding: 0 20px 20px 20px;
    font-family: "Overpass", sans-serif;
    line-height: 1.6;
    font-size: 20px;
    color: #111;
    background-color: #8cc1b375;
    background-image: url('tredutaustaa\ copy.webp');
    background-size: cover;
    background-attachment: fixed;
}




.ylavalikko {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #a5407b;
    color: white;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
}

.ylavalikko a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.ylavalikko a:hover {
    color: #0099cc;
}



h1 {
font-family: "Quicksand", sans-serif;
font-size: 70px;
color: #0099cc;
padding: 10px;
margin-top: 40px;
width: ;
justify-content: left;
text-align: left;
margin-left: 30px;
}


h5 {
font-family: "Caveat Brush", cursive;
font-size: 100px;
color: #042546;
padding: 10px;
margin-top: -110px;
justify-content: left;
text-align: left;
font-weight: 400;


}

h2 {
font-family: "Quicksand", sans-serif;
font-size: 50px;
margin-top: 80px;
    margin-bottom: 30px;
    text-align: right;
    justify-content: right;
    padding-left: 350px;
}

h3 {
text-align: left;
    justify-content: left;



}    


p {

 font-family: "Overpass", sans-serif;
 justify-content: left;
 text-align: left;



}




.turkoosi {
    background-color: #0099cc;
}

.mustikka {
    background-color: #042546;
}

.petrooli {
    background-color: #8cc1b3;
    color: black;
}

.fuksia {
    background-color: #a5407b;
}

.idea {
    background-color: #f4d240;
    color: black;
}

.havu {
    background-color: #397368;
}

.valkoinen {
background-color: #f1eeeb;



}


.tampere-logot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: left;
    margin-bottom: 30px;
    justify-content: left;
    padding: 30px;
    
}

.tampere-logot img {
    max-width: 400px;
    height: auto;
    display: block;
    padding: 30px;
   
}



.logo-rivi img:hover,
.tampere-logot img:hover {
    transform: scale(1.03);
    box-shadow: 7px 4px 5px rgba(0,0,0,0.15);
    transition: 0.3s;
}



a {
    font-family: Overpass;
    color: #0099cc;
    text-decoration: none;
    font-weight: 600;
   
}
a:hover {
    text-decoration: underline;
}

.vari {
    padding: 40px;
    border-radius: 8px;
    color: white;
   
    font-family: Quicksand, sans-serif;
    font-size: 18px;
    width: 170px;
    cursor: pointer;
    transition: 0.3s ease;
    overflow: hidden;
    border: 2px solid #00000052;
}

.valkoinen {
    background-color: #f1eeeb;
    color: #000;
}

.varit-container {
    padding: 0px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    width: 800px;
    justify-content: left; 
    margin-left: 0;
    height: 800px;
    
}

.vari .nimi {
    font-weight: 600;
}

.vari .tiedot {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.35s ease;
}

.vari:hover .tiedot {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
    
}


.sisalto {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #f1eeebd2;

    border-radius: 10px;
}




pre {

background-color: #3b3e3f56;
width: 300px;
text-align: left;
justify-content: left;
border-radius: 10px;
padding: 10px;
width: 60%;
padding-right: px;

}



.footer {
    color: rgb(0, 0, 0);


    


}


.kaksipalstaa {
    display: flex;
    gap: 200px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
    
    
}

.palsta {
    flex: 1;

    
   

}

.vasenpalsta {

display: grid;


}



h2 {
    text-align: left;
    padding-left: 0;
    margin-bottom: 20px;
}

.ohjelinkki {
    display: block;
    margin-top: -180px; 
    font-size: 22px;
    color: #0099cc;
    justify-content: left;
text-align: left;
margin-left: 60px;
}




.logo-rivi {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 10px;
    padding: 30px;
    

}

.logo-rivi img {
    width: 200px;
    height: auto;
}

.logo-linkit {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-linkit a {
    color: #0099cc;
    font-size: 18px;
    text-decoration: none;
}

.logo-linkit a:hover {
    color: #a5407b;
    text-decoration: underline;
}