/* General Styles */
body {
    font-family: 'Fredoka One', sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #72e2ae;
}

/* Back Button */
div a {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #36805d;
    border-radius: 5px;
    border: 2px solid #72e2ae;
    color: #72e2ae;
    transition: 0.3s ease;
}

div a:hover {
    background-color: #72e2ae;
    color: #36805d;
    border-color: #36805d;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: rgba(28, 35, 53, 1);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    width: 90%;
}

.filters label {
    color: #72e2ae;
    font-size: 1.2rem;
    font-weight: bold;
}

.filters select {
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 2px solid rgba(114, 226, 174, 0.7);
    background-color: rgba(28, 35, 53, 1);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.filters select:hover,
.filters select:focus {
    border-color: #72e2ae;
    background-color: rgba(28, 35, 53, 1);
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
    width: 90%; /* Ensure container takes up 90% of the screen width */
}

.card {
    flex: 1 1 90%; /* Set card to always take up 90% of the screen width */
    background-color: rgba(28, 35, 53, 1);
    padding: 5%;
    border: 0.2px solid rgba(114, 226, 174, .2);
    border-radius: 8px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Card hover and other styling remains the same */
.cards {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    justify-content: center; /* Align the cards to the center */
    gap: 20px;
    margin-top: 20px;
    text-align: center;
    width: 90%; /* Ensure container takes up 90% of the screen width */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.card {
    width: 90%; /* Make each card 90% of the container width */
    background-color: rgba(28, 35, 53, 1);
    padding: 5%;
    border: 0.2px solid rgba(114, 226, 174, .2);
    border-radius: 8px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.card::after {
    content: "";
    position: absolute;
    top: 150%;
    left: -100%;
    width: 200%;
    transform: rotate(45deg);
    background-color: #fff;
    height: 18px;
    filter: blur(50px);
    opacity: .5;
    transition: 2s;
    margin-top: 100px;
}

.card:hover::after {
    width: 400%;
    top: -100%;
}

.card h2 {
    color: wheat;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card p {
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    margin: 12px 0;
    color: rgba(255, 255, 255, .6);
    transition: .6s;
}

.card:hover {
    background-color: rgba(28, 35, 53, .75);
    transform: translateY(-8px);
    border-color: #1c2335;
}

.card:hover p {
    color: white;
}

@media screen and (max-width: 900px) {
    .filters {
        flex-direction: column;
        gap: 20px;
        width: 90%;
    }

    .filters select {
        width: 100%;
    }
}
