html {
  max-width: 99.5%;
  background-color: white;
  margin: auto;
}


h1 {
  position: relative;
  top: 10vw;
  padding-bottom: 5vw;
  margin-left: 4vw;
}

body {
  background-image: url(./pics/puu2.webp);
  background-repeat: repeat;
  background-size: auto;
  background-color: #ede2d0;
  max-width: 100%;
}

a {
  font-family: 'Poppins', sans-serif;
  color: black;
}

a:visited {
  color: black;
}
/* Navbar styles have been moved to navbar.css
   Keep navigation styling in one place to avoid duplication. */

#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: 100%;
  margin-top: 5vw;
}
#tilaanappula {
  text-align: center; /* nappula keskelle */
}

#tilaanappula button {
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1vw;
  background: #fff6e4b2;
  box-shadow: 0px 1px 1px 0px;
  margin-top: 1.5vw;
}

#tilaanappula button:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(68, 68, 68, 0.91);
}
/*#moromoro {
  /*background-image: linear-gradient(to left, rgba(255,153,153,0) 0%,rgba(255,153,153,0) 60%,rgba(237, 226, 208, 1) 100%), url(./pics/patu3.png);
  background-size: 60%;
  background-repeat: no-repeat;
  background-color: rgb(237, 226, 208);
  background-position: center top;
  margin-right: 1vw;
}*/

#moromoro {
  position: relative;
  bottom: 10vw;
}
#alkudiv {
  
  width: 100%;
  text-align: left;
  margin-left: 2vw;
  margin-top:3vw;

}
#socialmedia {
  display: inline;
  width: 3vw;
  margin-left: 0.5vw;
}


h2 {
  
  color: black;
  font-size: 29px;
  position: relative;
  text-align: left;
  top: 1vw;
  left: 0vw;
  font-family: 'MedievalSharp', cursive;
  text-align: center;
}

#alaotsikko {
  text-align: center;
  font-family: 'MedievalSharp', cursive;
}

#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: center;
  left: 0vw;
  top: 2vw;
  font-family: 'MedievalSharp', cursive;
}
#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 {
  width: 100%;
  font-size: 19px;
  color: white;
  border: none;
  background-color: rgba(0, 0, 0, 0.35);
  padding-bottom: 0vw;
  font-family: 'Poppins', sans-serif;
  position: absolute;
  
}
footer > p {
  margin-top: 2vw;
  margin-bottom: 2vw;
 
  text-align: center;
}


.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: 2000px) {
  #moromoro {

    bottom: 13vw;
  }
}

@media (max-width: 1500px) {
  #moromoro {

    bottom: 15vw;
  }
}

@media (max-width: 1200px) {
  #moromoro {

    bottom: 20vw;
  }

}

@media (max-width: 900px) {
  h2 {
    font-size: 23px;
  }
  p {
    font-size: 17px;
  }
  p > #ekakuva {
    width: 50%;
  }
  .logo {
    margin-top: 20vw;
  }
  #moromoro {
    bottom: 20vw;
  }
}


/* Mobiili ja animaatiot alle 775px */
@media (max-width: 775px) {
  /* Nav-valikko */
  .nav-list {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 10vw;
    left: 0;
    background-color: rgba(212,212,212,0.95);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    padding-top: 5vw;
    padding-bottom: 5vw;
  }

  .nav-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: auto;
  }

  .nav-list.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-list.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .nav-list.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .nav-list.active .nav-item:nth-child(3) { transition-delay: 0.3s; }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .brand {
    margin: auto;
  }

  /* Yleiset mobiiliasetukset */
  #moromoro { max-width: 100%; background-size: 70%; bottom: 20vw }
  #alkudiv { width: 95%; margin-left: 3vw; }
  h2 { font-size: 20px; }
  p { font-size: 13px; }
  #socialmedia { display: inline; width: 10vw; margin-left: 3vw; }
  .logo { max-width: 100%; margin-top: 20vw; }
  footer {
    position: relative;
    width: 100%;
    font-size: 19px;
    color: white;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1px;
    font-family: 'Poppins', sans-serif;
  }

  /* Pienemmät näytöt */
  @media (max-width: 600px) {
    #moromoro {
      background-position: center top;
    } 
    .nav-list {
      top: 15vw;
    }   
  }
  @media (max-width: 450px) { 
    .nav-list {
      top: 20vw;
    } 
   }
  @media (max-width: 390px) { 
    .nav-item a { padding: 1vw 2vw; }
  }
}