body {
    font-family: 'Inter', sans-serif;
    margin: 2rem;
    background: white;
}

h1 {
    color: #333;
    text-align: center;
}

.error-message {
    color: red;
    font-size: 0.8em;
}

.hidden {
    display: none !important;
}

.input {
    margin-bottom: 8px;
    padding-top: 20px;
}

.centered-content {
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.centered-table {
    border: 1px solid black;
    border-collapse: collapse;
    width: 100%;
}

.sorter {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.sorter:hover {
    color: lightblue;
}

th.sort-asc::after {
    content: ' ▲';
}

th.sort-desc::after {
    content: ' ▼';
}

.auth-button {
    background: white;
    border: 1px solid black;
    cursor: pointer;
    width: auto;
    height: 32px;
    box-sizing: border-box;
}

#profileContainer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-info-group {
    display: flex;
    align-items: center;
}

#picLink {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.auth-button:hover {
    background: lightgray;
}

.auth-profile-pic {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
}

.auth-profile-pic:hover,
.user-profile-pic:hover {
    cursor: pointer;
    filter: brightness(0.8) saturate(150%);
}

.user-menu {
    align-items: center;
    gap: 10px;
    display: flex;
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid black;
    /* border-radius: 6px; */
    min-width: 150px;
    cursor: pointer;
    z-index: 9999;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.dropdown a:hover {
    background: lightgray;
}
.genre-filter {
    text-align: center;
    margin-bottom: 1rem;
}

.games-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    scroll-behavior: smooth;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    justify-content: flex-start;
}

.list-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 1rem;
    border-bottom: 1px solid black;
}

.list-header h3,
.list-header a {
    margin: 0;
    display: flex;
    align-items: center;
}

.list-header h2 {
    margin-bottom: 0;
}

.view-all {
    color: #0000EE;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.8rem;
}

.view-all:hover {
    text-decoration: none;
}

.visited {
    color: #551A8B;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-wrapper:hover .scroll-btn-left,
.carousel-wrapper:hover .scroll-btn-right {
    opacity: 0.7;
    pointer-events: auto;
}

.scroll-btn-left,
.scroll-btn-right {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    border: none;
    background-color: black;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
    opacity: 0;
}

.scroll-btn-left {
    left: 0;
    border-radius: 0 150px 150px 0;
}

.scroll-btn-right {
    right: 0;
    border-radius: 150px 0 0 150px;
}

.scroll-btn-left:hover,
.scroll-btn-right:hover {
    background-color: gray;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left:disabled,
.scroll-btn-right:disabled {
    opacity: 0.3;
    cursor: auto;
}

.scroll-btn:hover {
    color: #007bff;
}

.scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#loadMore,
#newLoadMore,
.load-more {
    display: block;
    margin: 2rem auto;
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#loadMore:hover,
#newLoadMore:hover,
.load-more:hover {
    background: #0056b3;
}

.carousel {
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    /* margin: 1em auto; */
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

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

.game-card {
    flex: 0 0 150px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    transition: transform 0.2s;
    scroll-snap-align: start;
}

.game-card:target,
.game-card.active {
    background-color: black;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-cover {
    width: 100%;
    height: auto;
    /* border-radius: 6px; */
}

.game-title {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.search-section {
    display: flex;
    float: right;
    gap: 3px;
    align-items: stretch;
    height: 35px;
    padding-right: 5px;
}

.search-section select {
    padding: 5px;
}

.search-section input[type='text'] {
    padding: 5px;
    border: 1px solid #ccc;
    width: 250px;
}

.search-section button {
    padding: 5px 12px;
    border: none;
    background: black;
    color: white;
    cursor: pointer;
}

.search-section button:hover {
    background: gray;
}

.search-results {
    background: #333;
    color: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 8px 12px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.back-button:hover {
    background: #5a6268;
}

#genreFilter {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.review-card {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 16px;
    margin: 16px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    color: #fff;
}

.review-card a {
    color: #5cb5f9;
}

.review-card a:hover {
    color: #8acfff;
}

.review-card a:visited {
    color: #c08eff;
}

.review-card a:visited:hover {
    color: #ddbbff;
}

.review-card strong {
    font-size: 1.1em;
}

.review-card small {
    color: #aaa;
}

.review-card p {
    margin-top: 10px;
    line-height: 1.5;
}

.friends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: flex-start;
}

.friend-card {
    width: 370px;
    height: 85px;
    border: 1px solid black;
    margin-top: 10px;
    object-fit: cover;
    margin-right: 10px; 
    align-items: flex-start;
    display: flex;
}

.friend-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.friend-bio {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    width: calc(25% - 10px);
    background-color: #fff;
    box-sizing: border-box;
}

.user-profile-pic {
    width: 48px;
    height: 48px;
    object-fit: cover;
    margin-right: 5px;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    /* margin: 0 auto; */
}

.profile-bio {
    white-space: pre-wrap;
    text-align: center;
}

.settings-box {
    max-width: 500px;
    margin: 20px auto;
}

.settings-box input,
.settings-box textarea {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}
.game-info-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

#cover {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.details-grid {
    flex-grow: 1;
}

.details-grid p {
    margin-bottom: 8px;
}

#gameInfo #name {
    margin-bottom: 20px;
}

.add-button {
    background: white;
    cursor: pointer;
    padding: 8px 12px;
    display: block;
    margin-top: 10px;
    border: none;
    border-bottom: 1px solid blue;
    color: blue;
}

.add-button:hover {
    background: lightgray;
}

.cover-and-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#userGameAdd {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.75s ease-out;
}

#userGameAdd.show {
    max-height: 500px;
}

.number-input {
    width: 50px;
}

#gamesTable th, #gamesTable td {
    text-align: center;
    vertical-align: middle;
    height: auto;
    border-bottom: 1px solid black;
}

#gamesTable a img {
    display: block;
    margin: 0 auto;
    width: 50px;
    height: auto;
    padding: 8px;
}

#searchTable a img {
    display: block;
    margin: 0 auto;
    padding: 8px;
}

#searchTable {
    border-collapse: collapse;
}

#searchTable td {
    height: auto;
    vertical-align: middle;
    border-bottom: 1px solid black;
}

.action-btn {
    padding: 8px 16px;
    /* border-radius: 4px; */
    cursor: pointer;
    font-weight: bold;
    border: none;
    /* margin-top: 10px; */
}

.action-btn:hover {
    filter: brightness(0.8);
}

.btn-blue {
    background-color: #007bff;
    color: white;
}

.btn-blue:hover {
    background-color: lightblue;
}

.btn-gray {
    background-color: #ccc;
    color: #666;
    cursor: default;
}

.btn-green {
    background-color: #28a745;
    color: white;
}

.btn-outline-green {
    background-color: transparent;
    color: green;
    border: 1px solid green;
    cursor: default;
}

.btn-red {
    background-color: #dc3545;
    color: white;
}

.btn-red:hover {
    background-color: #c82333;
}

.friend-badge {
    display: inline-block;
    padding: 8px 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.friend-actions-wrapper {
    display: flex;
    margin-top: 10px;
}

.header-table {
    width: 1400px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
}

.content-table {
    width: 1400px;
    margin: 0 auto;
    border-collapse: collapse;
}

.content-table tr td {
    height: auto;
    vertical-align: middle;
    border-bottom: 1px solid black;
}

.content-table tr td h3 {
    margin: 0 auto;
}

.content-header {
    height: auto;
    border-bottom: 1px solid black;
    width: 1400px;
    margin: 0 auto;
    margin-top: 5px;
}

.header-table tr {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.header-table td:nth-child(1) {
    flex-grow: 0;
    white-space: nowrap;
}

.header-table td:nth-child(2) {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0;
}

.header-table td:nth-child(3) {
    flex-grow: 0;
    white-space: nowrap;
    justify-content: flex-end;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    margin-right: auto;
}

.content-wrapper {
    width: 1400px;
    margin: 0 auto;
}

.container-small {
    border-right: 1px solid #e5e5e5;
    display: table-cell;
    flex-shrink: 0;
    padding: 8px 8px 8px 0;
    vertical-align: top;
    width: 225px;
    max-width: 100%;
}

.container-large {
    padding-left: 8px;
    vertical-align: top;
    width: 1175px;
    display: table-cell;
    max-width: 100%;
}

.page-ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #333333;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.page-ul li a {
    display: block;
    flex: 1;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 5px solid transparent;
}

.page-ul li a:hover {
    background-color: #111111;
    cursor: pointer;
}

.page-ul li a.active {
    color: #1a73e8;
    border-bottom: 5px solid #1a73e8;
    font-weight: bold;
}

.tab-section {
    display: flex;
    float: left;
    align-items: stretch;
    height: 50px;
    justify-content: center;
    width: 100%;
}

.header-ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 50px;
    width: 100%;
    background-color: #1a73e8;
    display: flex;
    align-items: stretch;
}

.header-ul li {
    display: flex;
}

.header-ul li a {
    display: flex;
    align-items: center;
    color: white;
    padding: 6px 16px;
    text-decoration: none;
    border-bottom: 5px solid transparent;
}

.header-ul li a:hover {
    background-color: #111111;
    cursor: pointer;
}

.header-ul li:hover > a {
    background-color: #111111;
}

.header-ul li:hover .dropdown-menu {
    display: block;
    background-color: #111111;
}

.header-ul li a.active {
    font-weight: bold;
    color: goldenrod;
    border-bottom: 5px solid goldenrod;
}

.progress-bar-wrapper {
    width: 100%;
    max-width: 500px;
    background-color: #ccc;
    border-radius: 6px;
    overflow: hidden;
    height: 20px;
    margin: 10px 0;
}

.progress-bar {
    display: flex;
    height: 100%;
}

.segment {
    height: 100%;
}

.playing { 
    color: white;
    background-color: #4caf50; 
}

.completed { 
    color: white;
    background-color: #1a73e8; 
}

.on-hold { 
    color: black;
    background-color: #ffeb3b; 
}

.dropped { 
    color: white;
    background-color: #f44336; 
}

.planned {
    color: white; 
    background-color: #eb8f17; 
}

.wishlisted { 
    color: white;
    background-color: #00ddc0; 
}

.star {
    position: absolute;
    top: 5px;
    right: 7.5px;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.2s;
    color: gold;
    background: rgba(0,0,0,0.5);
}

.game-page-star {
    color: gold;
    font-size: 30px;
    cursor: pointer;
}

.game-card:hover .star {
    opacity: 1;
}

.auth-box {
    background-color: #e5e5e5;
    height: 500px;
    width: 500px;
    padding-left: 1px;
}

.form {
    width: 300px;
    margin: 0 auto;
    text-align: left;
}

.auth-input {
    width: 100%;
    height: 25px;
}

.notif-wrapper {
    position: relative;
}

#notifBtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 5px;
}

#notifBadge {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 0.6rem;
    font-weight: bold;
}

#notifDropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -10px;
    background: white;
    border: 1px solid #ccc;
    width: 300px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.notif-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    font-weight: bold;
    font-size: 0.9rem;
}

#notifList {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.notif-item:hover {
    background: lightgray;
}
.notif-item.unread {
    border-left: 5px solid #007bff;
    background: #f0f8ff;
}
.notif-date {
    color: #777;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.profile-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-review-card {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.profile-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.profile-review-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.profile-review-text {
    margin: 0;
    font-size: 0.95rem;
}

.vote-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 4px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vote-btn:hover {
    background-color: #333;
}

.vote-btn-active-up {
    background-color: #14532d;
    border-color: #22c55e;
    color: #bbf7d0;
}

.vote-btn-active-down {
    background-color: #7f1d1d;
    border-color: #f97373;
    color: #fee2e2;
}

.hover-text:hover {
    background: lightgray;
}

.header-unread-notif {
    border-left: 5px solid #007bff;
    background: #f0f8ff;
}

.mark-all-read {
    width: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}
.profile-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-review-card {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.profile-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.profile-review-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.profile-review-text {
    margin: 0;
    font-size: 0.95rem;
}

.vote-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 4px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vote-btn:hover {
    background-color: #333;
}

.vote-btn-active-up {
    background-color: #14532d;
    border-color: #22c55e;
    color: #bbf7d0;
}

.vote-btn-active-down {
    background-color: #7f1d1d;
    border-color: #f97373;
    color: #fee2e2;
}

a:hover {
    color: #007BFF;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000033;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 1000px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111111;
    border: 1px solid #ccc;
    min-width: 150px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    text-decoration: none;
    color: white;
    width: 100%;
}

.dropdown-menu li a:hover {
    background-color: gray;
}

#gamesTabContainer:hover .dropdown-menu {
    display: block;
}

.screenshot {
    width: 500px;
    height: auto;
    margin-left: 10px;
    margin-bottom: 10px;
}

.video {
    width: 500px;
    aspect-ratio: 16 / 9;
    margin-left: 10px;
    margin-bottom: 10px;
}

.status-container {
    position: relative;
    display: inline-block;
}

.status-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 125px;
}

.status-dropdown li {
    padding: 8px;
    cursor: pointer;
}

.status-dropdown li:hover {
    background-color: #ccc;
}

.game-info-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}

.game-info-card {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background-color: #f9f9f9;
}

.profile-info-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-items: stretch;
}

.edit-textarea,
.reply-textarea {
    margin-top: 25px;
    width: 100%;
    min-height: 120px;
    resize: vertical;
}
