* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("images/erdo2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; 
}

/* Hamburger Menü Stílusok */
.hamburger-menu {
    display: none; /* Rejtett alapértelmezés szerint */
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Kártyák */
.card {
    background: rgba(57, 55, 55, 0.7); 
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1000px; 
    padding: 30px; 
    width: 100%; 
    max-width: 700px;
    margin: 60px auto 30px; 
}

/* Első kártya - galéria */
.card:first-of-type {
    margin-top: 80px; 
}

/* Kártya tartalom */
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Kép és szöveg elhelyezés */
.text-left, .text-right {
    flex: 1;
    color: #D3D3D3;
    margin-bottom: 15px;
}

.image-left, .image-right {
    flex: 1;
    margin-right: 20px;
}

.card-content img {
    width: 100%;
    border-radius: 8px;
    max-height: 250px; 
    object-fit: cover;
}

.action-btn{
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
}

.action-btn:hover {
    background-color: #45a049; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.action-btn:focus {
    outline: none; 
}
.gallery-title{
    color:#D3D3D3;
    text-align: center;
    margin-bottom: 10px;
}
.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    background: rgba(57, 55, 55, 0.7);
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%; 
    max-width: 1000px; 
    margin: 150px auto; 
    color: #D3D3D3;
}

.about-card .card-content {
    display: block; /*Blokk szintű, hogy a float működjön */
}

.about-card img.float-image {
    float: right; 
    margin-left: 20px; 
    margin-bottom: 10px; 
    max-width: 300px;
    height: auto; 
}

/* Mobil nézethez: */
@media (max-width: 768px) {

    .float-image {
        float: none;
    }
}

.about-card p {
    text-align: justify; 
    clear: none; /* Ne törjön sort a lebegtetett elem alatt */
}
/* Nagy Galéria Kártya */
.large-gallery-card {
    background: rgba(57, 55, 55, 0.8); 
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    margin: 80px auto 40px;
    padding: 40px; 
    width: 90%; 
    max-width: 900px; 
}

/* Külön stílus a bejelentkező kártyához */
.login-card {
    background-color: rgba(51, 51, 51, 0.8); 
    padding: 30px;
    border-radius: 10px; 
    margin: 100px auto 50px auto; 
    max-width: 400px; 
    color: white;
}

/* Külön stílus a login-kártya tartalmához */
.login-card-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 20px; 
}

/* Cím stílusa */
.login-card .card-header {
    text-align: center; 
    margin-bottom: 30px; 
}

.login-card .card-header h2 {
    font-size: 26px; 
    margin: 0; 
    padding-top: 0; 
    color: white; 
}

/* Bejelentkezési űrlap stílusa */
.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Felhasználónév mező stílusa */
.login-card input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px; 
}

/* Jelszó mező stílusa */
.login-card input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px; 
}

.login-card label {
    color: white; 
}

.login-card button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-card button:hover {
    background-color: #45a049;
}
.login-main{
    padding-top: 60px;
}
.dashboard-card {
    color: white;  
}

/* Versenyek oldal stílusa */
.competitions-main {
    padding-top: 80px; 
}
.competitions-cards-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    padding: 20px;
    max-width: 1000px; 
    margin: 0 auto;
}

.competition-card {
    flex: 0 0 calc(50% - 20px); 
    box-sizing: border-box; 
    background-color: rgba(51, 51, 51, 0.8); 
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

/* Mobil nézet: kártyák egymás alatt */
@media (max-width: 768px) {
    .competition-card {
        flex: 1 1 100%; 
    }
}
#competition-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 25px;
}

#competition-dates-list li {
    background-color: rgba(0, 0, 0, 0.05);
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: large;
}

#admin-dates-container {
    margin-bottom: 20px;
    margin-top: 20px;
}
#admin-dates-container .date-item {
    margin-bottom: 20px; 
    display: flex;
}

/* Szövegmező stílusa */
#new-date-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
#new-description-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Gombok stílusa */
#add-date-btn{
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Gomb hover állapot */
#add-date-btn:hover{
    background-color: #45a049; 
}
/* Törlés gomb stílusa */
.delete-btn,
#delete-competition-btn {
    background-color: #f44336; 
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

/* Hover állapot törlés gombnál */
.delete-btn,
#delete-competition-btn:hover {
    background-color: #d32f2f; 
}

/* Egyéb rendezvények lista stílusa */
#other-events-list li {
    background-color: rgba(0, 0, 0, 0.05);
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: large;
}
/* A dátumok és szöveg közötti térköz */
#other-events-list {
    margin-bottom: 20px;
    margin-top: 20px;
    list-style: none;
}
#other-events-list .date-item {
    margin-bottom: 20px; 
    display: flex;
}

#add-other-event-btn,#registration-button {
    background-color: #4CAF50; 
    color: white; 
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-other-event-btn,#registration-button:hover {
    background-color: #45a049; 
}

/* Szövegmező stílusa */
#new-other-event-date-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
#new-other-event-description-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
#admin-other-events-container {
    margin-bottom: 20px;
    margin-top: 20px;
}
#admin-other-events-container .date-item {
    margin-bottom: 20px; 
    display: flex;
}

#finalize-competition-btn {
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}
#finalize-competition-btn :hover{
    background-color: #45a049; 
}

#competition-container{
    margin-bottom: 10px;
    margin-top: 10px;
}

#current-competition-details, #actual-competition-desc{
    margin-bottom: 10px;
    margin-top: 10px;
}
/* Formázás az űrlaphoz */
#registration-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#registration-form h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Form csoport */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%; 
    max-width: 500px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
    max-width: 500px; 
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

/* Input mezők */
#registration-form input[type="text"],
#registration-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Rádiógombok */
.form-group-inline label {
    display: block;
    margin-bottom: 5px;
    gap: 5px;
}

.form-group-inline input[type="radio"] {
    margin-right: 10px;
}

/* Beküldés gomb */
#registration-form button[type="submit"] {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#registration-form button[type="submit"]:hover {
    background-color: #45a049;
}
#elso-versenyzesek-panel li{
    list-style: none;
    margin-top: 10px;
}

/* Táblázat konténer igazítása a kártyához */
.table-container {
    width: 100%;
    max-width: 90%;
    margin: auto;
    overflow-x: auto;
}

/* Táblázat alapstílusok */
#competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
    table-layout: fixed;
}

/* Fejléc és cellák */
#competitor-table th, #competitor-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Fejléc háttér és szöveg színe */
#competitor-table th {
    background-color: #444;
    color: white;
}

/* Pontszám mező kisebb méretben */
.score-input {
    width: 60px;
    padding: 4px;
    font-size: 14px;
    text-align: center;
}

/* Gombok kisebbek */
button {
    padding: 6px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Mentés gomb */
button.save-score {
    background-color: #28a745;
    color: white;
}

/* Törlés gomb */
button.delete-competitor {
    background-color: #dc3545;
    color: white;
}

/* Gomb hover effekt */
button:hover {
    opacity: 0.8;
}

/* Reszponzív beállítás kisebb kijelzőkre */
@media (max-width: 768px) {
    .table-container {
        max-width: 100%;
        padding: 10px;
    }

    #competitor-table {
        font-size: 14px;
    }

    #competitor-table th, #competitor-table td {
        padding: 6px 8px;
    }

    .score-input {
        width: 50px;
    }

    button {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Szűrés gomb alap stílusa */
#filter-btn, .filter-button {
    background-color: white; 
    color: black;
    border: none;
    padding: 7px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    height: 30px;
}

/* Hover effekt */
#filter-btn:hover, .filter-button:hover {
    background-color: white; 
}

.table-container {
    display: flex;
    justify-content: center;
    width: 100%; 
    overflow-x: auto;
}

table {
    width: auto; 
    margin: 0 auto; 
}

/* Mobilnézetre vonatkozó beállítások */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto; /* Görgethető táblázat mobilon */
        display: block;
        max-width: 100%;
        -webkit-overflow-scrolling: touch; /* Sima görgetés mobilon */
    }

    table {
        min-width: 600px; 
    }

    /* Kisebb betűméret és padding mobilon */
    table {
        font-size: 12px;
    }

    th, td {
        padding: 5px;
    }

    .score-input {
        width: 50px;
    }

    .action-buttons button {
        font-size: 12px;
        padding: 4px 8px;
    }
}


@media (min-width: 769px) {
    .table-container {
        overflow-x: visible; /* Nem lesz görgethető */
    }
}

/* Az eredmények táblázatot tartalmazó konténer */
.result-table {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
    display: block; 
    overflow-x: auto; /* Vízszintes görgetés engedélyezése */
    white-space: nowrap; /* Nem engedi a szöveg tördelését */
}

/* Táblázat alapbeállításai */
.result-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px; 
    table-layout: auto; 
    word-wrap: break-word;
}

/* Oszlopok beállításai */
.result-table th, .result-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Tördeljük a hosszú szövegeket */
}

@media (max-width: 768px) {
    .result-table {
        overflow-x: auto; /* Görgethetővé tesszük a táblázatot kisebb képernyőn */
        display: block;
    }

    .result-table table {
        font-size: 0.9em;
        min-width: 600px; 
    }

    .result-table th:nth-child(1), /* Helyezés oszlop */
    .result-table td:nth-child(1) {
        width: 10%; 
        min-width: 50px;
    }

    .result-table th:nth-child(2), /* Név oszlop */
    .result-table td:nth-child(2) {
        width: 45%; 
        min-width: 150px;
    }

    .result-table th:nth-child(3), /* Pontszám oszlop */
    .result-table td:nth-child(3) {
        width: 20%; 
        min-width: 80px;
    }
}

#save-txt {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/*versenyek oldalon a verseny eredményekhez*/
.competition-card {
    position: relative; 
    width: 100%;
    max-width: 700px; 
    overflow: hidden; 
}

.swiper-button-prev, 
.swiper-button-next {
    position: absolute;
    top: 60% !important;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: lightgrey !important;
}

.swiper-container-leaderboard .swiper-button-prev,
.swiper-container-leaderboard .swiper-button-next {
    position: absolute;
    top: 60% !important; 
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: lightgrey;
}

/*Lapozó pöttyök*/
.swiper-pagination {
    position: absolute;
    bottom: 0px !important; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.swiper-pagination-bullet {
    background: #ccc !important; 
    opacity: 1; 
}

.swiper-pagination-bullet-active {
    background: #fff !important; 
}

.swiper-slide {
    position: relative;
}

.swiper-slide, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.leaderboard-card h3 {
    margin-bottom: 20px; 
}

/* Swiper alapbeállítások */
.gallery-swiper {
    width: 100%;
    height: 300px; 
    overflow: hidden;
    border-radius: 10px; 
}

/* Swiper-slide méretezése */
/* Képek méretezése */
.swiper-slide img {
    width: 70%;  
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto; 
    border-radius: 10px;
}

/*Rólunk oldal*/
.about-title {
    margin-bottom: 10px;
}
.map-container {
    display: flex;
    justify-content: center;  
    align-items: center;     
    width: 100%;              
}

.map-container iframe {
    width: 90%;       
    max-width: 600px;
    height: 350px;   
    border: 0; 
    border-radius: 15px;
}
@media (max-width: 768px) {
    .map-container iframe {
        width: 100%;  
        height: 300px; 
        border-radius: 10px;
    }
}
/* A teljes naptár és esemény kártyák elrendezése */
/* Kártyák alapstílusa */
.competition-card {
    flex: 1; 
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
    min-width: 400px; 
}

/* Az év és hónap választó gombok */
#year-selector, #month-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#year-selector button, #month-selector button {
    background-color: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

#year-selector button:hover, #month-selector button:hover {
    background-color: #666;
}

/* Naptár */
#calendar-body td {
    width: 50px; 
    height: 50px; 
    text-align: center;
    vertical-align: middle;
    border-radius: 50%; 
    background-color: #333; 
    color: white;
    font-weight: bold;
    margin: 5px; 
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* A hét napjai (hétfő, kedd, stb.) */
#calendar thead tr th {
    padding: 10px; 
    margin: 10px 0; 
    font-size: 18px;
}

#calendar-body td:hover {
    background-color: #555; 
}

/* Versenyek napjának színe */
.competition-day {
    background-color: #62d560 !important;
}

.competition-day:hover {
    background-color: #4ba74f!important;
}

/* Egyéb események napjának színe */
.other-event-day {
    background-color: #4583cd !important;
}

.other-event-day:hover {
    background-color: #35659f !important;
}

@media (max-width: 768px) {
    .calendar-container {
        width: 100%;
        overflow-x: auto; 
        white-space: nowrap;
    }

    #calendar {
        width: 600px; 
        max-width: none; 
        table-layout: auto; 
    }
}

/* Az aktuális nap kiemelése */
.today {
    background-color: lightgray !important;
    color: black !important;
    font-weight: bold;
}
.today:hover{
    background-color: #555 !important;
}
#event-details {
    margin-top: 15px; 
    white-space: pre-line;
}

/*Adatvédelmi tájékoztató*/
.form-group a {
    color: gray; 
    text-decoration: none; 
    transition: color 0.3s ease; 
    text-decoration: underline; 
}

.form-group a:hover {
    color: darkgray; 
}
.Privacy-Policy-h1{
    margin-bottom: 20px;
}
.Privacy-Policy-h2{
    margin-top: 30px; 
    margin-bottom: 15px;
}
.Privacy-Policy-p{
    margin-bottom: 10px; 
}
.Privacy-Policy-ul{
    margin-bottom: 15px;
    padding-left: 20px; 
    list-style-type: none; 
    padding-left: 0;
}
.Privacy-Policy-ul li::before{
    content: "– "; 
}

/*eredmények oldal*/
.results-button {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 60px !important;
}
.results-button:hover {
    background-color: #45a049;
}
.result-card{
    color: white;
    text-align: center;
}
.result-card h3{
    margin-bottom: 10px;
    margin-top: 10px;
}
.result-card ol{
    margin-bottom: 20px;
    list-style-type: decimal !important;
}