body, html {
  margin: 0;
  padding: 0;
  height: 100%;
    overflow-x: hidden; /* Eemaldab ainult horisontaalse skrollimise */
}

.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: fixed;
    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: 100; /* 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;
  }
}


/* Taustapildi jaoks */


.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

.item {
    z-index: 1;
    border-radius: 20px;
    margin: 20px 0;
    width: 90%;
    max-width: 1000px;
    overflow: hidden;
    text-align: center;
    padding-top: 120px;
}

.item img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Tagab, et pilt mahub konteinerisse, säilitades proportsioonid */
}

.text {
    font-size: 23px;
    font-weight: bold; /* Kasuta font-weight asemel font-style */
    z-index: 1;
    padding: 20px;
    text-align: left;
    color: white;
}

.text p {
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Mobiilseadmete jaoks */
@media only screen and (max-width: 768px) {
    .item {
        width: 100%;
        padding-top: 60px; /* Vähenda ülemist paddingut mobiilseadmetes */
    }

    .item img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Tagab, et pilt on täielikult nähtav mobiilseadmetes */
    }

    .text {
        padding: 15px;
        font-size: 18px; /* Veidi väiksem font mobiilseadmetes */
        text-align: justify;
    }
}

/* Kohandatud stiil iframe'ile */
.trennid {
    margin: 20px auto;
    display: block;
    width: 100%; /* Võtab 100% laiuse */
    height: 700px; /* Seab piisava kõrguse, et sisu oleks nähtav */
    max-width: 1000px; /* Seab maksimaalse laiuse laiematel ekraanidel */
    border: none; /* Eemaldab piirjoone */
}

/* Mobiilseadmete jaoks kohandatud stiilid */
@media only screen and (max-width: 768px) {
    .trennid {
        width: 100%; /* Võtab kogu ekraani laiuse väiksematel ekraanidel */
        height: 80vh; /* Kasutab 80% vaateakna kõrgusest, et tagada piisav kõrgus */
    }
}

/* Teksti osa stiilid */
.content-section {

    padding: 120px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
        color: white;
}

.video-overlay h1 {

        color: white;
    font-size: 3em;
    margin-bottom: 20px;
}

.video-overlay p {
     padding: 20px; /* Suurem padding, et tekitada ruumi sisu ümber */
    border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.397);
        color: white;
    font-size: 1em;
    margin-bottom: 20px;
}

.video-overlay a {
    color: blue;
    text-decoration: underline;
}

.video-overlay strong {
    font-size: 2em;
    font-weight: bold;
    color: white;
}

iframe {
    width: 100%;
    height: 2800px;
    border: 1px solid #ccc;
    margin-top: 20px;
}

/* Responsive disain väiksematele ekraanidele */
@media (max-width: 768px) {
    .content-section {
        padding: 100px;
    }

    .video-overlay h1 {
        font-size: 1.5em;
    }

    .video-overlay p {
                width: 350px;
        font-size: 0.9em;
    }

    iframe {
        height: 600px;
    }
}


/* Desktop style */
footer {
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 20px;
    text-align: center;
    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;
    }
}


body {
    background-color: rgba(0, 0, 0, 0.897);
    color: white; /* Teksti värv muudetud valgeks, et see oleks loetav mustal taustal */
    margin: 0; /* Eemaldab vaikimisi marginaalid */
    padding: 0;
}