/* General styling */
* {
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    background-color: #210002;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 97%;
    background-color: #281c02; 
    padding: 10px 30px; 
    z-index: 1000; 
    padding-right: 50px;
}

nav .logo {
    height: 40px;
    margin-right: 20px; /* Space between logo and search bar */
}

.search-container {
    flex-grow: 1; /* Take available space */
    display: flex;
    justify-content: flex-start; /* Align left */
}

#searchInput {
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ac8988;
    font-size: 16px;
    color: #fff;
    background-color: #362503;
    width: 300px; /* Adjust the width as needed */
}

#searchInput::placeholder {
    color: #ac8988;
}

nav .nav-links {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    transition: 0.3s;
    color: white;
}

nav a.active {
    background: #ac8988;
}

nav a:hover {
    background: #ac8988;
}

nav:hover > a:not(:hover) {
    background: none;
}

/* css for slider */
.slideshow-container {
    max-width: 50%;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    height: 50%; 
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
/* End slider css */

/* Game Sections */
.game-section {
    margin: 10px;
    padding: 10px;
    background-color: #362503;
    border-radius: 10px;
}

.game-section h2 {
    color: #fff;
    padding-top: 20px;
    padding-left: 10px;
}

.game-slider {
    display: flex;
    padding-top: 30px;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
}

.game-card {
    background-color: #210002;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    width: 200px; /* Smaller width */
    flex: 0 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.game-card img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-content {
    padding: 15px;
    color: #fff;
}

.stars {
    color: gold;
}

.play-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #ac8988;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

textarea {
    margin-top: 10px;
    border-radius: 5px;
    padding: 3px;
    background-color: #362503; /* Darker background */
    color: #fff; /* Text color white */
    border: 1px solid #ac8988; /* Border color */
}

/* All Games Section */
.all-games .game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-logo {
    background-color: #210002;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    margin-top: 14px;
}

.game-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.game-logo img {
    width: 100%;
    border-radius: 10px;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 2%;
    background: #281c02;
    color: #ffffff;
    margin-top: auto;
}


/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #362503;
}

::-webkit-scrollbar-thumb {
    background-color: #ac8988;
    border-radius: 10px;
    border: 3px solid #362503;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ac8988;
}
