@font-face {
    font-family: "BBH Bogle";
    src: url("fonts/BBH_Bogle/BBHBogle-Regular.ttf");
}

@font-face {
    font-family: "BBH Hegarty";
    src: url("fonts/BBH_Hegarty/BBHHegarty-Regular.ttf");
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/Inter-VariableFont_opsz\,wght.ttf");
}

body {
    background-color: rgb(182, 219, 245);
}

header {
    display: flex;
    align-items: center;
    font-family: "BBH Bogle";
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 3rem;
    padding: 0;
    font-size: 2.3rem;
}

nav ul li {
    margin-right: 2rem;
}

#menu-button {
    display: none;
}

#title {
    display: flex;
    margin: 2rem;
    font-family: "BBH Hegarty";
    font-size: 3rem;
    color: rgb(247, 117, 61);
    text-shadow: /*for border*/
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -3px 0px 0 #000,
    3px 0px 0 #000,
    0px -3px 0 #000,
    0px 3px 0 #000;
}

.with-shadow {
    margin: 3rem;
    background-color: rgb(255, 228, 196, 0.5); 
}

p {
    justify-content: center;
    padding: 1rem;
    margin: 4.2rem;
    font-family: "Inter";
    font-size: 1.7rem;
}

a {
    text-decoration: none;
    color: black;
}


.section-title {
    font-size: 4rem;
    font-family: "BBH Hegarty";
    padding: 2rem;
    margin: 2rem;
    margin-top: 3rem;
    background-color: rgb(0, 0, 0, 0);
    color: rgb(248, 235, 229);
    text-shadow: /*for border */
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -3px 0px 0 #000,
    3px 0px 0 #000,
    0px -3px 0 #000,
    0px 3px 0 #000;
}

footer p {
    font-family: "Inter";
    text-align: center;
    font-size: 1rem;
}

@media (max-width: 768px) { /* mobile rendering */
    body {
        background-size: 275%;
    }

    p {
        padding: 0.5rem;
        margin: 0.7rem;
        font-size: 0.9rem;
    }

    #title {
        margin: 0rem;
        margin-left: 1.5rem;
        padding: 0.5rem;
        font-size: 1.7rem;
        z-index: inherit;
        -webkit-text-stroke: #000 0.005rem;
    }

    #title-link {
        z-index: 1001;
    }

    #menu-button {
        font-size: 1.5rem;
        display: block;
        margin-left: 1rem;
        border-style: double;
        height: 2.6rem;
        width: 2.6rem;
        z-index: 1002;

    }

    #mobile-menu {
        position: fixed; /* this part overlays this component (doesnt affect spacing of anything else below it) */
        inset: 0;
        background-color: bisque;
        display: flex;
        flex-direction: column;

        /*hidden by default*/
        opacity: 0;
        transition: opacity 0.3s ease;

        /* disable pointer events when hidden */
        pointer-events: none;
    }

    #mobile-menu ul {
        flex-direction: column;
        list-style: none;
        padding-top: 7rem;
        padding-left: 3rem;
        margin: 0;
    }

    #mobile-menu li {
        margin: 1rem 0;
    }

    #mobile-menu a {
        font-size: 2rem;
        font-family: "BBH Bogle";
        color: black;
        text-decoration: none;
    }

    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .section-title {
        text-align: center;
        margin: 0rem;
        font-size: 2rem;
        -webkit-text-stroke: #000 0.0005rem;
        /* text-shadow: /*for border 
        -0.5px -0.5px 0 #000,
        0.5px -0.5px 0 #000,
        -0.5px 0.5px 0 #000,
        0.5px 0.5px 0 #000,
        -0.8px 0px 0 #000,
        0.8px 0px 0 #000,
        0px -0.8px 0 #000,
        0px 0.8px 0 #000;  */
    }

    footer p {
        font-size: 0.7rem;
    }
}