body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f9f9f9;
    overflow: hidden; /* Prevent scrolling when save screen is visible */
}

#editor {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: none;
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    resize: none;
}

#saveButton {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#saveButton:hover {
    background-color: #45a049;
}

/* Style for save options screen */
#saveScreen {
    display: none;
    position: fixed; /* Fix position of the save screen */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for perfect centering */
    width: 80%;
    max-width: 600px; /* Max width for save screen */
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000; /* Make sure the save screen appears on top */
    overflow-y: auto; /* Allow scrolling if content overflows */
    text-align: center;
}

/* Grid layout for save options */
.save-option-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 columns */
    gap: 1rem; /* Space between grid items */
    margin-bottom: 1.5rem; /* Space after grid */
}

/* File name input field with margin */
#customFileName {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem; /* Adds space below the input box */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Save option button styling */
.save-option {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center; /* Center text within the button */
}

.save-option:hover {
    background-color: #45a049;
}

#backButton {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #ccc;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#backButton:hover {
    background-color: #bbb;
}
