* {
  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%;
}
main {
  overflow: auto;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.infobox-header {
  text-align: center;
  margin-bottom: 0.5em;
  margin-top: 1em;
  font-size: 35px;
}
.top {
  margin-top: 5.55em;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.bottom {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
/* Tervetuloa laatikko */

.info-box1 {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  width: 400px;
  height: 400px;
  background-color: #f9d7c1;
  overflow-y: auto;
  margin-bottom: 5.55em;
}

.info-box1 p {
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: left;
  padding-bottom: 1em;
  font-size: 25px;
}

/* Ensimmäinen kuva laatikko */

.info-box2 {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  width: 400px;
  height: 400px;
  background-color: #f9d7c1;
  overflow: hidden;
  margin-bottom: 5.55em;
}
.info-box2 img {
  object-fit: cover;
  object-position: bottom;
  width: 400px;
  height: 400px;
}

/* Uutiset laatikko */

.info-box3 {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  width: 400px;
  height: 400px;
  background-color: #f9d7c1;
  overflow-y: auto;
  margin-bottom: 5.55em;
}
.info-box3 p {
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: left;
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 25px;
}

/* Toinen kuva laatikko */

.info-box4 {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  border-radius: 10px;
  width: 400px;
  height: 400px;
  background-color: #f9d7c1;
  overflow: hidden;
  margin-bottom: 5.55em;
}
.info-box4 img {
  object-fit: cover;
  object-position: bottom;
  width: 400px;
  height: 400px;
}
.paivamaara {
  padding-left: 3em;
  padding-right: 3em;
}

/*-------------------
    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%;
  }

  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */
  .info-box1 {
    width: 280px;
    height: 280px;
    margin-bottom: 2.5em;
  }

  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 280px;
    height: 280px;
    margin-bottom: 2.5em;
  }
  .info-box2 img {
    object-fit: cover;
    width: 280px;
    height: 280px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 280px;
    height: 280px;
    margin-bottom: 2.5em;
  }

  /* Toinen kuva laatikko */

  .info-box4 {
    width: 280px;
    height: 280px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 280px;
    height: 280px;
  }
}

@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%;
  }

  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 280px;
    height: 280px;
  }

  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 280px;
    height: 280px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 280px;
    height: 280px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 280px;
    height: 280px;
  }

  /* Toinen kuva laatikko */

  .info-box4 {
    width: 280px;
    height: 280px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 280px;
    height: 280px;
  }
}
/*-------------------
    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%;
  }

  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 400px;
    height: 400px;
  }

  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 400px;
    height: 400px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 400px;
    height: 400px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 400px;
    height: 400px;
  }

  /* Toinen kuva laatikko */

  .info-box4 {
    width: 400px;
    height: 400px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 400px;
    height: 400px;
  }
}
@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%;
  }

  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 400px;
    height: 400px;
  }

  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 400px;
    height: 400px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 400px;
    height: 400px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 400px;
    height: 400px;
  }

  /* Toinen kuva laatikko */

  .info-box4 {
    width: 400px;
    height: 400px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 400px;
    height: 400px;
  }
}
/*-------------------
    Tabletit
--------------------*/

/*-------------------
    Kannettavat
--------------------*/

@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) {
  /* Header*/

  .header-image h1 {
    font-size: 100px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 600px;
    height: 600px;
  }
  .info-box1 p {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 600px;
    height: 600px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 600px;
    height: 600px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 600px;
    height: 600px;
  }
  .info-box3 p {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  /* Toinen kuva laatikko */

  .info-box4 {
    width: 600px;
    height: 600px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 600px;
    height: 600px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: landscape) {
  /* Header */

  .header-image h1 {
    font-size: 100px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 600px;
    height: 600px;
  }
  .info-box1 p {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 600px;
    height: 600px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 600px;
    height: 600px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 600px;
    height: 600px;
  }
  .info-box3 p {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  /* Toinen kuva laatikko */

  .info-box4 {
    width: 600px;
    height: 600px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 600px;
    height: 600px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: portrait) {
  /* Header */
  .header-image h1 {
    font-size: 110px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 550px;
    height: 500px;
  }
  .info-box1 p {
    padding-left: 3em;
    padding-right: 3em;
    text-align: center;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 550px;
    height: 500px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 550px;
    height: 500px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 550px;
    height: 500px;
  }
  .info-box3 p {
    padding-left: 3em;
    padding-right: 3em;
  }
  /* Toinen kuva laatikko */

  .info-box4 {
    width: 550px;
    height: 500px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 550px;
    height: 500px;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: landscape) {
  /* Header */
  .header-image h1 {
    font-size: 110px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 550px;
    height: 500px;
  }
  .info-box1 p {
    padding-left: 3em;
    padding-right: 3em;
    text-align: center;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 550px;
    height: 500px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 550px;
    height: 500px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 550px;
    height: 500px;
  }

  /* Toinen kuva laatikko */
  .info-box3 p {
    padding-left: 3em;
    padding-right: 3em;
  }
  .info-box4 {
    width: 550px;
    height: 500px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 550px;
    height: 500px;
  }
}
/*-------------------
    Kannettavat
--------------------*/

/*-------------------
    Suuremmat
--------------------*/
@media screen and (min-width: 1681px) and (orientation: portrait) {
  /* Header */
  .header-image h1 {
    font-size: 120px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 750px;
    height: 700px;
  }
  .info-box1 p {
    padding-left: 3em;
    padding-right: 3em;
    text-align: center;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 750px;
    height: 700px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 750px;
    height: 700px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 750px;
    height: 700px;
  }
  .info-box3 p {
    padding-left: 3em;
    padding-right: 3em;
  }
  /* Toinen kuva laatikko */

  .info-box4 {
    width: 750px;
    height: 700px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 750px;
    height: 700px;
  }
}
@media screen and (min-width: 1681px) and (orientation: landscape) {
  /* Header */
  .header-image h1 {
    font-size: 120px;
  }
  /* Tervetuloa laatikko */

  .info-box1 {
    width: 750px;
    height: 700px;
  }
  .info-box1 p {
    padding-left: 3em;
    padding-right: 3em;
    text-align: center;
  }
  /* Ensimmäinen kuva laatikko */

  .info-box2 {
    width: 750px;
    height: 700px;
  }
  .info-box2 img {
    object-fit: cover;
    width: 750px;
    height: 700px;
  }

  /* Uutiset laatikko */

  .info-box3 {
    width: 750px;
    height: 700px;
  }

  /* Toinen kuva laatikko */
  .info-box3 p {
    padding-left: 3em;
    padding-right: 3em;
  }
  .info-box4 {
    width: 750px;
    height: 700px;
  }
  .info-box4 img {
    object-fit: cover;
    width: 750px;
    height: 700px;
  }
}
/*-------------------
    Suuremmat
--------------------*/
