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

body {
    font-family: Arial, sans-serif;
    background-color: #f6d6a2;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    /* Set the maximum width to 100% of the viewport width */
    color: #4b3832;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    padding: 0px;
}

.small-font {
    font-size: 11px;
    text-align: center;
}

.textarea-font {
    font-size: 11px;
    text-align: left;
    background-color: #d6eff0;
}

.container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #fbeec1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

#send-date-text {
    text-align: center;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    text-decoration: none;
    color: #4b3832;
    background-color: #96ecd2;
    border: 2px solid #4b3832;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1rem;
    margin: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: #5d14ee;
    color: #ffffff;
}


.delete-button {
    float: right;
    display: inline-block;
    color: #4b3832;
    background-color: #f89d86;
    border: 1px solid #4b3832;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.delete-button:hover {
    background-color: #5d14ee;
    color: #ffffff;
}

.button[type="submit"] {
    font-size: 1rem;
    margin-top: 20px;
}


.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}


.header-compose {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #9ca3a6;
    color: white;
    width: 100%;
    /* padding: 1rem; */
    position: relative;
}

.header-logo {
    margin-right: 1rem;
    width: 60px;
    height: auto;
}

.header-text-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.language-select {
    background-color: #bdb7ac86;
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid #4b3832;
}

.language-select select {
    background-color: transparent;
    border: none;
    font-size: 0.8rem;
    color: #4b3832;
    cursor: pointer;
}

.language-select select:focus {
    outline: none;
}

/* Add this to your existing style.css */
form label {
    display: block;
    margin-top: 15px;
}

form input[type="text"],
form input[type="email"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 5px;
}

form #editor-container {
    min-height: 250px;
    max-width: 100%;
}

form input[type="submit"] {
    display: inline-block;
    margin-top: 15px;
}

form textarea {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
}

.ql-editor {
    background-color: rgb(212, 231, 237);
}

.form-container {
    max-width: 100vw;
    /* Set the maximum width to 100% of the viewport width */
    max-height: 100vh;
    /* Set the maximum height to 100% of the viewport height */
    overflow-y: auto;
    /* Enable vertical scrolling when content overflows */
    padding-left: 8px;
    padding-right: 8px;
    /* Add some padding to account for the scrollbar */
}


/* Basic styling for the modal */
#preview-content {
    word-wrap: break-word;
    white-space: pre-wrap;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    height: 80%;
    overflow: auto;
}

.modal-content img {
    max-width: 100%;
    height: auto;
}

/* Add this to your CSS */
.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#read-letter {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#read-letter img {
    max-width: 100%;
    height: auto;
}

.card {
    padding: 10pt;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    width: calc(90% * 1vw);
    background-color: rgb(141, 222, 189);
}


.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    /* Add any other desired styles */
}