/* 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 */
	
}

/* Lisää animaatiot sivustollesi */
@keyframes fadeInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeImageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Korostetaan linkit, kun hiiri on niiden päällä */
a:hover {
  color: #E60F28;
}

/* Asetetaan otsikon tyyli */
h1 {
  font-size: 6vw; /* Otsikon fontin koko */
  color: #2A6471;
  text-align: right;
  line-height: 6vw;
  animation: fadeInLeft 2s ease 0.5s both;
}

h3 {
  padding-top: 20px;
  color: #2A6471;
  animation: fadeInRight 1s ease 1.5s both;
}

a {
  color: #2A6471;
  font-weight: bold;
}

::selection {
  color: white;
  background: #2A6471;
}

.button-container {
  width: 250px;
  margin: 0 auto;
}

/* Asetetaan tyyli napille */
.button {
  background-color: #E60F28;
  border: none; /* Ei reunaa */
  color: white; /* Valkoinen teksti */
  padding: 10px 0; /* Sisäinen tila */
  text-align: center; /* Tekstin keskitys */
  font-size: 20px; /* Napin fontin koko */
	  text-decoration: none;

  cursor: pointer;
  border-radius: 30px; /* Pyöristetyt kulmat */
  font-weight: 500;
  width: 100%;
	display: block;
}

.button:hover {
  background-color: #c20d22;
	color: white;
}

.button-width {
margin: 40px 2px 4px;	
	animation: slideInUp 1.5s ease 2.5s both, fadeIn 1s ease 5s both;
}

.button-blue {
	padding: 10px 0; /* Sisäinen tila */
  background-color: #2A6471; /* 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: 30px; /* Pyöristetyt kulmat */
  font-weight: 500;
	width:100%;
    display:block;
	
}



.button-blue:hover {
  background-color: #3A4A4E;
	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;
}

.info-background {
  background-color: #E9EFF1;
  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: #2A6471;
  color: white;
  text-align: center;
  padding: 50px;
}

.footer a {
  color: white;
  font-weight: normal;
}

.footer a:hover {
  color: #4DA7BC;
}

/* 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 */

	@keyframes fadeInLeft {
    from {
      transform: none;
      opacity: 1;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  @keyframes fadeInRight {
    from {
      transform: none;
      opacity: 1;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  @keyframes slideInUp {
    from {
      transform: none;
      opacity: 1;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  @keyframes fadeImageIn {
    from {
      opacity: 1;
    }
    to {
      opacity: 1;
    }
	}

	
	 body {
    overflow-x: hidden; /* Piilota vaakasuora vieritys mobiililaitteissa */
  }
	.pitka-linkki {
    word-wrap: break-word;
  }
	h1 {
    font-size: 13vw;
    line-height: 1.2;
    text-align: left;
	  margin-left: auto;
  }

  h3 {
    padding-top: 20px;
  }

  

  .button, .button-blue {
    font-size: 20px;
   
    border-radius: 30px;
  }

  .text-container {
    flex-direction: column;
    padding-right: 1vw;
    padding-left: 30px;
    padding-top: 10px;
  }

  .title, .content {
    margin: 0;
    padding: 0;
	  flex: none;
  }


  .info-background {
    padding: 10px;
    margin-right: 1vw;
  }

  .info {
    padding: 0 40px 0 20px;
  }

  .email {
    font-size: 20px;
    padding: 20px;
  }

  .extrainfo {
    padding: 0 30px 30px 30px;
  }

  .footer {
    padding: 20px;
	  display: block;
	  width: 100%;
  }
}
