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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

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

.instruction {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.cookie-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.cookie {
    max-width: 300px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.cookie:hover {
    transform: scale(1.05);
}

.cookie.clicked {
    animation: breakCookie 0.6s ease-in-out forwards;
}

@keyframes breakCookie {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
}

.fortune {
    background: #fff9e6;
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fortune::before {
    content: '"';
    font-size: 3em;
    color: #d4af37;
    line-height: 0;
    margin-right: 10px;
}

.fortune::after {
    content: '"';
    font-size: 3em;
    color: #d4af37;
    line-height: 0;
    margin-left: 10px;
}

.hidden {
    display: none !important;
}

.reset-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Georgia', serif;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reset-btn:active {
    transform: translateY(0);
}

