:root {
    /* general colors */
    --websitebackgroundcolor: darkseagreen;
    --pagecontentmaincolor: rgba(255, 213, 227, 0.8);
    --pagecontentaccentcolor: darkseagreen;

    --navbuttoncolor: #a5aec4;
    --navbuttoncolorhover: #ffffff;

    --textcolor: black;
    --linkcolor: black;

    /* collecting page header/deck colors */
    --collectingcolor-red: #ca2d2d;
    --collectingcolor-orange: #e68139;
    --collectingcolor-yellow: #fff426;
    --collectingcolor-green: #118f25;
    --collectingcolor-blue: #3e9fd7;
    --collectingcolor-purple: #cb7be1;
    --collectingcolor-brown: #99784c;
    --collectingcolor-gray: #b1b1b1;
    --collectingcolor-special: #ffffff;
}

/* DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU'RE DOING */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");

html {
    height: 99%;
}

/* GENERAL */
body {
    background: url("../-assets/erysiumtcgbg.png") no-repeat fixed left;
    background-color: #93b0dc;
    background-size: 100vmin;
    height: 98%;
    font-family: "Lexend", sans-serif;
}
p {
    color: var(--textcolor);
    margin: 0px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 0px;
}
a {
    color: var(--linkcolor);
}
hr {
    border: 1px solid var(--pagecontentaccentcolor);
    margin-top: 10px;
    margin-left: 30px;
    margin-right: 30px;
}
.flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.fcol {
    flex-direction: column;
}
.center {
    justify-content: center;
    align-items: center;
    margin: auto;
}
.spaceevenly {
    justify-content: space-evenly;
}
.tleft {
    text-align: left;
}
.section {
    margin: 5px;
}
.marginimage {
    margin: 5px;
}
.cardimage {
    margin: 0px;
}

/* HEADER */
#websiteheader {
    margin: auto;
    padding: 12px;
    background-color: #496290;
    border-radius: 10px;
    border: 4px solid white;
    width: 90%;
    position: relative;
}
.navbutton {
    color: var(--navbuttoncolor);
    text-decoration: none;
    font-size: 30px;
    transition: all 0.3s;
    margin: 0.5vw;
    text-align: left;
}
.navbutton:hover,
.active {
    color: var(--navbuttoncolorhover);
    font-size: 36px;
}
.headertitle {
    margin: 0.4em;
    font-size: 2em;
}
/* HOME PAGE */
#avatar {
    width: 80px;
}
.portfoliobutton {
    border: none;
    background-color: transparent;
}
.portfoliohidden {
    background-color: var(--pagecontentmaincolor);
    width: 110px;
    border: 1px solid var(--pagecontentaccentcolor);
    position: absolute;
    display: none;
    text-align: left;
}
.pendingsection {
    margin: 5px;
    margin-top: 0px;
}
#crayonscontainer {
    display: flex;
    width: 200px;
    justify-content: space-evenly;
}
.crayoncount {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-right: 5px;
}

/* COLLECTING PAGE */
.deckred {
    background-color: var(--collectingcolor-red);
}
.deckorange {
    background-color: var(--collectingcolor-orange);
}
.deckyellow {
    background-color: var(--collectingcolor-yellow);
}
.deckgreen {
    background-color: var(--collectingcolor-green);
}
.deckblue {
    background-color: var(--collectingcolor-blue);
}
.deckpurple {
    background-color: var(--collectingcolor-purple);
}
.deckbrown {
    background-color: var(--collectingcolor-brown);
}
.deckgray {
    background-color: var(--collectingcolor-gray);
}
.deckspecial {
    background-color: var(--collectingcolor-special);
}
.deckCOLORNOTFOUND {
    background-color: none;
}
.deckdiv {
    display: inline-block;
    margin: 5px;
}
.deckimgdiv {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 275px;
}
.deckheader {
    text-align: center;
    font-size: 15px;
    margin: 0px;
    padding: 5px;
    border-radius: 10px 10px 0 0;
}
.decklink {
    text-align: center;
    font-size: 15px;
    margin: 0px;
}
.neededdeckcolumn {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin: 10px;
    min-width: 90px;
}
.tcgframe-cont {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

* {
    box-sizing: border-box;
}

/* below this line is CSS for the layout */

/* this is a CSS comment
    to uncomment a line of CSS, remove the * and the /
    before and after the text */

/* the "container" is what wraps your entire website */
/* if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside
    of the container */
#container {
    max-width: 90vw;
    margin: 0 10%;
    height: 100vh;
    align-items: center;
    display: flex;
}

#flex {
    display: flex;
    width: 70vw;
    overflow: visible;
    min-height: 80vh;
    align-items: center;
    padding: 2vw;
    margin: auto;
}

/* this colors BOTH sidebars
    if you want to style them separately,
    create styles for #leftSidebar and #rightSidebar */
aside {
    width: 200px;
    font-size: smaller;
    border-radius: 10px;
    display: flexbox;
    margin: 2vw 2vw;
}
aside p,
aside h2,
aside a {
    color: white;
}
/* this is the color of the main content area,
    between the sidebars! */
main {
    background-color: #496290;
    max-width: 90%;
    flex: 1;
    order: 2;
    margin: auto;
    padding: 1.5em;
    border-radius: 10px;
    border: 4px solid white;
    height: 75vh;
    max-height: 70vh;
}

#leftSidebar {
    order: 1;
}

strong {
    /* this styles bold text */
    color: #ed64f5;
}

/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
    by default, the container width is 900px.
    in order to keep things responsive, take your new height,
    and then subtrack it by 100. use this new number as the 
    "max-width" value below
    */

@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    /* the order of the items is adjusted here for responsiveness!
      since the sidebars would be too small on a mobile device.
      feel free to play around with the order!
      */
    main {
        order: 2;
    }

    #leftSidebar {
        order: 1;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}

.homelinks a {
    text-decoration: none;
    margin: 0.4vw;
    padding: 0.6vw;
    background: white;
    border-radius: 10px;
    display: inline-block;
}

/* SCROLLBAR */
/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}
