body {
  font-family: "Indie Flower", cursive;
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.dark-mode {
  background-color: #333;
  color: white;
}

body.dark-mode input {
  background-color: #222;
  color: white;
  border: 2px solid #555;
}

body.dark-mode input::placeholder {
  color: #aaa;
}

body.dark-mode .right-panel {
  background-color: #1e1e1e;
  border-left: 1px solid #333;
}

body.dark-mode #items-list li {
  border-bottom: 1px solid #333;
}

body.dark-mode .modal-content {
  background-color: #333;
}

nav {
  position: relative;
  padding: 15px 20px;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

h1 {
  text-align: center;
  font-size: 70px;
  text-decoration: underline;
  margin: 0;
}

.input-section {
  text-align: center;
}

.description {
  color: gray;
  font-size: 30px;
}

.appearance-btn {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 20px;
  top: 20px;
  cursor: pointer;
}

input {
  padding: 10px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 5px;
  width: 300px;
  margin-right: 10px;
}

button {
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0057b3;
}

.page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.right-panel {
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
  font-family: "DM Mono", monospace;
}

.right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.right-header h3 {
  font-size: 30px;
}

#items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#items-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.generate-btn {
  text-align: center;
  width: 90%;
  max-width: 300px;
  align-self: center;
  margin-top: 20px;
}

.delete-btn {
  background-color: red;
  margin-left: 20px;
}

.delete-btn:hover {
  background-color: darkred;
}

.list-item {
  text-transform: capitalize;
}

.modal-overlay {
  font-family: "DM Mono", cursive;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

#modal-generated-item {
  text-transform: capitalize;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

#modal-remove-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#modal-again-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#modal-close-btn {
  background: #ada9a9;
  border: none;
  padding: 10px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .page-layout {
    flex-direction: row;
  }

  .right-panel {
    width: 350px;
    border-left: 1px solid #ddd;
    border-top: none;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 40px;
    margin-top: 40px;
  }

  .appearance-btn {
    width: 40px;
    height: 40px;
    left: 10px;
    top: 10px;
  }

  input {
    width: 80%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .input-section .input {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 480px) {
  .modal-actions {
    flex-direction: row;
    justify-content: center;
  }
}
