:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --bg-color: #F7F9FC;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #FFC0CB 0%, #89CFF0 100%);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    overflow-x: hidden;
    /* Prevent scrollbar from moving clouds */
}

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    color: white;
    opacity: 0.8;
    animation: floatCloud 20s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cloud-1 {
    top: 10%;
    left: -10%;
    font-size: 4rem;
    animation-duration: 25s;
}

.cloud-2 {
    top: 30%;
    left: -20%;
    font-size: 6rem;
    animation-duration: 35s;
    animation-delay: 5s;
}

.cloud-3 {
    top: 60%;
    left: -15%;
    font-size: 3rem;
    animation-duration: 28s;
    animation-delay: 2s;
}

.cloud-4 {
    top: 80%;
    left: -25%;
    font-size: 5rem;
    animation-duration: 40s;
    animation-delay: 8s;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatHeart 15s ease-in-out infinite;
    opacity: 0.6;
}

.heart-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.heart-2 {
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.heart-3 {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    font-size: 2rem;
}

.heart-4 {
    top: 85%;
    left: 30%;
    animation-delay: 6s;
}

.heart-5 {
    top: 15%;
    left: 90%;
    animation-delay: 3s;
    font-size: 1rem;
}

@keyframes floatCloud {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(110vw);
    }
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

header {
    text-align: center;
    padding: 40px 20px;
    animation: bounceIn 1s ease;
}

header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

header p {
    font-size: 1.5rem;
    color: #555;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.category-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 30px;
    width: 300px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid transparent;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card .icon {
    font-size: 5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

.category-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 1.1rem;
    color: #777;
}

/* Specific Colors for Categories */
.category-card.music {
    border-color: #FF9F43;
}

.category-card.music h2 {
    color: #FF9F43;
}

.category-card.music:hover {
    background-color: #FFF5EB;
}

.category-card.video {
    border-color: #54A0FF;
}

.category-card.video h2 {
    color: #54A0FF;
}

.category-card.video:hover {
    background-color: #EBF5FF;
}

.category-card.game {
    border-color: #1DD1A1;
}

.category-card.game h2 {
    color: #1DD1A1;
}

.category-card.game:hover {
    background-color: #E8FBF5;
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 1.2rem;
    color: #888;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }
}