:root {
    --primary-color: #2b7df8;
    --secondary-color: #20c2f8;
    --tertiary-color: #ffffff;
    --quaternary-color: #000000;
    --text-color: #333333;
    --accent-color: #f8a52b;
    --neutral-bg: #dcfffa;
    --pastel-mint: #c6ffda;
    --pastel-lavender: #c8e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--neutral-bg);
    color: var(--text-color);
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

p {
    margin-bottom: 1.2rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 100%;
    height: 60px;
    padding: 0 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tertiary-color);
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--tertiary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.dropdown-toggle {
    display: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0.5rem;
    transition: transform 0.3s ease;
}

.has-dropdown {
    display: flex;
    align-items: center;
    position: relative;
}

.has-dropdown > a {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav a {
    display: block;
    text-decoration: none;
    font-weight: 600;
    color: var(--tertiary-color);
    height: 60px;
    line-height: 60px;
    padding: 0 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    justify-content: center;
}

nav li:hover > a {
    background-color: var(--accent-color);
    color: var(--tertiary-color);
}

nav li.active > a {
    background-color: var(--accent-color);
    color: var(--tertiary-color);
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.has-dropdown:hover .dropdown {
    display: block;
}

nav .has-dropdown > .dropdown-toggle {
    display: none !important;
}

.dropdown a {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 0.75rem 1rem;
    line-height: normal;
    color: var(--tertiary-color);
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: var(--secondary-color);
    color: var(--tertiary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex: 1;
}

main a {
    color: var(--quaternary-color);
    text-decoration: underline;
}

section {
    height: 100%;
    flex: 3;
    background-color: var(--pastel-mint);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

section ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

section ul li::before {
    content: "✦ ";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

aside {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: var(--pastel-lavender);
    padding: 1.5rem;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

footer a {
    color: var(--tertiary-color);
    text-decoration: underline;
}

footer p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

aside div h3 {
    text-align: center;
}
  
#aside-placeholder {
    display: flex;
    height: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    border-radius: 4px;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.center, h4 {
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.table-wrapper table {
    min-width: 600px;
}

#ts3viewer_1074113 {
    height: 975px;
    width: 800px;
    max-width: 100%;
}

.responsive-iframe {
    max-width: 100%;
    height: auto;
}

aside iframe {
    width: 100% !important;
    max-width: 450px !important;
    height: 700px !important;
}

@media (max-width: 1200px) {
    
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        height: 72px;
        width: 100%;
    }

    .logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
    }

    nav.active {
        max-height: 100vh;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li.has-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: left;
        width: auto;
        flex: 1;
        height: auto;
        line-height: 1.5;
    }

    .has-dropdown > a {
        padding-right: 0.5rem;
        flex: 1;
    }

    nav .has-dropdown > .dropdown-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 4px;
        color: var(--tertiary-color);
        font-size: 1.1rem;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        margin-left: auto;
        margin-right: 1rem;
        transition: transform 0.3s ease, background-color 0.2s ease;
        min-width: 32px;
        min-height: 32px;
    }

    .dropdown-toggle:hover {
        background: rgba(255,255,255,0.2);
    }

    .has-dropdown.active .dropdown-toggle {
        transform: rotate(180deg);
        background: rgba(255,255,255,0.15);
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .has-dropdown .dropdown {
        position: static;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        width: 100%;
        flex-basis: 100%;
        display: none;
    }

    .dropdown a {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
    }

    main {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        flex-direction: column;
    }

    section {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    aside {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1.5rem;
        min-width: auto;
    }

    aside div {
        margin-bottom: 1.5rem;
    }

    aside div:last-child {
        margin-bottom: 0;
    }

    aside iframe {
        width: 100% !important;
        max-width: 450px !important;
        height: 700px !important;
    }

    aside img {
        max-width: 100%;
        height: auto;
    }

    footer {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    #ts3viewer_1074113 {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    
    header {
        padding: 1rem;
        height: 56px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo img {
        width: 32px;
    }

    nav {
        top: 56px;
    }

    nav a {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .dropdown a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    main {
        padding: 0.75rem;
    }

    section {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    section h1, section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    section p, section li {
        font-size: 0.95rem;
    }

    aside {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    aside iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: 650px !important;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    #ts3viewer_1074113 {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 0.9rem;
    }

    nav a {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    section {
        padding: 0.875rem;
    }

    section h1, section h2 {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    aside {
        padding: 0.875rem;
    }

    aside h3 {
        font-size: 1.1rem;
    }

    aside iframe {
        width: 100% !important;
        height: 600px !important;
    }

    footer {
        padding: 1.25rem 0.75rem;
        font-size: 0.85rem;
    }
}


