textarea,
input {
  width: 100%;
  background: #282c34;
  color: white;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 1rem;
  border: 1px solid #555;
  outline: none;
}

input {
  font-weight: medium;
  text-transform: capitalize;
}

textarea {
  margin-top: 5px;
  height: 100%;
  resize: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.copy-container {
  position: absolute;
  padding: 1.2%;
  border-color: #555;
  border-width: 1px 0 0 1px;
  transition: all 150ms ease-in-out;
  cursor: pointer;
  bottom: 16px;
  right: 16px;
  border-radius: 0.5rem 0;

  &:hover {
    background-color: #555;
    border-radius: 0.5rem 0
  }

  &:hover svg {
    transform: scale(1.1);
  }

  svg {
    height: 24px;
    width: 24px;
  }
}

.newPage-container {
  display: none;
}

*::-webkit-scrollbar {
  width: 6px;
}

*::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.markdown-content code:not(pre > code) {
  background-color: #f5f5f5;
  color: #d6006b;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: monospace;
}

.markdown-content pre {
  overflow-x: auto;
  background: #282c34;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.preview-heading {
  font-size: 20px;
  font-weight: bold;
  text-transform: capitalize;
  padding-bottom: 0;
  margin-bottom: 0;
}



.markdown-content {
  h1 {
    font-size: 2rem;
    /* 36px */
    margin: 1rem 0 0.5rem 0;
    font-weight: bold;
  }

  h2 {
    font-size: 1.7rem;
    /* 30px */
    margin: 0.90rem 0 0.5rem 0;
    font-weight: bold;
  }

  h3 {
    font-size: 1.4rem;
    /* 24px */
    margin: 0.80rem 0 0.5rem 0;
    font-weight: bold;
  }

  h4 {
    font-size: 1.25rem;
    /* 20px */
    margin: 0.70rem 0 0.5rem 0;
    font-weight: bold;
  }

  h5 {
    font-size: 1.125rem;
    /* 18px */
    margin: 0.60rem 0 0.5rem 0;
    font-weight: bold;
  }

  h6 {
    font-size: 1rem;
    /* 16px */
    margin: 0.50rem 0 0.5rem 0;
    font-weight: bold;
  }
}

.markdown-content hr {
  border-color: #cfcfcf;
}

.markdown-content p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.markdown-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content em {
  color: #e2b714;
}

.markdown-content strong {
  color: #f8f8f8;
}

.markdown-content blockquote {
  border-left: 3px solid #3b82f6;
  padding-left: 1rem;
  margin-left: 0;
  color: #cfcfcf;
  font-style: italic;
}

/* Right drawer styling */
#drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: #1b1b1b;
  border-left: 2px solid #333;
  overflow-y: auto;
  padding: 1rem;
  transition: right 0.3s ease-in-out;
  z-index: 50;
}

#drawer.show {
  right: 0;
}

#drawer h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.drawer-item {
  padding: 0.5rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-item:hover {
  background: #2a2a2a;
}

.drawer-item button {
  background: #ef4444;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
}

#shortNav {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;

  #newPage,
  #drawerToggle {
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }

  #newPage:hover,
  #drawerToggle:hover {
    background-color: #2e2e2e;
  }
}

@media (max-width: 768px) {
  #newPage {
    display: none;
  }

  .copy-container {
    border-radius: 0;

    &:hover {
      border-radius: 0;
    }
  }

  .newPage-container {
    display: block;
    border-radius: 0.5rem 0;
    bottom: 16px;
    right: 49px;
    position: absolute;
    padding: 1.2%;
    border-color: #555;
    border-width: 1px 0 0 1px;
    transition: all 150ms ease-in-out;
    cursor: pointer;

    &:hover {
      background-color: #555;
    }

    &:hover svg {
      transform: scale(1.1);
    }

    svg {
      height: 24px;
      width: 24px;
    }
  }
}