/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and general layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* Header with sticky top */
header {
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Locked tab section */
.locked-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation menu */
.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.menu a:hover {
    color: #007bff;
}

/* Main game container */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    margin-bottom: 40px;
}

/* Individual game card */
.game-card {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: 4px solid #000000;
}

/* Game image styling */
.game-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Title and description */
.game-title {
    font-size: 1.2em;
    margin: 15px 0;
    font-weight: bold;
}

.game-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

/* Star rating styling */
.game-rating {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.star {
    font-size: 20px;
    color: #ccc;
}

.star.filled {
    color: #000000;  /* Filled stars color */
}

.category-title {
    padding: 15px;
    background-color: rgb(236, 236, 236);
}

.game-card.locked {
    background-color: #ddd; /* Light gray background */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    border: 2px dashed #888; /* Optional dashed border */
    height: 100%; /* Ensure it takes up the same height as other cards */
    width: 100%; /* Same width as other cards */
    color: #888; /* Light gray text */
    font-size: 16px; /* Smaller font size */
    text-align: center;
    box-sizing: border-box; /* Ensure padding and borders are included in width/height */
}

.game-card.locked .locked-icon {
    width: 50%; /* Adjust the size of the lock image */
    height: auto; /* Maintain aspect ratio */
}

.header-container {
    display: flex;
    justify-content: space-between; /* This places the title on the left and the button on the right */
    align-items: center; /* Vertically centers the items */
    padding: 20px; /* Add some padding around the header */
}

/* Back button styling */
.back-button {
    background-color: #f1f1f1; /* Light background color */
    color: #333; /* Text color */
    border: 1px solid #ccc; /* Border color */
    padding: 10px 20px; /* Padding inside the button */
    font-size: 16px; /* Font size for the button text */
    cursor: pointer; /* Change cursor to pointer on hover */
    border-radius: 5px; /* Rounded corners */
    text-align: center;
}

/* Hover effect for the back button */
.back-button:hover {
    background-color: #ddd; /* Slightly darker background on hover */
    border-color: #999; /* Change border color on hover */
}
