* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6fb;
    display: flex;
}
/* Reward Points Heading */
.rewards-heading {
    text-align: center;
    margin-top: 30px;
    color: #07182E;
    margin-left: 50%;
    margin-top: 80px;
}

.rewards-heading h1 {
    font-size: 2.5em;
    color: #2b3f98;
    margin-bottom: 40px;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: #2b3f98;
    width: 200px;
    padding: 20px;
    color: white;
    position: fixed;
    height: 100%;
}

.sidebar-header h2 {
    margin-bottom: 30px;
    color: #fff;
}

.menu ul {
    list-style-type: none;
    padding: 10px;
}

.menu ul li {
    margin-bottom: 20px;
    padding: 10px;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    height: 40px;
    border-radius: 8px;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.menu ul li a:hover {
    background-color: #3c49bf;
}

.menu ul li.active a {
    background-color: #19205a;
}

.logout {
    margin-top: 40px;
}

.logout a {
    color: white;
    text-decoration: none;
    display: block;
    padding-left: 30px;
}

.logout a:hover {
    color: red;
}

/* Cards Section */
.card-container {
    display: flex;
    justify-content: space-between; /* Spacing between cards */
    padding: 40px;
    width: 100%;
    margin-top: 150px;
    margin-left: 30%;
    gap: 100px;
}

.card {
    width: 250px;
    height: 254px;
    background: #436086;
    position: relative;
    display: flex;
    flex-direction: column; /* Stack heading and paragraph vertically */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    margin-right: 20px; /* Space between the cards */
    transition: transform 0.3s ease;
    text-align: center; /* Center text inside the card */
}

.card h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
    margin-bottom: 10px; /* Adjust margin between heading and paragraph */
}

.card p {
    z-index: 1;
    color: white;
    font-size: 1.2em; /* Smaller font size for paragraph */
    margin: 0; /* Remove any extra margin */
    padding: 4px;
}

.card::before {
    content: '';
    position: absolute;
    width: 100px;
    background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(255, 10, 255));
    height: 130%;
    animation: rotBGimg 5s linear infinite;
    transition: all 0.2s linear;
}

@keyframes rotBGimg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.card::after {
    content: '';
    position: absolute;
    background: #000000;
    inset: 5px;
    border-radius: 15px;
}

.card:hover {
    transform: scale(1.05);
}

.card:hover:before {
    background-image: linear-gradient(180deg, rgb(81, 255, 0), rgb(255, 58, 9));
    animation: rotBGimg 3.5s linear infinite;
}
