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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #7b68ee, #3498db);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
}

.pinocchio-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin-bottom: 20px;
    position: relative;
}

.pinocchio {
    position: relative;
    width: 120px;
    height: 150px;
}

.face {
    width: 100px;
    height: 120px;
    background-color: #ffe0bd;
    border-radius: 50%;
    position: relative;
    overflow: visible;
}

.eyes {
    display: flex;
    justify-content: space-around;
    position: absolute;
    width: 80px;
    top: 30px;
    left: 10px;
}

.eye {
    width: 15px;
    height: 15px;
    background-color: #000;
    border-radius: 50%;
    position: relative;
}

.eye::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.nose {
    width: 20px;
    height: 10px;
    background-color: #ffa07a;
    border-radius: 50%;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: left center;
    transition: all 0.5s ease;
}

.mouth {
    width: 30px;
    height: 10px;
    border-bottom: 2px solid #000;
    border-radius: 50%;
    position: absolute;
    bottom: 30px;
    left: 35px;
}

.hat {
    width: 80px;
    height: 20px;
    background-color: #4682b4;
    position: absolute;
    top: -10px;
    left: 10px;
    border-radius: 5px;
}

.hat::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 30px;
    background-color: #4682b4;
    top: -25px;
    left: 10px;
    border-radius: 50% 50% 0 0;
}

.hair {
    width: 100px;
    height: 20px;
    background-color: #8b4513;
    position: absolute;
    top: 10px;
    left: 0;
    border-radius: 10px 10px 0 0;
}

.speech-bubble {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent #fff;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4682b4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #36648b;
}

.explanation-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.explanation-box h2 {
    color: #4682b4;
    margin-bottom: 15px;
    text-align: center;
}

.explanation-box p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#conclusion {
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.smoke {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(200, 200, 200, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: rise 2s forwards;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(2);
        opacity: 0;
    }
}

@keyframes grow {
    0% {
        width: 20px;
    }
    100% {
        width: 100px;
    }
}

@keyframes shrink {
    0% {
        width: 100px;
    }
    100% {
        width: 20px;
    }
}

