* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: 'Alata', sans-serif;
}

.hamburger-menu, .close-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: #c7c7c7;
    text-decoration: none;
    transition: all .3s;
}

nav a::before {
    content: '';
    position: absolute;
    inset: -100px 0 -10px 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.173);
    border: 1px solid white;
    border-radius: 0 0 1rem 1rem;
    mix-blend-mode: overlay;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover {
    color: white;
}

nav a:hover::before, nav a.active::before {
    opacity: 1;
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -90px;
    padding-top: 80px;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #342400;
    opacity: 0.75;
    mix-blend-mode: overlay;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-text {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    transform: translateY(-210px);
}

.hero-text h4 {
    margin: 0;
    font-family: 'Alata', sans-serif;
    color: white;
    font-size: 48pt;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.hero-text h1 {
    margin: 0;
    font-family: 'Gloock', serif;
    color: white;
    font-size: 72pt;
    font-weight: 300;
    letter-spacing: 5px;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

section {
    background-color: #001900;
}

section p {
    color: white;
    font-family: 'Alata', sans-serif;
    font-size: 16pt;
}

section h2, h3 {
    font-family: 'Gloock', serif;
    font-weight: 300;
    color: #FFEEC6;
}

#what-is-mountain-bike {
    padding: 6rem 0 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-inline: 8rem;
}

.mountain-bike-image, .what-is-content {
    flex: 1;
}

.mountain-bike-image {
    position: relative;
    filter: grayscale(30%);
}

.mountain-bike-image img {
    height: auto;
    max-width: 700px;
    border-radius: 1rem;
    object-fit: cover;
    display: block;
}

.what-is-content {
    max-width: 700px;
}

.what-is-content h2 {
    font-size: 42pt;
    margin-bottom: 1rem;
}

.what-is-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #FFEEC6;
    margin: 4rem 0;
}

.key-components-content {
    text-align: center;
}

.key-components-content h2 {
    font-size: 42pt;
    margin-bottom: 1rem;
}

.key-components-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bike-diagram {
    position: relative;
    margin-inline: auto;
}

#types-of-mountain-bikes {
    overflow: hidden;
    display: grid;
    padding: 6rem 0 0;
    padding-inline: 8rem;
    margin: 0 auto;
    gap: 2rem;
    grid-template-areas:
        "header"
        "intro"
        "cards";
}

#types-of-mountain-bikes h2 {
    grid-area: header;
    font-size: 42pt;
    text-align: center;
    margin-bottom: 1rem;
}

#types-of-mountain-bikes > p {
    grid-area: intro;
    text-align: center;
    max-width: 700px;
    justify-self: center;
    margin-bottom: 2rem;
}

.bike-gallery-container {
    grid-area: cards;
    max-width: 100%;
    position: relative;
}

.bike-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.bike-card {
    text-align: center;
}

.bike-gallery .bike-card img {
    max-width: 600px;
    width: 100%;
    height: 400px;
    object-fit: contain;
    margin-inline: auto;
}

.bike-card p {
    max-width: 600px;
    margin-inline: auto;
}

#types-of-mountain-bikes h3 {
    font-size: 24pt;
    margin-bottom: 1rem;
}

#mountain-biking-events {
    overflow: hidden;
    padding: 6rem 0 0;
    padding-inline: 8rem;
    margin: 0 auto;
    gap: 2rem;
}

#mountain-biking-events h2 {
    font-size: 42pt;
    text-align: center;
    margin-bottom: 1rem;
}

#mountain-biking-events > p {
    text-align: center;
    max-width: 700px;
    justify-self: center;
    margin-bottom: 2rem;
}

#mountain-biking-events h3 {
    font-size: 24pt;
    margin-bottom: 1rem;
}

.popular-events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background-color: #002a00;
    padding: 2rem;
    border-radius: 1rem;
}

.major-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.major-event-card {
    background-color: #002a00;
    padding: 2rem;
    border-radius: 1rem;
    flex: 1;
}

.other-events > p {
    text-align: center;
    max-width: 700px;
    justify-self: center;
    margin-bottom: 2rem;
}

#history {
    overflow: hidden;
    padding: 6rem 0;
    padding-inline: 8rem;
    margin: 0 auto;
    gap: 2rem;
}

#history h2 {
    font-size: 42pt;
    text-align: center;
    margin-bottom: 4rem;
}

#history h3 {
    font-size: 24pt;
    text-align: center;
    margin-bottom: 1rem;
}

.history-content p {
    text-align: center;
    max-width: 1200px;
    justify-self: center;
    margin-bottom: 2rem;
}

footer {
    width: 100%;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 100%;
    margin: 0 auto;
    background-color:#342400;
}

.quick-links,
.resources,
.About {
    width: 100%;
}

footer ul {
    list-style: none;
    margin-top: 0.5rem;
}

footer li {
    margin: 0.5rem 0;
    font-family: 'Alata', sans-serif;
    text-align: center;
}

footer li a {
    color: #c7c7c7;
    text-decoration: none;
    transition: all .3s ease;
}

footer li a:hover {
    color: white;
}


footer h4 {
    margin-bottom: 1rem;
    font-family: 'Gloock', serif;
    font-weight: 300;
    color: white;
    text-align: center;
    font-size: 16pt;
    }

footer p {
    margin-top: 0.5rem;
    font-family: 'Alata', sans-serif;
    color: white;
    text-align: center;
}

.About p {
    max-width: 250px;
    margin-inline: auto;
    margin-top: 0.5rem;
}


/* used generative AI to help me with hotspots, tooltips, and modal boxes functionality */
.hotspots-container {
    position: relative;
}

.hotspot {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-color: #FFEEC6;
    position: absolute;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hotspot::before {
    background-color: inherit;
    border-radius: inherit;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.hotspot .tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    transform-origin: bottom center;
    background-color: #ffeec6;
    border-radius: 5px;
    width: 370px;
    height: auto;
    transition: 200ms ease;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.tooltip h3, .tooltip-show h3 {
    background-color: #342400;
    color: #FFEEC6;
    font-weight: 300;
    font-size: 24pt;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip p, .tooltip-show p {
    color: black;
    padding: 1rem;
}

.tooltip::before {
    content:"";
    position: absolute;
    bottom: -1em;
    left: 50%;
    transform: translate(-50%);
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-top: 1em solid #ffeec6;
}

.tooltip {
    opacity: 0;
}

.hotspot:hover .tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.hotspot:hover {
    z-index: 10;
}

.h-1 {
    left: 53.7%;
    top: 68.5%;
}

.h-2 {
    left: 18.8%;
    top: 65.1%;
}

.h-3 {
    left: 65.8%;
    top: 14.3%;
}

.h-4 {
    left: 78.6%;
    top: 65.1%;
}

.h-5 {
    left: 87.5%;
    top: 41.8%;
}

.h-6 {
    left: 42.6%;
    top: 45.9%;
}

.h-7 {
    left: 29.4%;
    top: 13.8%;
}

@media (min-width: 769px) {
    .bike-card:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: 50%;
    }
}
@media (min-width: 1280px) {
    #hotspot-modal {
        display: none;
    }
}

/* i had a lot of trouble getting certain elements of the website to work at different screen sizes, so I used generative AI to help me troubleshoot (specifically for the hotspots and the modal boxes) - this definitely helped me figure out how to more effecitvely do this in the future */

/* tablet responsiveness */
@media (max-width: 1024px) {
    .hotspot .tooltip {
        display: none;
    }

    .hotspot-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .hotspot-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hotspot-modal-content {
        background-color: #ffeec6;
        border-radius: 1rem;
        width: 90vw;
        max-width: 400px;
        overflow: hidden;
        position: relative;
        color: black;
    }

    .hotspot-modal-content h3 {
        background-color: #342400;
        color: #FFEEC6;
        font-weight: 300;
        font-size: 24pt;
        padding: 1rem;
        text-align: center;
    }

    .hotspot-modal-content p {
        padding: 1.5rem;
        color: black;
        font-family: 'Alata', sans-serif;
        font-size: 16pt;
        text-align: center;
        margin-top: -30px;
    }

    .hotspot-modal-close {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0.5rem 1rem;
        font-size: 2.5rem;
        font-weight: 300;
        color: #ffeec6;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2.5rem;
        font-size: 3.5rem;
        color: white;
        font-weight: 100;
    }

    header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    header nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
        color: white;
        font-size: 2.5rem;
    }

    header nav.active {
        display: flex;
        transform: translateX(0);
    }

    header nav.active + .hamburger-menu {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(20, 20, 20, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    nav ul {
        flex-direction: column;
        gap: 3rem;
    }

    nav a {
        font-size: 2rem;
    }

    nav a::before {
        display: none;
    }

    .hero-text {
        padding: 0 2rem;
        flex-direction: column;
        transform: translateY(-150px);
    }

    .hero-text h4 {
        font-size: 36pt;
    }

    .hero-text h1 {
        font-size: 60pt;
    }

    .mountain-bike-image img {
        margin-inline: auto;
    }

    #what-is-mountain-bike,
    #types-of-mountain-bikes,
    #mountain-biking-events,
    #history {
        padding-inline: 4rem;
    }

    .what-is-content h2,
    .key-components-content h2,
    #types-of-mountain-bikes h2,
    #mountain-biking-events h2,
    #history h2 {
        font-size: 36pt;
    }
}

/* mobile responsiveness */
@media (max-width: 768px) {
    #what-is-mountain-bike {
        flex-direction: column;
    }

    .mountain-bike-image,
    .what-is-content {
        width: 100%;
        max-width: 100%;
    }

    .mountain-bike-image img {
        max-width: 100%;
        margin-inline: auto;
    }

    .hamburger-menu {
        font-size: 2rem;
    }

    header nav, header nav.active + .hamburger-menu {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(20, 20, 20, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    nav ul {
        text-align: center;
        flex-direction: column;
        gap: 2.5rem;
    }

    nav a {
        font-size: 1.5rem;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        font-size: 3rem;
        color: white;
        font-weight: 100;
    }

    .hero-text {
        padding: 0 1rem;
        flex-direction: column;
        transform: translate(10px, -100px);
    }

    .hero-text h4 {
        font-size: 24pt;
    }

    .hero-text h1 {
        font-size: 48pt;
    }

    #what-is-mountain-bike,
    #types-of-mountain-bikes,
    #mountain-biking-events,
    #history {
        padding-inline: 2rem;
    }

    .what-is-content h2,
    .key-components-content h2,
    #types-of-mountain-bikes h2,
    #mountain-biking-events h2,
    #history h2 {
        font-size: 32pt;
    }

    .bike-gallery {
        grid-template-columns: 1fr;
    }

    .bike-card:last-child {
        grid-column: auto;
        justify-self: auto;
        width: auto;
    }

    .bike-gallery .bike-card img {
        height: 250px;
    }

    #types-of-mountain-bikes h3,
    #mountain-biking-events h3,
    #history h3 {
        font-size: 20pt;
    }

    section p {
        font-size: 14pt;
    }

    .popular-events,
    .major-events {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
}