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

body {
    font-family: 'Gaegu', 'Hi Melody', -apple-system, 'Apple SD Gothic Neo', cursive;
    background: linear-gradient(135deg, #ffeef7 0%, #fff0f5 25%, #ffe4e6 50%, #ffeef7 75%, #fff0f5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* 이모지 네비게이션 */
.emoji-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1500;
    flex-direction: column;
}

@media (max-width: 768px) {
    .emoji-nav {
        display: none; /* 모바일에서 숨기기 */
    }
}

.nav-emoji {
    font-size: 35px;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.nav-emoji:nth-child(1) {
    animation-delay: 0s;
}

.nav-emoji:nth-child(2) {
    animation-delay: 0.5s;
}

.nav-emoji:nth-child(3) {
    animation-delay: 1s;
}

.nav-emoji:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.6));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 45px;
    border-radius: 40px;
    box-shadow: 0 25px 70px rgba(255, 182, 193, 0.35);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 1s ease-in;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 192, 203, 0.2);
}

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

.heart-animation {
    font-size: 70px;
    animation: bounce 2s infinite;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.5));
    transition: transform 0.3s;
}

.heart-animation:hover {
    transform: scale(1.2);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.title {
    font-size: 2.8rem;
    color: #ff85a1;
    margin-bottom: 30px;
    text-shadow: 3px 3px 10px rgba(255, 182, 193, 0.5);
    animation: pulse 2s infinite;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.puppy {
    font-size: 90px;
    animation: wiggle 3s infinite;
    cursor: pointer;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.puppy:nth-child(1) {
    animation-delay: 0s;
}

.puppy:nth-child(2) {
    animation-delay: 0.5s;
}

.puppy:nth-child(3) {
    animation-delay: 1s;
}

.puppy:hover {
    transform: scale(1.2) rotate(10deg);
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.message {
    font-size: 1.5rem;
    color: #9b7a8a;
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    padding: 18px 45px;
    font-size: 1.4rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Gaegu', 'Hi Melody', cursive;
}

.btn-yes {
    background: linear-gradient(135deg, #ff9ec4, #ffb3d9);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 158, 196, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 158, 196, 0.6);
    background: linear-gradient(135deg, #ff8ab8, #ffa8d4);
}

.btn-no {
    background: linear-gradient(135deg, #a8e6cf, #dcedc1);
    color: #555;
    position: relative;
    animation: moveAround 0.5s infinite;
    transition: transform 0.2s ease-out;
    font-size: 0.85rem;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .btn-no {
        animation: moveAround 0.3s infinite;
    }
}

@media (max-width: 480px) {
    .btn-no {
        animation: moveAround 0.2s infinite;
    }
}

@keyframes moveAround {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(60px, -30px);
    }
    40% {
        transform: translate(-50px, 40px);
    }
    60% {
        transform: translate(40px, 30px);
    }
    80% {
        transform: translate(-30px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.btn-no:hover {
    animation: moveAround 0.3s infinite;
    box-shadow: 0 6px 20px rgba(168, 230, 207, 0.4);
}

.result {
    font-size: 1.5rem;
    color: #ff85a1;
    font-weight: bold;
    min-height: 50px;
    margin-top: 20px;
    animation: fadeIn 0.5s;
}

.result.hidden {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 35px 25px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .puppy {
        font-size: 70px;
    }
    
    .message {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 15px 35px;
        font-size: 1.2rem;
    }
    
    .btn-no {
        font-size: 0.9rem;
        padding: 10px 22px;
    }
    
    .heart-animation {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .puppy {
        font-size: 60px;
    }
    
    .message {
        font-size: 1.2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 85%;
        font-size: 1.1rem;
    }
    
    .btn-no {
        font-size: 0.5rem;
        padding: 4px 10px;
        width: 40px;
        min-width: 40px;
        height: 25px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .heart-animation {
        font-size: 55px;
    }
    
    .puppy-message-content {
        padding: 20px 25px;
        max-width: 90%;
    }
    
    .puppy-message-text {
        font-size: 1.4rem;
    }
}

/* 이메일 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    margin: auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 70px rgba(255, 182, 193, 0.4);
    border: 3px solid rgba(255, 192, 203, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #ff85a1;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close:hover {
    transform: scale(1.2) rotate(90deg);
}

.modal-content h2 {
    color: #ff85a1;
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
}

.modal-content p {
    color: #8b6f7e;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.modal-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Gaegu', 'Hi Melody', cursive;
    resize: vertical;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    box-sizing: border-box;
}

.modal-content textarea:focus {
    outline: none;
    border-color: #ff85a1;
    box-shadow: 0 0 10px rgba(255, 133, 161, 0.3);
}

.modal-content textarea::placeholder {
    color: #c0a8b8;
}

.modal-content #sendEmailBtn {
    width: 100%;
    margin-bottom: 15px;
}

#emailStatus {
    text-align: center;
    min-height: 30px;
    font-size: 1rem;
}

.puppy-message {
    pointer-events: none;
}

/* 강아지 메시지 팝업 (겹침 방지) */
.puppy-message-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.puppy-message-popup.show {
    opacity: 1;
}

.puppy-message-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.5);
    border: 3px solid rgba(255, 192, 203, 0.4);
    max-width: 400px;
    text-align: center;
    animation: popupBounce 0.5s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes popupBounce {
    0% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.puppy-message-text {
    font-size: 1.8rem;
    color: #ff85a1;
    font-weight: 700;
    line-height: 1.6;
}
