/* Global Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f5f5f5;
}

/* Title Bar Styling */
.title {
    background: linear-gradient(270deg, #0044ff, #00aaff, #0044ff, #003ee8);
    background-size: 400% 400%;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 6px;
    border-radius: px;
    margin-top: 11px; /* Adjust spacing as needed */
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    animation: gradientAnimation 5s infinite linear;
}

/* Gradient Animation for Titles */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- FIRST SECTION: 4 Boxes with a 2x2 Grid --- */
.first-section {
    width: 95%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin-bottom: 5px;
}

/* Each box (card) in the first section */
.first-section .box-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #0800ff;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0;                  /* for animation fade-in */
    transform: translateY(20px); /* for animation slide-up */
    transition: transform 0.4s, opacity 0.4s;
}

.first-section .box-card img {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

.first-section .box-card p {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.first-section .box-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- COMMON MENU STYLING FOR OTHER SECTIONS --- */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 1px;
    max-width: 1000px;
    width: 95%;
    margin-bottom: 10px;
}

.menu-container.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.menu-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px;
    background-color: #f5f5f5;
    border: 2px solid #0800ff;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
    user-select: none;
}

.menu-item img {
    width: 60px;
    height: auto;
    margin-bottom: 12px;
}

.menu-item p {
    font-size: 14px;
    color: white;
    font-weight: normal;
    background-color: #0800ff;
    padding: 5px 10px;
    border-radius: 7px;
    text-align: center;
    width: 100%;
}

.menu-item:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .first-section {
        grid-template-columns: 1fr 1fr;
    }
    .menu-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
