


body {
    height: 100%; /* Umožní stránke zaberať celú výšku okna */
    margin: 0;
    /*font-family: 'Raleway', sans-serif;*/
    /* font-family: comic 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS'; */
    font-family: 'Raleway', sans-serif;
    color: #2c3876;
    background-color: #383e42;
    display: flex; /* Flexbox na rozloženie */
    flex-direction: column; /* Zobrazí elementy vo vertikálnom smere */
}

html, body {
    height: 100%; /* zabezpečí, že html a body budú mať výšku 100% */
    margin: 0; /* zruší predvolené okraje */
  }

header{
    background-color: #383e42;
    color: #f4f4f4;
    text-align: center;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

footer{
    margin-top: auto;
    background-color: #383e42;
    color: #f4f4f4;
    text-align: center;
    padding: 20px;
}


footer p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #2c4776;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
}

.logo {
    float: left;
    padding-left: 20px;
}
/*#f4f4f4
#383e42
#50595e
#6f7a82
#95a4ad
#bfd0db
#919191
#404040
#b3b3b3*/
/* Menu */
.menu {
    background-color: #383e42;
    padding: 10px;
    position: relative;
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Opravené */
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #f4f4f4;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 15;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.menu ul li {
    margin: 0;
}

.menu ul li a {
    color: #f4f4f4;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.menu ul li a:hover {
      background-color: #2c4776;
     color: #f4f4f4;
    text-decoration: underline;
}

.menu a.active {
    text-decoration: underline;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    background-color: #383e42;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    display: block;
    padding: 1em 1.5em;
    color: #2c3876;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: #2c3876;
    color: #f4f4f4;
  }



/* Novinky */
.news {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.news h1 {
    font-size: 2em;
    color: #f4f4f4;
    margin-bottom: 20px;
}

.news-card {
    width: 70%;
    max-width: 1200px;
    background: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.news h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3876;
    margin-bottom: 10px;
}

.news p {
    font-size: 1.2em;
    color: #2c3876;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
}


.contact iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; 
    border: 0;
}


.competitor{
    color: #2c3876;
}

.competitor h1{
    text-align: left;
}

.competitor a{
    text-decoration: none;
    color: #2c3876;
}
.competitor a:hover{
    color: #33beff;

    }

.competitor table{
    color: #2c3876;
}    

.competitor td{
    color: #2c3876;
}


.pocasie {
    color: #2c3876;
    text-decoration: none;
}

.pocasie:hover {
    color: #33beff;
}

.pocasie_m{
    text-decoration: none;
    color: #2c3876;
    font-size: 20px;
}

.pocasie_m:hover{
    color: #33beff;
}

.section {
    margin-bottom: 100px;
}

.admin table {
    width: 100%;
    border-collapse: collapse;
    color: #f4f4f4;
}



.admin th{
    color: #1a237e;
}

.admin a{
    text-decoration: none;
    color: #f4f4f4;
}

.admin a:hover{
    color: #33beff;
}

.button-container {
    display: flex;
    margin-bottom: 10px; /* Medzera medzi riadkami */
}

.user button{
    width: 100%; 
    padding: 10px 20px;
    color: #f4f4f4;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.logout-button{
    width: auto;
    background-color: #1f285a; /* Červená farba pre Logout */
    color: #f4f4f4;    
    padding: 10px 20px;
    margin-top: 10px; /* Medzera medzi tlačidlami */
    border-radius: 5px;
    text-decoration: none;
    float: left;
    font-size: 16px;
}

.user input{
    margin-bottom: 10px; /* Odstup medzi prvkami */
    padding: 8px;
    font-size: 16px;
}

.delete_a{
    background-color: #ff4d4d;
    color: #f4f4f4;
}
.novinka {
    display: flex;
    flex-direction: column;
    width: 50%; 
    margin: 50px auto;

}

.novinka input,
.novinka textarea,
.novinka button {
    margin-bottom: 10px; /* Odstup medzi prvkami */
    padding: 8px;
    font-size: 16px;
}

.delete{
    display: inline-block;
    padding: 5px 10px;
    font-size: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-color: #ff4d4d;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

@media (max-width: 768px) {
    th, td {
        font-size: 14px;
        padding: 6px;
    }
}

/* Pri šírke pod 1024px skryjeme "Country" */
@media (max-width: 1024px) {
    table th:nth-child(3),
    table td:nth-child(3) {
        display: none;
    }
}

/* Pri šírke pod 850px skryjeme "Aeroclub" */
@media (max-width: 850px) {
    table th:nth-child(4),
    table td:nth-child(4) {
        display: none;
    }
}

/* Pri šírke pod 700px skryjeme "Registration sign" */
@media (max-width: 700px) {
    table th:nth-child(6),
    table td:nth-child(6) {
        display: none;
    }
}

/* Pri šírke pod 550px skryjeme "Type of glider" */
@media (max-width: 550px) {
    table th:nth-child(7),
    table td:nth-child(7) {
        display: none;
    }
}

/* Pri šírke pod 450px necháme len "Name" a "Start sign" */
@media (max-width: 450px) {
    table th:nth-child(1),
    table td:nth-child(1) {
        width: 20px; /* Užšie číslo */
    }

    table th:nth-child(2),
    table td:nth-child(2) {
        width: 60%; /* Zmenšíme šírku mena */
    }

    table th:nth-child(5),
    table td:nth-child(5) {
        width: 30%; /* Zmenšíme šírku Start sign */
    }
}




.download {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}


.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    width: 350px; /* Zvýšenie šírky */
}

.download-item span {
    flex: 1;
    text-align: left;
    min-width: 180px; /* Pevná šírka, aby boli texty zarovnané */
}

.download-button {
    background-color: #1a237e;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    min-width: 120px; /* Rovnaká šírka tlačidiel */
}

.download-button:hover {
    color: #1a237e;
    background-color: #ddd;
}

.gallery {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamicky rozdeľuje stĺpce */
    gap: 16px; /* Nastaví medzery medzi prvkami mriežky */
    margin: 20px; /* Pridá vonkajší okraj kontajnera */

  }
  
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%; /* Udrží pomer strán štvorca */
  }
  
  .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázok sa správne orezáva */
    border-radius: 8px; /* Zaoblené rohy */
    transition: transform 0.3s ease;
  }
  
  .gallery-item img:hover {
    transform: scale(1.1); /* Jemné priblíženie pri hover */
    cursor: pointer;
  }

.admin_gallery{
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}  

.admin_gallery-item{
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
}
.admin_gallery-item img {
    position: absolute;
    left: 10;
    bottom: 30;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázok sa správne orezáva */
  }
/* Lightbox - pozadie */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  /* Obsah Lightboxu */
  .lightbox-content {
    position: center;
    margin: 0 auto;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
  }
  
  /* Zatvárací tlačidlo */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }
  
  /* Obrázok v Lightboxe */
  .lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    align-items: center;
  }
  
  /* Tlačidlá pre predchádzajúci a nasledujúci obrázok */
  .prev-btn,
  .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10000;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }

button{
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    background-color: #1f285a;
    color: white;
}
.section {
    margin-bottom: 50px;
    text-align: center;
}


.container {
    max-width: 800px;
    width: 70%;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;

}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #f4f4f4;
    text-decoration: none;
    background: transparent;
    border: none;
}

.close-btn:hover {
    color: #ff4d4d; 
}


.detail{

    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    display: flex;
    flex-direction: column; /* Štandardne na výšku */
    align-items: center; /* Zarovnanie obsahu */
    gap: 20px;
    text-align: center;
}



.box img{
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}


.form{
    text-align: left;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
  }
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
  }
  .form-group input[type="checkbox"] {
    width: auto;
  }
  .form-group small {
    font-size: 0.9em;
    color: #666;
  }
  .form-actions {
    text-align: center;
    margin-top: 20px;
  }

.button {
    padding: 10px 20px;
    color: white;
    background-color: #2c3876;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: lightgrey;
    color: #2c3876;
}

.button.registraciabutton {
    background-color: white;
    color: #2c3876;
}

.button.registraciabutton:hover {
    color: white;
    background-color: #2c3876;
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .section h1,
    .section h2 {
        font-size: 1.8rem;
    }

    .section p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section h1,
    .section h2 {
        font-size: 1.5rem;
    }

    .section {
        margin: 0;
        padding: 0;
        display: inline-block;
        width: auto;
    }

    /* Responzívne menu */
    .menu-toggle {
        display: flex;
    }

    #menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #383e42;
        padding: 10px 0;
    }

    #menu-list.active {
        display: flex;
    }

    .menu ul li a {
        padding: 15px;
        text-align: center;
    }

    .bcg {
        height: 40vh;
        font-size: 1.5rem;
    }

    .news{
        width: 90%;
    }
}





@media screen and (max-width: 768px) {
    .iframe-container {
        display: none;
    }

    .section {
        margin: 0;
        padding: 0;
    }

    .section h1 {
        display: inline-block;
        margin: 5px;
        font-size: 1.2em; /* Prispôsobenie veľkosti písma */
    }
}


@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    .section h1,
    .section h2 {
        font-size: 1.2rem;
    }

    .section p {
        font-size: 0.8rem;
    }

    .download-item {
        width: 100%; /* Na menších obrazovkách sa šírka nastaví na 100% */
    }

    .download-item span {
        min-width: auto; /* Odstránime minimálnu šírku pri malých obrazovkách */
    }

    .download-button {
        font-size: 14px; /* Zmenšíme text tlačidla */
        padding: 5px 8px; /* Zmenšíme padding tlačidla */
    }
}


.pass a{
    text-decoration: none;
    color: #2c3876;
}

.pass a:hover{
    text-decoration: underline;
}

.bcg {
    width: 100%;
    min-height: 60vh;
    background-image: url('../img/logo/background.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;   /* POSUN TEXTU DOLU */
    justify-content: center;
    padding-bottom: 180px;    /* O koľko nižšie (nastav podľa chuti) */
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}




.admin{
    color: #f4f4f4;
}
