body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #333 10%, #1c1c1c); /* Radial gradient for a subtle background effect */
    color: #ddd; /* Light text color */
    text-align: center;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    background-image: url('assets/backgroud/vector.jpg'); /* Replace with the path to your pattern image */
    background-size: cover; /* Cover the entire background */
    background-position: center top; /* Position the background at the top center */
}

header {
    background: linear-gradient(to bottom, #0056b3, #003366); /* Subtle gradient for the header */
    padding: 15px 0;
    color: #fff;
    font-size: 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 20px; 
    position: relative;
    background: #333; /* Darker container background color */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Ensure the container is above the background */
}

img {
    width: 90%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, filter 0.5s ease-in-out;
}

img.blurred {
    filter: blur(5px); /* Adjust the blur radius as needed */
}

img:hover {
    transform: scale(1.1);
}

p {
    font-size: 18px;
    line-height: 1.6;
}

button {
    background-color: #4CAF50;
    color: #ffffffcc;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out; /* Add transition for color change */
    opacity: 1; /* Set the initial opacity for enabled buttons */
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.5; /* Reduce the opacity for disabled buttons */
}

#countdown {
    font-size: 350px; /* Adjust the font size as needed */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000; /* Add a black border to the numbers */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#thankYou {
    font-size: 36px;
    font-weight: bold;
    color: #4CAF50;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Initially hidden */
}

#buttonContainer {
    display: none;
    margin-top: 20px;
}

#doneButton {
    display: block;
    margin: 20px auto; /* Adjust the margin as needed */
}

#image-name {
    font-size: 24px; /* Larger font size for more impact */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Adjusted margin for spacing */
    color: #ddd; /* Match the blue color of the header */
    text-transform: uppercase; /* Convert text to uppercase for emphasis */
    letter-spacing: 1px; /* Add slight letter-spacing for better readability */
}

.sold-button {
    text-align: left; /* Align the button text to the left */
    background-color: #23f42a;
}

.unsold-button {
    text-align: left; /* Align the button text to the left */
    background-color: #e0210c;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure the overlay is above the image */
    pointer-events: none; /* Allow interactions with elements behind the overlay */
    overflow: hidden;
}

.overlay img {
    width: 100%; /* Make the GIF cover the entire overlay */
    height: 100%;
    object-fit: cover;
}

.results-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    background-color: #333; /* Darker background color for results container */
}

.players-container {
    flex: 1;
    text-align: left;
    padding: 10px;
    border: 1px solid #555; /* Darker border color */
    border-radius: 8px;
    background-color: #444; /* Darker background color for player container */
    margin-right: 10px;
}

.players-container h2 {
    color: #ddd; /* Light text color for heading */
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/backgroud/vector.jpg'); /* Replace with the path to your pattern image */
    opacity: 0.1; /* Adjust the opacity as needed */
    pointer-events: none; /* Allow interactions with elements behind the pattern */
    z-index: -1; /* Move the background below everything else */
}

.creator-text {
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
}

/* Media Queries */
@media screen and (max-width: 600px) {
    .container {
        padding: 10px;
    }
}
