html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #369ec6;
    background-color: floralwhite;
    font-family: sans-serif;
}

h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 21px;
    margin: 32px 0 6px 0;
}

h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

#main {
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 45px;
}

#content {
    opacity: 0;
    display: block;
    width: 100%;
    margin: 0;
}

#banner {
    margin: 0;
    padding: 8px 0;
    min-height: 64px;
    /* Positioning context for the logo's fly-and-shrink animation (see animations.js) */
    position: relative;
}

#banner-menu {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: white;
    float: left;
}

#social-menu {
    display: inline-block;
    margin: 0;
    color: white;
    float: right;
}

.social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.menu-link,
.menu-icon {
    margin: 12px 32px 0 0;
    color: #BDE7F4;
    display: inline-block;
}

.menu-link {
    font-size: 28px;
    font-family: 'Paytone One', sans-serif;
    text-transform: capitalize;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    -webkit-transition: opacity .3s linear;
    -moz-transition: opacity .3s linear;
    -o-transition: opacity .3s linear;
    transition: opacity .3s linear;
}

.menu-link:hover {
    border-bottom-color: #ffffff;
    -webkit-transition: border-color .4s linear;
    -moz-transition: border-color .4s linear;
    -o-transition: border-color .4s linear;
    transition: border-color .4s linear;
}

.menu-link a {
    color: white;
}

.linkedin {
    width: 35px;
}

.github {}

.menu-icon img {
    opacity: 0.7;
    -webkit-transition: opacity .3s linear;
    -moz-transition: opacity .3s linear;
    -o-transition: opacity .3s linear;
    transition: opacity .3s linear;
}

.menu-icon img:hover {
    opacity: 1;
    -webkit-transition: border-color .4s linear;
    -moz-transition: border-color .4s linear;
    -o-transition: border-color .4s linear;
    transition: opacity .4s linear;
}

.logo {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    cursor: pointer;
}

.logo img {
    /* Track the container so the single container animation drives the size
       (including the collapse to 64/48px) on every viewport. */
    width: 100%;
    height: 100%;
}

.title {
    font-family: 'Paytone One', sans-serif;
    font-size: 72px;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 130px;
    vertical-align: super;
}

/* "What I do" headline — hero state, centered under the title on landing */
.headline {
    max-width: 720px;
    margin: 8px auto 50px;
    padding: 0 20px;
    text-align: center;
    color: #369ec6;
    font-size: 18px;
    font-family: 'Montserrat', monospace;
    line-height: 1.5;
}

/* Docked state — after the logo is clicked, it sits above the project list.
   The #content border-top serves as the divider between it and the projects. */
.headline.is-docked {
    margin: 24px 0 0;
    padding: 0;
    text-align: left;
    color: #000000;
    font-size: 16px;
}

.projects {
    display: none;
    margin: 0;
    padding: 0;
    color: black;
}

.project-url,
.project-timeframe,
.project-url-disabled {
    display: block;
}

.project-url-disabled {
    color: #666666;
    font-style: italic;
}

/* `.active` is only a JS state marker (see showProject) — it must NOT set
   display, or fadeIn() would see an already-visible element and skip the fade.
   fadeIn/fadeOut manage display + opacity inline. */

.menu-selected {
    color: #ffffff;
    cursor: default;
}

/* ---------------------------------------------------------------------------
   No-JS fallback (rendered only inside <noscript>)
   --------------------------------------------------------------------------- */
#noscript-fallback {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    color: #000000;
}

.ns-header {
    text-align: center;
    padding: 16px 0 8px;
}

.ns-logo {
    width: 160px;
    height: 160px;
    max-width: 60vw;
    height: auto;
}

.ns-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 40px;
    color: #369ec6;
    margin: 8px 0 0;
}

.ns-headline {
    max-width: 640px;
    margin: 16px auto 0;
    text-align: center;
    color: #369ec6;
    font-size: 18px;
    line-height: 1.5;
}

.ns-section {
    border-top: 2px solid #000000;
    margin-top: 32px;
}

.ns-section-title {
    font-family: 'Paytone One', sans-serif;
    color: #369ec6;
    font-size: 28px;
    margin: 24px 0 0;
}

.ns-projects {
    margin: 0;
    padding: 0;
}

.ns-project {
    margin: 0 0 24px;
}

.ns-project .project-name {
    font-family: 'Paytone One', sans-serif;
    font-size: 24px;
    color: #000000;
    margin: 24px 0 4px;
}

.ns-project .project-title {
    font-size: 16px;
    margin: 0 0 4px;
}

.ns-project .project-description {
    display: block;
    margin-top: 4px;
}

.ns-social {
    border-top: 2px solid #000000;
    padding-top: 20px;
    margin-top: 32px;
}

.ns-social a {
    color: #369ec6;
    font-family: 'Paytone One', sans-serif;
    font-size: 18px;
    margin-right: 24px;
}

.ns-social a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Responsive — small screens (phones / small tablets)
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
    /* Base #main is width:100% + margin-left:45px, which overflows by 45px.
       Use symmetric margins and let the width fill what's left. */
    #main {
        width: auto;
        margin: 0 16px;
    }

    /* Fluid title so it never overflows a narrow viewport */
    .title {
        font-size: 9vw;
        height: auto;
        padding: 12px 0;
    }

    /* Logo scales with the viewport instead of a fixed 400px (the image tracks
       it via width/height:100%). Once clicked, the JS animates it down inline. */
    .logo {
        width: 62vw;
        height: 62vw;
    }

    /* Slightly smaller headline on phones */
    .headline {
        font-size: 16px;
    }

    .headline.is-docked {
        font-size: 15px;
    }

    .ns-headline {
        font-size: 16px;
    }

    /* Tighten the banner menu so "Professional / Personal" + icons fit */
    .menu-link {
        font-size: 20px;
    }

    .menu-link,
    .menu-icon {
        margin: 10px 16px 0 0;
    }

    .social-icon {
        width: 26px;
        height: 26px;
    }

    .linkedin {
        width: 28px;
    }

    /* Slightly smaller project headings */
    h2 {
        font-size: 18px;
    }
}

/* ---------------------------------------------------------------------------
   Responsive — mid-size phones (401–480px: iPhone XR/14 Pro Max, Pixel 7, etc.)
   animations.js docks the collapsed logo at 48px up to 480px, so the banner
   (logo + menu + social icons) stays on one line here too.
   --------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .menu-link {
        font-size: 16px;
    }

    .menu-link,
    .menu-icon {
        margin: 10px 12px 0 0;
    }

    .social-icon {
        width: 22px;
        height: 22px;
    }

    .linkedin {
        width: 24px;
    }
}

/* ---------------------------------------------------------------------------
   Responsive — very narrow phones (e.g. Galaxy Z Fold 5 cover screen, 344px)
   Keeps the collapsed banner (logo + menu + social icons) on one line.
   The collapsed logo itself is shrunk to 48px in animations.js, since it's
   sized via inline styles that CSS can't override.
   --------------------------------------------------------------------------- */
@media (max-width: 400px) {
    .menu-link {
        font-size: 15px;
    }

    .menu-link,
    .menu-icon {
        margin: 12px 10px 0 0;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .linkedin {
        width: 21px;
    }
}