.table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    background-color: #222;
}

.table thead {
    background-color: #0c0c0c;
    color: #fff;
}

.table thead th {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    background-color: #0c0c0c !important;
}

.table tbody td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.table tbody td:first-child {
    font-weight: 700;
    background-color: #0c0c0c;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 95%;
    margin: 0 auto;
}

.table tbody tr:nth-child(even) {
    background-color: #131313;
}

@media (max-width: 768px) {
    .table thead th {
        font-size: 12px;
        padding: 8px;
    }

    .table tbody td {
        font-size: 12px;
        padding: 8px;
    }

    .table tbody td:first-child {
        min-width: 80px;
    }
}

#result {
    text-align: center !important;
}

form#calculator-form {
    max-width: 500px;
    margin: 0 auto;
    max-width: 1200px;
}

form#calculator-form label.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #f0c14b;
    font-size: 1.3rem;
}

form#calculator-form input.form-control {
    width: 100%;
    font-family: monospace;
    font-size: 1rem;
    background: #2b2b2b;
    color: #f0c14b;
    border: none;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

form#calculator-form input.form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

form#calculator-form button {
    background-color: #fff;
    color: #333;
    border: 2px solid #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

@media (max-width: 600px) {
    form#calculator-form {
        padding: 16px;
    }

    form#calculator-form button {
        font-size: 15px;
    }
}

#palinka-kalkulator {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0px;
}

#algoritmus {
    background-color: #222;
    margin: 0 auto;
    padding: 25px 0;
}

@keyframes steam {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

body {
    background-color: #121212;
    color: #eee;
    font-family: sans-serif;
    margin: 0;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.main-header {
    background-color: #1e1e1e;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    flex-direction: column;
    color: #fff;
    font-size: 14px;
    width: 100%;
    top: 0;
    z-index: 20000;
}

.top-bar a {
    color: gold;
    margin-left: 10px;
    text-decoration: none;
}

#toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0 !important;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-text {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 2rem;
}

.highlighted-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #27ae60;
    /* szép zöld */
}

.modal-buttons .btn {
    padding: 0.6rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.modal-buttons .btn:hover {
    background-color: #2980b9;
}

#palinka-kalkulator h1 {
    margin-top: 50px;
    margin-bottom: 50px;
}

#calculator-section h2 {
    margin-top: 50px;
    margin-bottom: 50px;
}

.section-algoritmus {
    padding: 60px 20px;
    background: #fafafa;
    text-align: center;
}

.section-algoritmus .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.section-algoritmus .intro {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
}

.algoritmus-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.subtitle {
    font-size: 1.3rem;
    margin-top: 20px;
    color: #444;
}

.formula code {
    display: block;
    font-size: 1.2rem;
    color: #c0392b;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.example-text {
    margin: 15px 0 5px;
    font-style: italic;
    color: #0c0c0c;
}

.calculation-result {
    font-size: 1.3rem;
    color: #2c3e50;
}

.calculation-result .highlight {
    color: #1e5631;
}

.hero-container {
    max-width: 900px;
    margin: 50px auto 60px;
    padding: 25px 30px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: #f5f0e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffb400;
    text-align: center;
    text-shadow: 0 0 8px #000;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    color: #ddd7c3;
    margin-bottom: 35px;
    line-height: 1.5;
}

.hero-content {
    padding-left: 10px;
    padding-right: 10px;
}

.section-title {
    font-size: 1.8rem;
    color: #ffca28;
    border-bottom: 2px solid #ffb400;
    padding-bottom: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.features-list,
.steps-list {
    max-width: 700px;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e7dfc6;
    padding-left: 20px;
}

.features-list li,
.steps-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #ffb400;
    transition: background-color 0.3s ease;
    cursor: default;
}

.features-list li:hover,
.steps-list li:hover {
    background-color: rgba(255, 180, 0, 0.15);
    border-left-color: #fa0;
}

.calculator-form-section {
    padding: 40px 20px;
    background: #f9f9f9;
    color: #222;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#palinka-higitas-tabla {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px 30px;
    color: #f0e6d2;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#palinka-higitas-tabla h3 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #f9f4e7;
    border-bottom: 2px solid gold;
    padding-bottom: 6px;
}

#palinka-higitas-tabla ol {
    padding-left: 15px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #e0d9c0;
}

#palinka-higitas-tabla ol li {
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 8px;
    border-left: 3px solid gold;
    transition: background-color 0.3s ease;
    cursor: default;
}

#palinka-higitas-tabla ol li:hover {
    background-color: rgba(255, 215, 0, 0.15);
    border-left-color: orange;
}

.parallax {
    background-image: url(https://palinkahigitas.hu/3.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax2 {
    background-image: url(https://palinkahigitas.hu/4.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax3 {
    background-image: url(https://palinkahigitas.hu/5.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax4 {
    background-image: url(https://palinkahigitas.hu/6.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-content {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parallax-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: 1px;
}

.parallax-content p {
    font-size: 1.3rem;
    margin: 0 auto;
    line-height: 1.6;
}

.intro {
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
}

.highlight-row {
    background-color: #5a0000 !important;
}

.highlight-column {
    background-color: #5a0000 !important;
}

.highlight-cross {
    background-color: red !important;
    font-weight: 700;
}

/* Hamburger gomb fixed pozícióban */
.hamburger-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 109991;
}

.hamburger-btn .bar {
    height: 4px;
    background-color: #eeeeee;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 3 sáv alapból: mindegyik 100% széles */
.hamburger-btn .bar {
    width: 100%;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    transform-origin: center;
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
    transform-origin: center;
}

/* Oldalsó menü (sidebar) alapból rejtve jobb oldalon */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -250px;
    /* kívül a képernyőn */
    width: 250px;
    height: 100vh;
    background-color: #0c0c0c;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 109990;
    padding-top: 60px;
}

/* Amikor aktív, beljebb csúszik */
.sidebar-menu.active {
    right: 0;
}

/* Menü lista */
.sidebar-menu ul {
    list-style: none;
    padding: 0 20px;
}

.sidebar-menu li {
    margin-bottom: 20px;
}

.sidebar-menu a {
    color: #ffb400;
    text-shadow: 0 0 8px #000;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.sidebar-menu a:hover {
    color: #f4f4f4;
}

/* Áttetsző fekete overlay a háttérben */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20998;
}

/* Aktív overlay */
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media only screen and (max-width: 768px) {
    /* Globális beállítások */
    body {
        font-size: 16px;
    }

    /* Fejléc, menü */
    header,
    .navbar,
    .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu a {
        padding: 10px 0;
        display: block;
    }

    /* Parallax szekciók */
    .parallax {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        min-height: 250px;
    }

    .parallax h2,
    .parallax p {
        font-size: 20px;
        text-align: center;
        padding: 0 10px;
    }

    /* Tartalom szekciók */
    section,
    .content {
        padding: 20px 10px !important;
    }

    h1,
    h2,
    h3 {
        font-size: 24px;
        text-align: center;
    }

    p {
        font-size: 16px !important;
        text-align: justify;
    }

    /* Űrlapok és inputok */
    input,
    textarea,
    button {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px !important;
        margin-bottom: 15px;
    }

    /* Táblázatok */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        font-size: 14px;
    }

    /* Footer */
    footer {
        text-align: center;
        font-size: 14px;
        padding: 20px 0;
    }

    /* Képek */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Egyedi: ha van konkrét class amit mobilon elrejtenél */
    .only-desktop {
        display: none;
    }

    .parallax,
    .parallax2,
    .parallax3,
    .parallax4 {
        min-height: 250px !important;
        height: 250px !important;
    }

    .parallax-content {
        height: 250px !important;
    }
}
