@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #ff6f61, #6b5b95);
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    cursor: url('../../stuff/cursor/cur116.cur'), auto;
    text-align: center;
    flex-direction: column;
    padding: 20px;
}

/* Main Container */
.container {
    animation: fadeIn 1s ease-in-out;
    max-width: 90%;
    height: auto;  /* ✅ Allow container to expand */
    /*min-height: 100vh; /* ✅ Ensure full viewport height */
    padding-bottom: 50px; /* ✅ Prevent last item from getting cut off */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ffde7d, #ff6f61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1400px;
    width: 100%;
    justify-content: center;
    align-items: center;
    animation: slideUp 1s ease-in-out;

    overflow-y: auto; /* ✅ Enable scrolling inside grid */
}


/* Cards */
.card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: scale(1.07);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Card Icons */
.card i {
    font-size: 2rem;
    color: #ffde7d;
    transition: color 0.3s ease;
}

.card:hover i {
    color: #ff6f61;
}

/* Footer Text */
.footer-text {
    font-size: 1rem;
    margin-top: 20px;
    opacity: 0.8;
}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}




/* Tablets (1024px) */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    h1 {
        font-size: 2.2rem;
    }
}

/* Small Tablets & Large Phones (768px) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .card {
        padding: 15px;
    }
    h1 {
        font-size: 2rem;
    }
}

/* Mobile Phones (480px) */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .card {
        padding: 12px;
        width: 90%; /* ✅ Ensure it doesn't shrink too much */
        margin: 0 auto;
    }
    .card i {
        font-size: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .footer-text {
        font-size: 0.9rem; /* ✅ Adjust text for readability */
    }
}
