* {
  box-sizing: border-box;
}

@font-face {
  font-family: "BlackChancery";
  src: url("black_chancery/BLKCHCRY.TTF") format("truetype");
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

/* Kiinteä taustakuva iOS-yhteensopivasti */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("background_menu.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nav-links a {
  background-color: #fff;
  color: #C5B358;
  font-size: 35px;
  font-family: "BlackChancery";
  padding: 10px 20px;
  text-decoration: none;
}

.nav-links a:hover {
  background-color: #473228;
  color: #fff;
}

.burger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: #C5B358;
  cursor: pointer;
  margin-left: auto;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  padding: 20px;
}

.banner-img {
  max-width: 50%;
  height: auto;
}

#info {
  background-color: #473228;
  padding: 40px 20px;
  margin: 40px 0;
}

#info h1,
#info h2 {
  font-family: "BlackChancery";
  color: #C5B358;
}

h1 {
  font-size: 50px;
  line-height: 1.0;
}

h2 {
  font-size: 50px;
  line-height: 0.5;
}

p {
  line-height: 1.2;
  color: #c7c09a;
  font-size: 25px;
}

ul.ominausuudet {
  list-style-type: circle;
  text-align: left;
  margin: 20px auto;
  max-width: 400px;
  padding-left: 20px;
  color: #c7c09a;
  font-size: 25px;
}

ul.ominausuudet li {
  margin-bottom: 10px;
  font-weight: bold;
}

.traileri {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.traileri iframe {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border: none;
}

.button {
  background-color: #473228;
  border: none;
  color: #C5B358;
  font-family: "BlackChancery";
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 40px;
  margin: 4px 2px;
  cursor: pointer;
}

.button:hover {
  background-color: #ffffff;
  color: #C5B358;
}

#tiimi,
#team {
  text-align: center;
  margin: 40px 0;
  font-family: "BlackChancery";
  font-size: 40px;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  text-align: center;
}

.member img {
  height: 250px;
  object-fit: cover;
  margin-bottom: 10px;
}

.member p {
  margin: 5px 0;
  color: #ffffff;
  font-size: 22px;
  font-family: "BlackChancery";
  font-weight: bold;
  line-height: 1.0;
}

#yhteistyo,
#associates {
  background-color: #473228;
  padding: 20px;
}

#yhteistyo h1,
#associates h1 {
  margin-bottom: 20px;
  font-family: "BlackChancery";
  font-size: 50px;
}

.yhteistyo img {
  max-height: 55px;
  margin: 10px;
}

footer {
  text-align: right;
  padding: 20px;
  color: #ffffff;
  font-size: 14px;
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    background-color: #473228;
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
  }

  .banner-img {
    max-width: 90%;
  }

  p {
    line-height: 1.0;
    font-size: 20px;
  }

  ul.ominausuudet {
    font-size: 18px;
  }

  .member {
    max-width: 35%;
    gap: 2px;
  }

  .team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
    padding: 0 10px;
  }

  .yhteistyo img {
    max-width: 40%;
  }

  /* Override fixed attachment on mobile */
  body {
    background-attachment: scroll;
  }
}
