/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #211c1c; /* Dark background color */
    background-image: url("images/back.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #fff; /* Light text color for contrast */
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    overflow-y: auto; /* Allow vertical scrolling */
    max-height: 90vh; /* Limit the container height */
    color: #312e22; /* Dark text color inside the container */
}

h1 {
    margin-bottom: 20px;
    color: #312e22; /* Dark color for the heading */
}

button {
    background: #CEBC61; /* Light button color */
    color: #312e22; /* Dark text color for contrast */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    white-space: nowrap; /* Prevent text wrapping */
    transition: background 0.3s ease; /* Smooth transition for hover effect */
}

button:hover {
    background: #b0a052; /* Slightly darker shade for hover */
}

#pools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pool {
    background: #f9f9f9; /* Light background for contrast */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: left;
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle overflow text */
    white-space: normal; /* Allow text wrapping */
}

.pool h2 {
    margin: 0;
    margin-bottom: 10px; /* Add space below the heading */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle overflow text */
    white-space: nowrap; /* Prevent text wrapping */
    color: #312e22; /* Dark color for pool headers */
}

.pool button {
    background: #CEBC61; /* Light button color */
    color: #312e22; /* Dark text color for contrast */
    margin-top: 10px; /* Add space above the buttons */
    display: block;
    width: 100%; /* Ensure buttons take full width */
}

.pool button:hover {
    background: #b0a052; /* Slightly darker shade for hover */
}

.pool input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle overflow text */
    white-space: normal; /* Allow text wrapping */
}

@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    button {
        width: 100%;
    }
}
