* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/*BODY*/
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%;
}

.container {
  width: 800px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.otsikko h1 {
  font-family: "Fjalla One", sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.laskuri {
  width: 100%;
  max-width: 600px;
  height: 450px;
  overflow: auto; /* Lisätty mahdollisen sisällön vieritys */
  border: 1px solid black;
  padding: 35px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(1, 1, 1, 0.3); /* Lisätty varjostus esimerkkinä */
}

.pituus-box,
.paino-box {
  padding: 10px 0px 10px 0px;
}

label {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
input {
  padding: 12px;
  outline: none;
  border: none;
  border-bottom: 2px solid black;
}

#tulostus {
  width: 100%;
  height: auto;
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

#tulos {
  width: 100%;
  height: auto;
  color: #000;
  font-weight: 700;
}

#alert1 {
  width: 100%;
  height: auto;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

#tulos,
#alert1 {
}

.button {
  padding: 8px 16px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  margin: 10px 0px 20px 0px;
}

/*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: 600px) {
  .container {
    width: 95%;
    margin: 10px auto;
  }
  .laskuri {
    padding: 25px;
  }
  label {
    font-size: 18px;
  }

  input {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .tulostus {
    text-align: center;
    padding: 5px 5px 5px 5px;
  }
}
