@font-face {
    font-family: Makisupa; 
    src: url('MAKISUPA.TTF');
}

@font-face {
    font-family: Hack; 
    src: url('hack/Hack-Regular.ttf');
    font-weight:normal;
    font-style: normal;
}

/*@font-face {
    font-family: Hack; 
    src: url('hack/Hack-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: Hack; 
    src: url('hack/Hack-Italic.ttf');
    font-style: italic, oblique;
}

@font-face {
    font-family: Hack; 
    src: url('hack/Hack-BoldItalic.ttf');
    font-weight: bold;
    font-style: italic, oblique;
}*/

h2 {
    font-family: monospace;
    background-color: red;
    line-height: 40px;
    font-size: 2em;
    color: white;
}

h3 {
    /*line-height: 40px;*/
    color: #141e13;
    font-family: Hack, monospace;
    font-size: 1.1em;
}

p {
    color: #BAD7F2;
    font-family: Hack, monospace;
    font-size: 1.1em;
}

.green-text p {
    color: #141e13;
}

.date p{
    position: absolute;
    right: 10%;
    top: 7%;
    width: 10%;
}

figcaption {
    color: #BAD7F2;
    font-family: Hack, monospace;
    font-size: 1em;
}

/* Set all links to this color */
a {
    color: #BDF7B7;
    font-family: Hack, monospace;
}

a.top-bar-text {
    color: #e08e45;
    text-decoration: none;
}

a.top-bar-text:hover {
    background-color: rgba(189, 247, 183, 0.2);
}

.text-link:hover {
    background-color: rgba(189, 247, 183, 0.2);
}

a:hover, a:active, a:focus {
    /*background-color: rgba(189, 247, 183, 0.2);*/
}

#electronics_button:hover, #electronics_button:active, #electronics_button:focus {
    width:85%;
    background-color: transparent;
}

#games_button:hover, #games_button:active, #games_button:focus {
    width:85%;
    background-color: transparent;
}

body {
    background-color: #A02C1F;
    background-image: url("Images/Games/CowboyHellGround.png");
    background-size: 50%;
    margin: 0%; /* Remove default body margin */
    padding: 0 10% 10% 10%;
}

table {
    color: white;
}

figure figcaption {
    text-align: left;
    width: 15em;
    padding-top: 5px;
}

.text-block {
    background-color: #A02C1F;
    padding: 10px;
    margin:20px;
    overflow: auto;
}

.text-block::after {
    content: "";
    clear: both;
    display: table;
}

.green-text-block {
    background-color: #7da878;
    padding: 10px;
    margin:20px;
    overflow: auto;
}

.green-text-block::after {
    content: "";
    clear: both;
    display: table;
}

.center-images {
    display: block-inline;
    vertical-align: top;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
}

.top-bar {
    position: fixed;
    left: auto;
    right: auto;
    margin-top: 0;
    width: 80%;
    height: 2.5em;
    display: flex;
    justify-content: space-around;
    background-color: #A02C1F;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
    z-index: 9999;
}

.top-bar-text {
    font-family: Makisupa, monospace;

    font-size: 1.5em;
    height: 77%;
    margin: 0;
    padding: 5px;
}

.flexible-link {
    text-decoration: none;
}

.banners {
    margin-bottom: 20px;
}

/* GRID SYSTEM------------- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Adjust the gap between items */
    padding: 20px;
}

.grid-item {
    text-align: center;
    text-decoration: none;
}

.grid-item img {
    width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1 / 1; /* Ensures the image is a square */
    object-fit: cover; /* Ensures the image covers the entire area of the square */
}

.grid-item > .overlay {
    position: absolute;
}

.green-grid img {
    border: 5px solid #2c4229;
}

.green-grid p {
    color: #141e13;
}

.red-square-grid img {
    border: 5px solid #4e160e;
}

.red-square-grid p {
    color: #bad7f2
}

.red-grid img {
    border: 5px solid #4e160e;
    aspect-ratio: 4 / 3; /* Ensures the image is a square */
}

.red-grid p {
    color: #bad7f2
}

.grid-item p {
    margin: 10px 0 30px 0;
    font-size: 1.6em;
    font-family: Makisupa, monospace;
}

.assorted-showoff {
    display: flex;
    width: 100%;
}

/* END GRID SYSTEM- ------------*/

/* Start sidebar system -------------*/
.sidebar {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 75px;
    height: 100vh; /* Full height */
    background-color: rgba(255, 50, 50, 0.4);
    /* Example color with transparency */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
    justify-content: center;
    text-align: center;
    /*color: #e08e45;*/
    padding: 15px;
}

.sidebar h2 {
    font-family: Makisupa, monospace;
    font-size: 1.2em;
    margin-top: 0px;
    margin-bottom: 20px;
    color: #bad7f2;
    background-color: transparent;
    text-align: center;
    justify-content: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

/* End sidebar system -------------*/

.footer {
    font-family: Makisupa, monospace;
    clear: both;
    text-align: center;
    border: 3px dashed #4e160e;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #A02C1F;
    padding: 20px;
    font-size: 1.25em;
}
