/* import fonts */


@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* root */

:root {
    /* images */

    --body-bg-image: url('/images/bgimage.png');
    --body-chopshoppage-bg-image: url('/images/chop_shop_page_bg.png');
    --border-image: url('/images/mobile_border.png');
    --carspingif: url('/images/carspin.gif');

    /* fonts */

    /* colors */

    --main_element_bg: #181818;
    --main_element_trans_bg: rgba(8, 8, 8, 0.5);

    --text: #bbb;
    --text_reverse: #181818;

    --accent: #c93d12;
}

body {
    font-family: 'Bai Jamjuree', sans-serif;
    text-align: justify;
    margin: 0;
    background-color: var(--main_element_bg);
    color: var(--text);
    background-image: var(--body-bg-image);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    transition: background-color 0.3s;
}

body#chop_shop_page {
    background-image: var(--body-chopshoppage-bg-image);
    transition: background-color 0.3s;
}

body#not_found_page {
    margin-top: 45vh;
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 900px;
    margin: 1em auto 0em;
}

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

#header {
    width: 100%;
    background-color: var(--main_element_bg);
    height: 150px;
}

/* navigation section */

#headerArea {
    display: flex;
}

#socialbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1em;
    background-color: transparent;
}

#socialbar i {
    display: block;
    padding: 0.5em;
    font-size: 1.2em;
}

#socialbar a {
    text-decoration: none;
}

#socialbar a:hover {
    opacity: 50%;

}

#navbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: space-evenly;
    padding: 1em 0em;
    background-color: transparent;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
}

#navbar a {
    display: block;
    padding: 0.5em 1em;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

#navbar a:hover {
    color: var(--text_reverse);
    background-color: var(--text)
}

#navbar a.active {
    color: var(--text_reverse);
    background-color: var(--text)
}

#lg_logo {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

#lg_logo img {
    width: 2em;
}

#flex {
    display: flex;
}


/* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */
aside {
    background-color: var(--main_element_trans_bg) ;
    width: 300px;
    padding: 20px;
    font-size: smaller;
/* this makes the sidebar text slightly smaller */
}


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

/* 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;
}

aside h2 {
    margin: 0em;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: 0.2em;;
}

footer {
    font-size: 12px;
    color: var(--text);
    text-transform: uppercase;
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
}

h1, h2, h3 {
    display: block;
    text-align:center;
    margin: 1em 0em 0em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

h1 {
    font-size: 25px;
}

h3.log {
    color: var(--text) !important;
}


#chop_shop_page h3 {
    color: var(--accent);
}

p {
    line-height: 1.5em;
}

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

ul {
    text-align: justify;
}

ul.log, ul.socials {
    padding-inline-start: 0;
}

ul.socials {
    display: grid;
}

a.social_link {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 0.5em;
    margin: 0em 0.2em;
    color: var(--accent);
}

a.social_link:hover {
    background-color: var(--accent);
    color: var(--text_reverse);
}


li {
    list-style: square;
    margin-bottom: 1em;
}

date {
    color: var(--accent);
}

.box {
    margin: 1em 0em 0em;
    background-color: transparent;
    padding: 0.1em;
}

.sidebar_img {
    display: block;
    margin: auto;
    height: 6em;
    background-image: var(--carspingif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* CSS for extras */

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

img.game_header {
    display: block;
    margin: auto;
    padding: 1em 0em;
    width: 18em;
}

border {
    display: block;
    height: 0.1em;
    background-image: var(--border-image);
    background-repeat: no-repeat;
    background-size: cover;
}

a.game_button {
    display: block;
    text-decoration: none;
    padding: 0.5em;
    color: var(--text);
    background-color: transparent;
    border: var(--text) solid 0.15em;
    margin: 1em 10em 2em;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
}

a.game_button:hover {
    background-color: var(--text);
    color: var(--text_reverse);
    transition: 0.3s;
}


/* 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: 1;
}

#leftSidebar {
    order: 2;
}

#rightSidebar {
    order: 3;
}

#navbar a {
    padding: 0em;
    font-size: 0.9em;
}
#navbar ul {
    flex-wrap: wrap;
}

a.game_button {
    margin: 0.5em 1em;
}
}
