/* CSS-tiedosto */

/* Asetetaan tekstin fontti ja väri */
body {
  font-family: "Source Sans Pro", sans-serif;
  color: #3A4A4E;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-size: 18px;
  height: 100%; /* Aseta sivun korkeus 100 prosenttiin */
  overflow-x: hidden; /* Piilota pystysuora vieritys */
}



.top-container {
	display: flex; 
	align-items: center; 
	justify-content: space-between;
}
.top-logo {
	padding-bottom: 50px;
	margin-right: 50px;
	
}

.language {
	display: flex; 
	gap: 15px; 
	margin-left: auto; 
	position: relative; 
	top: -30px; 
	padding-right: 20px;
}




/* Korostetaan linkit, kun hiiri on niiden päällä */
a:hover {
  color: #E60F28;
}

/* Asetetaan otsikon tyyli */
h1 {
  font-size: 4vw; /* Otsikon fontin koko */
  color: #002C74;
  text-align: right;
  line-height: 4vw;
  animation: fadeInLeft 2s ease 0.5s both;
}

h3 {
  padding-top: 20px;
  color: #002C74;
  animation: fadeInRight 1s ease 1.5s both;
}

a {
  color: #002C74;
  font-weight: bold;
}

::selection {
  color: white;
  background: #002C74;
}

.button-container {
  width: 250px;
  margin: 0 auto;
}

/* Asetetaan tyyli napille */
.button {
  background-color: #002C74;
  border: none; /* Ei reunaa */
  color: white; /* Valkoinen teksti */
  padding: 15px 0; /* Sisäinen tila */
  text-align: center; /* Tekstin keskitys */
  font-size: 20px; /* Napin fontin koko */
	  text-decoration: none;

  cursor: pointer;
  border-radius: 0; /* Pyöristetyt kulmat */
  font-weight: 500;
  width: 100%;
	display: block;
}

.button:hover {
  background-color: #0058B1;
	color: white;
}

.button-width {
margin: 40px 2px 4px;	
	animation: slideInUp 1.5s ease 2.5s both, fadeIn 1s ease 5s both;
}

.button-blue {
	padding: 15px 0; /* Sisäinen tila */
  background-color: #002C74; /* Vihreä taustaväri */
  border: none; /* Ei reunaa */
  color: white; /* Valkoinen teksti */
  
  text-align: center; /* Tekstin keskitys */
  font-size: 20px; /* Napin fontin koko */
  text-decoration: none;
  cursor: pointer;
  border-radius: 0; /* Pyöristetyt kulmat */
  font-weight: 500;
	width:100%;
    display:block;
	
}



.button-blue:hover {
  background-color: #0058B1;
	color: white;
}

/* Asetetaan tekstikenttien ulkoasu */
.text-container {
  display: flex; /* Käytetään flexboxia elementtien sijoittamiseen vierekkäin */
  align-items: center; /* Keskitä sisältö vaakasuunnassa */
  padding-right: 15vw;
  padding-left: 5vw;
}

.title {
  flex: 2; /* Vie 1/3 tilasta */
  margin: 20px; /* Lisätään hieman marginaalia elementtien väliin */
}

.content {
  flex: 3; /* Vie 2/3 tilasta */
  margin: 20px; /* Lisätään hieman marginaalia elementtien väliin */
	animation: fadeInRight 2s ease 1.5s both;
}

.logo {
  display: flex;
  justify-content: center; /* Keskity sisältö vaakasuunnassa */
  align-items: center; /* Keskity sisältö pystysuunnassa */
	animation: fadeImageIn 0.5s ease 3.5s both;
	width: 100%;
}

.logo img {
  max-width: 400px; /* Aseta logon maksimileveys */
  width: 100%; /* Skaalaa leveys suhteessa sen vanhempaan elementtiin */
  height: auto; /* Säilyttää mittasuhteet */
}

.info-background {
  background-color: rgba(0, 44, 116, 0.05);
	
  padding: 3vw;
  margin-right: 12vw;
  border-bottom-right-radius: 20px;
  animation: slideInUp 0.5s ease 3.5s both;
}

.info {
  padding-left: 20vw;
  padding-right: 5vw;
	
  animation: slideInUp 0.5s ease 4s both;
}

.email {
  text-align: center;
  font-size: 24px;
  padding: 30px;
	margin-left: 12vw;
  animation: slideInUp 0.5s ease 4.5s both;
	
}

.extrainfo {
  padding-left: 23vw;
  padding-right: 20vw;
  padding-bottom: 70px;
  animation: slideInUp 0.5s ease 5s both;
}

.footer {
  background-color: #002C74;
  color: white;
  text-align: center;
  padding: 50px;
}

.footer a {
  color: white;
  font-weight: normal;
}

.footer a:hover {
  color: #4DA7BC;
}





 /* Varmistaa, että kuva on keskitetty suuremmilla näytöillä */
.image-container {
    display: flex;
    justify-content: center; /* Keskittää kuvan */
    align-items: center;
    width: 100%;
}

.responsive-image {
    width: 50vw; /* Asettaa kuvan leveydeksi 50 % sivun leveydestä */
    max-width: 50vw; /* Varmistaa, ettei ylitä 50 % sivun leveydestä */
    height: auto; /* Säilyttää mittasuhteet */
}









/* Mobiililaitteiden CSS */
@media screen and (max-width: 768px) {
  /* Muutetaan tiettyjä tyyliasetuksia mobiililaitteille */
  /* Lisää tähän kaikki tyylit, jotka haluat vaikuttaa puhelimen näyttöihin */


	
	 html, body {
    overflow-x: hidden; /* Piilota vaakasuora vieritys mobiililaitteissa */

  }
	
	
	
.top-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Asettaa logot vasemmalle */
    text-align: left;
    width: 100%;
    padding-left: 0px; /* Pieni sisennys, jotta logot eivät ole aivan kiinni reunassa */
}

.top-logo {
    padding-bottom: 20px;
}
	.destia {
		padding-left: 30px;
	}
	.traficom {
		padding-left: 20px;
	}

.language {
    display: flex;
    flex-direction: column;
    align-items: center; /* Pitää kielivalikon keskellä */
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-top: 50px;
    width: 100%;
}
	
	
	
	
	
	.pitka-linkki {
    word-wrap: break-word;
  }
	h1 {
    font-size: 11vw;
    line-height: 1.2;
    text-align: left;
	  margin-left: auto;
  }

  h3 {
    padding-top: 20px;
  }
	
	.overbuttontext {
		margin: 30px;
	}

	.logo {
		max-width: 80%;
	}

  .button, .button-blue {
    font-size: 20px;
   
    border-radius: 0px;
	    width: 100%;
  max-width: 100%;
  margin: 0 auto; /* Keskittää napin */
  }

  .text-container {
    flex-direction: column;
    padding-right: 30px;
    padding-left: 30px;
    padding-top: 10px;
	  max-width: 100%;
  }

  .title, .content {
    margin: 0;
    padding: 0;
	  flex: none;
	  max-width: 100%;
  }


  .info-background {
    padding: 10px;
    margin-right: 1vw;
	  max-width: 100%;
  }

  .info {
    padding: 0 40px 0 20px;
	  max-width: 100%;
  }

  .email {
    font-size: 20px;
    padding: 20px;
	  max-width: 100%;
  }

  .extrainfo {
    padding: 0 30px 30px 30px;
	  max-width: 100%;
  }
	
	

.responsive-image {
    width: 100%; /* Asettaa kuvan leveydeksi 50 % sivun leveydestä */
    max-width: 1000px; /* Varmistaa, ettei ylitä 50 % sivun leveydestä */
    height: auto; /* Säilyttää mittasuhteet */
}
	
	

  .footer {
    padding: 20px;
	  display: block;
	  width: 100%;
	  max-width: 100%;
  }
	
}
