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



body {
    padding-top: 160px; /* Sama kõrgus kui header */
    background-color: rgba(0, 0, 0, 0.897);
    color: white;
}
.competition-section {
    min-height: 850px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 40px auto; /* Lisab allapoole 40px marginaali */
    font-family: Arial, sans-serif;
}

.competition-section h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.competition-section h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.competition-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.competition-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.competition-section li {
    margin-bottom: 10px;
}

.competition-section a {
    color: #ffd700; /* Kuldne värv linkidele */
    text-decoration: underline;
}

.competition-section a:hover {
    color: #ffa500; /* Oranz toon, kui hiirega üle linkida */
}

/* Mobiilseadmete jaoks */
@media only screen and (max-width: 768px) {
    .competition-section {
        padding: 15px;
        font-size: 14px;
    }

    .competition-section h2 {
        font-size: 1.5em;
    }

    .competition-section h3 {
        font-size: 1.2em;
    }

    .competition-section p, .competition-section li {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .competition-section a {
        font-size: 0.9em;
    }
}
