@import url('https://fonts.googleapis.com/css2?family=Fondamento:ital@0;1&family=IM+Fell+English+SC&family=Sorts+Mill+Goudy:ital@0;1&display=swap');

:root { /* COLORS */
    --b: #344385; /* blue */
    --t: #006266; /* teal */
    --p: #ac3c59; /* pink */
    --pRGB: 172, 60, 89; /* pink */
    --s: #e47879; /* salmon */
    --sRGB: 228, 120, 121; /* salmon */
    --br: #483025; /* brown */
    --ta: #cabf91; /* tan */
    --taRGB:202, 191, 145;
    --w: #fef4ec; /* offwhite */ 
    --g: #385d33; /* green */


    /* FONTS */

    --font1: "Fondamento",  "georgia", serif;
    --font2: "Sorts Mill Goudy", "georgia", serif;
    --font3: "IM Fell English SC",  "georgia", serif;
}

/* GLOBAL STYLES */

*, *::after, *::before {
    padding:0;
    margin:0;
    box-sizing:border-box;
    background-clip: padding-box;
}

body, html {
    overscroll-behavior:none;
    padding:0;
}

body {
    background-image: url("worldtree.jpg");
    font-family:var(--font2);
    background-attachment: fixed;
    background-size:cover;
    color:vaR(--br);
    font-size:17px;
    background-position:10%;
    height:100vh;
    display:flex;
    align-items:center;
    justify-items:center;
}

body::before {
    content:"";
    z-index:-1;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    user-select: none;
    background-image:url("bydusty2.png");
    background-size:auto 4svh;
    background-position:calc(100% - 10px) calc(100% - 5px);
    background-repeat:no-repeat;
    opacity:0.8;
}

a {
    color:var(--t);
    font-family:var(--font3);
    text-decoration:none;
    padding:0;
    font-size:1.1em;
}

a:hover {
    color:var(--b);
}

strong, b {
    color:var(--p);
    font-size:0.9em;
    font-family:var(--font1);
}

em, i {
    color:var(--b);
    font-weight:bold;
}

hr {
    background-image:url("hr.png");
    background-size:80% 100%;
    height:30px;
    border:none;
    margin-top:1rem;
    background-repeat:no-repeat;
    background-position:center center;
}

 /* PARCHMENT WRAPPER */

#wrapper {
    margin:2rem auto;
    width:1100px;
    max-width:99vw;
    padding: 20px 20px 30px 20px;
    height:90lvh;
    border:17px solid transparent;
    background-image:url("parchment_small_inner.png");
    background-clip:padding-box;
    background-position:top left;
    background-repeat:round;
    border-image: url("parchment_small.png") 17 round;
}


@media screen and (max-width:1000px) {
    #wrapper {
        max-width:94vw;
    }
}

/* TITLE AND HEADER AREA */

.title{
    position:sticky;
    top:0;
    border-right:2px #665a4fbb solid;
    padding:3rem 2rem 2rem 0;
    margin-right:1rem;
    display:grid;
    flex:0 0 320px;
}

header {
    padding:1px;
    height:100px;
}

h1 {
    text-align:center;
    padding:1rem;
}

h1 a {
    display:block;
    margin:auto;
}

h1 img {
    display:block;
    max-width:100%;
    height:auto;
    margin:0 auto;
}


#tagline {
    font-family:var(--font1);
    margin-top:-1rem;
    text-align:center;
    font-size:1.2rem;
    color:var(--g);
    margin-bottom:3rem;
}

.socials-nav {
    display:flex;
    flex-flow:row nowrap;
    gap:10px;
    list-style-type:none;
    justify-content:center;
    align-self:flex-end;
}

.socials-nav a{
    display:block;
}

.socials-nav a img {
    opacity:0.8;

    transition:0.4s all;
}

.socials-nav a:hover img {
    opacity:1;
}

.socials-nav span {
    display:none;
}

svg {
    fill:var(--t);
}

svg:hover {
    fill:var(--g);
}

/* MENU NAVIGATION */

nav {
    display: grid;
    align-items: end;

    width:100%;
}

nav ul {
    list-style-type:none;
}

nav ul li {
    display:contents;
}

nav a {
    display:block;
    text-align:center;
    font-size:1.7rem;
    text-decoration:none;
    color:vaR(--t);
    border-bottom:rgb(130 135 99 / 70%) 1px solid;
    line-height:1.2;
    padding: 15px 1rem 10px 1rem;
    text-shadow:0px 1px 1px rgba(255,255,255,0.3);
    margin:0 1rem;
    opacity:0.75;
    transition:0.4s all;
    font-family:var(--font3);
}

nav ul li:last-child a {
    border:none;
}

nav a:hover {
    z-index:3;
    opacity:1;
    color:Var(--t);
}

@media screen and (max-height:800px) {
    nav a {
    padding: 5px 1rem 0px 1rem;
    }

    .title {
        padding:0rem 2rem 0rem 0;
    }
}

/* MAIN AREA */

#signup {
    text-align:center;
    font-size:1.2em;
}

#signup h3 {
    color:vaR(--b);
    margin:10px 0;
}

main {
    display:flex;
    position:relative;
    height:100%;
}


.content {
    flex:1 1 auto;
    height:99%;
}

@media screen and (min-width:801px) {
    #wrapper {
        padding-right:5px;
    }

    .content {
        /* scrollbar-width: 10px;  Firefox */
        overflow-y:scroll;
        scrollbar-width:thin;
        padding-right:10px;
        overflow-x:clip;
        scrollbar-color:var(--s) var(--ta);
    }

    .content::-webkit-scrollbar {
        opacity:1;
        border-radius: 30px;
        width: 8px;
        background-color: rgba(var(--taRGB),0.5);
        box-shadow: 2px 0px 5px rgba(0, 0, 0, 20%) inset;
        border: none;
    }

    .content::-webkit-scrollbar-thumb {
        background-color: rgba(var(--sRGB),0.4);
        border-radius:3px;
        box-shadow: -1px 1px 3px  2px rgba(var(--pRGB),0.4) inset;
    }

}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display:none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    scrollbar-width: 0px;  /* Firefox */
    
}

h4 {
    font-family:vaR(--font1);
    margin:10px 0;

    padding-left:10px;
    color:vaR(--g);
    font-size:1.2rem;
}

article:last-of-type {
    padding-bottom:30px;
}

#intro-img {
    width:60%;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto;
}

/* TIMELINE */
#timeline {
    text-align:center;
}

#timeline table {
    border-spacing:5px 3px;
    width:100%;
}

tr {
    background-color:rgba(var(--taRGB),0.5);
}

#timeline td {
    border:1px solid rgb(130 135 99 / 15%);
    border-bottom:1px solid rgb(130 135 99 / 50%);
    padding:10px 20px 5px 20px;
    border-radius:2px;
}

#timeline td:first-child {
}

#timeline td:last-child {
    padding:10px 20px 10px 20px;
    color:Var(--b);
    font-size:1.1em;
}

#timeline tr {
}

/* FOOTER */


footer {
    margin-top:10px;
    opacity:0.8;
    text-align:right;
    font-family:Var(--font3);
}
footer > div {
    display:flex;
    align-items: center;
}

.socials-logo {
    display:flex;
    align-items: flex-start;
    gap:10px;
}

.socials-logo > img {
    width:200px;
    height:auto;
    border-radius:200px;
    background-color:rgba(0,0,0,0);
}

.socials-nav-home {
    display:grid;
    gap:5px 0;
    justify-content: start;
}

.socials-nav-home a {
    gap:5px;
    display:flex;
    align-items: center;
}

.socials-nav-home span {
    display:block;
}

.socials-nav-home img {
    width:32px;
    height:auto;
}


.footernav {
    display:block;
    list-style-position: inside;
    margin-left:2rem;
}


h2, h3 {
    font-family:var(--font1);
    font-weight:normal;
    color:var(--g);
    margin:15px 0 15px 0;
    font-size:1.8rem;
}

h3:first-child {
    margin-top:5px;
}

h2 {
    color:var(--p); 
    font-size:2.5rem;
}

h3 {
    font-family:var(--font3);
    padding-left:10px;
}


p {
    margin-bottom:10px;
}

@media screen and (max-width:800px) {

    body {
        align-items:start;
    }

    #wrapper {
        max-width:calc(100vw - 40px);
        margin:0 auto;
        height:93lvh;
        margin-top:10px;
        padding:0px 0px 15px 0px;
    }


    .title, nav ul {
        width:auto;
    }

    header {
        height:auto;

    }

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

    .socials-nav { 
        margin-top:1rem;
    }

    main {
        flex-flow: column;
        padding:8px;
        height:99%;
        overflow-y:auto;
    }

    /* @media screen and (min-width:500)     {   /* Hide scrollbar for Chrome, Safari and Opera 
        main::-webkit-scrollbar {
        opacity:1
        }

        /* Hide scrollbar for IE, Edge and Firefox  
        main {
        scrollbar-width: 10px;  
        }
 */
    #tagline {
        margin:5px 0 15px 0;
    }

    .title {
        position:relative;
    }

    .title, nav ul {
        width:auto;
        flex:1 1 auto;
        max-width:none;
        border:none;
        padding:1rem;
        width:auto;
        margin-right:0;
    }

    .content {
        overflow:visible;
    }

    #intro-img {
        width:90%;
    }


    #timeline {
        text-align:center;
    }

    #timeline td {
        padding:10px 5px;
    }

    footer {
        font-size:0.8em;
    }
}

@media screen and (min-width:801px) and (max-width:1000px), (max-width:600px) {

    .socials-logo {
        display:block;
    }

    .socials-logo > img {
        display:block;
        margin:0 auto;
    }
}

@media screen and (max-width:500px) {
    body {
        font-size:16px;
    }
    .title {
        padding:10px 0;
    }
    .socials-nav a img {
        width:36px; height:auto;
    }

    #timeline td:first-child {
        font-size: 0.9em;
    }


    #signup {
        font-size:1em;
    }

    h3 {
        font-size:1.5em;
    }

    h3 em, h3 i {
        font-weight:normal;
    }
}


@media screen and (max-width:800px) {

/* Hide scrollbar for IE, Edge and Firefox */
main {
    /* scrollbar-width: 10px;  Firefox */
    overflow-y:scroll;
    scrollbar-width:thin;
    padding-right:11px;
    overflow-x:clip;
    margin-right:3px;
    scrollbar-color:var(--s) var(--ta);
}

main::-webkit-scrollbar {
    opacity:1;
    border-radius: 30px;
    width: 8px;
    background-color: rgba(var(--taRGB),0.5);
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 20%) inset;
    border: none;
}

main::-webkit-scrollbar-thumb {
    background-color: rgba(var(--sRGB),0.4);
    border-radius:3px;
    box-shadow: -1px 1px 3px  2px rgba(var(--pRGB),0.4) inset;
}
}