@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap);
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  background-color: rgba(27, 27, 27, 0.171);
  backdrop-filter: blur(3px);

  opacity: 0;
  z-index: -9999;
}

.modal.active {
  display: flex;
  opacity: 1;
  z-index: 9999;
}

.modal .modal-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.modal-container .modal-window {
  width: 360px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px 24px 12px 24px;
  position: relative;
  background-color: var(--main);
  border-radius: 12px;
  box-shadow: 0 2px 12px 3px rgba(0, 0, 0, 0.1);
  transition: .25s opacity;
}

.modal-window.active{
  display: flex;
}

.modal-window form{
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.modal input {
  padding: 12px;
  width: 100%;

  font-size: 0.75rem;
  text-align: center;
  border-radius: 12px;
  outline: none;
  border: none;
  color: var(--black);
  background-color: var(--white);
}

.modal input:first-of-type {
  margin-top: 12px;
}

.modal h3 {
  color: var(--black);
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.modal span {
  color: var(--color);
}

.modal p {
  color: var(--black);
  font-size: 0.5rem;
}

.modal p.form-splitter{
  margin: 12px 0;
}

.modal p.modal-footer {
  text-align: center;
  margin-top: 24px;
  max-width: 360px;
}

.modal a {
  text-decoration: none;
  color: var(--color);
  font-size: 0.5rem;
}

.modal button {
  margin: 24px 0 12px 0;
}

.modal i {
  position: absolute;
  top: -36px;
  color: var(--black);
  cursor: pointer;
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  transition: all 0.15s ease;
}

:root {
  --white: #fff;
  --black: #252525;
  --main: #f7f7f7;
  --grey: rgb(235, 235, 235);

  --error: rgb(223, 70, 70);

  --color: rgb(61, 133, 201);
  --color-hover: rgb(57, 122, 182);
}

body {
  position: relative;
  background-color: var(--main);

  /* Hide scroll */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
}

button {
  padding: 4.5px 24px;
  font-size: 0.75rem;
  font-weight: 400;
  border: none;
  outline: none;
  background: var(--color);
  color: #fff;
  /* color: var(--white); */
  border-radius: 12px;
  cursor: pointer;
}
header {
  height: 100px;
  width: 100%;

  position: fixed;
  background-color: var(--main);
  z-index: 2;
}

header.hide {
  top: -100px;
}

header .header-box {
  height: 100%;
  max-width: 1600px;
  margin: auto;
  padding: 0 24px;

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

.header-box .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.header-box-right {
  height: 48px;
  display: flex;
  align-items: center;
}

.header-box-right .appearance {
  display: flex;
  align-items: center;
}

.appearance .color-switcher {
  display: flex;
  align-items: center;
  position: relative;
}

.appearance .theme-switcher-icon,
.appearance .color-switcher-icon {
  height: 100%;
  width: 48px;
  margin-right: 12px;

  line-height: 48px;
  border-radius: 12px;
  text-align: center;
  color: var(--black);
  font-size: 1rem;
  background-color: var(--main);
  cursor: pointer;
}

.appearance .theme-switcher-icon.dark {
  color: rgb(255, 230, 0);
}

.appearance .color-switcher-dropdown {
  opacity: 0;
  padding: 12px;
  width: 204px;
  position: absolute;
  top: 48px;
  left: -60px;
  border-radius: 12px;
  background-color: var(--main);
  box-shadow: 0 2px 12px 3px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.color-switcher-dropdown.open {
  opacity: 1;
  top: 66px;
  left: -60px;
  pointer-events: auto;
}

.color-switcher-dropdown h3 {
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 400;
}

.color-switcher-dropdown .btn-box {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-switcher-dropdown button {
  height: 48px;
  width: 48px;

  border: none;
  outline: none;
  border-radius: 50%;
  cursor: pointer;
}

.color-switcher-dropdown button.blue {
  background-color: rgb(61, 133, 201);
}
.color-switcher-dropdown button.purple {
  background-color: rgb(201, 61, 119);
}
.color-switcher-dropdown button.green {
  background-color: rgb(32, 158, 70);
}
.color-switcher-dropdown button.active {
  box-shadow: inset 0 0 0 3px var(--color),
    inset 0 0 0 6px var(--white);
}

header button.btn-auth {
  font-size: .75rem;
  padding: 4.5px 24px;
  display: none;
}

header button.btn-auth.active {
  display: block;
}

@media (max-width: 500px) {
  .logo {
    line-height: 1;
  }
}
@media (hover: hover) and (pointer: fine) {
  .color-switcher-dropdown button.color:hover {
    box-shadow: inset 0 0 0 3px var(--grey),
      inset 0 0 0 6px var(--white);
  }
  
  .theme-switcher-icon:hover,
  .color-switcher-icon:hover {
    transform: scale(1.08);
    color: var(--color);
    box-shadow: 0 2px 12px 3px rgba(0, 0, 0, 0.1);
  }
  
  button:hover {
    transform: scale(1.08);
    background-color: var(--color-hover);
    box-shadow: 0 2px 12px 3px rgba(0, 0, 0, 0.1);
  }
  
  .modal i:hover,
  .note i:hover {
    color: var(--error);
    transform: rotate(-90deg) scale(1.25);
  }
  
  .main-wrapper .notes-wrapper .note:hover {
    background-color: var(--white);
    z-index: 99;
  }
  
  .main-wrapper .notes-wrapper .note.note:nth-of-type(odd):hover {
    transform: rotate(0.5deg) scale(1.25) translateY(2px);
  }
  .main-wrapper .notes-wrapper .note:nth-of-type(even):hover {
    transform: rotate(-0.5deg) scale(1.25) translateY(2px);
  }
}
main {
  position: relative;
  max-width: 1600px;
  margin: auto;
  padding: 10px 24px;
  z-index: 1;
}

.intro {
  margin-top: 20%;
  height: auto;

  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.notes-wrapper::before {
  width: 100%;
  height: 2px;
  margin: 36px 0;

  display: block;
  content: "";
  background: var(--grey);
}

.intro .intro-text{
  margin-right: 24px;
}

.intro .intro-text h1 {
  font-size: 2rem;
  color: var(--black);
}

.intro .intro-text span {
  display: inline-block;
  font-size: 2rem;
  color: var(--color);
}

.intro .intro-text p {
  font-size: 1rem;
  color: var(--black);
}

.intro .intro-text p.account-info {
  font-size: .75rem;
  margin-bottom: 12px;
  display: none;
}

.intro .intro-text p.account-info.active {
  display: block;
}

.intro .intro-text .account-info span{
  font-size: .75rem;
}

.intro .intro-text p.notification {
  margin: 0 0 12px 12px;
  display: inline-block;
  font-size: .75rem;
  color: var(--black);
}

.intro button {
  margin: 24px 12px 12px 0;
}
/* ---------------------------- Media ---------------------------- */
@media (max-width: 1100px) {
  header{
    background-color: none;
  }

  .intro {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 100px;
  }

  .intro .intro-text{
    margin-right: 0;
    text-align: center;
  }

  .intro .intro-text p{
    font-size: .75rem;
  }

  .intro .intro-text h1{
    font-size: 1.5rem;
    line-height: 1.5rem;;
  }
}

@media (max-width: 600px) {
  .intro{
    margin-top: 100px;
  }

  .intro .intro-btn-container{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .intro .intro-text p.notification{
    display: none;
  }
}
/* ---------------------------- wrapper ---------------------------- */
.notes-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  visibility: hidden;
  z-index: 3;
}

/* ---------------------------- Note main ---------------------------- */
.note {
  min-width: 120px;
  max-width: 600px;
  width: auto;
  min-height: 120px;
  padding: 12px;

  position: relative;
  border-radius: 12px;
  /* border: 4px solid var(--main); */
  box-shadow: 0 2px 12px 3px rgba(0, 0, 0, 0.1);
  /* color: var(--black); */
  font-size: 1.5rem;
  overflow: hidden;
  z-index: 1;
  background-color: var(--main);
}

.note h3 {
  color: var(--black);
  margin-right: 48px;
  font-size: 1rem;
  cursor: grabbing;
}

.note p {
  color: var(--black);
  font-size: 0.75rem;
}

.note p::before {
  content: "";
  margin: 6px 0 12px 0;
  display: block;
  width: auto;
  height: 2px;
  background: var(--grey);
  align-items: center;
}

.note i {
  position: absolute;
  color: var(--black);
  right: 12px;
  cursor: pointer;
}
/* ---------------------------- Notes input box ---------------------------- */
.note.note-input {
  min-width: 420px;
}

.note input {
  height: 36px;
  width: 80%;
  padding-left: 12px;

  display: block;
  margin: 12px 0;
  font-size: 0.75rem;
  outline: none;
  border-radius: 12px;
  border: none;
  color: var(--black);
  background-color: var(--white);
}

.note textarea {
  width: 100%;
  resize: none;
  overflow: hidden;

  height: 120px;

  outline: none;
  padding: 12px;
  font-size: 0.75rem;
  border-radius: 12px;
  border: none;
  color: var(--black);
  background-color: var(--white);

  word-wrap: break-word;
}

.note span{
  height: 36px;
  padding: auto;
  margin-right: 12px;
  float: right;
  font-size: 0.75rem;
  line-height: 36px;
  color: var(--color);
  visibility: hidden;
}

.note button{
  margin: 0;
  float: right;
}

@media (max-width: 600px) {
  .note.note-input {
    min-width: 300px;
  }
}
