* {
  margin: 0;
  padding: 0;
  font-family: 'Lucida Sans', sans-serif;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  background-color: rgb(255, 234, 211);
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background-color: #1e1e1e;
  color: white;
}

.main {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.controls {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#btn, #toggleTheme {
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
}

#search {
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #aaa;
}

#allNote {
    
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
}

.singleNote {
  background-color: rgba(96, 209, 244, 0.988);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  width: 90vw;
  max-width: 300px;
  min-height: 150px;
  transition: transform 0.2s;
}

.singleNote:hover {
  transform: scale(1.03);
}

.note {
  width: 100%;
  height: 200px;
  font-size: 1em;
  overflow-wrap: break-word;
  overflow-y: auto;
  outline: none;
  border: none;
  padding: 8px;
}

.note::-webkit-scrollbar {
  display: none;
}

#txtA {
  background-color: pink;
}

.hidden {
  display: none;
}

.editBtn, .removeBtn {
  border: none;
  padding: 5px 10px;
  font-size: 0.9em;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.index {
  font-size: 1.2em;
  margin-right: 10px;
}

.date {
  font-size: 0.9em;
  margin: 5px;
}
