body, p, td
{
    font-size: 11pt;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    color: black;
}
body
{
    background-color: #FFFFFF;
    margin: 2%;
}

a, a:active, a:visited
{
    color: #014b95;
    text-decoration: none;
}
a:hover
{
    color: #0080FF;
    text-decoration: underline;
}

p.quote {
    color: #000000;
}

img.banner {
    content: url(https://swyxforum.com/images/swyx_forum_bw_685_60_light.png);
    width: auto;
    height: auto;
    display: block;
    max-width: 100%;
}
img.quote {
    content: url(https://swyxforum.com/images/quote_67_56_light.png);
    width: auto;
    height: auto;
}

.hint {
    display: grid;
    background-color: #e8ff1d;
    color: black;
    padding: 20px;
    text-align: left;
}

.footer {
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 20px; /* space between boxes */
}
.box {
    background-color: #eeeeee;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    font-style: italic;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.box_header{
    font-size: 1.4em;
    font-style: italic, oblique;
}
.box_footer {
    color: #6f6f6f;
    text-align: right;
}
@media (max-width: 1000px) {
    .grid-container {
        grid-template-columns: 1fr; /* stack vertically */
    }
}

.grid-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-table > div {
    margin: 2px;
    border: 1px solid #000000;
    background-color: #eeeeee;
}
.grid-table .header, .header-vbs, .header-lua {
    padding: 10px;
    font-weight: bold;
}
.grid-table .header {
    background-color: #b4b2b2;
}
.grid-table .header-vbs {
    background-color: #7ad0ff;
}
.grid-table .header-lua {
    background-color: #ffbe7ed4;
}
.grid-table .content {
    background-color: #eeeeee;
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #eeeeee;
    color: black;
    padding: 15px 20px;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.4em;
    font-weight: bold;
}
.logo a {
    color: black;
    text-decoration: none;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}
/* Hamburger icon */
.menu-icon {
  font-size: 1.8em;
  cursor: pointer;
  display: none; /* hidden on desktop */
  user-select: none;
  z-index: 120; /* above overlay */
}

.close-btn {
    display: none;
}

/* Desktop menu */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}
.nav-links a:hover {
    color: #00b4d8;
}
.nav-links div {
    display: none;
}
.nav-links br {
    display: none;
}

/* ========== MOBILE MENU ========== */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* show hamburger */
    }

    /* Slide-in menu panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 250px;
        background-color: #eeeeee;
        flex-direction: column;
        align-items: flex-start;     /* left-aligned */
        justify-content: flex-start; /* top-aligned */
        padding-top: 60px;           /* space for close button */
        padding-left: 20px;
        gap: 15px;
        transform: translateX(100%); /* hidden off-screen */
        transition: transform 0.4s ease-in-out;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        z-index: 110;
    }

    /* Slide menu in */
    #menu-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }

    /* Keep hamburger visible while open */
    .menu-icon {
        position: relative;
        z-index: 100;
    }

    /* Close button inside the menu */
    .close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 2em;
        color: black;
        cursor: pointer;
        user-select: none;
    }
    .close-btn:hover {
        color: #00b4d8;
    }

    .nav-links li {
        list-style: none;
    }
    .nav-links a {
        font-size: 1.2em;
        color: black;
        text-decoration: none;
        transition: color 0.3s;
    }
    .nav-links a:hover {
        color: #00b4d8;
    }
    .nav-links div {
        display: block;
        width:235px; 
        height:1px;
        background-color: #8f8f8fae;
    }
    .nav-links br {
        display: block;
    }

    /* ========== OVERLAY ========== */
    .overlay {
        display: none;
    }

    /* When menu is open, show overlay */
    #menu-toggle:checked ~ .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 105;
        animation: fadeIn 0.3s ease forwards;
    }

    /* Overlay fade-in animation */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

