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

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

/* Контейнер для летающих сердечек */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* Стили для летающих сердечек */
.flying-heart {
    position: absolute;
    color: #ff6b6b;
    user-select: none;
    pointer-events: none;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
    animation: flyUp linear forwards;
}

@keyframes flyUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.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: 500px;
    width: 100%;
    margin: 50px auto;
    position: relative;
    animation: fadeIn 1s ease-in;
    z-index: 1;
}

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

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.flowers {
    font-size: 3em;
    margin-bottom: 20px;
    animation: sway 3s infinite ease-in-out;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.question {
    font-size: 2em;
    color: #ff6b6b;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.2);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

.btn {
    padding: 15px 40px;
    font-size: 1.3em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-yes {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-no {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-no::before {
    content: '😈';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
}

.btn-no:hover::before {
    left: 10px;
    opacity: 1;
}

.btn-no:hover {
    padding-left: 50px;
}

.btn-no:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
}

.message {
    margin-top: 30px;
    font-size: 1.2em;
    color: #666;
    min-height: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message.show {
    opacity: 1;
}

/* Стили для сообщения кнопки НЕТ */
.no-message {
    background: linear-gradient(45deg, #ff4444, #cc0000) !important;
    color: white !important;
    font-size: 1.5em !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
    animation: shake 0.5s ease-in-out;
}

.heart {
    color: #ff6b6b;
    font-size: 1.5em;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.balloons {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.balloon {
    display: inline-block;
    font-size: 2em;
    animation: float 3s ease-in-out infinite;
}

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

.balloon:nth-child(1) { animation-delay: 0s; }
.balloon:nth-child(2) { animation-delay: 0.5s; }
.balloon:nth-child(3) { animation-delay: 1s; }

/* Стили для страницы с фотографиями */
.photos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
    position: relative;
    z-index: 1;
}

.photos-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 15px;
    color: white;
}

.photos-header h1 {
    color: white;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.heart-decoration {
    font-size: 2em;
    animation: heartbeat 1.5s ease-in-out infinite;
    position: relative;
}

.heart-decoration::before,
.heart-decoration::after {
    content: '❤️';
    position: absolute;
    font-size: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-decoration::before {
    left: -30px;
    top: -10px;
}

.heart-decoration::after {
    right: -30px;
    top: -10px;
}

/* Стили для двух фотографий */
.two-photos {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.photos-grid {
    display: grid;
    gap: 30px;
    padding: 20px;
}

.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardAppear 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.photo-card::after {
    content: '💕';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 2;
}

.photo-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.photo-card:active {
    transform: scale(0.98);
}

.photo-frame {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-frame img {
    transform: scale(1.1);
}

.photo-caption {
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    color: #333;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    margin: 0;
}

/* Стили для всплывающего сообщения */
.message-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.message-popup.show {
    display: flex;
}

.message-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
    border: 3px solid white;
}

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

.message-content p {
    color: white;
    font-size: 2em;
    margin: 20px 0;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: #ff6b6b;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #ff6b6b;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: #ff6b6b;
    color: white;
}

.back-button {
    text-align: center;
    margin: 40px 0 20px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .question {
        font-size: 1.5em;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    
    .two-photos {
        grid-template-columns: 1fr;
    }
    
    .photo-frame {
        height: 300px;
    }
    
    .message-content p {
        font-size: 1.5em;
    }
    
    .message-content {
        padding: 30px 20px;
    }
}

/* Анимация для фото */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.photo-card:active .photo-frame img {
    animation: heartBeat 0.3s ease;
}

/* Дополнительные украшения */
.photo-card:nth-child(1) {
    animation-delay: 0.2s;
}

.photo-card:nth-child(2) {
    animation-delay: 0.4s;
}
