@import url('https://fonts.googleapis.com/css2?family=Honk&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BungeeTint&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BungeeSpice&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #161b3d;
    color: #e4e9ec;
}

.genre h1,
.categories h1,
.game__name {
    font-family: "Bungee Spice", monospace;
    font-size: 2.5em;
    font-weight: bold;
    color: #953b3b;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #212653;
    color: #e4e9ec;
    padding: 1rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.header button.homepage {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
}

.header h1 {
    font-family: "Honk", monospace;
    margin: 0;
    font-size: 4em;
    flex: 1;
    text-align: center;
}

.header button.homepage svg {
    width: 32px;
    height: 32px;
}

a.homepage {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.content {
    flex: 1;
    display: flex;
    padding: 1rem;
    flex-direction: column;
    max-width: 100%;
    overflow-y: auto;
}

.list {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border: thick double #949cd5;
}

.list a {
    display: block;
    max-width: 100%;
    padding: 1rem;
    background-color: #282c4f;
    font-weight: bold;
    color: #804641;
    margin: 1rem;
    text-decoration: none;
    border: 2px solid #586093;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.list a:hover {
    background-color: rgba(255, 255, 255, 0.28);
    color: #121530;
}

.list__genre {
    display: flex;
    flex-direction: column;
    width: auto;
    overflow-y: auto;
    overflow-x: hidden;
    border: thick double #586093;
    gap: 1rem;
    padding: 1rem;
    background-color: #20254a;
}

.list__genre a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #2b305f;
    font-weight: 600;
    color: rgb(255, 255, 255);
    border: 2px solid rgba(12, 44, 11, 0.88);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 0.6rem;
}

.list__genre a:hover {
    background-color: #08417a;
    color: #1a1f3a;
}

.list .game:nth-child(even) {
    flex-direction: row-reverse;
}

.list .game:nth-child(even) .game__details {
    text-align: right;
    align-items: flex-end;
}

.footer {
    background-color: #212653;
    color: #e4e9ec;
    text-align: center;
    padding: 1rem;
    font-size: 0.9em;
}

.sort-menu {
    margin: 1rem 2rem;
    font-weight: bold;
}

#sort-select {
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.genre h1, .categories h1 {
    font-family: "honk", monospace;
    font-weight: bold;
    color: #953b3b;
}

.game {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-color: #2a2f5b;
    transition: box-shadow 0.3s ease;
}

.game:hover {
    box-shadow: 0 4px 16px rgba(0, 255, 174, 0.3);
}

.game__cover {
    flex-shrink: 0;
    width: 20%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.game__details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.game__details2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.game__year {
    font-weight: 600;
    font-size: 1rem;
    color: #953b3b;
}

.game__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #953b3b;
}

.game__desc {
    font-size: 1rem;
    line-height: 1.4;
    color: #e4e9ec;
}

.gameD__poster {
    text-align: center;
    margin: 2rem auto;
}

.gameD__poster img {
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gameD__platforms-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    width: 90%;
}

.gameD__platforms {
    display: flex;
    gap: 1rem;
    border-radius: 10px;
    background-color: rgba(46,91,117,0.88);
}

.platform-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;


}

.gameD__year {
    font-size: 1.4rem;
    font-weight: bold;
    background-color: rgba(46,91,117,0.88);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.gameD__dev {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #d9e3ff;
}

.gameD__platforms-year {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    width: 90%;
}

.gameD__rating-price {
    display: flex;
    justify-content: space-between;
    margin: 1rem auto;
    width: 90%;

}

.gameD__note {
    font-size: 1.4rem;
    font-weight: bold;
    background-color: #08417a;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.gameD__price {
    font-size: 1.4rem;
    font-weight: bold;
    background-color: #08417a;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.gameD__desc {
    display: flex;
    width: 90%;
    margin: 1.5rem auto;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    font-weight: bold;
    background-color: #355e8f;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.gameD__genres,
.gameD__ctg {
    display: flex;
    flex-direction: row;
    margin: 1rem auto;
    margin-left: 15px;
    width: 90%;
    flex-wrap: wrap;

}
.gameD__container {
    display: flex;
    width: 99%;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.gameD__year {
    font-size: 1.4rem;
    font-weight: bold;
    background-color: #08417a;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #ffffff;
}

.gameD__genre a {
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    background-color: #2b305f;
    border-radius: 6px;
    border: 2px solid rgba(12, 44, 11, 0.88);
    white-space: nowrap;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}



.gameD__genre a:hover {
    background-color: #08417a;
    color: #ffffff;
}

.gameD__genres h3,
.gameD__ctg h3 {
    font-family: "Honk", cursive;
    font-size: 1.5em;
    color: #953b3b;
    margin-bottom: 0.5rem;
}

.gameD__genre-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.gameD__genre-list::-webkit-scrollbar {
    height: 6px;
}
.gameD__genre-list::-webkit-scrollbar-thumb {
    background-color: #08417a;
    border-radius: 10px;
}

.gameD__button {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem auto;
    flex-wrap: wrap;
}

.gameD__button form {
    margin: 0;
}

.delete-button, .update-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.delete-button {
    background-color: #d9534f;
}

.delete-button:hover {
    background-color: #c9302c;
}

.update-button:hover {
    background-color: #0056b3;
}

.no_game {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e4e9ec;
    background-color: rgba(133, 41, 41, 0.2);
    padding: 1rem 1.5rem;
    border-left: 4px solid #953b3b;
    border-radius: 6px;
    text-align: center;
    width: 99%;
}


@media (min-width: 1000px) {
    .list__genre {
        flex-direction: row;
        justify-content: space-between;
    }

    .categories, .genre {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .gameD__container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
        width: 90%;
        padding: 0 2rem;
    }

    .gameD__left,
    .gameD__right {
        flex: 1;
        width: 90%;
    }
    .gameD__platforms-year{
        justify-items: center;
    }

    .gameD__poster,
    .gameD__platforms-year,
    .gameD__dev,
    .gameD__rating-price,
    .gameD__desc {
        width: 90%;
        margin: 1rem 0;
    }

    .gameD__genres-ctg {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
        width: 90%;
        padding: 0 2rem;
    }

    .gameD__genres,
    .gameD__ctg {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 90%;
        margin: 0;
    }

    .gameD__genre-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 90%;
    }

    .gameD__genre {
        margin: 0;
    }




}





