:root {
    --body-bg-image: url("./images/webfishing.png");
    --body-bg-color: #1f1e33;
    --body-text-color: rgb(255, 228, 196); /* #cdd6f4;*/
    --main-bg-color: #313244;
    --sidebar-bg-color: #1e1e2e;
    --sidebar-box-bg-color: #11111b;
    --header-text: rgb(255, 228, 196);
    --container-width: 1200px;
    --max-scrollable-distance: 200vh;
    --box-text-color: rgb(239, 223, 187);
    --main-and-asides-bg-color: rgba(112, 66, 65, 0.68);
    --aside-box-bg-color: rgba(60, 20, 20, 0.33);
    --link-color: rgb(255, 228, 251);

    /* colors */
    --content: rgb(255, 228, 221);
}

img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
}

/* fonts :3 */

@font-face {
    font-family: "pixelFont";
    src: url("./fonts/pixelFont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "asianFont";
    src: url("./fonts/asianFont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "serifFont";
    src: url("./fonts/serifFont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Cherry Bomb One";
    src: url("./fonts/CherryBombOne.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("./fonts/JetBrainsMono.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Sour Gummy";
    src: url("./fonts/SourGummy.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Sour Gummy", sans-serif;
    margin: 0;
    background-color: var(--body-bg-color);
    /* you can delete the line below if you'd prefer to not use an image */
    color: var(--body-text-color);
    background-image: var(--body-bg-image);
    font-size: 1.25em;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: var(--max-scrollable-distance);
}

#balatro-bg {
    position: fixed;
    inset: 0;
    z-index: -1; /* keeps it behind your content */
}

* {
    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 */

.asian {
    font-family: "asianFont";
}

.pixelfont {
    font-family: "pixelFont";
}

.pixelfont a {
    color: inherit;
}

/* 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: var(--container-width);
    /* this is the width of your layout! */
    /* if you change the above value, scroll to the bottom
and change the media query according to the comment! */
    margin: 0 auto;
    /* this centers the entire page */
}

/* the area below is for all links on your page
EXCEPT for the navigation */
#container a {
    /*color: inherit; #f5c2e7;*/
    font-weight: bold;
    /* if you want to remove the underline
you can add a line below here that says:
text-decoration:none; */
}

#header {
    width: 100%;
    background-color: #5e4e8c;
    /* header color here! */
    height: 150px;
    /* this is only for a background image! */
    /* if you want to put images IN the header,
you can add them directly to the <div id="header"></div> element! */
    background-image: var(--header-image);
    background-size: 100%;
    z-index: 999;
}

#headerText h1 {
    color: var(--header-text); /*#dbf5e4; */
    text-align: right;
    margin-top: 9%;
    margin-bottom: 10px;
    margin-right: 25px;
    z-index: 999;
}

#flex {
    display: flex;
}

#buttons-block {
    text-align: center;
}

.buttons {
    display: inline-block;
    width: 88px;
    height: 31px;
    position: relative;
    z-index: 1;
    transition: transform 0.15s ease;
    box-sizing: border-box;
}

.buttons:hover {
    z-index: 999999;
    transform: scale(1.8) translateZ(0);
}

/* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */

#leftSidebar {
    background-color: var(--sidebar-bg-color);
    width: calc(var(--container-width) * 0.33);
    padding: 20px;
    font-size: smaller;
}

#rightSidebar {
    background-color: var(--sidebar-bg-color);
    width: calc(var(--container-width) * 0.33);
    padding: 20px;
    font-size: smaller;
}

/* this is the color of the main content area,
between the sidebars! */
main {
    background-color: var(--main-bg-color);
    flex: 1;
    padding: 20px;
    order: 2;
}

main,
#leftSidebar,
#rightSidebar {
    background-color: var(--main-and-asides-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.box {
    background-color: var(--aside-box-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    color: var(--box-text-color);
}

/* what's this "order" stuff about??
allow me to explain!
if you're using both sidebars, the "order" value
tells the CSS the order in which to display them.
left sidebar is 1, content is 2, and right sidebar is 3! */

*/ #leftSidebar {
    order: 1;
}

#rightSidebar {
    order: 3;
}

footer {
    background-color: #13092d;
    /* background color for footer */
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
    /* this centers the footer text */
}

h1,
h2,
h3 {
    color: inherit;
}

h1 {
    font-size: 25px;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

li {
    padding-left: 6px;
}

strong {
    /* this styles bold text */
    color: rgb(255, 228, 221);
}

/* this is just a cool box, it's the darker colored one */

#flex {
    display: flex;
    position: relative;
}

#danbosit {
    position: absolute;
    top: -15px;
    left: 16.5%;
    transform: translateX(-50%) rotate(-11deg);
    z-index: 9001;
    max-width: 150px;
    height: auto;
}

#danbowave {
    position: absolute;
    top: 20px;
    right: 20%;
    transform: translateX(-50%) rotate(0deg);
    z-index: -999;
    max-width: 100px;
    height: auto;
}

#omoribasilraft {
    position: fixed;
    bottom: 4%;
    left: 16%;
    transform: translateX(-50%) rotate(0deg);
    z-index: 0;
    max-width: 100px;
    height: auto;
}

a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--link-color);
}

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

a:active {
    color: var(--link-color);
}

/* CSS for extras */

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #13092d;
}

/* 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: calc(var(--container-width) - 100px)) {
    #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: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }
}
