html {
  max-width: 99.5%;
  background-color: white;
  margin: auto;
}
h1 {
  position: relative;
  top: 10vw;
  padding-bottom: 5vw;
  font-family: 'Permanent Marker', cursive;
  margin-left: 4vw;
}

a {
  font-family: 'Poppins', sans-serif;
}

body {
  background-image: url(./pics/puu2.webp);
  background-repeat: repeat;
  background-size: auto;
  background-color: #ede2d0;
  max-width: 100%;
}

/* Navbar styles moved to `navbar.css` (nav, .brand, .nav-list, .nav-item, .hamburger, etc.). */
#info {
  margin: auto;
  text-align: center;
}


#kuva {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}

.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 20%;
}

#moromoro {
  background-image: linear-gradient(to left, rgba(255, 153, 153, 0) 0%,rgba(255, 153, 153, 0) 60%,rgb(237, 226, 208) 100%), url(./pics/surupyyhkiisydantani.webp);
  background-size: 60%;
  background-repeat: no-repeat;
  background-color: rgba(237, 226, 208, 0.7);
  background-position: right top;
  margin-right: 1vw;
}

#alkudiv {
  
  width: 50%;
  text-align: left;
  margin-left: 2vw;
  margin-top:3vw;

}
#socialmedia {
  display: inline;
  width: 3vw;
  margin-left: 0.5vw;
}


h2 {
  
  color: black;
  font-size: 29px;
  font-family: 'MedievalSharp', cursive;
}

#kirjannimi {
  font-family: 'Poppins', sans-serif;
}

h3 {
  color: black;
  font-family: 'MedievalSharp', cursive;
  font-size: 17px;
}
#ekakuva {
  float: left;
  left: 15vw;
  margin-right: 3vw;
  border: 1px solid;
}
p {
  font-size: 19px;
  color: rgb(0, 0, 0);
  width: 100%;
  margin: auto;
  margin-bottom: 2vw;
  margin-top: 2vw;
  text-align: left;
  left: 0vw;
  top: 2vw;
  font-family: 'Poppins', sans-serif;
}
#luettelo {
  font-size: 19px;
  color: rgb(0, 0, 0);
  width: 100%;
  margin: auto;
  margin-bottom: 3vw;
  margin-top: 3vw;
  text-align: center;
  left: 0vw;
  top: 2vw;
  font-family: 'Poppins', sans-serif;
}

footer {
    position: relative;
    width: 100%;
    font-size: 19px;
    color: white;
    border: none;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 1px;
    border-radius: 7px;
}
footer > p {
  margin-top: 2vw;
  margin-bottom: 2vw;
  text-align: center;
}

#tietosuojalinkki  {
  color: #443838;
}

.tilaajalomake {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  font-family: Arial, sans-serif;
}

.tilaajalomake h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.tilaajalomake label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
}

.tilaajalomake input,
.tilaajalomake textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.tilaajalomake textarea {
  resize: vertical;
  min-height: 100px;
}

.tilaajalomake button {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
  display: block;
  width: 100%;
}

.tilaajalomake button:hover {
  background-color: #0056b3;
}


@media (max-width: 900px) {
  h2 {
    font-size: 23px;
  }
  p {
    font-size: 17px;
  }
  p > #ekakuva {
    width: 50%;
  }
}


/* Mobiili ja animaatiot alle 775px */
@media (max-width: 775px) {
  /* Yleiset mobiiliasetukset */
  #moromoro { padding-top: 80vw; max-width: 100%; background-image: url(./pics/surupyyhkiisydantani.webp); background-size: 70%; background-position: center top; }
  #alkudiv { width: 95%; margin-left: 3vw; }
  h2 { font-size: 20px; }
  #tilaateksti {text-align: center;}
  h3 { font-size: 14x; }
  p { font-size: 16px; }
  #socialmedia { display: inline; width: 10vw; margin-left: 3vw; }
  .logo { max-width: 50%; }
  .tilaajalomake {
    margin: auto;
  }
  footer {
    position: relative;
    width: 100%;
    font-size: 19px;
    color: white;
    border: none;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 1px;
    font-family: 'Poppins', sans-serif;
  }

  /* Pienemmät näytöt */
  @media (max-width: 600px) {
    .nav-list {
      top: 15vw;
    }   
  }
  @media (max-width: 450px) { 
    .nav-list {
      top: 20vw;
    } 
   }
  @media (max-width: 390px) { 
    .nav-item a { padding: 1vw 2vw; }
  }
}