h3{
  color: #0099cc;
}

html {
  scroll-behavior: smooth;
}

header {
  background-image: url('img/nappis.jpg'); 
}

body {
background-image: linear-gradient(to right, #0B0B0B , #6B6B6B);
justify-items: center;
}

nav {
  position: absolute;
  top: 3px;
  z-index: 99;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none; /* Näkyy vain mobiilissa */
  
}

.nav-links {
  display: none;
 
}

.menu-toggle:checked + .nav-links {
  display: none;
}

.submenu {
  display: none;
  
}



/* Valikon avaaminen */
.menu-toggle:checked + .nav-links {
  display: block;
}

.dropdown > a {
  cursor: pointer;
}
.image-container {
  position: relative; 
  width: 100%; 
 
}

.image-1 {
  width: 100%; 
  height: auto; 
  
}

.image-2 {
  position: absolute;
    top: 62%;
    left: 22%;
    transform: translate(-50%, -50%);
    width: 47%;
    height: auto;
}

.container {
  display: flex;
}



.container {
  display: flex;
  flex-direction: column;
 align-items: center;
  background-color: #f3f3f3;
  width: 90%;
  min-height: 1000px;
  left: 5%;
    position: absolute;
    top: 72%;
    border-radius: 20px;
    z-index: 1;
}

.etusivu-container {
  display: flex;
  flex-direction: column;

  background-color: #f3f3f3;
  width: 90%;
  min-height: 3000px;
  left: 5%;
    position: absolute;
    top: 72%;
    border-radius: 20px;
    z-index: 1;
}


.paracraph {
  display: flex;
  
  background-color: #f3f3f3;
}
.tuote {
  border-radius: 20px;
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  background-color: #ffffff;
  flex-direction: column;
  text-align: center;
  width: 75%;
  margin-left: 12em;
  margin-bottom: 5em;
  position: relative;
  display: inline-block;
  border-width: 2px;
}
.tuote img {
  border-radius: 20px;
  width: 100%; 
  height: auto;
}

.tuote p2 {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; 
  background-color: rgba(0, 0, 0, 0.5); 
  padding: 10px; 
  border-radius: 5px; 
  font-size: 3.5rem;
  text-align: center;
}

.tuote p {
  text-align:left ;
  padding: 10px;
  font-size: 20px;
}

.tuote i {
  font-size: 25px;
  font-family: roboto;

}

.images {
  display: flex;
  flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.images img {
  width: 10%;
}

.viiva {
  background-color: #ff00ff;
  width: 67%;
  height: 76px;
  left: -6%;
 
  border-bottom-right-radius: 20px;
  border-top-right-radius: 20px;
  
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  
  margin-top: 200px;
}

.etusivu1{
  margin-top: 10%;
  width: 100%;
  padding-left: 190px;
text-align: center;
  
}

.etusivu1_kuva img {
  width: auto;
  margin-top: 10%;
  height: 500px;
 
  padding: 5px;
  border-radius: 20px;
}

.etusivu2{
  margin-top: 10%;
  width: 45%;
 
  padding: 5px;
  
}

.etusivu2_kuva img {
  width: auto;
  margin-top: 10%;
  height: 500px;
  
  padding: 5px;
  border-radius: 20px;
}

.etusivu2_kuva button {
  position: absolute;
  left: 11%;
  top: 94%;
  width: 222px;
  height: 48px;
  font-size: 25px;
  
  padding: 0;

}

.etusivu-button {
  right: 0px;
  position: absolute;
  top: 2%;
  display: flex;
  flex-direction: column;

}

.etusivu-button button {
  margin-top: 50px;
  width: 28em;
  height: 5em;
  font-family: 'Roboto', sans-serif;
}

button {
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  padding: 0.7em 1.4em 0.7em 1.1em;
  color: white;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff00ff, #ff80ff);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 20px;
}

button:hover {
  background: #c502c5;
}

.nav-button {
  color: black;
 border: 0;
 background: rgba(255, 255, 255, 0);
 box-shadow: 0 0 0px rgba(0, 0, 0, 0);
 padding: 5px;
 }
 
 .underline {
   position: relative;
   display: inline-block;
   color: rgb(255, 255, 255);
   text-decoration: none;
 }
 
 .underline::after {
   content: "";
   position: absolute;
   width: 0;
   height: 2px;
   display: block;
   background: #ff00ff;
   transition: width 0.3s ease;
   left: 0;
   bottom: -5px; 
 }
 
 .underline:hover::after {
   width: 100%; 
 }
 
 .nav-button .valikko {
   display: none;
   position: absolute;
   background-color: white;
   z-index: 1;
   min-width: 160px;
   border: #ad5389 1px;
 }
 
 .nav-button .valikko a {
   color: #ff00ff;
   padding: 12px 16px;
   text-decoration: none;
   display: block;
 }
 
 .nav-button .valikko a:hover {
   background-color: #ff00ff1e;
 }
 
 .nav-button:hover .valikko {
   display: block;
 }

 /*TUOTTEET*/
.card img {
  width: 10%;
  box-shadow: 1px 2px 5px black;
    border-radius: 10px;
}

.card img:hover {
  transform: scale(1.05);
}



p {
  font-family: 'Roboto', sans-serif;
}


p2 {
  color: #000000;
  font-size: 42px;
  font-family: 'Roboto', sans-serif;
}

p2 span {
  color: #ff00ff;
  font-family: 'Roboto', sans-serif;
}

h3 {
  font-size: 35px;
  font-family: 'Ubuntu', sans-serif;
}

span {
  color: #ff00ff;
  
}

.carousel {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 45%;
}

.cards-container {
  display: flex;
  justify-content: center;
  position: relative;
  flex-grow: 1;
 
}

.card {
  flex: 0 0 auto;
  width: 400px; /* Päivitetty leveys */
  height: 600px; /* Päivitetty korkeus */
  margin: 0 -100px; /* Päällekkäisyyden säätö (säädä tarpeen mukaan) */
  background-color: #dfdfdf;
  border-radius: 8px;
  text-align: center;
  align-content: center;
  font-size: 24px;
  transition: transform 0.5s ease, z-index 0.5s ease;
  position: absolute;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card.active {
  transform: scale(1.1); /* Pienennä skaalausta, jotta kortti ei kasva liian suureksi */
  z-index: 10;
  background-color: #f3f3f3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}


.arrow-left {
  top: 13em;
    position: absolute;
    background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

.arrow-right {
  top: 13em;
    position: absolute;
    right: 0;
    background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

  /* YHTEYSTIEDOT */

  .form-container {
    display: flex;
    flex-direction: row;
    align-items: center;
  
    border-radius: 75px;
    width: 90%;
   
    flex: 1 1 calc(25% - 20px);
  
    align-items: flex-start;

    
}

.form-card {
    background-color: white;
    padding: 20px;
    border: 1px solid #d4d3d3;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    margin: 2%;

  }
  
  
  .formcarryForm label {
    display: block;
    padding: 12px 0 2px 0;
    letter-spacing: -0.2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
  }

  .formcarryForm button {
    margin-top: 5px;
    width: 100%;
  }
  
  .formcarryForm input,
  .formcarryForm textarea {
    background-color: #fff;
    border: 1px solid #d4d3d3;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2%;
    width: 90%;
  
  }
  
  .formcarryForm input:focus,
  .formcarryForm textarea:focus {
    background-color: #fff;
   
  }
  
  .formcarry-alert {
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-top: 12px;
    display: none;
  }
  
  .formcarry-alert.visible {
    display: block;
  }
  
  .formcarry-alert.success {
    background: #69cf9d;
  }
  
  .formcarry-alert.error {
    background: #de524c;
  }

  /*TOIMINNANOHJAUS*/
  .ct-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-radius: 75px;
    width: 90%;
    border: 1px solid #d4d3d3;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    margin-bottom: 2%;
    padding: 5px;
    background-color:#f3f3f3;
    position: absolute;
    top: 72%;
    left: 5%;
 }
  .card-ct { 
    background-color: white;
    padding: 20px;
    border: 1px solid #d4d3d3;
    border-radius: 30px;
    box-shadow: 0 2px 4px #0099cc;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    width: 50%;
    margin: 10px;
  }
  
   .card-ct:hover {
    box-shadow: 1px 2px 8px 4px #0099cc;
   }

   .ct-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

 /* TIETOSUOJA */
 .card-visible { 
  background-color: #f3f3f3;
  padding: 20px;
  border: 1px solid #d4d3d3;
  /* border-radius: 61%; */
  box-shadow: 2px 3px 4px #ff00ff;
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  width: 50%;
  margin: 5%;
  margin-bottom: 5%; 
  padding: 8%;
  position: absolute;
  left: 20%;
  
 }



 /* FOOTTER */

footer {
  
  padding: 2%;
  color: #ff00ff;
  background-color: white;
  width: 96%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 30px;

 }



 @media screen and (max-width: 768px) {
    
    h3{
        font-size:1.5em;
     }

    h1 {
      font-size: 1em;
      padding-left: 22px;
    }

    h2 {
      font-size: 21px;
    }

    p{
      font-size: 14px;
    }

    .tuote p {
      font-size: 14px;
    }

    .tuote i {
      font-size: 14px;
      text-align: left;
  }
  
  
    .card { 
      width: 90%;
      height: 90%;
      font-size: 14px;   
     }
   
  nav {
    display: none;
  }
  .image-container {
    position: relative;
     width: 100%;
  }
  .etusivu-container {
    top: 17%;
    }  
  
  .viiva {
      background-color: #ff00ff;
      width: 100%; 
      margin-top: 14%;
  }

  .paracraph {
    display: flex;
   
    flex-direction: column;
}

  .etusivu1 {
     margin-top: 0%; 
     width: auto; 
    padding-left: 0;  
    text-align: center;
  }
  .etusivu1_kuva {
    display: none;
  }


  .etusivu2_kuva img {
    width: auto;
    margin-top: 10%;
    height: 500px;
    padding: 5px;
    border-radius: 20px;
}

.etusivu2_kuva {
  display: none;
}
.etusivu2 {
  width: 100%;
}

.tuote {
  width: 100%;
  margin-left: 2px;
  margin-right: 2px; 
 
}
.arrow-left {
display: none;
}

.arrow-right {
  display: none;
}
.form-container {
  flex-direction: column;
 
}
.ct-container {
  top: 16%;
}

.card-ct {
width: 100%;
}

        .menu-toggle {
            display: none;
        }

        .hamburger {
          display: block;
          cursor: pointer;
          color: white;
          font-size: 20px;
          text-align: center;
          left: 7%;
          position: absolute;
          z-index: 2;
        }

        .nav-links {
          display: none;
          background: #444;
          padding: 0;
          list-style: none;
          margin: 0;
          z-index: 2;
          position: absolute;
          /* top: 5%; */
          left: 12%;
        }

        .nav-links li {
            padding: 15px;
            border-bottom: 1px solid #555;
        }

        .nav-links li a {
            color: white;
            text-decoration: none;
            display: block;
        }

        .submenu {
            display: none;
            list-style: none;
            padding-left: 15px;
        }

        .submenu li {
            background: #555;
        }

        .menu-toggle:checked + .nav-links {
            display: block;
        }

        .dropdown > a {
            cursor: pointer;
        }
 }