      /* Az előző CSS kód változatlan marad */


      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
    }

    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        font-size: 16px;
    }

    @media (max-width: 768px) {
        body {
            font-size: 14px;
        }
    
        main {
            flex-grow: 0;
            padding-bottom: 10vh;
        }
      
      
      
        footer {
            height: 7vh;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;

        }      
        /* Adjust the width of the footer buttons */
        .footer-button {
            flex-grow: 1 !important;
            padding: 12px 7px !important;
            font-size: 1em !important;
        }

        /* Adjust the gap between the footer buttons */
        .footer-buttons {
            gap: 5px !important;
        }            
                

    
    }

    header {
        height: 6vh;
        background-color: #333;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        position: relative;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .page-indicator {
        font-size: 1.2em;
        color: #aaa;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        background-color: transparent; /* Eltávolítja az esetleges háttérszínt */
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
        transition: 0.3s;
    }

    .menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #333;
        width: auto;
        transform: translateX(100%);
        transition: 0.3s;
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        transition: 0.3s;
    }

    .menu a:hover {
        background-color: #444;
    }

    main {
        flex-grow: 1;
        padding: 8px;
        background-color: #f0f0f0;
        min-height: 80vh;
    }

    footer {
        height: 10vh;
        background-color: #333;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 7px 12px;
        gap: 10px;
    }


    

    .content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 8px;
    }

    .footer-buttons {
        display: none;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .footer-button {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 1em;
        transition: 0.3s;
    }

    .nav-button {
        background-color: #555;
        color: white;
    }

    .nav-button:hover {
        background-color: #666;
    }

    .nav-button:disabled {
        background-color: #444;
        cursor: not-allowed;
        opacity: 0.5;
    }

    .cancel-button {
        background-color: #ff4444;
        color: white;
    }
    .cancel-button:hover {
        background-color: #ff6666;
    }

    .create-button {
        background-color: #44bb44;
        color: white;
    }

    .create-button:hover {
        background-color: #55cc55;
    }

    .create-button.gray {
        background-color: gray;
    }

    .copyright {
        text-align: center;
    }

    .page-dots {
        display: none;
        gap: 10px;
        margin-bottom: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid white;
        cursor: pointer;
        transition: 0.3s;
    }

    .dot:hover {
        background-color: #666;
    }

    .dot.active {
        background-color: white;
    }

    .datasheet {
        display: none;
    }

    .datasheet.active {
        display: block;
    }

    .regular-content {
        display: none;
    }

    .regular-content.active {
        display: block;
    }

    #eventmap {
        width: 100%;
        height: 250px;
        margin-top: 5px;
    }
    #barracksmap {
        width: 100%;
        height: 250px;
        margin-top: 5px;
    }
    .datasheet input[type="text"] {
        width: 100%;
        height: 2em;
        font-size: 1.5em;
    }
    
    .input-container {
        display: flex;
        gap: 20px;
    }        
    .input-container input[type="text"] {
        margin-bottom: 5px; /* Add margin to the bottom of the input fields */
    }

    .check-container {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .checkbox-label {
        font-size: 24px;
        display: flex;
        align-items: center;
    }

    .checkbox-label input[type="checkbox"] {
        transform: scale(1.5);
        margin-right: 10px;
    }

    #cityInput {
        width: 50%; /* Make the first input field half as wide */
    }


    .button-grid {
        display: flex;
        justify-content: space-between;
    }

    .day-button {
        flex: 1;
        margin: 0 5px;
        padding: 7px;
        font-size: 18px;
        cursor: pointer;
        background-color: #f1f1f1;
        border: none;
        outline: none;
    }

    .day-button.active {
        background-color: #4CAF50;
        color: white;
    }
    

    .button {
    float: right;
    margin-left: 10px;
    padding: 8px 12px;
    font-size: 16px;
    transition-duration: 0.4s;
    }

    .button:active {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
    }


    .button-container {
    display: flex;
    justify-content: flex-start; /* space-around;   */
    width: 100%;
    }


    .none-button {
        display: none;
    }

    .none-button + label {
        background-color: white;
        color: black;
        padding: 5px 10px;
        border: 1px solid black;
    }

    .none-button:checked + label {
        background-color: #ff4444;
        color: white;
    }

    .none-button:checked + label:hover {
        background-color: #ff6666;
    }
    .select-button {
        display: none;
    }

    .select-button + label {
        background-color: white;
        color: black;
        padding: 5px 10px;
        border: 1px solid black;
    }

    .select-button:checked + label {
        background-color: #22dd22;
        color: white;
    }

    .select-button:checked + label:hover {
        background-color: #66ff66;
    }





    .toast-message {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    font-size: 36px;
    }

    .show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

    @keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
    }

    @keyframes fadeout {
    from {opacity: 1;}
    to {opacity: 0;}
    }

    #eventtechnicaldetails, #eventinstructions{
        width: calc(100% - 20px);
        height: calc(50vh); /* set the height to fill the remaining vertical space */
        margin: 10px;
        box-sizing: border-box;
        font-size: 32px;
        resize: none; /* disable resizing */
    }

    #eventmapcenterbutton, #barracksmapcenterbutton {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        width: calc(100% - 0px);
        margin-top: 2px; /* Add some top margin to create space between the buttons */
      }
      
      #eventmapcenterbutton img, #barracksmapcenterbutton img {
        height: 1em;
        margin-right: 0.5em;
      }

      .progress-bar {
        width: 200px;
        height: 20px;
        background-color: #ddd;
        border-radius: 5px;
        overflow: hidden;
        position: relative;
      }
      
      .bar {
        height: 100%;
        width: 0;
        transition: width 0.3s;
      }
      
      .progress-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        line-height: 20px;
        color: #000;
      }
    .container {
        display: flex;
        width: 100%;
        margin: 0;
    }

    .flex-container {
        flex-basis: 25%;
        flex-shrink: 0;
        max-width: 25%; /* Korlátozza a maximális szélességet is 10%-ra */
    
        overflow-x: auto; /* Engedélyezi a vízszintes görgetést */


        white-space: nowrap; /* Megakadályozza a sorok tördelését */
    }

    .flex-item {
        flex-grow: 1;
    }



    .grid-container {
        border: 1px solid #000; /* Adds a border to the grid container */
        display: flex;
        flex-direction: column; /* Egymás alá rendezve */
        align-items: stretch; /* Nyújtás széltől szélig */
        gap: 8px;
        padding: 8px;
    }
    
    .row {
        display: flex;
        gap: 16px;
    }
    
    .radio-item {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align items to the start */
        width: 100%; /* Teljes szélesség */
        gap: 8px;
    }
    input[type="radio"] {
        margin: 0;
    }

    label {
        text-align: left;
        transition: all 0.2s ease;
    }

    label.selected {
        font-size: 120%;
        font-weight: bold;
    }



    .addbuttoncontainer {
        display: flex;
        align-items: center;
    }

    .dropdown-button {
        background-color: #f0f0f0; /* Háttérszín */
        border: 1px solid #ccc; /* Keret */
        border-radius: 4px; /* Kerekített sarkok */
        padding: 10px; /* Belső margó */
        cursor: pointer; /* Egérkurzor */
        display: flex; /* Flexbox használata */
        align-items: center; /* Függőleges középre igazítás */
        margin-left: 10px; /* Távolság a felirat és a gomb között */
        font-size: 150%; /* Nagyobb betűméret */
        font-weight: bold; /* Félkövér szöveg */
        transition: background-color 0.3s, transform 0.3s; /* Átmenetek */
    }

    .dropdown-button:hover {
        background-color: #e0e0e0; /* Világosabb háttérszín */
        transform: scale(1.05); /* Nagyítás */
    }

    .dropdown-button:active {
        background-color: #d0d0d0; /* Még világosabb háttérszín */
        transform: scale(1.1); /* Még nagyobb nagyítás */
    }

    .arrow-down {
        border: solid black;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 4px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        margin-left: 8px; /* Távolság a szöveg és a nyíl között */
    }

    .add-more-events {
        display: flex;
        flex-direction: row;
        gap: 10px; /* Adds space between the button and the select element */
    }
    
    .add-more-events button, .add-more-events select {
        width: 100%; /* Makes the elements fill the available width */
        height: 40px; /* Increases the height of the elements */
        font-size: 16px; /* Increases the font size */
        padding: 10px; /* Adds padding inside the elements */
        box-sizing: border-box; /* Ensures padding is included in the width and height */
    }
    
    .add-more-events button {
        background-color: #3c4249; /* Optional: Adds a background color to the button */
        color: white; /* Optional: Changes the text color of the button */
        border: none; /* Optional: Removes the default border */
        border-radius: 4px; /* Optional: Adds rounded corners */
        transition: background-color 0.3s ease; /* Adds a transition for the background color */
    }
    
    .add-more-events select {
        border: 1px solid #ccc; /* Optional: Adds a border to the select element */
        border-radius: 4px; /* Optional: Adds rounded corners */
    }
    











    #reader {
        height: 56.25%; /* 9/16 of the screen height */
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    #panel {
            position: absolute;
            top: 75%; /* Starts below the reader div */
            height: calc(25% - 30px); /* Remaining screen height minus the height of the result div */
            width: 95%;
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            grid-template-rows: repeat(1, 1fr);
            gap: 5%; /* Create gaps between grid items */
            z-index: 1; /* Ensure the panel appears above the reader div */
}

    #panel > div {
        background-color: rgb(46, 42, 42); /* Set the background color of grid items to blue */
    }
    #result {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #f8f9fa;
        padding: 10px;
        text-align: center;
    }




    .registration-container {
        text-align: center;
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 720px;
        align-self: center;
    }
    .registration-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .registration-input-container {
        display: flex;
        justify-content: space-between;
        margin: 0 16px;
    }
    .registration-input-box {
        width: 40px;
        height: 40px;
        text-align: center;
        font-size: 1.5em;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin: 0 4px;
    }
    .registration-error-message {
        color: red;
        margin-top: 20px;
    }
    .registration-retry-button {
        margin-top: 20px;
        padding: 10px 20px;
        background-color: #007BFF;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }