/* Global */
body {
  background-color: #f5f7fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  clip-path: inset(-10px -10px 0px -10px);
  border-bottom: 0.1px solid #2b2e32;
  padding: 0;
  background-color: #35547e;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

nav h2 {
  padding: 5px;
  margin: 0;
  color: #ffffff;
}

.nav-buttons {
  display: flex;
}

.nav-buttons button {
  background-color: transparent;
  border: none;
  margin: 1px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  color: #dddddd;
  line-height: 2px;
  padding: 10px;
}

/* Main Content */
#note-elements,
#setting-container {
  border-radius: 0px 0px 10px 10px;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

form {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

textarea {
  width: 100%;
  max-width: 100%;
  height: 100px;
  resize: vertical;
  border: 2px solid #aebacf;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif;
  margin-bottom: 10px;
  background-color: #f5f7fa;
  color: #333;
}

.settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #aebacf;
  background-color: #eff7ff;
  padding: 5px;
}

.top-setting {
  border-radius: 10px 10px 0 0;
}

.bottom-setting {
  border-radius: 0px 0px 10px 10px;
}

.setting-description {
  margin-right: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 40px;
  height: 20px;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input[type="checkbox"]:checked + .slider {
  background-color: #2196f3;
}

input[type="checkbox"]:checked + .slider:before {
  transform: translateX(20px);
}

#clear-data-button {
  background-color: #c12a00;
  color: #ffffff;
  border-radius: 5px;
  padding: 5px;
}

#submit-button {
  background-color: #35547e;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#submit-button:hover {
  background-color: #0b498b;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

li {
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 2px solid #aebacf;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 10px;
  background-color: #f5f7fa;
  color: #333;
  font-size: 14px;
  text-align: left;
  font-family: Helvetica, Arial, sans-serif;
  word-wrap: break-word;
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease-in-out;
  white-space: pre-wrap;
}

li:hover {
  border-color: #007bff;
  background-color: #ffffff;
}

.note-title {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.note-buttons {
  display: flex;
  align-items: start;
  margin-left: 5px;
}

.note-buttons button,
.dates {
  background-color: transparent;
  margin: 1px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  color: #333;
  background-color: #f5f7fa;
  border: 2px solid #aebacf;
  line-height: 2px;
  padding: 7px;
}

.dates {
  font-size: 18px;
  padding: 10px;
  border-radius: 5px;
  background-color: #35547e;
  color: #ffffff;
  border: none;
}

.edit-button {
  border-radius: 10px 2px 2px 10px;
}

.delete-button {
  border-radius: 2px 10px 10px 2px;
}

.edit-button:hover {
  border-color: #dfb109;
  color: #dfb109;
}

.delete-button:hover {
  border-color: #ee3b0e;
  color: #ff3300;
}

.note-content {
  border-radius: 5px;
  font-size: 14px;
  width: 97%;
  max-width: 97%;
  margin-top: 5px;
  background-color: #f5f7fa;
  border: 2px solid #aebacf;
  padding: 7px;
}

li textarea {
  width: 95%;
  max-width: 95%;
  margin-top: 5px;
}

/* Footer */
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #999;
}
