html
{
    scroll-behavior: smooth;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.menu-item
{
    padding: 2px;
    cursor: pointer;
    line-height: 24px;
}

.menu-item:hover
{
    background-color: #c2c2c2;
}

header
{
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(30,64,175,0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

nav ul
{
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: -10px;
}

nav li
{
    display: inline-block;
    margin-top: 10px;
}

nav
{
    width: 100%;
}

nav a
{
    color: #e5e7eb;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 17.6px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.7);
    transition: all 0.25s ease;
    font-size: 14.4px;
}

nav a:hover
{
    background: linear-gradient(135deg, #16f9d3, #3cc8fb);
    color: #0b1120;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(113, 129, 248, 0.45);
    text-decoration: none;
}

#nav-btn
{
    display: none;
}

@media (max-width: 768px)
{

    header
    {
        transition: transform 0.25s ease;
    }

    #nav-btn
    {
        display: none;
        height: 25px;
        line-height: 25px;
        padding: 0px;
        border-radius: 0px;
        z-index: 9999;
        position: sticky;
        top: 0;
    }

    header.hidden
    {
        transform: translateY(-100%);
    }

    main
    {
        padding: 0px !important;
        padding-top: 50px !important;
    }
}


#mapOverlay
{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#mapContainer
{
    width: 80vw;
    height: 80vh;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

#map
{
    flex: 1;
}

#mapHeader
{
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

#mapHeader input[type="text"]
{
    flex: 1;
    padding: 4px 6px;
}

#mapHeader button
{
    padding: 4px 8px;
    cursor: pointer;
}

#info
{
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

body
{
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f5f7ff;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, #35e7ff 0, transparent 40%),
        radial-gradient(circle at 90% 80%, #ffd166 0, transparent 40%),
        linear-gradient(135deg, #0f172a, #020617);
}

.round
{
    border-radius: 18px;
}

option
{
    color: black;
}

.dt-paging-button
{
    width: auto;
    background: rgb(0,0,0);
    margin: 0px;
    padding: 0px;
    box-shadow: none !important;
    text-align: center;
}

.dt-paging-button:hover
{
    border: 1px solid orange !important;
}

.dt-paging button.current
{
    border: 1px solid orange !important;
}

.dt-container
{
    padding: 15px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 4px;
}

.glass-card
{
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 4px;
}

li.active a
{
    color: #38fbd6 !important;
}

.inline_editor
{
    border: 1px dashed grey;
    cursor: pointer;
    padding: 20px;
}

.welcome
{
    max-width: 1100px;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.welcome.glass-card::before
{
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.1), transparent 55%);
    opacity: 0.4;
    pointer-events: none;
}

.welcome h1
{
    font-size: clamp(36.8px, 4vw, 52.8px);
    margin-bottom: 16px;
    color: #f9fafb;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.75);
}

.welcome p
{
    margin: 8px auto 0;
    color: #e5e7eb;
    text-align: justify;
}

main
{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.articles
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: justify;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px)
{
    .articles
    {
        grid-template-columns: 1fr;
    }
}

.article
{
    position: relative;
    padding: 32px 28.8px;
    color: #e5e7eb;
    overflow: hidden;
}

.article::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0, rgba(248, 250, 252, 0.09), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.article h2
{
    text-align: left;
    position: relative;
    margin-bottom: 12px;
    color: #fef3c7;
}

.article p,
.article a
{
    position: relative;
}

a
{
    color: #16eef9;
    font-weight: bold;
}

a.admin
{
    margin: 3px;
    color: #ff5b5b;
    border: 1px dotted #ff5b5b;
    font-weight: bold;
    background-color: rgba(0,0,0,0.50);
    padding: 2px;
    padding-left: 6px;
    padding-right: 6px;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none !important;
}

a.admin_success
{
    margin: 3px;
    color: #5bffc6;
    border: 1px dotted #5bffc6;
    font-weight: bold;
    background-color: rgba(0,0,0,0.50);
    padding: 2px;
    padding-left: 6px;
    padding-right: 6px;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none !important;
}

a.admin_info
{
    margin: 3px;
    color: #5bbbff;
    border: 1px dotted #5bbbff;
    font-weight: bold;
    background-color: rgba(0,0,0,0.50);
    padding: 2px;
    padding-left: 6px;
    padding-right: 6px;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none !important;
}

a:hover
{
    text-decoration: underline;
}

.callsign-form
{
    margin: 40px 0;
    padding: 35.2px 32px;
    color: #e5e7eb;
}

.callsign-form h2
{
    margin-bottom: 16px;
    color: #bfdbfe;
}

.auth-section
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

@media (max-width: 768px)
{
    .auth-section
    {
        grid-template-columns: 1fr;
    }
}

form
{
    padding: 15px;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

form::before
{
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
}

label
{
    display: block;
    margin-bottom: 5.6px;
    font-weight: bold;
    font-size: 14.4px;
}

input
{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.65);
    color: #e5e7eb;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
}

input:focus
{
    border-color: #16cff9;
    box-shadow:
        0 0 0 1px rgba(113, 149, 248, 0.7),
        0 10px 25px rgba(15, 23, 42, 0.8);
    background: rgba(15, 23, 42, 0.9);
}

textarea
{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.65);
    color: #e5e7eb;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
}

select
{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    margin-bottom: 16px;
    background: #0F1C2E;
    color: #e5e7eb;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
}

option
{
    color: #FFFFFF;
}

.admin_button
{
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    background-color: rgba(0,0,0,0.7);
}

.article_button
{
    text-decoration: none !important;
    padding: 8px;
    border-radius: 12px;
    background-color: rgba(0,0,0,0.7);
    font-size: 14px;
}

textarea:focus
{
    border-color: #16cff9;
    box-shadow:
        0 0 0 1px rgba(113, 149, 248, 0.7),
        0 10px 25px rgba(15, 23, 42, 0.8);
    background: rgba(15, 23, 42, 0.9);
}

input.prohibit
{
    border-radius: 4px;
    border-color: #1c1c1c;
    box-shadow:
        0 0 0 1px rgb(0, 0, 0),
        0 0px 0px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.65);
    cursor: not-allowed;
    color: white;
    font-weight: bold;
    color: #38fbd6;
}

.map_search,
.map_search:hover
{
    border-radius: 2px;
    padding: 5px;
    margin: 5px;
    box-shadow: none;
    text-align: center;
    max-width: 120px;
    border: 1px solid #666666;
    background: linear-gradient(135deg, #ffffff, #ebebeb);
}

button
{
    background: linear-gradient(135deg, #16f9f1, #3cfbcb);
    color: #0b1120;
    padding: 12.8px 16px;
    border: none;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow:
        0 7px 15px rgba(113, 140, 248, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: all 0.22s ease;
    margin-bottom: 15px;
}

button:hover
{
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 10px 20px rgba(113, 133, 248, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

button.edit_btn
{
    width: 45%;
}

button.danger
{
    background: linear-gradient(135deg, #ff4d4d, #ffa4a4);
    box-shadow:
        0 7px 15px rgba(248, 113, 113, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: all 0.22s ease;
}

button.danger:hover
{
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 10px 20px rgba(248, 113, 113, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

button.info
{
    background: linear-gradient(135deg, #4d50ff, #f6f6ff);
    box-shadow:
        0 7px 15px rgba(113, 178, 248, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: all 0.22s ease;
}

button.danger:hover
{
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 10px 20px rgba(113, 208, 248, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.message
{
    border-radius: 10px;
    font-size: 14.4px;
    margin-bottom: 20px;
}

.success
{
    padding: 12.8px 16px;
    margin-top: 12.8px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(22, 163, 74, 0.6);
}

.error
{
    padding: 12.8px 16px;
    margin-top: 12.8px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
    border: 1px solid rgba(220, 38, 38, 0.65);
}

footer
{
    background: rgba(15, 23, 42, 0.95);
    color: #9ca3af;
    text-align: center;
    padding: 32px 16px 40px;
    border-top: 1px solid rgba(75, 85, 99, 0.7);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.9);
}

footer a
{
    color: #16cff9;
    text-decoration: none;
}

footer a:hover
{
    text-decoration: underline;
}

.distance-tooltip
{
    background: rgba(255,255,255,0.8);
    border: 1px solid #333;
    padding: 2px 4px;
    font-size: 11px;
    color: #000;
}

.marquee-wrap
{
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 26px;
    color: #fff;
    white-space: nowrap;
}

.marquee-inner
{
    text-align: center;
    opacity: 0;
}

/* csak egy ciklus, nem infinite */
@keyframes marquee-once
{
    0%
    {
        transform: translateY(0);
    }

    100%
    {
        transform: translateY(-100%);
    }
}

@keyframes fade-in-out
{
    0%
    {
        opacity: 0;
    }

    20%
    {
        opacity: 1;
    }

    80%
    {
        opacity: 1;
    }

    100%
    {
        opacity: 0;
    }
}
