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

.letter-content {
    color: black;
}


body {
    font-family: Georgia, serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 700px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
}

header .controls {
    display: flex;
    align-items: center;

}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: normal;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-style: italic;
}

.letter-card {
    background: #fffef7;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    line-height: 1.8;
    border: 1px solid #e8e6d9;
    position: relative;
}

.letter-card::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #002D5D 0%, #52C9E8 100%);
    border-radius: 50%;
    opacity: 0.1;
}

.letter-content {
    font-size: 1.1em;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.letter-signature {
    text-align: right;
    font-style: italic;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.signature-name {
    font-weight: bold;
    color: #444;
}

.signature-location {
    margin-top: 5px;
    font-size: 0.95em;
    color: #444;
}

.controls {
    text-align: center;
}

button {
    background: white;
    color: #002D5D;
    border: 2px solid #002D5D;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
    margin: 0 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-link {
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.9;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.share-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .letter-card {
        padding: 25px;
    }
    
    button {
        margin: 5px;
        padding: 10px 20px;
    }
}