* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Kumbh Sans', sans-serif;
  scroll-behavior: smooth;
}

.navbar {
  background-color: #131313;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  text-decoration: none;
  height: 100%;
  transition: all 0.3s ease;
}

.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #52c234;
  background: -webkit-linear-gradient(to right, #309115, #236b0d);
  background: linear-gradient(to right, #309115, #236b0d);
  color: #ffffff;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar__links:hover {
  color: #236b0d;
  transition: all 0.3s ease;
}

@media screen and (max-width: 1020px) {
  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: -1;
  }

  .navbar__menu.active {
    background: #131313;
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 80vh;
    font-size: 1.3rem;
  }

  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
  }

  .navbar__item {
    width: 100%;
  }

  .navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }

  .navbar__btn {
    padding-bottom: 2rem;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80px;
    margin: 0;
  }

  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
}

#main__content--container {
  background-color: #212121;
  padding: 0 3rem 3rem;
}

.main__content {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 0.5rem;
  
}

.etusivu {
  margin: 0;
  background-color: #fff;
}

.etusivu div p{
  margin: 0 2rem;
}

h2,
h3 {
  font-size: 170%;
  text-align: center;
  margin-bottom: 1rem;
}

p {
  font-family: Rubik;
  font-size: 110%;
  margin: 1rem 20%; 
}

#etusivu__logo {
  width: 18vw;
  background-color: white;
}

#kuva_ala {
  width: 19vw;
  margin: 1rem;
}

.green {
  /*background-color: #307c1d;*/
  color: #e8e8e8;
  background: #52c234;
  background: -webkit-linear-gradient(to right, #387722, #236b0d);
  background: linear-gradient(to right, #387722, #236b0d);
  
}

.etusivu div {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5vw;
  font-size: 150%;
  padding: 2rem 3vw;
}

.nuohous {
  padding-bottom: 4vh;
}

.muistilista,
.hintaesim {
  background-color: #efefef;
  padding-bottom: 5vh;
}

.hinnasto {
  padding-bottom: 8vh;
}

.nuohous,
.muistilista,
.hinnasto>div:first-of-type {
  padding-left: 7vw;
  padding-right: 7vw;
  display: flex;
  flex-direction: column;
}

.hinnasto__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
}

.hinnasto__container div {
  background-color: #efefef;
  color: black;
  padding: 1vw;
  border-radius: 0.5rem;
}

.hinnasto__container div div {
  display: grid;
  grid-template-columns: 3fr 1fr;
}

.hinnasto__container div div p:nth-of-type(even), .hintaesim div div p:nth-of-type(even) {
  white-space: nowrap;
}

.hintaesim p {
  margin: 1rem;
}

.hintaesim>div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 2vw;
  margin-left: 5vw;
}

.hintaesim div div div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hintaesim>div>div {
  border-left: solid #1a6807 1px;
  padding-left: 2vw;
}

.tilaa {
  color: white;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.tilaa p {
  text-align: center;
  font-size: 150%;
}

.tilaa .button {
  display: none;
}

.yhteystiedot {
  background-color: #115b11;
  color: #bfbfbf;
  text-align: left;
}

.yhteystiedot>div {
  display: flex;
  justify-content: space-around;
  padding: 3em;
}

.yhteystiedot p {
  margin: 1em;
}

.button:hover {
  opacity: 0.7;
}

.buttonfb img {
  width: 50px;
  height: 50px;
  float: left;
  margin-left: 1rem;
}

a.anchor {
  display: block;
  position: relative;
  top: -125px;
  visibility: hidden;
}

@media screen and (max-width: 856px) {
  
  .etusivu div{
    flex-direction: column;
    font-size: 120%;
  }
  
  #etusivu__logo {
    width: 50vw;
  }
  
  #main__content--container {
    padding: 0.5rem;
  }
  
  .main__content div, .hinnasto>div:first-of-type {
    padding: 1rem;
    margin: 0;
  }
  
  p {
    font-size: 120%;
    margin: 2rem 0.2rem;
  }
  
  .hinnasto div {
    padding: 0;
    font-size: 100%;
  }
  
  .hinnasto__container div {
    width: 100%;
    padding-left: 0.75rem;
    padding-top: 1rem;
  }
  
  .hinnasto .hinnasto__container div{
    grid-template-columns: 2fr 1fr;
  }
  
  .hintaesim div {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .hintaesim div div {
    border: none;
    margin-top: 3rem;
    margin: 1rem;
    padding: 0;
  }
  
  #kuva_ala {
    width: 70%;
    margin: 0 auto;
  }
  
  .tilaa .button {
    display: flex;
    font-size: 125%;
    padding: 0 7em;
  }
  
  .yhteystiedot>div {
  flex-direction: column;
    gap: 1rem;
}
}

@media screen and (max-width: 500px) {
  #main__content--container {
    margin: 0;
    font-size: 90%;
    padding: 0;
  }
  
  #etusivu__logo {
    width: 14rem;
  }
  
  .hinnasto > div:first-of-type p {
    margin: 1rem;
  }
  
  .hinnasto .hinnasto__container {
    background-color: #efefef;
    font-size: 105%;
    border-radius: 0.5rem;
    gap: 0;
  }
  
  .hinnasto__container > div {
    background: none;
    padding-left: 0;
  }
  
  .hinnasto__container > div:first-of-type {
    font-size: 4vw;
  }
  .yhteystiedot div{
    padding-left: 0;
  }
}