* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(46, 52, 69);
    flex-direction: column;
}

header{
  background-color: rgb(171, 172, 173);
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  margin-bottom: 20px;
}


.text{
  background-color: rgb(171, 172, 173);
  width: 500px;
  height: 50px;
  padding-left: 20px;
  margin-bottom: 10px;
  border-radius: 20px;
  border-style: none;
}

.area{
  background-color: rgb(149, 151, 152);
  width: 700px;
  height: 90px;
  padding: 1rem;
  font-size: 25px;
  border-radius: 30px;
  
}

.notes{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
  width: 90%;
  margin-left: 30px;
  
}
.add{
  width: 40px;
  height: 40px;
  color: rgb(255, 255, 255);
  
  background-color: rgb(149, 151, 152);
  margin-top: 5px;
  border-style:  none;
  border-radius: 5px;
  margin-left: 50px;
  
}




.note{
  background-color: rgba(149, 151, 152, 0);
  color: #fff;
  border-radius: 30px;
  border-style: none;
  font-size: 30px;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  margin: 10px;
 
}

.title_for_note{
  padding: 13px;
  background-color: rgb(88, 74, 139);
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.h3{
  flex-grow: 1;
  width: 60%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.icon{
  margin: 0;
}

.icon2{
  margin: 0;
}

.text_for_note{
  padding: 13px;
  width: 100%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  border-radius: 0;
}



.file{
  width: 40px;
  height: 40px;
}

.ar{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 97%;
  height: auto;
  margin-left: 30px;
  background-color: rgba(209, 167, 224, 0.409);
  margin-right: 30px;
  border-radius: 20px;
  padding: 0px;
  overflow: hidden;
}


.tt{
  color: rgb(89, 40, 135);
}

.container{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

body.light-theme {
  background-color: rgb(120, 155, 176);
  color: black;
}

body.dark-theme {
   background-color: rgb(46, 52, 69);
  color: white;
}

#toggle-theme {
  padding: 8px 16px;
  margin: 15px;
  background-color: #ddd;
  border-radius: 5px;
  width: fit-content;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.dark-theme #toggle-theme {
  background-color: #000000;
  color: #fff;
}

body.light-theme #toggle-theme {
  background-color: #e0e0e0;
  color: #000;
}

/* Світла тема */
body.light-theme .text_for_note {
  background-color: #a69dde; /* фон всередині нотатки */
  color: #000000;            /* текст всередині нотатки */
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

/* Темна тема */
body.dark-theme .text_for_note {
  background-color: #9e9cc1; /* темний фон для тексту нотатки */
  color: #f0f0f0;            /* світлий текст */
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}
