:root {
    --scrollbar-track-color: #f5f5f5;
    --scrollbar-thumb-color: #e9ba5b;
    --scrollbar-thumb-hover: #f4b334;
    --scrollbar-thumb-border: #fdf6e3;
}

body.dark-mode {
    --scrollbar-track-color: #1f1f1f;
    --scrollbar-thumb-color: #e9ba5b;
    --scrollbar-thumb-hover: #f4b334;
    --scrollbar-thumb-border: #2a2a2a;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-thumb-border);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
    background-color: var(--scrollbar-track-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #212529;
}

/* Nyereményjáték kezdete */
#countdown {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #000;
    font-size: 1.2rem;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: -4%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.15);
    letter-spacing: 1.1px;
    user-select: none;
}

#countdown span {
    display: inline-block;
    min-width: 5px;
    text-align: center;
}
/* Nyereményjáték vége*/

.navbar {
    background: linear-gradient(135deg, #f4b334, #e9ba5b);
    color: white;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px;
    position: relative;
}

.navbar .center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
    color: white;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo img {
    display: block;
    margin: 0 auto;
    max-width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    height: 100%;
    align-items: center;
}

.navbar .fa-bars {
    font-size: 2rem;
}

.navbar .fa-bell {
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar .fa-bell.has-new::after {
    content: '';
    position: absolute;
    top: 30px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
}
    
.nav-links > a, .dropdown > a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.nav-links a:hover, .dropdown:hover > a {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content,
.alert-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background-color: white;
    min-width: 230px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    z-index: 1;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.dropdown-content a,
.alert-dropdown-content a {
    color: #212529;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content-active,
.alert-dropdown-content-active {
    background-color: #e9ba5b;
}

.dropdown-content a:hover,
.alert-dropdown-content a:hover {
    background-color: #e0bd77;
}

.dropdown:hover .dropdown-content,
.dropdown:hover .alert-dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.container, .container2 {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card h1 {
    color: #f4b334;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h2, .card h3 {
    color: #f4b334;
}

.card a {
    color: #f4b334;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
  
thead tr {
    background-color: #f4b334;
    color: #fff;
    font-weight: 600;
}
  
thead th, tbody td {
    padding: 12px 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 100%;
    padding-top: 20px;
    margin: 0 auto;
}

.carde {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carde h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #f4b334;
    text-align: center;
}

.carde .hours {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
    text-align: center;
}

.tarifa {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    background-color: #e9ba5b33;
    border-left: 4px solid #f4b334;
}

.cta {
    margin-top: auto;
    text-align: center;
}

.cta a {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
}

.price-list {
    padding: 0;
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.carde img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #000;
}

.price-list span:first-child {
    font-weight: 500;
}

.price-list span:last-child {
    font-weight: bold;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.msg { 
    margin: 1em auto; 
    padding: .75em 1em; 
    border-radius: 4px; 
    max-width: 500px; 
    text-align: center;
}

.success {
    background: #e6ffed;
    color: #2d7a30;
    border: 1px solid #2d7a30;
}

.error {
    background: #ffe6e6;
    color: #a12d2d;
    border: 1px solid #a12d2d;
}
  
.form-container {
    background: #eee;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(8px);
}
  
.form-group {
    margin-bottom: 3rem;
}
  
.form-group label {
    display: block;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}
  
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(208, 208, 208, 0.1);
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.6);
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: rgba(0, 0, 0, 0.6);
}
  
.form-group input:focus,
.form-group select:focus {
    border-color: #f4b334;
    outline: none;
}

button {
    background: #f4b334;
    color: #fff;
    border: none;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease, transform 0.1s ease;
}
  
button:hover {
    background: #e9ba5b;
}

button.kick { 
    background: #f4b334;
    color: #fff;
    border: none;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 20% !important;
    transition: background 0.2s ease, transform 0.1s ease;
}

button.kick:hover {
    background: #e9ba5b;
}

.rating-wrapper {
    text-align: center;
}
  
.rating {
    display: inline-flex;
    flex-direction: row-reverse;
    unicode-bidi: bidi-override;
}

.rating input {
    display: none;
}
  
.rating label {
    color: #ccc;
    cursor: pointer;
    font-size: 5rem;
    margin: 0 0.3rem;
    transition: color 0.2s ease, transform 0.1s ease;
}
  
.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #f4b334;
    transform: scale(1.1);
}

.flatpickr-calendar .arrowUp,
.flatpickr-calendar .arrowDown {
  display: none !important;
}

body .flatpickr-day.selected {
    background-color: #e9ba5b;
    border-color: #f4b334;
}

input[type="file"]::-webkit-file-upload-button {
    background: #f4b334;
    color: #fff;
    border: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 200;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
  
input[type="file"]::-webkit-file-upload-button:hover {
    background: #e9ba5b;
}

.iframe-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    padding-top: 56.25%;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
  
/* Dark mode */

body.dark-mode {
    background-color: rgb(18, 18, 18);
}

body.dark-mode #countdown,
body.dark-mode .dropdown-content,
body.dark-mode .dropdown-content a {
    background-color: rgb(50, 50, 50) !important;
    color: #fff;
}

body.dark-mode .dropdown-content a.dropdown-content-active {
    background-color: #e9ba5b !important;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #e0bd77 !important;
}

body.dark-mode .navbar,
body.dark-mode .navbar .center-title,
body.dark-mode .nav-links > a, .dropdown > a {
    color: #fff;
}

body.dark-mode .card {
    color: #fff;
    background-color: rgb(30, 30, 30) !important;
    border-radius: 8px;
}

body.dark-mode table {
    background-color: rgb(50, 50, 50) !important;
    color: #fff;
}

body.dark-mode .carde {
    background-color: rgb(50, 50, 50) !important;
    color: #fff;
}

body.dark-mode .hours {
    color: #e7e7e7;
}

body.dark-mode .price-list li {
    border-bottom: 1px solid #111;
    color: #fff;
}

body.dark-mode .success {
    background: #2d7a30;
    color: #e6ffed;
}

body.dark-mode .error {
    background: #a12d2d;
    color: #ffe6e6;
}

body.dark-mode .form-container {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
  
body.dark-mode .form-group label {
    color: #f4f4f4;
}

body.dark-mode select:focus {
    background-color: rgb(50, 50, 50) !important;
}
  
body.dark-mode .form-group input,
body.dark-mode .form-group select {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}
  
body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group select::placeholder {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .rating label:hover,
body.dark-mode .rating label:hover ~ label,
body.dark-mode .rating input:checked ~ label {
    color: #f4b334;
    transform: scale(1.1);
}

body.dark-mode .form-group input:focus {
    border-color: #f4b334;
}

body.dark-mode .flatpickr-calendar {
    background-color: #323232;
    color: white;
    border: 1px solid #555;
    box-shadow: 0 0 8px #000;
}
  
body.dark-mode .flatpickr-months {
    background-color: #3a3a3a;
    color: white;
}
  
body.dark-mode .flatpickr-days {
    background-color: #323232;
    color: white;
}
  
body.dark-mode .flatpickr-day {
    background: transparent;
    color: white;
}

body.dark-mode .flatpickr-day.selected {
    background-color: #e9ba5b;
    border-color: #f4b334;
    color: white;
}
  
body.dark-mode .flatpickr-monthDropdown-months {
    background-color: #444;
    color: white;
}

body.dark-mode .flatpickr-current-month input.cur-year,
body.dark-mode .flatpickr-weekday {
    color: white;
}
  
body.dark-mode .flatpickr-prev-month,
body.dark-mode .flatpickr-next-month {
    color: white;
    fill: white;
}

body.dark-mode .flatpickr-prev-month:hover svg,
body.dark-mode .flatpickr-prev-month:hover svg path,
body.dark-mode .flatpickr-next-month:hover svg,
body.dark-mode .flatpickr-next-month:hover svg path {
    fill: #888 !important;
    stroke: #888 !important;
}

#theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Dark mode vég */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .msg {
        padding: 1rem;
    }

    .cta a {
        font-size: 0.95rem;
    }

    .center-title {
        display: none !important;
    }   

    .menu-toggle {
        display: flex;
    }

    #profile-dropdown > a {
        display: none;
    }
    
    .nav-links {
        overflow-y: auto;
        position: fixed;
        top: 100px;
        left: -100%;
        width: 70%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, #f4b334, #e9ba5b);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0;
        transition: left 0.3s ease;
        z-index: 9;
    }

    .navbar .fa-bars {
        font-size: 1.5rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links > a, .dropdown > a {
        width: 100%;
        padding: 1rem;
        height: auto;
    }

    .navbar h1,
    .nav-links #timer,
    .alert-dropdown-content {
        display: none;
    }
    
    .dropdown {
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        background: inherit;
        border: none;
        box-shadow: none;
        display: none;
        border-radius: 0;
    }

    .dropdown-content a {
        color: #f8f9fa;
    }

    .dropdown-content-active {
        background-color: #f4b334
    }
    
    .dropdown-content a:hover {
        background-color: #e9ba5b;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .modern-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 2rem;
    }

    button.kick {
        width: 100% !important;
    }

    .flatpickr-calendar {
        font-size: 0.85rem;
    }

    .rating label {
        font-size: 2rem;
    }

    .iframe-wrapper {
        padding-top: 75%;
    }

    body.dark-mode .dropdown-content a {
        background-color: #f4b334 !important;
        color: #f8f9fa !important;
    }
    
    body.dark-mode .dropdown-content a:hover {
        background-color: #f4b334 !important;
    }
}

@media (min-width: 769px) {
    .modern-btn {
        width: auto;
    }
}