body {
  margin: 0;
  padding: 0;
  font-family: "Gill Sans", sans-serif;
  background-image: url("Tausta.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html {
  scroll-behavior: smooth;
}

header {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

@media (max-width: 768px) {
  header {
    position: static;
    padding: 10px 5px;
  }
  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    font-size: 20px;
  }

  .language-switch {
    flex: 1 0 100%;
    text-align: right;
    order: -1;
  }

  body {
    background-attachment: scroll;
  }

  .team-member-photo {
    width: 100%;
  }

  header {
    position: static;
  }

  nav ul {
    flex-direction: column;
  }

  .footer-logos img {
    width: 80%;
    margin: 10px auto;
  }

  .team-row,
  .footer-logos {
    flex-direction: column;
  }

  .video-container iframe {
    width: 350px;
    height: 196.875px;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.language-switch {
  margin-left: auto;
  margin-right: 1cm;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #666;
}

main {
  text-align: center;
  padding-top: 20%;
}

h1,
h2,
h3 {
  font-size: 3em; /* H1 */
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 1s ease;
}

h2 {
  font-size: 1.5em;
} /* H2 */
h3 {
  font-size: 1em;
} /* H3 */

p {
  transition: opacity 1s ease;
}

#initialText.fade-out,
#scrolledText.fade-out {
  opacity: 0;
}

.small-spacer {
  height: 50px;
}

.spacer {
  height: 150px;
}

.fade-in {
  opacity: 1;
  transition: opacity 1s ease;
}

.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

.centered.text {
  text-align: center;
}

footer {
  background-color: rgba(240, 240, 240, 0.7);
  padding: 20px 0;
  text-align: center;
  position: relative;
}

.partnership-label {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
  font-family: "Gill Sans", sans-serif;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  margin: 0 auto;
}

.footer-logos img {
  width: 100px;
  height: auto;
  margin: 10px;
  max-width: 20%;
}

@media (min-width: 769px) {
  .footer-logos img {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .footer-logos img {
    width: 150px;
    max-width: 33%;
  }
}

#logo1,
#logo2 {
  max-width: 100%;
}

#backToTopButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  display: none;
  z-index: 1001;
}

#backToTopButton:hover {
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.team-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.team-member {
  margin: 0 50px;
  text-align: center;
}

.team-member-photo {
  width: 150px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
}

.privacy-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  font-family: "Gill Sans", sans-serif;
}

.privacy-link:hover {
  text-decoration: underline;
}
#initialText {
  background-image: url("TheGreenCityLogo.png");
  background-size: 150px;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 20px;
}

.game-images-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.game-image {
  width: calc(33.333% - 20px);
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .game-image {
    width: calc(50% - 10px);
  }
}
