*,
*:before,
*:after {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "roboto";
}
html,
body {
  background-color: #f8cbae;
  width: 100%;
  height: 100%;
  margin: 0;
}

/*-------------------
        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-image {
  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;
}
.tiedot-box {
  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;
  padding-left: 3em;
  padding-right: 3em;
  padding-bottom: 3em;
  padding-top: 3em;
  overflow-x: auto;
}
.tiedot p {
  font-size: 20px;
  margin-top: 0.25em;
}

.image-carousel {
  width: 75%;
  height: 70%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  margin-top: 5.55em;
  margin-bottom: 5.55em;
}
.mySlides {
  display: none;
}

/* Kuvakarusellin kuvat */
.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
}
.carousel-image {
  vertical-align: middle;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Seurvaa ja edellinen nappulat */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-right: 25px;
  padding-left: 25px;
  margin-top: -22px;
  margin-left: 10px;
  margin-right: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
/* Oikean napin sijoitus oikeaan reunaan */
.next {
  right: 0;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.8);
}
.prev {
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.8);
}
.prev:hover,
.next:hover {
  background-color: rgba(51, 51, 51, 0.8);
}
/* Vasemmassa yläkulmassa oleva luku karusellin kuvissa */
.numbertext {
  color: #f2f2f2;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px 0 10px 0;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
/* Häivytys animaatio */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.info-box {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: #f9d7c1;
  overflow: hidden;
  display: inline-flex;
}
.info-box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: inline-flex;
}
.second-header {
  font-size: 80px;
  margin-bottom: 0.25em;
}
.perustiedot-header {
  font-size: 50px;
}
p {
  font-size: 20px;
}
.Jalostustietokanta {
  color: black;
  transition: 0.3s;
}
.Jalostustietokanta:hover {
  color: #b3b3b3;
}
.videogalleria-box {
  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;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3em;
  padding-left: 3em;
  padding-right: 3em;
  padding-top: 3em;
  padding-bottom: 3em;
}
.square {
  width: 100%;
  height: auto;
  background-color: #f9d7c1;
  aspect-ratio: 16 / 9;
}
.videogalleria-video {
  width: 100%;
  height: 100%;
}
.videogalleria-header {
  padding-left: 0.5em;
  padding-top: 0.5em;
  font-size: 80px;
}
/*-------------------
  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: 319px) and (orientation: portrait) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 35px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */
  .second-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 30px;
    text-align: center;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */
  .image-carousel {
    width: 95%;
    height: 35%;
  }
  .prev,
  .next,
  .text {
    font-size: 14px;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}
@media screen and (max-width: 319px) and (orientation: landscape) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 35px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */

  .second-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 30px;
    text-align: center;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 90%;
  }
  .prev,
  .next,
  .text {
    font-size: 14px;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}
@media screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 35px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */

  .second-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 30px;
    text-align: center;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 35%;
  }
  .prev,
  .next,
  .text {
    font-size: 14px;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}

@media screen and (min-width: 320px) and (max-width: 480px) and (orientation: landscape) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 35px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */

  .second-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 30px;
    text-align: center;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 90%;
  }
  .prev,
  .next,
  .text {
    font-size: 14px;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}
/*-------------------
      Puhelimet
  --------------------*/
/*-------------------
      Tabletit
  --------------------*/

@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 60px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */
  .second-header {
    font-size: 30px;
    text-align: center;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 35%;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
  /* Header ja Nav */

  .header-image h1 {
    font-size: 60px;
  }
  nav {
    width: 100%;
  }
  .nav-links {
    text-align: center;
    display: inline-block;
  }
  .nav-links li {
    padding: 0.5em;
  }
  /* otsikot */

  .second-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 30px;
    text-align: center;
  }
  .videogalleria-header {
    padding-top: 0.5em;
    padding-bottom: 0.5m;
    font-size: 30px;
    text-align: center;
  }
  .perustiedot-header {
    font-size: 25px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 90%;
  }
  .grid {
    display: inline-block;
    gap: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .tiedot-box {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
  }
}
/*-------------------
      Tabletit
  --------------------*/

/*-------------------
      Kannettavat
  --------------------*/

@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) {
  /* Header */
  .header-image h1 {
    font-size: 100px;
  }
  /* Kuvakaruselli */

  .image-carousel {
    width: 95%;
    height: 35%;
  }
  .grid {
    display: inline-block;
    gap: 0em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .second-header {
    font-size: 60px;
  }
  .videogalleria-header {
    font-size: 60px;
  }
  .perustiedot-header {
    font-size: 50px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1023px) and (orientation: landscape) {
  /* Header */

  .header-image h1 {
    font-size: 100px;
  }
  /* Kuvakaruselli */
  .image-carousel {
    width: 95%;
    height: 90%;
  }
  .grid {
    display: inline-block;
    gap: 0em;
  }
  .square {
    margin-bottom: 3em;
    width: auto;
    height: auto;
    display: flex;
  }
  .second-header {
    font-size: 60px;
  }
  .videogalleria-header {
    font-size: 60px;
  }
  .perustiedot-header {
    font-size: 50px;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: portrait) {
  /* Header */

  .header-image h1 {
    font-size: 110px;
  }
  /* Kuvakaruselli */
}
@media screen and (min-width: 1280px) and (max-width: 1680px) and (orientation: landscape) {
  /* Header */

  .header-image h1 {
    font-size: 110px;
  }
  /* Kuvakaruselli */
}
/*-------------------
      Kannettavat
  --------------------*/
/*-------------------
      Suuremmat
  --------------------*/
@media screen and (min-width: 1681px) and (orientation: portrait) {
  /* Header */

  .header-image h1 {
    font-size: 120px;
  }
  /* Koiran pääkuva */

  .info-box {
    width: 100%;
    height: 100%;
  }
}
@media screen and (min-width: 1681px) and (orientation: landscape) {
  /* Header */
  .header-image h1 {
    font-size: 120px;
  }
  /* Koiran pääkuva */
  .info-box {
    width: 100%;
    height: 100%;
  }
}
/*-------------------
      Suuremmat
  --------------------*/
