body {
    font-family: Arial, sans-serif;
    background-image: url("../img/emailbg.png");
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.password-prompt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.password-prompt input {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    font-size: 16px;
}

.password-prompt button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.password-prompt button:hover {
    background-color: #45a049;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
}

.form-container, .preview-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 48%;
}

h2 {
    text-align: center;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    resize: none;
    height: 150px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.preview {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 100%;
    min-height: 500px; /* Ensure enough height for the preview */
    overflow-y: auto;
    margin-top: 20px;
}

.preview iframe {
    width: 100%;
    border: none;
    min-height: 400px;
}

.preview-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
}
