/* Custom styles for Unique Flavors website */

/* Base styles */
body {
    font-family: 'Bubblegum Sans', sans-serif;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating balls animation */
.floating-balls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ball {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

.ball:nth-child(1) {
    width: 100px;
    height: 100px;
    background: #ff9a9e;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.ball:nth-child(2) {
    width: 150px;
    height: 150px;
    background: #fad0c4;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.ball:nth-child(3) {
    width: 80px;
    height: 80px;
    background: #a1c4fd;
    bottom: 15%;
    left: 20%;
    animation-delay: -10s;
}

.ball:nth-child(4) {
    width: 120px;
    height: 120px;
    background: #c2e9fb;
    bottom: 25%;
    right: 10%;
    animation-delay: -15s;
}

.ball:nth-child(5) {
    width: 90px;
    height: 90px;
    background: #ffecd2;
    top: 40%;
    left: 30%;
    animation-delay: -7s;
}

.ball:nth-child(6) {
    width: 110px;
    height: 110px;
    background: #fcb69f;
    top: 60%;
    right: 25%;
    animation-delay: -12s;
}

.ball:nth-child(7) {
    width: 70px;
    height: 70px;
    background: #fbc2eb;
    bottom: 40%;
    left: 40%;
    animation-delay: -3s;
}

.ball:nth-child(8) {
    width: 130px;
    height: 130px;
    background: #a6c1ee;
    top: 30%;
    right: 35%;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 3D Logo effect */
.logo-3d {
    text-shadow: 
        2px 2px 0 #ff9a9e,
        4px 4px 0 #fad0c4,
        6px 6px 0 #a1c4fd;
    transform: perspective(500px) rotateX(10deg);
    transition: transform 0.3s ease;
}

.logo-3d:hover {
    transform: perspective(500px) rotateX(0deg);
}

/* Game container */
.game-container {
    position: relative;
    width: 90%;
    height: 80vh;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fullscreen button */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.05);
}

/* Feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Review cards */
.review {
    transition: transform 0.3s ease;
}

.review:hover {
    transform: translateY(-5px);
}

.author {
    color: #666;
}

/* Rating stars */
.rating-stars {
    color: #ffd700;
    font-size: 2rem;
    letter-spacing: 5px;
}

/* Keyword tags */
.keyword-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.keyword-tag:hover {
    transform: scale(1.1);
}

/* Language selector */
#languageSelect {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #fad0c4;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#languageSelect:hover {
    background: white;
    border-color: #ff9a9e;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        height: 50vh;
    }

    .ball {
        display: none;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Footer */
footer {
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
}

footer a {
    color: #8b5cf6;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #7c3aed;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #fad0c4;
    border-top-color: #ff9a9e;
    border-radius: 50%;
    animation: loading 1s infinite linear;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
} 