/* Import Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --blue: #88abff;
  --white: #fff;
  --grey: #575757;
}

body {
  background-color: var(--blue);
}

.wrapper {
  margin: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 265px);
  gap: 15px;
}

.wrapper li {
  background-color: var(--white);
  list-style: none;
  height: 250px;
  border-radius: 5px;
  padding: 15px 20px 20px;
}

.add-box,
.icon,
.bottom-content,
.settings .menu li,
.content header,
.popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-box {
  flex-direction: column;
  justify-content: center;
}

.add-box .icon {
  width: 78px;
  height: 78px;
  border: 2px dashed var(--blue);
  border-radius: 50%;
  font-size: 40px;
  color: var(--blue);
  justify-content: center;
}

.add-box p {
  color: var(--blue);
  font-weight: 500;
  margin-top: 20px;
}

.note .details  {
  max-height: 140px;
  overflow-y: auto;
}

.wrapper .note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.note p {
  font-size: 22px;
  font-weight: 500;
}

.note span {
  display: block;
  color: var(--grey);
  margin-top: 5px;
  font-size: 16px;
}

.note .bottom-content {
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.bottom-content span {
  color: #6d6d6d;
  font-size: 14px;
}

.bottom-content .settings i {
  color: #6d6d6d;
  font-size: 15px;
  cursor: pointer;
}

.settings {
  position: relative;
}

.settings .menu {
  position: absolute;
  bottom: 0;
  right: -5px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  padding: 5px 0;
  background-color: var(--white);
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.2s ease;
}

/* .settings:hover .menu {
  transform: scale(1);
} */

.settings.show .menu {
  transform: scale(1);
}

.settings .menu li {
  height: 25px;
  border-radius: 0;
  justify-content: flex-start;
  cursor: pointer;
  font-size: 16px;
  padding: 17px 15px;
}

.menu li i {
  padding-right: 8px;
}

.menu li:hover {
  background-color: #f5f5f5;
}

/* Popup Box */
.popup-box {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.popup-box .popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 100%;
  z-index: 3;
  /* background-color: red; */
  justify-content: center;
}

.popup-box,
.popup-box .popup {
  opacity: 0;
  pointer-events: none;
  transition: all 2.25s ease;
}

.popup-box.show,
.popup-box.show .popup {
  opacity: 1;
  pointer-events: auto;
}

.popup .content {
  width: calc(100% - 15px);
  background-color: var(--white);
  border-radius: 5px;
}

.popup .content header {
  padding: 15px 25px;
  border-bottom: 1px solid #ccc;
}

.content header p {
  font-size: 20px;
  font-weight: 500;
}

.content header i {
  color: #8b8989;
  cursor: pointer;
  font-size: 23px;
}

.content form {
  margin: 15px 25px 35px;
}

.content form .row {
  margin-bottom: 20px;
}

form .row label {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.content form :where(input, textarea) {
  width: 100%;
  height: 50px;
  border: 1px solid #999;
  border-radius: 4px;
  outline: none;
  font-size: 17px;
  padding: 0 15px;
}

.content form textarea {
  height: 150px;
  resize: none;
  padding: 8px 15px;
}

.content form button {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  color: var(--white);
  background-color: #6a93f8;
  border-radius: 4px;
  font-size: 17px;
  cursor: pointer;
}

@media (max-width: 660px) {
  .wrapper {
    margin: 15px;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, 100%);
  }
  .popup-box .popup {
    max-width: calc(100% - 15px);
  }
  .bottom-content .settings i {
    font-size: 17px;
  }
}
