body, html {
  margin: 0;
  padding: 0;
    overflow-x: hidden; /* Eemaldab horisontaalse scrolli */

}


.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;
    background-color: rgba(0, 0, 0, 0.322);
    border-radius: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 90%;
    max-width: 1000px;
    overflow: hidden;
    text-align: center;
}

.item img {
    width: 100%;
    height: auto;

}

.text {
    font-size: 23px;
     font-style: bold;
        z-index: 1;
    padding: 20px;
    text-align: left;
}

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

/* Mobiilseadmete jaoks */
@media only screen and (max-width: 768px) {
    .item {
        width: 100%;
    }

    .text {
        padding: 15px;
        font-size: 15px;
        text-align: justify;
    }

    .item img {
        height: auto;
    }
}




/* 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;
    }
}

/* Üldised stiilid */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.content-section {

    max-width: 1200px;
    margin: 0 auto;
    padding: 150px;
}

/* Teksti osa stiilid */
.text-section {
    margin-bottom: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.text-section h2 {
    margin-top: 20px;
    font-size: 1.8em;
}

.text-section p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* Meeskonna tutvustused */
.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.item {
    display: flex;
    flex-direction: row;
    align-items: center; /* Pilt ja tekst on ühesuguse kõrgusega */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 100%; /* Täislaine laius */
    max-width: 1200px; /* Maksimaalne laius */
    height: 500px; /* Fikseeritud kõrgus */
    box-sizing: border-box;
}

.item img {
    width: 30%; /* Pilt võtab 30% konteineri laiusest */
    height: 100%; /* Täidab kogu kõrguse */
    object-fit: cover; /* Säilitab pildi proportsioonid */
    border-radius: 8px;
    margin-right: 20px;
}

.text {
    flex: 1; /* Tekst täidab ülejäänud ruumi */
    font-style: bold;
    font-size: 15.5px;
    margin-bottom: -10px; /* Vähendab vahet lõikude vahel */
    line-height: 10.4; /* Kohanda rea kõrgust */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Keskendab teksti vertikaalselt */
}





/* Responsive disain väiksematele ekraanidele */
@media (max-width: 768px) {
    .team-section {

                        width: 350px;
        flex-direction: column;
    }

    .item {

        height: 1400px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .item img {
                height: 500px;
        width: 350px;
        max-width: 100%; /* Telefonidel on pilt täislaiuses */
        margin-right: 0;
        margin-bottom: 10px;
    }

    .text {

        font-size: 0.9em;
        line-height: 1.6;
    }

    .text-section h2 {
                        width: 350px;
        font-size: 1.5em;
    }

    .text-section p {
                        width: 350px;
        font-size: 0.9em;
    }
}

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;
}