* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', 'Comic Sans MS', sans-serif;
}

body {
    background-color: #fff0f3;
    color: #4f4f4f;
    line-height: 1.6;
    background-image: url('https://www.transparenttextures.com/patterns/hearts.png');
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff4d6d;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(255, 77, 109, 0.2);
    position: relative;
}

h1:before, h1:after {
    content: '♥';
    font-size: 1.5rem;
    color: #ff8fa3;
    margin: 0 15px;
    position: relative;
    top: -5px;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.15);
    margin-bottom: 30px;
    border: 2px solid #ffb3c1;
    position: relative;
}

.form-container:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 179, 193, 0.1);
    z-index: -1;
    border-radius: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    color: #ff768e;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-icon {
    font-size: 2.5rem;
    color: #ff4d6d;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ff4d6d;
    font-size: 1.1rem;
}

label i {
    margin-right: 6px;
    color: #ff8fa3;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffb3c1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff8f8;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ff4d6d;
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.3);
}

textarea {
    resize: vertical;
}

button {
    background-color: #ff4d6d;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.3);
    display: inline-block;
}

button:hover {
    background-color: #ff2a54;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 77, 109, 0.4);
}

#generate-btn {
    width: 100%;
    margin-top: 10px;
    position: relative;
}

#generate-btn:after {
    content: '✨';
    margin-left: 8px;
}

.letter-preview {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.15);
    display: none;
    border: 2px solid #ffb3c1;
    position: relative;
}

.letter-preview h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ff4d6d;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    width: 100%;
}

.letter-preview h2:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffb3c1, transparent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.letter-content {
    background-color: #fff8f8;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ffd9e0;
    white-space: pre-line;
    margin-bottom: 25px;
    min-height: 200px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a5a5a;
    position: relative;
    box-shadow: 0 3px 10px rgba(255, 150, 170, 0.1);
    background-image: linear-gradient(to bottom, #fff, #fff8f8);
    font-family: 'Quicksand', sans-serif;
    overflow: hidden;
}

.letter-content:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ff8fa3 0%, #ffc2d1 100%);
    z-index: -1;
    border-radius: 15px;
    opacity: 0.3;
}

.letter-content:after {
    content: '❤';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #ff8fa3;
    opacity: 0.5;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.buttons button {
    min-width: 45%;
}

#download-btn:before {
    content: '📝';
    margin-right: 8px;
}

#reset-btn {
    background-color: #ff8fa3;
}

#reset-btn:hover {
    background-color: #ff768e;
}

#reset-btn:before {
    content: '↺';
    margin-right: 8px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #ff768e;
    font-size: 0.9rem;
}

.footer i {
    color: #ff4d6d;
    animation: beat 1s infinite alternate;
}

@keyframes beat {
    to {
        transform: scale(1.3);
    }
}

/* Additional decorative elements */
.container::before {
    content: '✨';
    position: absolute;
    top: 30px;
    left: 15%;
    font-size: 1.5rem;
    color: #ffb3c1;
    opacity: 0.7;
}

.container::after {
    content: '✨';
    position: absolute;
    top: 30px;
    right: 15%;
    font-size: 1.5rem;
    color: #ffb3c1;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    
    .form-container, .letter-preview {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons button {
        width: 100%;
    }
} 