* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/*HEADER*/
/*------------------------------------*/
header {
  font-family: arial;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  box-shadow: 0 0 10px #000;
  /*background: rgba(0, 0, 0, 0.5);*/
  background: #1b1b1e;
}

header h1 a {
  text-decoration: none;
  color: #fff;
}
header .logo {
  display: flex;
  flex: 1;
  margin-left: 50px;
  text-transform: uppercase;
  font-size: 15px;
}

/*MAIN*/
main {
  flex: 1;
}

/*SECTION*/

section {
  width: 100%;
}

.tippi-otsikko h2 {
  text-transform: uppercase;
  font-family: "Fjalla One", sans-serif;
  width: 100%;
  padding: 10px;
  font-size: 30px;
  /*
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  */
}

.section-container {
  max-width: 1200px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  gap: 10px;
}

.tippi-container {
  width: 50%;
  height: 50%;
  /*border: 1px solid black;*/
  position: relative;
  /*
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  */
}

.box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 30px 20px 30px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.input-box {
  border: 2px solid #2ecc71;
  width: 60%;
  height: 50px;
  background-color: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 20px;
  margin-bottom: 10px;
}

.input-box i {
  font-size: 20px;
  color: #000;
}

.input-box input {
  flex: 1;
  height: 40px;
  border: none;
  outline: none;
  overflow: hidden;
  font-size: 16px;
  padding-left: 15px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

.input-lasku::placeholder {
  color: #000;
}
.input-lasku:focus::placeholder {
  color: transparent;
}

.tulokset {
  margin-left: 10px;
}

.laskuPara {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}
.tippiPara {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.totalPara {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  font-size: 20px;
}

.viiva {
  width: 58%;
  margin-bottom: 20px;
}

.lasku-tulos,
.tippi-tulos,
.total-tulos {
  margin-left: 15px;
  font-size: 16px;
}

.button-laske {
  padding: 10px 15px 10px 15px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-family: "Nunito", sans-serif;
  background: #2ecc71;
  color: #000;
  font-weight: 700;
  width: 60%;
  height: 50px;
  font-size: 17px;
  cursor: pointer;
  margin-bottom: 20px;
  min-width: 50px;
}

.error-box {
  background-color: #ffff; /* Punainen taustaväri */
  color: #ffffff; /* Valkoinen tekstiväri */
  padding: 10px 0; /* Lisätään padding */
  text-align: center;
  margin-top: 15px;
}

.error {
  font-family: "Nunito", sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  color: #ffffff; /* Valkoinen tekstiväri */
}

.otsikko-container {
  width: 40%;
  height: 395px;
  font-family: "Nunito", sans-serif;
  line-height: 1.7;
  padding: 20px 30px 20px 30px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.otsikko-container h2 {
  font-size: 17px;
}
.otsikko-container p {
}
/*FOOTER*/
footer {
  width: 100%;
  z-index: 100;
  box-shadow: 0 0 10px #000;
  background: #1b1b1e;
  /*background: rgba(0, 0, 0, 0.5);*/
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

footer .headline ul li {
  list-style: none;
}

footer .headline a i {
  color: #fff;
  font-size: 25px;
  padding: 20px;
  margin: 10px 0 10px 0;
  text-decoration: none;
}

footer .info ul li {
  list-style: none;
}

/*MEDIA*/

@media (max-width: 1024px) {
  .section-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .input-box {
    width: 100%;
  }
  .button-laske {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .section-container {
    display: flex;
    flex-direction: column-reverse;
    height: 100vh;
    gap: 35px;
    overflow: hidden;
  }

  .otsikko-container,
  .tippi-container {
    width: 95%;
    margin: 0 auto;
  }

  .otsikko-container {
    align-items: center;
    box-sizing: border-box; /* Sisällytä padding elementin kokoon */
    overflow: hidden;
    box-shadow: none;
    height: 200px;
    padding: 15px 15px 15px 15px;
    margin-bottom: 10px;
    margin-top: -80px;
  }
}

@media screen and (orientation: landscape) {
  .section-container {
    height: 100vh;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}
