@font-face {
    font-family: DOS;
    src: url("fonts/DOS.ttf");
}

@keyframes startTape {
    0% {
        scale: 1;
    }
    100% {
        scale: 0.8;
    }
}

@keyframes tapePlaying {
    0% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(-4deg);
    }
}

@keyframes scanlines {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -50px;
    }
}

/* header, navbar, and li elements */

body {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

header {
    background-image: url("images/sitebg.png");
}

.giscus {
    display: flex;
    margin: auto;
    max-width: 70%; /* Adjust as needed */
}

.title_img {
    opacity: 1;
    width: 250px;
    transition: width 0.3s;
    transition-timing-function: ease;
    padding: 0.5rem;
}

.title_img:hover {
    opacity: 0.9;
    /*width: 275px;*/
}

.sticky_navbar {
    position: sticky;
    overflow: hidden;
    top: 0;
    margin: -1.2rem;
    margin-bottom: 25px;
    background-color: black;
    z-index: 99;
}

.linkbar{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333333;
}

.blogList {
    list-style-type: none;
    text-align: center;
    margin-left: 0em;
    padding: 0;

}

li {
    display: inline;
}

li a {
    color: white;
    text-align: center;
    font-size: 20px;
    padding: 3px;
    margin-right: 10px;
    margin-left: 10px;
    text-decoration: none;
    font-family: "DOS";
}

p a {
    color: lightblue;
}


.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wrapper::-webkit-scrollbar {
    display: none;
}

.selected {
    background-color: black;
}

li a:hover {
    background-color: black;
}

.linkbrowser {
    text-align: center;
    background-color: #1a1a1a;
}

/* headers */

h1,
h2,
strong {
    color: white;
    text-align: center;
}

h3,
img + em {
    text-align: center;
    color: grey;
    font-size: 1rem;
}

h1 {
    font-size: 1.9rem;
    transform: translateY(-2.6rem);
    background-color: black;
    margin-left: 20vw;
    margin-right: 20vw;
}

h3,
h2,
h1,
h5 {
    font-family: "DOS";
}

h2 {
    font-size: 35px;
}

h5 {
    color: lightgrey;
    font-weight: normal;
}

/* paragraphs */

p {
    color: grey;
    text-align: center;
    font-size: 20px;
    margin-left: 2vw;
    margin-right: 2vw;
    line-height: 2.5rem;
    font-weight: normal;
    font-family: "DOS", Verdana, sans-serif;
}

#jekyllpost p {
    color: white;
    text-align: left;
}

#warning {
    color: red;
}

/* project container */

.image_caption,
.paragraph {
    /* desc of games */
    text-align: center;
    font-family: "DOS", monospace;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: auto;
    margin-top: auto;
    font-size: 100%;
}

.paragraph {
    line-height: 150%;
    margin-left: 15%;
    margin-right: 15%;
}

.grid {
    /* grid container for projs */
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    padding: 0 50px;
    height: auto;
    justify-content: center;
}

.grid-row {
    /* grid container for projs */
    display: grid;
    padding: 0 50px;
    justify-content: center;
    place-items: center;
}

.game_post_row {
    flex-direction: row;
    text-align: center;
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    border: 1px solid transparent;
}

.game_title_row {
    vertical-align: center;

    object-fit: cover;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 5px;

    width: 75%;
    height: auto;
}

.gridCassette {
    --w: 800px; /* control when the items will wrap */

    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(
            clamp(100%/3 + 0.1%, (var(--w) - 100%) * 1000, 100%/2 + 0.1%),
            1fr
        )
    );

    text-align: center;
    height: 100%;
    justify-content: center;
}

input {
    width: 40vh;
    margin: 0 auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: block;
    border: 0.15rem solid transparent;
}

input:hover {
    border: 0.15rem solid white;
}

.animate {
    scale: 0.8;
    animation:
        startTape 0.25s,
        tapePlaying 5s infinite;
    animation-direction: alternate;
    animation-fill-mode: forwards;
}

.game_image {
    object-fit: cover;
    overflow: hidden;
    width: 70%;
}

.game_title {
    object-fit: cover;
    overflow: hidden;
    width: 80%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.game_post {
    text-align: center;

    overflow: hidden;

    width: 25vw;
    height: 35rem;
    margin: 10px;
    border: 1px solid transparent;
}

.game_post:hover,
.game_post_row:hover {
    border: 1px double white;
}

/* body and scanlines */

body {
    background-color: black;
}

body:before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 80%,
        rgba(0, 0, 0, 0.15) 80%
    );
    background-size: 100% 8px;
    z-index: 9999;
    pointer-events: none;
    animation: scanlines infinite 5s linear;
}

/* posts */

.link {
    text-decoration: none;
    outline-color: transparent;
    color: lightblue;
}

.link:visited {
    color: lightblue;
}

.post {
    background-color: black;
    border: 15px double #3a3a3a;
    margin: auto;
    text-align: center;
    height: auto;
    width: 80%;
}

.center {
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

hr {
    width: 50%;
}
