body {
    background-image: url("../images/taustapilt.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;           
    background-attachment: fixed;       
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;                 
}

header {
  display: grid;
  align-items: center;
  justify-content: center;
  font-style: normal;
  text-align: center;
  padding: 1rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}
header h1 {
  margin: 0; 
  font-size: 2rem;
  color: #f9f9f9;

}
.main-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #feffff;
}
nav {
  margin-top: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #ffcc00;
}
main,
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}
.video-ja-pilt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1000px;
}
#Kontakt p {
  margin: 0.5rem 0;
}
p {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}
img {
  width: 300px;
  border-radius: 30px;
  float: left;
  margin-right: 10px;
  height: 270px;
}
video {
  width: 150px;
  border-radius: 20px;
  margin-right: 10px;
}
body {
  color: white;
  flex-direction: column;
  min-height: 100vh;
}
button:hover {
  font-size: 1.1rem;
  background-color: aliceblue;
}
button:active {
  font-size: 1.1rem;
  background-color: brown;
}
footer {
  text-align: center;
  padding: 1rem;
  color: white;
  margin-top: 2rem;
}
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 0.5rem 0;
    }
    .video-ja-pilt {
        flex-direction: column;
        align-items: center;
    }
    main, section {
        padding: 1rem;
    }
    body {
        min-height: 100vh;
        background-size: cover;
    }
}

