:root{
    --black: hsl(15, 10%, 16%);
    --red: #C60404;
    --red2:hsl(0, 52%, 43%);
    --brown: hsl(21, 100%, 21%);
    --yellow: hsl(36, 100%, 59%);
    --teal: hsl(167, 85%, 29%);
    --white: #fff;

    --body-font: "Han Rounded CN", sans-serif;
    --heading-font: "Chillight", var(--body-font);

    --box-width: 160svh;
    --box-height: 90svh;
    --main-height: calc(var(--box-height) - 25svh);
}

/* basic styling */

body{
    background-color: hsl(38, 41%, 85%);
    background-image: url("./assets/bg.png");
    color: var(--black);
    font-family: var(--body-font);
    font-size: calc(12px + 0.55svh);
    overflow-y: hidden;
    margin: 0;
}

/* links */

a{
    text-decoration: none;
    color: var(--red);
}

a:hover{
    color: var(--brown);
}

a, a:is(:hover, :focus){
    transition: color 0.3s ease-in-out;
}

h1, h2, h3, h4, h5{
    font-family: var(--heading-font);
    margin: 0.5em 0;
}

h2{
    font-size: 2em;
}

h3{
    font-size: 1.8em;
}

/* header */

header{
    grid-area: header;
    --inner-stroke: var(--yellow);
    --outer-stroke: var(--black);

    h1{
        font-size: 3em;
        margin: 0 auto;
        width: 10ch;

        span{
            display: inline-block;
        }
    }

    a{
        color: var(--brown);
    }

    a:is(:hover, :focus){
        color:hsl(135, 19%, 34%);
    }

    a:is(:hover, :focus) span:nth-child(2){
        color: var(--red2);
    }

    a, a:is(:hover, :focus), a span:nth-child(2), a:is(:hover, :focus) span:nth-child(2){
        transition: color 0.3s ease-in-out;
    }
}

/* where the content goooooessss */

header, #text{
    margin-left: 6.66em;
}

#text{
    grid-area: text;
}

/* nav bar column thingy */

nav{
    grid-area: nav;
    height: var(--main-height);
    min-height: fit-content;
    align-self: start;
    position: sticky;
        top: 0;
    width: fit-content;
    display: flex;
        flex-flow: column nowrap;
        justify-content: space-evenly;
        align-items: center;

    a{
        display: block;
        color: var(--black);
        text-decoration: none;
        font-weight: bold;
    }

    a:is(:hover, :focus){
        opacity: 0.77;
    }

    a:is(:hover, :focus)::before{
        opacity: 0.66;
    }

    a, a:is(:hover, :focus),
    a::before, a:is(:hover, :focus)::before{
        transition: opacity 0.2s ease;
    }

    a::before{
        content: "";
        display: block;
        height: 3em;
        width: 3em;
        margin: auto;
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url("./assets/feather.png");
    }

    a:nth-of-type(5n + 1)::before{
        background-image: url("./assets/flower02.png");
    }

    a:nth-of-type(5n + 2)::before{
        background-image: url("./assets/flower03.png");
    }

    a:nth-of-type(5n + 3)::before{
        background-image: url("./assets/monument.png");
    }

    a:nth-of-type(5n + 4)::before{
        background-image: url("./assets/flower04.png");
    }
}

/* main box container thing */

#holdme{
    background-image: url("./assets/frame.png"), url("./assets/CG_07t.png"), url("./assets/field.png"), url("./assets/rainbow2.png"), url("./assets/bg2.png");
        background-repeat: no-repeat;
        background-size: contain, auto 80%, calc(100% - 6.66svh), auto calc(100% - 6.66svh), calc(100% - 6.66svh);
        background-position: 0 0, calc(100% - 5svh) calc(100% - 3svh), center calc(100% - 4svh), 33% 6svh, 3svh 3svh;
    width: var(--box-width);
    height: var(--box-height);
    margin: auto;
    margin-top: 5svh;
    display: flex;
        align-items: center;
        justify-content: center;
}

/* floating white fuzzy content box */

main{
    text-align: center;
    height: var(--main-height);
    width: calc(60% - 8svh + 1em);
    margin-right: 15%;
    box-sizing: border-box;
    padding: 0.5em 1.66em 0 0;
    overflow: auto;
    box-shadow: 0 0 3svh 3svh rgba(255,255,255, 0.66);
    background-color: rgba(255,255,255, 0.66);
    display: grid;
        grid-template-areas: "nav header" "nav text";
}

main img{
    max-width: 100%;
}

main::-webkit-scrollbar {
    width: 0.5em;
  }
   
main::-webkit-scrollbar-track {
    background: transparent;
}

main::-webkit-scrollbar-thumb {
    background: rgba(255,255,255, 0.66);
}

ul, ol{
    text-align: left;
}

/* member stats on the front page */

#stats{

    margin: 1em auto 2em auto;
    background: url("./assets/table.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
        align-items: center;
        justify-content: center;
    padding: 2em;
    min-width: 66%;
    box-sizing: border-box;

    table{
        text-align: left;
        width: fit-content;
    }

    th{
        width: 15ch;
    }
}

/* code 50x50 gallery */

#fifty img{
    margin-left: 1ch;
}

/* members list */

ul#members{
    list-style: none;

    li{
        margin-bottom: 1em;

        b{
            font-size: 1.1em;
        }
    }

    li::before{
        content: "";
        height: 2em;
        width: 2em;
        margin-right: 0.5ch;
        display: inline-block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("./assets/flower05.png");
        transform: translateY(0.5ch);
    }

    li:nth-of-type(5n + 1)::before{
        background-image: url("./assets/fruit.png");
    }

    li:nth-of-type(5n + 2)::before{
        background-image: url("./assets/flower01.png");
    }

    li:nth-of-type(5n + 3)::before{
        background-image: url("./assets/leaf.png");
    }

    li:nth-of-type(5n + 4)::before{
        background-image: url("./assets/grapes.png");
    }

    li div, li div + span{
        margin-left: 4.5ch;
    }

    li div{

        >*:not(:last-child)::after{
            content: " \2022 ";
            color: var(--black)!important;
        }
    }
}

/* corner vector!!!! */

#vector{
    content: url("./assets/dolly.png");
    min-width: 15svw;
    width: calc((100svw - var(--box-width)) / 2);
    height: auto;
    position: fixed;
        bottom: 1svh;
        left: 1svh;
    z-index: -1;
}

/* footer */

footer{
    padding-top: 0.5em;
    margin-top: 1em;
    border-top: 0.1em dashed;

    a{
        color: var(--black);
        text-decoration: none;
    }

    a:is(:hover, :focus){
        color: var(--red);
    }

    img:not([src*="tfl"]){ 
        width: 1.5em;
        margin: 0 0.5ch;
        transform: translateY(0.5ch);
    }
}

/*..........................

		double stroke

..........................*/

/* prepare the selectors to add a stroke to */
.stroke-single,
.double-stroke {
  position: relative;
  background: transparent;
  z-index: 0;
}
/* add a single stroke */
.stroke-single:before,
.double-stroke:before {
  content: attr(alt);
  position: absolute;
  -webkit-text-stroke: 0.11em var(--inner-stroke); 
  
  left: 0;
  z-index: -1;
}
/* add a double stroke */
.double-stroke:after {
  content: attr(alt);
  position: absolute;
  -webkit-text-stroke: 0.25em var(--outer-stroke);
  left: 0;
  z-index: -2;
}