body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
}

.container-fluid {
    padding: 0;
    margin: 0;
}

.img {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

.header {
    margin-bottom: 20px;
    text-align: center;
}

.navbar {
    background-color: #4bc0c0;
    border: 1px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin: 0;
    padding: 0;
}

.navbar a {
    display: block;
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
    transform: scale(1.1);
    color: #000000;
}

.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.filter-section label {
    font-weight: bold;
}

.main-card, .group-card {
    background: white;
    border: 1px solid #0074cc;
    border-radius: 10px;
    margin: 10px 0;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.main-card:hover, .group-card:hover {
    transform: translateY(-5px);
    background-color: #d1e8ff;
}

#select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

#heading {
    text-align: center;
    margin-bottom: 20px;
}

/* Button container styling */
#button-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 80%;
    justify-items: center;
    margin: auto;
}

/* General button styling */
button {
    background: white;
    border: 1px solid #0074cc;
    border-radius: 10px;
    margin: 10px 0;
    padding: 20px 40px;
    font-size: 0.8em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
}

/* Hover effect for buttons */
button:hover {
    background-color: #caffff;
}

/* Selected button styling */
button.selected {
    background-color: #4bc0c0 !important;
    color: rgb(0, 0, 0);
}

/* Fetch Data button styling */
#fetchData {
    grid-column: span 4;
    padding: 15px 30px;
    background-color: #a30000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#fetchData:hover {
    background-color: #a30000;
}

#fetchData:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

input.error {
    border: 2px solid red;
}



h1 {
    text-align: center;
    font-size: 2.5em;
    color: #000000;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Group card container should use flexbox */
#group-card-container {
    flex-wrap: flex; /* Allow wrapping when there’s not enough space */
    justify-content: space-around;
    flex-wrap: wrap;
    column-gap: 10px;
}
.group-card {
    background-color: #ffffff;
    padding: 15px;
    border: 1px solid #0074cc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    box-sizing: border-box;
    display: space-between;
    flex: 1 1 22%; /* Flexbox property: each card takes up 22% of the container width */
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.group-card p {
    margin: 5px 0;
    color: #555;
    font-size: 0.9em;
}


/* Media queries to make it responsive */
@media (max-width: 768px) {
    .group-card {
        flex: 1 1 45%; /* Adjust cards to 45% width on medium screens */
    }
}

@media (max-width: 480px) {
    .group-card {
        flex: 1 1 100%; /* Stack vertically on small screens */
    }
}
