/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f2a900, #ff5c8d); /* Colorful gradient background */
    color: #333;
    padding: 40px;
    display: flex;
    justify-content: center;  /* Center content horizontally */
    align-items: center;      /* Center content vertically */
    flex-direction: column;
    min-height: 100vh;        /* Ensure the body takes full viewport height */
    overflow-x: hidden;      /* Prevent horizontal overflow */
    overflow-y: auto;        /* Allow vertical scrolling */
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;  /* Ensure header takes full width */
}

header h1 {
    font-size: 40px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding a slight shadow for text */
}

header p {
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));  /* Responsive grid */
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    justify-content: center; /* Center the grid items horizontally */
}

/* Card */
.card {
    background: #fff;
    border: 2px solid #ff5c8d;  /* Vibrant border for each card */
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    max-width: 320px; /* Ensuring the card doesn't exceed the maximum width */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* Card Title */
.card h2 {
    font-size: 26px;
    color: #ff5c8d;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Description */
.card-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Card Image */
.card-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Order Button */
.order-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff5c8d;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;  /* Pill-shaped button */
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.order-btn:hover {
    background-color: #ff1e4a;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #fff;
}