/* --- General & Mobile-Friendly Styles --- */
body { 
    font-family: Arial, sans-serif; 
    padding: 15px;
    max-width: 600px;
    margin: auto; 
    background-color: #f4f4f9;
}
h2 { 
    text-align: center; 
    color: #333;
    margin-bottom: 30px;
}
.question { 
    margin-bottom: 35px;
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.question strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #0056b3;
}

/* --- Flexbox for Emoji Options (Mobile-Friendly Layout) --- */
.emoji-options-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 10px;
}
.emoji-option { 
    font-size: 32px;
    padding: 12px; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease-out;
    background-color: #eee;
    line-height: 1;
    width: 100%;
    position: relative;
}

/* --- Moving/Hover Animation (Applied to Hover & Selection) --- */
@keyframes pulse-move {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) translateY(-2px); }
}

/* --- Emoji Hover/Selection State --- */
.emoji-option:hover,
.emoji-option.selected {
    background-color: #c9e0ff; 
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.5);
    animation: pulse-move 0.3s ease-out;
}

/* --- Emoji Icon Switching --- */
.default-icon {
    display: block;
}
.hover-icon {
    display: none;
    position: absolute;
}
.emoji-option:hover .default-icon,
.emoji-option.selected .default-icon {
    display: none;
}
.emoji-option:hover .hover-icon,
.emoji-option.selected .hover-icon {
    display: block;
}


/* --- Submit Button Animation --- */
@keyframes move-icon {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.submit-btn { 
    width: 100%; 
    padding: 18px;
    font-size: 1.2em; 
    border-radius: 12px; 
    border: none; 
    background-color: #007bff;
    color: white; 
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #0056b3;
}
.submit-icon {
    display: inline-block;
    font-size: 1.5em;
    animation: move-icon 1.5s infinite ease-in-out;
}