* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e8e8e8;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 20%);
}

.letter-container {
    max-width: 600px;
    width: 100%;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.letter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #4b0082);
}

.date {
    text-align: right;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
}

.letter-content {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.letter-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.closing {
    margin-top: 50px;
    text-align: right;
}

.signature {
    font-size: 1.3rem;
    color: #b19cd9;
    margin-top: 10px;
    font-style: normal;
}

.thank-you {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 1.2rem;
    color: #b19cd9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.letter-container {
    animation: fadeIn 1.5s ease-out;
}

@media (max-width: 600px) {
    .letter-container {
        padding: 30px 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .letter-content {
        font-size: 1rem;
    }
}