/* Basic reset and box model fix */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set font, background, and default colors */
html, body {
  height: 100%;
  font-family: 'Pixelify Sans', sans-serif;
  background-image: url('nettisivutausta.png');
  background-size: cover;
  background-repeat: repeat;
  background-position: center center;
  color: #e0e0e0;
}

body {
  padding: 20px;
}

/* Heading and paragraph styles */
h1, h2, p {
  color: #ffffff;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Flexbox container for team and partners */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Link styles */
a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive YouTube embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Partner logos with white background */
.partners .image {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
}

/* Image and team member name styling */
.image {
  width: 200px;
  text-align: center;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  p {
    font-size: 0.95rem;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }

  .image {
    width: 80%;
  }
}
/* Centers the download link and adds space above it */
.download-link {
  text-align: center;
  margin-top: 2rem;
}
/* Styles the appearance of the download link */
.download-link a {
  font-size: 1.2rem;
  color: yellow;
  text-decoration: underline;
  transition: color 0.2s ease;
}