/* Import custom styles */
@import url(/./config/custom.css);
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

:root {
    --background-color: #221C35; /* Darker purple for background */
    --text-color: white !important;
    --accent-color: #2e65bf !important; /* Darker purple for accent */
}

* {
    font-family: ubuntu;
    transition: all 0.3s ease;
}

/* General styles */
html, body {
    height: 100%; /* Allow full height for scrolling */
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "ubuntu", sans-serif;
    overflow: hidden; /* Prevent scrolling on body */
    position: relative; /* Position relative for dot animation */
}

/* Create moving dots effect */
.dot {
    position: absolute;
    background-color: white; /* Dots are white */
    border-radius: 50%;
    width: 10px; /* Size of the dots */
    height: 10px; /* Size of the dots */
    animation: moveDots linear; /* Use linear animation so they continuously move */
    opacity: 0.7; /* Slightly transparent for effect */
}

@keyframes moveDots {
    0% {
        transform: translate(0, 0);
        opacity: 0.7; /* Start opaque */
    }
    100% {
        transform: translate(100vw, 100vh);
        opacity: 0; /* Fade out by the end */
    }
}

/* Add other styles here as needed... */

/* Search input styles */
#searchInput {
    padding: 17px;
    box-sizing: border-box;
    margin: 20px auto;
    width: 100%; /* Occupy full width */
    max-width: 400px; /* Limit maximum width */
    border-radius: 10px;
    border: none;
    font-size: 24px;
    user-select: none;
    outline: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

#searchInput:focus {
    border: 3px solid var(--accent-color);
}

/* Games container styles */
#gamesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px; /* Add padding to the sides */
    box-sizing: border-box;
    overflow-y: auto; /* Allow vertical scrolling */
    height: calc(100vh - 100px); /* Fill available height minus header/search height */
} 

/* Game card styles */
.game {
    margin: 10px;
    text-align: center;
    flex: 1 0 200px; /* Flexbox item properties */
    max-width: 200px; /* Limit maximum width */
    display: inline-block;
    transition: transform 0.3s ease;
    border: 2px;
    border-radius: 10px;
}

.game:hover {
    transform: scale(0.95); /* Scale up on hover */
    border: 2px solid var(--accent-color);
}

/* Game image styles */
.game img {
    width: 100%; /* Occupy full width of container */
    max-width: 100%; /* Ensure image does not exceed container width */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Game description styles */
.game p {
    margin-top: 5px;
    font-weight: 600;
}

/* Responsive adjustments */
@media only screen and (max-width: 600px) {
    .game {
        flex-basis: calc(50% - 20px); /* Two games per row */
    }
}

@media only screen and (max-width: 400px) {
    .game {
        flex-basis: calc(100% - 20px); /* Single game per row */
    }
}

.center {
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 450px) {
    #searchInput {
        width: 200px;
    }
}

.footer {
    margin: 10px auto;
    bottom: 0;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
}

/* Other styles as needed... */
