html, body {
  background: white;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
    scroll-behavior: smooth;
}
* {
   margin: 0;
  padding: 0;
  box-sizing: border-box;

}
 /* RESPONSIVE RULES
@media screen and (max-width: 715px) {
    header{
        height: 200px;
    }
} */

@media screen and (max-width: 715px) {

  .hero-text {
    left: 5%;
    top: 40%;
    max-width: 90%;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }
}


html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
}


/*header/nav*/

header {background-color: #1F5B20;
    background-size: 100%;
    height: 130px;
    padding: 20px;
    text-align: center;
}

header a{
    color:#ffffff;
    text-decoration: none;
    margin-top: 40px;
}

.active {
  font-weight: bold;
  text-decoration: underline;
}

/*Hero*/

@media screen and (max-width: 715px) {
  .hero-text {
    font-size: 12px;
    max-width: 90%;
    left: 5%;
  }
}

/*Hero yhteystiedot */
.hero-image2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
  url("Kuvat/metsa.jpg");
  width: 100%;
  height: 350px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/*hero saunat sivu*/
.hero-image1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
  url("Kuvat/saunatsivu.jpeg");
  width: 100%;
  height: 350px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
/*etusivu hero*/  

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
  url("Kuvat/pexels-huum-sauna-heaters-718199222-36420274.jpg") ;
  width: 100%;
  height: 350px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/*hero tekstit etusivu*/

.hero-text h2 {
  margin-bottom: 8px;
}

.hero-text {
  max-width: 90%;
text-align: left;
  position: absolute;
   top: 30%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
}

.hero-text button {
  border: none;
  outline: 0;
  margin-top: 10%;
  display: inline-block;
  padding: 10px 25px;
  color: black;
  background-color: #ddd;
  text-align: center;
  cursor: pointer;
}

.hero-text button:hover {
  background-color: #555;
  color: white;
}

/*sauna lista nav*/
.city-nav {
  z-index: 1000;
    position: sticky;
    top: 0;
    background: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

.city-nav a {
  
     padding: 10px 16px;
    background: #1F5B20;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: 0.2s;
}

.city-nav a:hover {

    background: #333;
    transform: translateY(-2px);
}



/*saunakortit*/
.city-section-title {
  text-align: center;
}


.card-container{
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
  background-color: white;
}
.card{
width: 325px;
background-color: #f0f0f0;
border-radius: 8px;
overflow: hidden;
box-shadow: 0px 2px 4px rgba(0,0,0,0,2);
margin: 20px;
}

section h3{
text-align: center;
font-size: 28px;
}

.card img{
  width: 100%;
  height: auto;
}
.card-content{
padding: 16px;
}
.card-content h4{
  font-size: 28px;
  margin-bottom: 8px;
}
.card-content p{
color: #666;
font-size: 15px;
line-height: 1.3;}

.card-content .btn {
display: inline-block;
padding: 8px 16px;
background-color: #333;
text-decoration: none;
border-radius: 4px;
margin-top: 16px;
color: #fff;
}

/* etusivun 3 kuvan osio*/
/* RESPONSIVE RULES
@media screen and (max-width: 715px){
    .features {
        display: block;
    }
} */
.features {
background: #ffffff;
color: black;
padding: 20px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
;}

.features figure{
    margin: auto;
    text-align: center;

    width: 200px;
}

.features figure img{
    border: 1px solid white;
    border-radius: 50%;
    width: 200px;
    box-shadow: gray 0 0 10px;

}

/*osiot*/
section {background: #ffffff;
padding: 20px;
display: block;
flex-direction: row;}


/*footer osio*/
footer {background: #1F5B20;
    color: gray;
    font-size: 14px;
    text-align: center;
padding: 20px 20px;

}

/* elementit*/

@media screen and (max-width: 715px) {

  ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  li {
    display: block;
    margin-right: 0;
  }

  header {
    height: auto;
  }
}
ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

li:first-child{
    margin-left: 0px;
}
a{
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}

li {
  display: inline-block;
  margin-right: 20px;
  }

  /* Change the link and background color on hover */
li a:hover {

  color: white;}


/*otsikot ja tekstit*/
h1 {
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 32px;
  text-align: center;

}
h2 {
  color: white;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 22px;
  text-align: center;

}
h3 {
  color: #1F5B20;
  font-family: georgia;
  font-size: 22px;
  text-align: center;
}
h4 {
  color: #1F5B20;
  font-family: georgia;
  font-size: 22px;
text-align: center;
}

h5 {
  color: black;
  font-family: georgia;
  font-size: 18px;
text-align: center;
}

h6 {
  color: black;
  font-family: georgia;
  font-size: 18px;
text-align: center;
}
p {
  font-family: Manrope;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
}
p  {
  color: white;
  font-family: Manrope;
  font-size: 16px;
  text-align: center;
}


/*yhteystietosivu*/
/*viesti kenttä*/
@media screen and (max-width: 715px) {
  .center-wrapper {
    width: 100%;
    padding: 10px;
  }

  .yhteystiedot-kontti {
    width: 100%;
  }
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}


.container {
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  background-color: #f2f2f2;
  padding: 20px;
}

.center-wrapper{
  
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 40px 20px;
}

/*yhteystiedot kortti*/
@media screen and (max-width: 715px) {
    .yhteystiedot-kontti{
     width: 100%;
    padding: 15px;
    }
}

.yhteystiedot-kontti{
    width: 100%;
    max-width: 600px;
    margin: auto;
    background-color: whitesmoke;
    padding: 20px;
    border-radius: 8px;
}
.yhteystiedot-kontti h3 {
color: #1F5B20;
border-bottom: 2px solid brown;
padding-bottom: 10px;
}
.yhteystiedot-kontti p{
  color: #1F5B20 ;
}
address{
    font-style: normal;
    line-height: 1.6;
    color: #1F5B20;
}
address pre{
    margin: 10px 0;
}
address a:hover{
    text-decoration: underline;
}





/* Piilotetaan checkbox */
#menu-checkbox {
  display: none;
}

/* Hampurilaisikoni */
.menu-icon {
  display: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

/* Desktop menu */
.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Mobiili */
@media screen and (max-width: 715px) {

  /* Näytetään hampurilaisikoni */
  .menu-icon {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  /* Piilotetaan menu aluksi */
  .menu {
    display: none;
    flex-direction: column;
    text-align: center;
    background-color: #1F5B20;
    padding-top: 10px;
  }

  /* Kun checkbox on valittu -> näytä menu */
  #menu-checkbox:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu li {
    margin: 10px 0;
  }

  header {
    height: auto;
  }
}




/* KARTTA */
.map-section {
  background: white;
  padding: 40px 20px;
  display: flex;
   align-items: center;
  justify-content: center;
}

#map {
  height: 500px;
  width: 90%;
  margin: auto;
  
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0,2);
}