* {
    font-family: var(--ff-serif, "Bodoni Moda", serif);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@media screen {
    *{
        padding: 0%;
    }
}

/* Design tokens (progressive): colors, typography, spacing */
:root{
    --color-accent: #fd0303;
    --color-accent-2: #ffc107;
    --color-bg-overlay: rgba(11, 10, 10, 0.74);

    --ff-serif: "Bodoni Moda", serif;
    --ff-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

    --fs-base: 16px;
    --lh-base: 1.45;
    --lh-body: 1.65;
    --fs-body: 1rem;
    --fs-logo: 24px;
    --fs-logo-mobile: 14px;
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;

    --link-color: rgb(253, 3, 3);
    --link-hover-color: #ffc107;
    --footer-text-color: rgba(251, 246, 246, 0.805);
    --footer-bg-color: rgba(13, 13, 13, 0.67);
    --footer-font-size: 18px;
    --footer-font-size-mobile: 16px;

    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.42) 100%);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
}

html,
body {
    padding: 15px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-size: var(--fs-base);
    line-height: var(--lh-base);
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.15;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--fs-h4);
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    margin-bottom: var(--space-4);
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: var(--hero-overlay), url('old/oldNY.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Media query per iPhone SE */
@media (max-width: 375px) {
    .background-image {
        background-size: cover;
        background-position: center;
    }
}

/* Media query per iPhone Pro Max */
@media (max-width: 414px) {
    .background-image {
        background-size: cover;
        background-position: center;
    }
}

@media (min-width: 415px) {
    .background-image {
        background-size: cover;
        background-position: center;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    z-index: 1000;
    background-color: rgba(11, 10, 10, 0.74);
}

/* Burger button for mobile */
.burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.burger:hover,
.burger:focus-visible {
    transform: scale(1.02);
}
.burger .line {
    width: 24px;
    height: 3px;
    background-color: #fff;
    display: block;
    margin: 3px 0;
    transition: background-color 0.2s ease;
}
.burger:hover .line,
.burger:focus-visible .line {
    background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .burger {
        display: block;
        position: absolute;
        right: 20px;
        top: 18px;
        z-index: 1001;
    }
    .navbar {
        padding-right: 70px; /* make room for burger */
    }
}

.logo {
    font-size: var(--fs-logo);
    font-weight: bold;
    color: var(--color-accent);
}

@media screen and (max-width: 768px) {
    .logo{
        font-size: var(--fs-logo-mobile);
    }
    .navbar{
        font-size: 14px;
        margin-left: 45px;
    }
}

@media screen and (max-width: 390px) {
    .logo{
        font-size: var(--fs-logo-mobile);
    }
    .navbar{
        font-size: 14px;
    }
    header{
        padding: 15px 10px;
    }
    .nav-links{
        font-size: 90%;
    }
}

.navbar {
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 375px) {
    .navbar {
        padding: 5px 10px; /* Reduce horizontal padding */
    }

    .nav-links li {
        margin-right: 5px; /* Reduce margin between menu items */
    }

    .dropdown-menu {
        min-width: 80px; /* Reduce dropdown menu width */
    }
}

@media (max-width: 414px) {
    .navbar {
        padding: 5px 10px; /* Reduce horizontal padding */
    }

    .nav-links li {
        margin-right: 5px; /* Reduce margin between menu items */
    }

    .dropdown-menu {
        min-width: 80px; /* Reduce dropdown menu width */
    }
}

.nav-links {
    list-style-type: none;
    display: flex;
}

.nav-links li {
    margin-right: var(--space-5);
    position: relative;
}

.nav-links li a {
    color: var(--link-color, rgb(253, 3, 3));
    border-color: #000000;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
    color: var(--link-hover-color, #ffc107);
}

.nav-links li a:focus-visible {
    outline: 2px solid rgba(255, 193, 7, 0.9);
    outline-offset: 3px;
    transform: translateY(-1px);
}

p a,
.content a,
.expanded-content a {
    color: var(--link-color, rgb(253, 3, 3));
    text-decoration: underline;
    transition: color 0.3s ease;
}

p a:hover,
.content a:hover,
.expanded-content a:hover {
    color: var(--link-hover-color, #ffc107);
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #343a40;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.dropdown-menu li {
    padding: var(--space-3);
}

.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #271e00;
}

/* Generic decorative line (used in some layouts) */
.line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    header .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: var(--space-4) 0;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 999;
    }

    header .nav-links.nav-active {
        display: flex;
    }

    header .nav-links.nav-active li {
        margin: 8px 0;
        width: 100%;
    }

    header .nav-links.nav-active li a {
        display: block;
        width: 100%;
        padding: var(--space-2) var(--space-4);
    }

    header .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: rgba(19, 19, 19, 0.96);
        width: 100%;
    }

    header .dropdown.open .dropdown-menu {
        display: block;
        position: static;
        width: 100%;
        margin-top: var(--space-2);
    }
}

main {
    padding-top: 100px; /* Ensure content starts below the fixed header */
    color: white;
    padding-bottom: 80px; /* leave space for fixed footer */
}

.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.expandable-text {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    max-width: 350px;
    color: #faf7f7;
    text-align: center;
    cursor: pointer;
    background-color: #1313139f;
    padding: 10px;
    border: 1px solid #080808c9;
    border-radius: 5px;
    transition: height 0.3s ease;
    overflow: hidden;
    max-height: 83px;
}

.expandable-text.expanded {
    max-width: 400px;
    max-height: none;
}

.expandable-container {
    display: flex;
    justify-content: center;
    margin-top: 25%;
}

#expandButton {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    text-align: center;
    max-width: 550px;
    color: #faf7f7;
    padding: 3px 5px 3px 5px;
    background-color: #1313139f;
    border: 1px solid #dddddd5d;
    cursor: pointer;
    transition: height 0.3s ease;
    overflow: hidden;
    max-height: 83px;
}

.expanded-content {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-align: justify;
    display: none;
    max-width: 400px;
    padding: var(--space-3);
    color: #faf7f7;
    background-color: #1313139f;
    border: 1px solid #dddddd83;
    border-radius: 5px;
    margin-top: var(--space-2);
}

#closeButton {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ccc;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

footer {
    text-align: center;
    color: var(--footer-text-color, rgba(251, 246, 246, 0.805));
    padding: var(--space-5);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: var(--footer-font-size, 18px);
    background-color: var(--footer-bg-color, rgba(13, 13, 13, 0.67));
}

.footer-link{
    color: var(--footer-text-color, rgba(251, 246, 246, 0.805));
    text-decoration: underline rgba(251, 246, 246, 0.481);
    transition: color 0.3s ease;
}

/* Visible focus for keyboard users (subtle, no visual regressions for mouse users) */
 a:focus, button:focus, .nav-links a:focus {
    outline: 2px solid rgba(255, 193, 7, 0.9);
    outline-offset: 2px;
}

/* Prefer focus-visible to avoid showing outlines on mouse click in supporting browsers */
 :focus:not(:focus-visible) {
    outline: none;
}

@media screen and (max-width: 768px) {
    footer{
        font-size: 16px;
    }
}

@media screen and (max-width: 400px) {
    footer{
        font-size: 14px;
    }
}
