@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

body {
    background-color: #ADD8E6;
    /* Baby Blue */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
}

/* Background Decorations (reused from other games) */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.7;
    animation: float-cloud linear infinite;
}

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

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

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

@keyframes float-cloud {
    0% {
        transform: translateX(-10vw);
    }

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

header {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

h1 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team {
    text-align: center;
    padding: 10px 20px;
    border-radius: 15px;
    transition: transform 0.2s;
}

.team.active {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.team-girl {
    background-color: #ffb3ba;
    border: 3px solid #ff6b6b;
}

.team-boy {
    background-color: #bae1ff;
    border: 3px solid #4a90e2;
}

.team h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team .score {
    font-size: 2rem;
    font-weight: bold;
}

.turn-indicator {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.characters-section {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.character {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 20px;
    width: 45%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.character .icon {
    font-size: 6rem;
    margin-bottom: 10px;
}

.character-img {
    height: 300px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
}

.character h3 {
    font-size: 1.5rem;
    color: #333;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn:active {
    transform: translateY(2px);
}

.btn-ok {
    background-color: #4CAF50;
    border: 3px solid #2E7D32;
}

.btn-ok:hover {
    background-color: #45a049;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-oops {
    background-color: #f44336;
    border: 3px solid #c62828;
}

.btn-oops:hover {
    background-color: #e53935;
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.4);
}

.btn-switch-turn {
    background-color: #FFC107;
    border: 3px solid #FFA000;
    color: #333;
}

.btn-switch-turn:hover {
    background-color: #FFB300;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.attribute-card {
    background: white;
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.attribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.attribute-card.selected {
    background-color: #FFF9C4;
    border-color: #FFC107;
    transform: scale(1.05);
}

.nav-buttons {
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #ff5252;
}

/* Animations */
@keyframes confeti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00;
    top: -10px;
    z-index: 1000;
    animation: confeti-fall linear infinite;
}