body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #1e1e1e;
    color: #f0f0f0;
}

.content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

nav {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    background-color: #333;
    border-radius: 5px;
}

nav a {
    display: inline-block;
    margin: 5px 15px;
    text-decoration: none;
    color: #50bfff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
}

.game-title a, .game-item h3 a {
    color: #50bfff;
    text-decoration: none;
}

.hit-title a {
    color: #50bfff;
    text-decoration: none;
    font-weight: bold;
}

.controls-container {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

h2#profile-header {
    text-align: center;
}

.cover-art {
    width: auto;
    height: auto; 
    max-width: 500px;
    max-height: 800px;
  }

.condition-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.condition-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

.condition-dropdown {
    width: 400px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
}

.close-button {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 150px;
    height: auto;
}

content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

a {
    color: #50bfff;
}

.game-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

.game-details a {
    text-decoration: none;
}

div.details {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; 
    text-align: left;
    margin: 0;
    padding: 20px;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.details .game-name{
    font-size: 25px;
}

.ais-Hits-list{
    padding: 0;
}

.ais-Hits-item {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    height: 250px;
    padding: 20px;
    background-color: #2e2e2e;
    border-radius: 8px;
    gap: 20px;
    box-sizing: border-box;
    margin: 10px auto;
}

.ais-Hits-item .image {
    flex: 0 0 auto;
    max-width: 150px;
    text-align: center;
}

.ais-Hits-item .image img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.ais-Hits-item .buttons-and-condition button,
.ais-Hits-item .buttons-and-condition .condition-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
}

.ais-Hits-item .buttons-and-condition .condition-dropdown {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; 
    text-align: center;
}

div.ais-SearchBox {
    width: 100%;
    max-width: 800px;
    margin: 0px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 0;
}

div.ais-SearchBox input.ais-SearchBox-input {
    width: 100%;
    height: 60px;
    font-size: 20px; 
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.ais-SearchBox .ais-SearchBox-submit, .ais-SearchBox-reset {
    display: none; 
}

form.ais-SearchBox-form {
    width: 100%;
    max-width: 800px;
    margin: 0px;
    display: flex; 
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#searchbox {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#searchbox input[type="search"],
#search-bar {
    width: 100%;
    height: 60px;
    font-size: 20px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.ais-Highlight-highlighted{
    color: #50bfff;
    background-color: transparent;
}

#pagination {
    margin-top: 20px;
    text-align: center;
}

#pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

#pagination ul li {
    display: inline-block;
    margin: 0 5px;
}

.pagination-item {
    padding: 8px 12px;
    color: #ffffff;
    background-color: #333;
    border-radius: 5px;
    text-decoration: none;
}

.game-actions .buttons {
    display: flex;
    gap: 10px; 
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
}

.in-collection,
.in-wishlist {
    background-color: #FF5722;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: start;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
    margin: 10px auto;
    width: 100%;
    width: auto;
    box-sizing: border-box;
}

.filters-header {
    text-align: center;
    margin: 10px 0;
}

.filters-header h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.filter-container label {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-right: 5px;
}

.filter-container select {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
}

#apply-filters {
    padding: 5px 15px;
    font-size: 14px;
    background-color: #50bfff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

div.details .game-name a{
    text-decoration: none;
}

.results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-list {
    list-style: none;
    padding: 0;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
}

.user-item a {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #50bfff;
    margin-right: 20px;
}

.user-stats {
    display: flex;
    gap: 30px;
    font-size: 16px; 
}

.user-stats p {
    margin: 0;
    font-size: 18px; 
    font-weight: 500;
}

.game-reviews {
    margin: 40px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #333; 
    border-radius: 10px;
    color: #f0f0f0;
}

button#logout{
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

button#login{
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}


.game-reviews h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #f0f0f0;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#review-form {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#review-form label {
    font-size: 16px;
    font-weight: bold;
    color: #f0f0f0;
}

#review-form select,
#review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 14px;
    background-color: #444;
    color: #f0f0f0;
    resize: vertical;
    padding-right: 0px;
    padding-left: 0px;
}

#review-form textarea {
    font-family: Arial, sans-serif;
    height: 100px;
}

#review-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #50bfff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reviews-list {
    margin-top: 20px;
}

.review-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #444; 
    border-radius: 8px;
    color: #f0f0f0; 
}

.review-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #f0f0f0;
}

.review-item strong {
    color: #bbbbbb;
}

.review-item a {
    color: #50bfff;
    text-decoration: none;
    font-weight: bold;
}

button#share-profile-button {
    align-items: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

#share-status {
    margin-left: 10px;
    visibility: hidden;
    opacity: 0;
}

#share-status.visible {
    visibility: visible;
    opacity: 1;
}

.review-item button {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.star {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.star.empty {
    filter: grayscale(100%);
}


.game-actions {
    align-items: center;
}

.toggle-collection , .toggle-wishlist, .game-actions button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

#admin-edit-form select,
#add-game-form select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #f0f0f0;
    appearance: none;
}

#admin-edit-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #f0f0f0;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#field-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #f0f0f0;
}

#edit-field-container {
    margin-top: 20px;
    display: block;
}

#edit-field-input {
    display: block;
}

#edit-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #f0f0f0;
}

#edit-field-input,
#edit-dropdown {
    width: 100%;
    padding: 10px;
    display: block;padding-right: 0px;padding-left: 0px;
    font-size: 14px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #f0f0f0;
    margin-bottom: 20px;
}

#edit-dropdown {
    display: none;
}

#admin-edit-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #50bfff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 800px;
}

#add-game-form {
    margin: 40px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #333;
    border-radius: 10px;
    color: #f0f0f0;
    width: 100%;
}

#add-game-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #f0f0f0;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    width: 100%;
}

#add-game-form .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

#add-game-form label {
    flex: 0 0 200px;
    font-size: 14px;
    font-weight: bold;
    color: #f0f0f0;
    margin-right: 10px;
}

#add-game-form input,
#add-game-form select {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #f0f0f0;
}

#add-game-form input::placeholder,
#add-game-form select::placeholder {
    color: #bbb;
}

#add-game-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #50bfff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

button.remove-from-collection,
button.remove-from-wishlist,
button.delete-review {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    width: 200px;
    text-align: center;
    border: none;
    box-shadow: none;
    outline: none;
}


@media (max-width: 768px) {
    .filter-container {
        gap: 10px;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .filters-header h3 {
        font-size: 16px;
    }

    .filter-container label {
        font-size: 18px;
    }

    .filter-container select {
        font-size: 13px;
        width: 100%;
    }

    #apply-filters {
        padding: 10px 18px;
        font-size: 14px;
    }

    .game-row .details {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        font-size: 20px;
    }

    div.image {
        margin: 0 auto;
        text-align: center;
        max-width: 80%;
    }

    div.image img {
        max-width: 100%;
        height: auto;
    }

    .ais-Hits-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
        height: auto;
    }

    .ais-Hits-item .image {
        max-width: 80%;
        margin: 0 auto;
    }

    .ais-Hits-item .details {
        max-width: 300px;
        width: 100%;
        padding: 10px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-container {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }

    .filters-header h3 {
        font-size: 14px;
    }

    .filter-container label {
        font-size: 14px;
    }

    .filter-container select {
        padding: 5px 10px;
        font-size: 13px;
        width: 100%;
    }

    #apply-filters {
        padding: 10px 20px;
        font-size: 14px;
    }

    nav a {
        display: block;
        margin: 10px auto;
    }

    div.image {
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
    }

    div.image img {
        max-width: 100%;
        height: auto;
    }

    .ais-Hits-item {
        padding: 10px;
        height: auto;
    }

    .ais-Hits-item .image img {
        max-width: 100%;
    }
}