* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "roboto";
}

html,
body {
  background-color: #f8cbae;
  width: 100%;
  height: 100%;
}

/*-------------------
        Header
    --------------------*/
.header-image {
  height: 70%;
  width: 100%;
  background-image: url("../img/etusivu/ylabanneri.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.header-image h1 {
  font-family: "Dancing Script", cursive;
  text-align: center;
  color: #fff;
  font-weight: 100;
  font-size: 90px;
  position: sticky;
  top: 100%;
  border-bottom: 2px solid #f08b47;
  margin-bottom: 4px;
}
/*-------------------
        Header
    --------------------*/
/*-------------------
        Navigointi menu
    --------------------*/
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f08b47;
  padding: 1em;
}
.navbar {
  border-bottom: 2px solid #f08b47;
  padding-bottom: 4px;
}
.nav-links {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  width: 80%;
}
.nav-links li a {
  text-decoration: none;
  color: #8f4b1d;
}
.nav-links li a:hover {
  text-decoration: none;
  color: #fff;
}
/*-------------------
        Navigointi menu
    --------------------*/

/*-------------------
        Sivun pääsisältö
    --------------------*/
.container {
  width: 100%;
}
.laatikko {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  background-color: #f9d7c1;
  margin-top: 5.55em;
  margin-bottom: 5.55em;
  overflow-x: auto;
  padding-top: 3em;
  padding-left: 3em;
  padding-right: 3em;
  padding-bottom: 3em;
}
.yhteystiedot-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vanhemmat-box {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5.55em;
}
.vanhemmat-box img {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  height: 700px;
}
/* Tervetuloa laatikko */

/* Ensimmäinen kuva laatikko */
.bottom img {
  border-radius: 10px;
}

.text-box p {
  font-size: 20px;
}
.second-header {
  text-align: left;
  font-size: 80px;
}
.contact-box {
  width: 100%;
  text-align: center;
  padding-left: 3em;
}

h2 {
  position: relative;
  padding: 0 0 10px;
  margin-bottom: 10px;
}

.field {
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0);
  outline: none;
  background-color: #f9d7c1;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  margin-bottom: 22px;
  transition: 0.3s;
  border-radius: 10px;
}

textarea {
  min-height: 150px;
  resize: none;
}

.btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #111111;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #313131;
}

.field:focus {
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.705);
  background-color: #ffffff;
}
.teksti {
  margin-top: 1em;
  font-size: 20px;
}
/*-------------------
        Sivun pääsisältö
    --------------------*/

/*-------------------
        Alatunniste
    --------------------*/
footer {
  position: relative;
  background-color: #f8cbae;
  height: 100%;
  max-height: 110px;
  margin-top: 3em;
  clear: both;
}
.logo {
  max-width: 120px;
  margin-left: 2.5%;
  margin-right: 1em;
}
.social-icon {
  text-decoration: none;
}
footer a {
  margin-left: 1.5em;
}
.social-icon img {
  width: 100%;
  height: 100%;
  max-width: 35px;
  max-height: 35px;
  transition: transform 0.3s;
}
.social-icon img:hover {
  transform: scale(1.2);
}
/*-------------------
        Alatunniste
    --------------------*/

/*-------------------
        Puhelimet
    --------------------*/
@media screen and (max-width: 480px) and (orientation: portrait) {
  /* Header ja Nav */
  .header-image h1 {
    font-size: 35px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .laatikko {
    padding-top: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }

  .second-header {
    font-size: 30px;
    text-align: center;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 20px;
    padding-bottom: 0.5em;
  }
  .contact-box {
    padding-left: 0em;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 40%;
  }
}

@media screen and (max-width: 480px) and (orientation: landscape) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 35px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .laatikko {
    padding-top: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .second-header {
    font-size: 30px;
    text-align: center;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 20px;
    padding-bottom: 0.5em;
  }
  .contact-box {
    padding-left: 0em;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 70%;
  }
}
/*-------------------
        Puhelimet
    --------------------*/

/*-------------------
        Tabletit
    --------------------*/
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 60px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .laatikko {
    padding-top: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .second-header {
    font-size: 30px;
    text-align: center;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 25px;
    padding-bottom: 0.5em;
  }
  .contact-box {
    padding-left: 0em;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 40%;
  }
}
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 60px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .laatikko {
    padding-top: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .second-header {
    font-size: 30px;
    text-align: center;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 25px;
    padding-bottom: 0.5em;
  }
  .contact-box {
    padding: 0em;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 70%;
  }
}
/*-------------------
        Tabletit
    --------------------*/

/*-------------------
        Kannettavat
    --------------------*/

@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) {
  /* Header*/

  .header-image h1 {
    font-size: 100px;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 20px;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 40%;
  }
  .contact-box {
    padding-left: 0em;
  }
  .second-header {
    font-size: 60px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: landscape) {
  /* Header */

  .header-image h1 {
    font-size: 100px;
  }
  .yhteystiedot-box {
    display: flex;
    flex-direction: column;
  }
  .text-box p {
    font-size: 20px;
  }
  .vanhemmat-box img {
    width: 100%;
    height: 70%;
  }
  .contact-box {
    padding: 0em;
  }
  .second-header {
    font-size: 60px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: portrait) {
  /* Header */
  .header-image h1 {
    font-size: 110px;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: landscape) {
  /* Header */
  .header-image h1 {
    font-size: 110px;
  }
}
/*-------------------
        Kannettavat
    --------------------*/

/*-------------------
        Suuremmat
    --------------------*/
@media screen and (min-width: 1681px) and (orientation: portrait) {
  /* Header */
  .header-image h1 {
    font-size: 120px;
  }
}
@media screen and (min-width: 1681px) and (orientation: landscape) {
  /* Header */
  .header-image h1 {
    font-size: 120px;
  }
}
/*-------------------
        Suuremmat
    --------------------*/
