* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s all ease;
}

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

:root.default {
  --primary-color: #ef4444;
  --hover-color: #dc2626;
  --secondary-color: #6b7280;
  --accent-color: #f9fafb;
  --background-body: #030712;
}

:root.arctic {
  --primary-color: #6b8cae;
  --hover-color: #55718d;
  --secondary-color: #7d8b99;
  --accent-color: #f0f4f8;
  --background-body: #0e141a;
}



:root.green {
  --primary-color: #10b981;
  --hover-color: #059669;
  --secondary-color: #4b5563;
  --accent-color: #ecfdf5;
  --background-body: #042f2e;
}

:root.purple {
  --primary-color: #8b5cf6;
  --hover-color: #7c3aed;
  --secondary-color: #6b7280;
  --accent-color: #f5f3ff;
  --background-body: #0f0524;
}

:root.blue {
  --primary-color: #4f46e5;
  --hover-color: #312baa;
  --secondary-color: #595757;
  --accent-color: #fff;
  --background-body: #0f0524;
}

.is-toggled {
  margin-top: -10px;
}

.headings {
  margin: 20px;
  text-align: center;
}

.title {
  font-size: 2.5em;
  color: var(--primary-color);
}

.sub-title {
  font-size: 1.2em;
  margin: 10px;
  color: var(--secondary-color);
}

/*Input Container*/
.nav-container {
  display: flex;
  background-color: var(--accent-color);
  padding: 12px;
  gap: 12px;
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.nav-input {
  padding-left: 10px;
  width: 90%;
}

.nav-input::placeholder {
  font-size: 1.2em;
  font-weight: 500;
}


.nav-container select {
  width: 100px;
  text-align: center;
}

select {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  width: 100px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s all ease;
}




.add-note {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  width: 100px;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: 600;
  transition: 0.3s all ease;
}

.add-note:hover,
select:hover {
  cursor: pointer;
  transform: scale(1.1);
  background-color: var(--hover-color);
}

.custom-alert-container {
  display: flex;
  justify-content: center;
}

.custom-alert {
  position: absolute;
  z-index: 100;
  top: 2%;
  transform: translate(-50%, -50%);
  width: 80%;
  margin: 0 auto;
  height: 10vh;
  background-color: var(--primary-color);
  border-radius: 8px;
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  align-content: center;
}

.alert-message {
  font-size: 1.2rem;
  color: white;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 0;
}


/*For Modal*/
.modal,
.modal-2 {
  display: none;
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 600px;
  /* height: auto; */
  background-color: var(--accent-color);
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px;
}

.modal-content h3 {
  margin: 10px 0px;
}

.modal-content input {
  padding: 10px;
  border: 1px solid black;
}

.modal-content textarea {
  padding: 10px;
  border: 1px solid black;
  /* border: 2px solid lightgray; */
}


.modal-content .js-save {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  font-weight: 600;
  transition: 0.3s all ease;
}

.js-approve {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-weight: 600;
  transition: 0.3s all ease;
}

.modal-content button:hover,
.modal-content .fa-lock:hover {
  cursor: pointer;
  transform: scale(1.05);
  background-color: var(--hover-color);
}

.modal-content .fa-lock {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 10px;
  width: 10%;
  text-align: center;
  font-weight: 600;
  transition: 0.3s all ease;
}

.fa-lock-open {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 10px;
  width: 10%;
  text-align: center;
  font-weight: 600;
  transition: 0.3s all ease;

}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-col {
  display: flex z;
  align-items: start;
  flex-direction: column;
  gap: 20px;

}

.fa-xmark {
  font-size: 2em;
  cursor: pointer;
}

.fa-trash {
  cursor: pointer;
  font-size: 1.4em;
}

.fa-pen-to-square {
  cursor: pointer;
  font-size: 1.4em;

}

.fa-xmark:hover {
  color: var(--primary-color);
  transform: scale(1.5);
}

/*Toggle Classes*/
.display {
  display: block !important;
}

.hide {
  display: none;
}


.overlay {
  display: none;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.notes-container {
  display: flex;
  flex-wrap: wrap;
  width: 72%;
  margin: 10px auto;
  gap: 14px;
  position: relative;
}

.note {
  background-color: var(--accent-color);
  padding: 10px;
  border-radius: 8px;
  min-width: 28%;
  border: 2px solid var(--secondary-color);
  position: relative;
}


.note:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 2px 2px 20px #38333367;
}


.note-head {
  display: flex;
  margin: 10px 0px;
  justify-content: space-between;
  align-items: center;
}

.category {
  text-align: left;
}

.category-btn {
  background-color: var(--primary-color);
  border: none;
  color: var(--accent-color);
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 6px;
}

.category-btn:hover {
  cursor: pointer;
  background-color: var(--hover-color);
}

.fa-trash:hover {
  cursor: pointer;
  color: var(--primary-color);
  transform: scale(1.2);
}

.date-time {
  color: var(--primary-color);
  font-weight: 600;
}

/*Delete Animation*/
.delete-animation {
  animation: smoke 0.3s ease-out forwards;
}

/*Theme Selectors*/
.theme-container {
  display: flex;
  justify-content: end;
  align-items: center;
  margin: 30px;
  gap: 10px;
}

.theme-circle {
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.theme-circle:hover {
  transform: scale(1.1);
}

.theme-1 {
  background-color: #ef4444;
}

.theme-2 {
  background-color: #6b8cae;
}

.theme-3 {
  background-color: #8b5cf6;
}

.theme-4 {
  background-color: #312baa;
}

.theme-5 {
  background-color: #10b981;
}


.mobile-add {
  display: none;
}

@keyframes smoke {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 0;
    filter: blur(8px) grayscale(100%);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



@media screen and (max-width: 768px) {

  .modal,
  .modal-2 {
    min-width: 90vw;
    height: auto;
  }

  .note:hover {
    transform: scale(1);
  }

  .nav-container {
    width: 80%;
    margin: 0 auto;
  }

  .notes-container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 20px auto !important;
    gap: 20px;
  }


  .note {
    min-width: 80%;
    margin: 0px auto !important;
  }

  .modal-content textarea {
    height: 6vh;
  }

  .theme-circle {
    width: 24px;
    height: 24px;
  }

  .custom-alert {
    height: 6%;
  }
}