/* Load Fonts */
@font-face {
    font-family: "Franklin Gothic Heavy";
    src: url("fonts/franklin-gothic-heavy.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

/* Import Montserrat Regular for General Text */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');

/* General Page Styling */
html, body {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll !important;
    touch-action: manipulation;
    background-color: black;
    color: white;
    font-family: "Franklin Gothic Heavy", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: block;
}


/* Main Content Formatting */
main {
    text-align: left;
    width: 80%;
    margin: auto;
}

/* Headings */
h2 {
    text-align: center;
    font-weight: bold;
}

h3 {
    text-align: left;
    font-weight: bold;
}

/* Paragraphs & Lists */
main p,
main ul,
main li {
    font-family: "Montserrat", sans-serif;
    font-weight: normal !important;
}

/* Intro Paragraph */
.intro {
    font-weight: normal !important;
    text-decoration: none;
    display: inline-block;
}

/* Header Logo */
header img {
    width: 250px;
    margin: 20px auto;
    display: block;
}

/* Navigation Menu */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px;
}

/* Navigation Links */
nav ul li a {
    text-decoration: none;
    font-size: 1.2em;
    color: white;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Universal Hover — Prevent Enlargement */
nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active {
    color: #3C5CB5 !important;
    text-shadow: 0 0 5px rgba(60, 92, 181, 0.7);
    transform: none !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
}

/* Global link styling */
a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: normal !important;
}

/* Friends Page Heading Hover */
.friend h3:hover {
    color: #3C5CB5 !important;
}

/* Bio Pop-Up */
.bio-container {
    position: relative;
    display: inline-block;
}

.bio-popup {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 10px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    font-style: italic;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    left: 50%;
    top: -90px;
    z-index: 10;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.bio-popup::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

/* Bio on Desktop */
@media (min-width: 769px) {
    .bio-container:hover .bio-popup {
        opacity: 1;
        visibility: visible;
    }
}

/* Bio on Mobile */
@media (max-width: 768px) {
    .bio-container.active .bio-popup {
        opacity: 1;
        visibility: visible;
    }
}

/* Navigation Mobile Layout and Centering Fix */
@media (max-width: 768px) {
    /* Make header full height flex container and center content */
    header {
        display: flex;
        flex-direction: column;
        justify-content: center; /* vertical center */
        align-items: center;     /* horizontal center */
        height: 100vh;           /* full viewport height */
        padding: 0 10px;
        box-sizing: border-box;
    }

    header img {
        margin-bottom: 20px; /* space below logo */
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto; /* reset height so nav doesn't push things */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        margin: 0;
    }

    nav ul li a {
        font-size: 1.2em;
    }
}

/* Members Grid */
.members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
}

/* Instagram Member Styling */
.member {
    text-align: center;
}

.member h3 {
    text-align: center;
}

.member iframe {
    display: block;
    margin: auto;
    max-width: 100%;
}

/* Friends Page */
.friend {
    text-align: center;
    margin-bottom: 30px;
}

.friend img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: auto;
}

.friend h3 {
    text-align: center !important;
    font-weight: normal !important;
    font-family: "Montserrat", sans-serif;
}

/* Footer */
footer {
    font-family: "Franklin Gothic Heavy", sans-serif;
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

footer img {
    width: 30px;
    transition: 0.3s ease-in-out;
}

footer a:hover img {
    transform: scale(1.2);
}

