* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: rgb(63, 60, 60);
  color: seashell;
  overflow: hidden;
}
.main {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
.header {
  display: flex;
  align-items: center;
  padding: 1rem;
}
.notes-svg-icon {
  height: 70px;
  margin-right: 0.5rem;
}
.main h2 {
  margin: 0.4rem 0.8rem;
}
.notes-container {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  overflow-y: scroll;
}
.notes-container::-webkit-scrollbar {
  display: none;
}
.add-note-card {
  width: 13rem;
  height: 12.5rem;
  border: 2px solid yellow;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: 18%;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bolder;
  /* float: right; */
}

.card-item {
  width: 13rem;
  height: 12.5rem;
  border: 2px solid yellow;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  padding: 0.3rem;
  flex-basis: 18%;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bolder;
}
.card-item .content {
  cursor: text;
  height: 100%;
  width: 100%;
  word-wrap: break-word;
}

.delete-note {
  width: 100%;
  text-align: right;
}
.make-note-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100vh;
  background-color: rgb(50, 42, 42);
  display: none;
  flex-direction: column;
  border: 4px solid rgb(50, 42, 42);
  align-items: start;
  /* transition: all 2s ease; */
}

.close-btn {
  width: 1.875rem;
  background-color: rgb(206, 199, 199);
  border-radius: 50%;
  cursor: pointer;
}
.close,
.note-input-container {
  height: 20%;
width: 100%;
}
.note-input-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
}
form input {
  width: 35%;
  margin: 0.8rem auto;
  height: 2.1875rem;
}
form .message{
  width: 100%;
  margin: auto;
}
#add-note-button {
  width: 50%;
  margin: auto;
  padding: 0.6rem 1rem;
  background-color: slategrey;
  color: whitesmoke;
  font-weight: bolder;
  border-radius: 0.7rem;
  cursor: pointer;
}
@media screen and (max-width: 850px) {
  .add-note-card {
    flex-basis: 30%;
  }
  .card-item{
    flex-basis: 30%;
  }
  .make-note-container{
    width: 35%;
    display: flex;
  }
  .notes-container{
    width: 65% !important;
  }
  
}
@media screen and (max-width: 450px) {
  .add-note-card, .card-item {
    flex-basis: 96% !important;
  }
  .make-note-container{
    width: 100% !important;
    display: none;
  }
  .notes-container{
    width: 100% !important;
  }
}
