body {
  font-family: "Baloo 2", "Comic Sans MS", Arial, sans-serif, cursive;
  background-color: #f0f8ff;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(to right, #ffcccb, #add8e6);
  box-sizing: border-box;
}
.container,
.left-menu,
.main-content,
.buy-button,
.btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.btn,
.buy-button {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.buy-button:hover {
  transform: scale(1.05);
}


header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  color: #484cca;
}

header h3 {
  color: #484cca;
}

header .header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .logo img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
}

.left-menu {
  flex: 1;
  min-width: 250px;
  background-color: #ffebcd;
  padding: 20px;
  border-radius: 10px;
}

.left-menu h2 {
  color: #484cca;
}

.left-menu ul {
  list-style: none;
  padding: 0;
}

.left-menu li {
  margin: 10px 0;
}

.left-menu a {
  text-decoration: none;
  color: #4682b4;
  font-weight: bold;
}

.left-menu a:hover {
  color: #ff6347;
}

main {
  flex: 3;
  display: flex;
  flex-direction: column;
}

aside {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  text-align: center;
}

aside img {
  max-width: 100%;
  height: auto;
}

.buy-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.accordion-button {
  background-color: #d78caf;
  color: white;
  border: none;
  padding: 10px;
  text-align: left;
  width: 100%;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 5px;
}

.accordion-content {
  display: none;
  padding: 10px;
  margin-top: 5px;
  background-color: #ffebcd;
}

img {
  width: 100%;
  height: auto;
}

.auth-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.auth-buttons .btn {
  margin: 0 5px;
  padding: 10px 20px;
  background-color: #4682b4;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.auth-buttons .btn:hover {
  background-color: #355a7a;
}

/* Media Queries for responsiveness */

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }

  .left-menu {
    width: 100%;
    margin-bottom: 20px;
  }

  main {
    width: 100%;
  }

  aside {
    width: 100%;
    margin-top: 20px;
  }

  .auth-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .buy-button {
    width: 100%;
    margin-top: 20px;
  }

  header h1 {
    font-size: 1.5em;
  }

  .left-menu a {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2em;
  }

  .main-content {
    gap: 10px;
  }

  .left-menu,
  main,
  aside {
    padding: 10px;
  }

  .buy-button {
    font-size: 1em;
  }

  .accordion-button {
    font-size: 1em;
  }
}
/* Input Fields */
.input-field {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.input-field:focus {
  border-color: #4b86c5; /* Focus color */
  outline: none;
}

/* Container for the Name Inputs */
.name-container {
  display: flex;
  gap: 10px;
}

/* Buttons */
.submit-button,
.header-button,
.btn {
  background-color: #5982ae;
  color: white;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  margin: 10px 0;
}

.submit-button:hover,
.header-button:hover,
.btn:hover {
  background-color: #5b9be0;
}

.styled-button {
  background-color: #28a745;
  border-color: #28a745;
}

.styled-button:hover {
  background-color: #218838;
}

input#author-first-name,
input#author-last-name {
  width: 48%; /* Set each to roughly half width */
  font-size: 1.2em; /* Adjust font size */
  padding: 10px; /* Inner padding */
  border: 2px dashed #ff6347; /* Border color */
  border-radius: 10px; /* Rounded corners */
  background-color: #ffebcd; /* Light background */
  color: rgb(18, 58, 235);
}
input#author-first-name {
  margin-right: 10px; /* Space between first and last name inputs */
}

input#author-last-name {
  margin-left: 10px; /* Space between first and last name inputs */
}

input#story-title {
  width: 100%; /* Full width for story title */
  font-size: 1.2em; /* Match font size with name inputs */
  padding: 10px; /* Inner padding */
  border: 2px dashed #ff6347; /* Border color */
  border-radius: 10px; /* Rounded corners */
  background-color: #ffebcd; /* Light background */
  margin-bottom: 20px; /* Spacing below */
  height: 50px; /* Set a fixed height if needed */
  box-sizing: border-box; /* Include padding and border in width calculations */
}

input#story-title,
input#edit-story-title {
  width: 100%; /* Full width */
  font-size: 1.2em; /* Larger font size */
  padding: 10px; /* Inner padding */
  border: 2px dashed #ff6347; /* Border color */
  border-radius: 10px; /* Rounded corners */
  background-color: #ffebcd; /* Light background */
  margin-bottom: 20px; /* Spacing below */
  color: rgb(18, 58, 235);
}

/* Styling the container for story title and author name inputs */
#story-title {
  width: 98%;
  padding: 10px;
  margin-bottom: 20px; /* Add space between title and name input fields */
  font-size: 16px;
}

.name-container {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Space between first name and last name inputs */
}

#author-first-name,
#author-last-name {
  width: 45%; /* Adjust width for both fields to ensure proper alignment */
  padding: 10px;
  font-size: 16px;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: linear-gradient(to right, #ffe4e1, #add8e6);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 0.9em;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

footer p {
  margin: 0;
}
.custom-image {
  display: block; /* Makes the image a block element */
  margin: 0 auto; /* Center the image horizontally */
  width: 50%; /* Make image responsive */
  max-width: 400px; /* Limit max width */
  height: auto; /* Maintain aspect ratio */
}

img {
  display: block; /* Makes the image a block element */
  margin: 0 auto; /* Center the image horizontally */
  width: 50%; /* Make image responsive */
  max-width: 400px; /* Limit max width */
  height: auto; /* Maintain aspect ratio */
}
/* For Save Changes button, apply the same class and let it sit inside the layout */
#save-edit-button {
  margin-top: 20px; /* Adjust spacing for button */
  align-self: flex-start; /* Keeps it aligned in the container */
  /* In case you want the button to stay fixed in the editor */
  position: relative;
}

#save-edit-button.btn {
  width: auto; /* Ensure the button doesn't stretch */
}
/* Make sure editor container is scrollable when content overflows */
#editor-container {
  position: relative;
  max-height: calc(
    100vh - 200px
  ); /* Adjust height to fit within available space */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-bottom: 50px; /* To give space for the button at the bottom */
}

/* Adjust the editor size for small devices */
@media (max-width: 768px) {
  #editor {
    width: 100% !important; /* Ensure the editor takes full width of the screen */
    height: 300px; /* Adjust height to prevent it from being too small */
  }
}
#default-content {
  width: 100%;
  max-width: 100%;
}

#default-content img {
  width: 100%;
  height: auto;
  max-width: none; /* Prevent inherited constraints */
  display: block;
  margin: 0 auto;
}
