@font-face {
    font-family: 'Gotchies-Regular.ttf';
    src: url('/Gotchies-Regular.ttf') format('truetype');
}

body {
    font-family: 'Gotchies-Regular.ttf';
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#banner {
    background-color: black;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 90%;
    max-width: 800px;
}
#banner h1 {
    margin: 0;
    padding: 0px;
    align-items: center;
}
#description {
    padding: 20px 0;
    width: 90%;
    max-width: 800px;
}
#details {
    padding: 20px 0;
    width: 90%;
    max-width: 800px;
}


#grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

#grid a {
    display: block;
    width: 100%;
}

#grid img {
    max-width: 100%;
    height: auto;
}

.game-link {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.game-thumb, .game-hover-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
}
.game-hover-thumb {
    opacity: 0;
}

.game-link:hover .game-thumb {
    opacity: 0;
}
.game-link:hover .game-hover-thumb {
    opacity: 1;
}
.game-summary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0);
    color: red;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s;
}

.game-link:hover .game-summary {
    opacity: 1;
}

@media (hover: none) {
    #grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-summary,
    .game-hover-thumb {
        opacity: 1;
    }
    .game-thumb {
        opacity: 0;
    }
    .game-summary {
        color: red;
        font-size: 30px;
    }
}

