* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "roboto";
}

html,
body {
  background-color: #f8cbae;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/*-------------------
        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;
}
/*-------------------
        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;
}
/*-------------------
        Sivun pääsisältö
    --------------------*/
.container {
  width: 100%;
  margin-bottom: 5.55em;
}
main {
  margin-top: 5.55em;
  padding-bottom: 100px;
  width: 95%;
  background-color: #f9d7c1;
  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;
  overflow-x: auto;
}
.perustiedot-header {
  font-size: 50px;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}
.second-header {
  text-align: left;
  margin: 0.5em;
  font-size: 80px;
}

.info-box {
  display: inline-block;
  margin-left: 3em;
  margin-right: 3em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
.dna {
  text-decoration: none;
  color: black;
  transition: 0.4s;
}
.dna:hover {
  color: #b3b3b3;
}
table th {
  border-bottom: 4px solid #f08b47;
  text-align: center;
}
td,
th {
  border: 2px solid #f08b47;
  text-align: left;
  padding: 8px;
}
tr:nth-child(even) {
  background-color: #f8cbae;
}

/*-------------------
        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);
}
/*-------------------
      Media queries
  --------------------*/

/*-------------------
      Puhelimet
  --------------------*/
@media screen and (max-width: 480px) and (orientation: portrait) {
  .header-image h1 {
    font-size: 35px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  main {
    overflow-x: scroll;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 30px;
    margin-left: 1.5em;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
}

@media screen and (max-width: 480px) and (orientation: landscape) {
  .header-image h1 {
    font-size: 35px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 30px;
    margin-left: 1.5em;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  main {
    overflow-x: scroll;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
}

/*-------------------
        Tabletit
    --------------------*/

@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .header-image h1 {
    font-size: 60px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 30px;
    margin-left: 1.5em;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  main {
    overflow-x: scroll;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
}
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
  .header-image h1 {
    font-size: 60px;
  }
  body {
    overflow-x: hidden;
  }
  nav {
    width: 100%;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 30px;
    margin-left: 1.5em;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  main {
    overflow-x: scroll;
  }

  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
}

/*-------------------
        Kannettavat
    --------------------*/

@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) {
  .header-image h1 {
    font-size: 100px;
  }
  body {
    overflow-x: hidden;
  }
  main {
    overflow-x: scroll;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 60px;
    margin-left: 0.8em;
  }
  .perustiedot-header {
    font-size: 50px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: landscape) {
  .header-image h1 {
    font-size: 100px;
  }
  body {
    overflow-x: hidden;
  }
  main {
    overflow-x: scroll;
  }
  .info-box {
    display: inline-block;
  }
  .second-header {
    font-size: 60px;
    margin-left: 0.8em;
  }
  .perustiedot-header {
    font-size: 50px;
  }
}

/*-------------------
        Suuremmat
    --------------------*/

@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: portrait) {
  .header-image h1 {
    font-size: 110px;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: landscape) {
  .header-image h1 {
    font-size: 110px;
  }
}
@media screen and (min-width: 1681px) and (orientation: portrait) {
  .header-image h1 {
    font-size: 120px;
  }
}
@media screen and (min-width: 1681px) and (orientation: landscape) {
  .header-image h1 {
    font-size: 120px;
  }
}
