@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

body {
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #d2b48c;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23805e3d' fill-opacity='0.1'%3E%3Cpath d='M50 0v100M0 50h100'/%3E%3Cpath d='M0 0l100 100M100 0L0 100' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23805e3d' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: #4a3727;
}

.game-container {
    text-align: center;
    background-color: rgba(220, 200, 170, 0.7);
    border: 8px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.balloon-container {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 20px auto;
}

.balloon {
    width: 200px;
    height: 240px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%),
                linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: absolute;
    top: 0;
    transition: all 0.3s ease;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.2),
                inset 10px 10px 20px rgba(255, 255, 255, 0.5);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 16px;
    height: 20px;
    background-color: inherit;
    border-radius: 0 0 4px 4px;
    transform: translateX(-50%);
}

.balloon-string {
    width: 2px;
    height: 120px;
    background-color: #000;
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform-origin: top;
    animation: swingString 3s ease-in-out infinite;
}

@keyframes swingString {
    0%, 100% { transform: translateX(-50%) rotate(5deg); }
    50% { transform: translateX(-50%) rotate(-5deg); }
}

.box {
    background-color: #d2b48c;
    border: 4px solid #8b4513;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    font-size: 24px;
    color: #4a3727;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(139, 69, 19, 0.1) 10px,
        rgba(139, 69, 19, 0.1) 20px
    );
    z-index: -1;
}

#newBalloon {
    background-color: #8b4513;
    color: #d2b48c;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

#newBalloon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: repeating-linear-gradient(
        45deg,
        #d2b48c,
        #d2b48c 5px,
        #8b4513 5px,
        #8b4513 10px
    );
    z-index: -1;
    filter: blur(5px);
    opacity: 0.3;
}

#newBalloon:hover {
    background-color: #a0522d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#newBalloon:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.box::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%238b4513' d='M97.6,55.7l-9.7-7.5c0.8-3.8,0.8-7.7,0-11.5l9.7-7.5c1.3-1,1.9-2.9,1.3-4.5l-3.7-8.6c-0.6-1.6-2.2-2.5-3.9-2.2l-12.1,2.6c-2.6-2.9-5.7-5.3-9.1-7.1l-1.5-12.2c-0.2-1.7-1.6-3-3.3-3h-9.2c-1.7,0-3.1,1.3-3.3,3l-1.5,12.1c-3.4,1.8-6.5,4.2-9.1,7.1L30.7,14c-1.6-0.3-3.3,0.6-3.9,2.2l-3.7,8.6c-0.6,1.6,0,3.5,1.3,4.5l9.7,7.5c-0.8,3.8-0.8,7.7,0,11.5l-9.7,7.5c-1.3,1-1.9,2.9-1.3,4.5l3.7,8.6c0.6,1.6,2.2,2.5,3.9,2.2l12.1-2.6c2.6,2.9,5.7,5.3,9.1,7.1l1.5,12.2c0.2,1.7,1.6,3,3.3,3h9.2c1.7,0,3.1-1.3,3.3-3l1.5-12.1c3.4-1.8,6.5-4.2,9.1-7.1l12.1,2.6c1.6,0.3,3.3-0.6,3.9-2.2l3.7-8.6C99.5,58.6,98.9,56.7,97.6,55.7z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z'/%3E%3C/svg%3E");
    background-size: contain;
    top: -15px;
    right: -15px;
    opacity: 0.2;
    animation: gearRotate 10s linear infinite;
}