* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f4f7f8;
  font-family: "Poppins, sans-serif";
  display: flex;
  flex-wrap: wrap;
}

.heading {
  width: 100vw;
  height: 5.5rem;
  background-color: #f1c40f;
  color: #282936;
  box-shadow: 0px 10px 16px rgb(248, 247, 247);
}

.heading h1 {
  line-height: 6rem;
  margin-left: 2rem;
  font-weight: 550;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.add:active {
  transform: scale(0.98);
}

/* button styling  */
.btn-div {
  position: absolute;
  top: 7rem;
  right: 1rem;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}
button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #f1c12e;
  border-radius: 1.625rem;
}
button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}
button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}
button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}
button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: 14px;
  padding: 0.75rem 0;
  nav-right: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}
button:hover .circle {
  width: 100%;
}
button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}
button:hover .button-text {
  color: #fff;
}
/* Styling the button */
.note .operation button {
  position: relative;
  /* width: 50px;
    height: 50px; */
  border-radius: 10px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: black 0.3s ease-in-out;
}

/* Tooltip on hover */
.note .operation button.edit::before {
  content: "Edit or Save";
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(101, 98, 98);
  color: white;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
  white-space: nowrap;
}
.note .operation button.delete::before {
  content: "Delete";
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(101, 98, 98);
  color: white;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
  white-space: nowrap;
}

/* Shows text when hovering over the button */
.note .operation button:hover::before {
  opacity: 0.9;
  visibility: visible;
}

/* button styling ends  */

.main {
  padding: 2rem;
}

.note {
  background-color: #fff;
  margin: 30px 20px;
  height: 200px;
  width: 400px;
  overflow-y: scroll;
  margin-top: 7rem;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.note .operation {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.note .operation button {
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.note textarea {
  outline: none;
  font-family: inherit;
  font-size: 1.2rem;
  border: none;
  height: 300px;
  width: 100%;
  padding: 20px;
}

.fa-edit,
.fa-trash-alt {
  color: #fff;
  padding: 10px;
  background-color: #2ecc71;
  border-radius: 50%;
}

.fa-trash-alt {
  background-color: #e74c3c;
}

.fa-edit:hover {
  background-color: #fff;
  color: #27ae60;
  filter: drop-shadow(0px 10px 8px rgba(219, 218, 218));
}

.fa-trash-alt:hover {
  background-color: #fff;
  color: #e74c3c;
  filter: drop-shadow(0px 10px 8px rgba(219, 218, 218));
}

.hidden {
  display: none;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("background.jpg") no-repeat center center;
  background-size: contain;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}
