body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* Optional: if you want to disable scrolling */
}

.header {
    background: rgba(0,0,0,0.5); /* Poolläbipaistev taust */
    color: white;
    padding: 10px 20px; /* Väiksem padding, et header ei läheks liiga suureks */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2; /* Header on video kohal */
    height: 80px; /* Fikseeritud kõrgus */
}

/* Video taust */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Veenduge, et video ei reageeri klikkidele */
}

.menu-icon {
    display: none; /* Peidetud suurematel ekraanidel */
    font-size: 3em;
    cursor: pointer;
    color: white;
    z-index: 10;
    padding-right: 60px; /* Positsioneerimine */
}


.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.5); /* Semi-transparent background */;
    position: absolute;
    top: 99px;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.mobile-menu a {
    padding: 15px;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(0,0,0,0.5); /* Semi-transparent background */;
}

.mobile-menu a:hover {
    background-color: #rgba(0,0,0,0.5); /* Semi-transparent background */;
}

/* Mobiilseadmete jaoks kohandatud stiilid */
@media only screen and (max-width: 768px) {
    .header-right {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
}

.content {
  position: relative;
  z-index: 1; /* Content on top of the video */
  padding-top: 60px; /* Give some space for the fixed header */
}

.header a {
  float: left;
  color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
  border-radius: 4px;
}

/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

/* Change the background color on mouse-over */
.header a:hover {
 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.397); /* Õrn varju efekt */
  color: white;
}

/* Style the active/current link*/
.header a.active {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.712);
  color: white;
}

/* Float the link section to the right */
.header-right {
  float: right;
   margin-right: 40px; /* Lükkab nupud automaatselt keskele paremal pool */
  margin-left: auto; /* Samuti keskele, kuid vasakult */
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 300px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  .header-right {
    float: none;
  }
}

.trennid2 {
    padding-bottom: 120px ;

}

.meeskond-section {
  background-image: url('meeskond.jpg'); /* Asenda 'path_to_your_image.jpg' oma pildi URLiga */
  background-size: cover;
  background-position: center;
  height: 100vh; /* Määra kõrgus vastavalt vajadusele */
  width: 100%;
  z-index: 1;
}

}
.content-section1 {
    z-index: 1; /* Tõstab z-index väärtust, et olla kindel, et sisu on taustast kõrgemal */
    position: sticky;
    border-radius: 3px;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.712);
      padding-left: 200px; /* Vahemaa pildi ja teksti vahel */
    padding-bottom: 40px;
    padding-top: 120px;
  width: 100%;
}

.item1 {
  display: flex;
  align-items: center; /* Kui soovid, et tekst oleks vertikaalselt keskel */
  margin-bottom: 40px; /* Vahed elementide vahel */
}

.item img {
        border-radius: 10px;
      box-shadow: 0 13px 13px rgba(0, 0, 0, 0.712);
  width: 50%; /* Pildi laius */
  height: auto; /* Pildi kõrgus säilitab proportsioonid */
}

.text1 {
  width: 50%; /* Teksti laius */
  padding-left: 60px; /* Vahemaa pildi ja teksti vahel */
  font-size: 17px;
  color: white;
    font-weight: bold;
    

}

/* Desktop style */
footer {
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

.footer-content a {
    color: white;
    text-decoration: none;

}

.footer-content a:hover {
    text-decoration: underline;
}

/* Mobile style (screen width up to 600px) */
@media only screen and (max-width: 600px) {
    footer {
        padding: 10px;
        font-size: 14px;
    }
    
    .footer-content a {
        font-size: 16px;
    }
}

.logo {
    height: 100%; /* Sobib headeri kõrgusega */
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 60px; /* Pildi maksimaalne kõrgus */
    width: auto; /* Säilitab proportsioonid */
    object-fit: contain; /* Kohandab pildi seespool headerit */
}


/* Telefoni versioon (ekraanilaius kuni 600px) */
@media only screen and (max-width: 600px) {

    .logo-img {
        max-height: 40px; /* Väiksem logo suurus telefonidel */
        width: auto;
    }
}