:root {
  /* primary theme colors */
  --dough-white: #fbfaf5;
  --obsidian-black: #0b1215;

  /* theme switcher colors */
  --c-text-primary: #191919;
  --c-text-secondary: #737374;
  --c-border-primary: #ccc;
  --c-bg-body: #ccc;
  --c-bg-primary: #fff;
  --c-bg-secondary: #d4d8dd;
  --c-bg-button: #fff;
  --slider-shadow: inset 0 1px 1px #ddd, 0 2px 3px #ccc;
}

body {
  padding-top: 50px;
  background-color: var(--dough-white);
}

#mainContainer {
  position: relative;
}

#pipContainer {
  display: none;
}

.pip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7e7d7d;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);

  &::after {
    content: "Floating Window is Activated";
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust opacity as needed */
  pointer-events: none;
  /* Makes overlay non-interactive by default */
  z-index: 10;
  display: none;
}

.pip-icon {
  cursor: pointer;
}

@media all and (display-mode: picture-in-picture) {
  body {
    padding-top: 0px;
  }
}

.generic-flex {
  display: flex;
  align-items: center;
  gap: 5px;
}

textarea {
  width: 100%;
  height: 100%;
  font-size: 18px;
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  outline: 0px !important;
  -webkit-appearance: none;
  resize: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--dough-white);
}

kbd {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: #333;
  background: #fff;
  border: 2px solid #c8c8c8;
  border-radius: 4px;
  box-shadow: 0 4px #b0b0b0, inset 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 3px 6px rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  margin: 0 4px;
  line-height: 1.4;
  transition: transform 0.1s, box-shadow 0.1s;
  font-weight: bold;
  white-space: nowrap;
}

table {
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

table tr {
  display: flex;
  background-color: var(--dough-white);
  margin: 0;
  padding: 10px;
  align-items: center;
}

table tr:nth-child(n+2) {
  border-top: 1px solid #e0e0e0;
}

table tr td {
  text-align: left;
  margin: 0;
  padding: 6px 13px;
  width: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
}

.about-icon-container {
  display: inline-flex;
  gap: 10px;
  float: left;
  align-items: center;
}

.about-icon-container > a {
  transition: transform 200ms ease-out;
}

.about-icon-container > a:hover {
  transform: translateY(-5px) rotate(-15deg);
}

.dark .icon-container span>a {
  transition: all 0.3s ease-in-out;
}

.dark .icon-container span>a:hover {
  -webkit-filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
  filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
}

#iconDropdown a {
  cursor: pointer;
}

.downaload-notes-container,
.more-tools-container {
  position: relative;
}

.dropdown-menu {
  top: 124%;
  padding: 8px 0;
  border-radius: 6px;
}

.dark .glow-text {
  animation: glow 2s forwards;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #91ceff, 0 0 10px #91ceff, 0 0 20px #91ceff, 0 0 40px #91ceff, 0 0 80px #91ceff;
  }

  100% {
    /* Return to normal text shadow */
    text-shadow: 0 0 5px #2196f3;
  }
}

.dark .dropdown-menu {
  background-color: #26313f;
  border: 1px solid rgb(51 63 78);
}

.dark .dropdown-menu>li>a {
  color: #dcd6d6;
}

.dark .dropdown-menu>li>a:focus,
.dark .dropdown-menu>li>a:hover {
  background-color: #324256;
}

.navbar-default {
  background-color: #4d4d4d;
  border-color: #4d4d4d;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d !important;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-brand {
  color: #ecf0f1;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ecdbff;
}

.navbar-default .navbar-text {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
  color: #ecdbff;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ecf0f1;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ecf0f1;
}

.navbar-default .navbar-link {
  color: #ecf0f1;
}

.navbar-default .navbar-link:hover {
  color: #ecdbff;
}

#flash {
  color: #64ff6a;
  font-weight: bold;
}

.btn-custom {
  margin-top: 9px;
}

#Rectangle {
  fill: lightgreen;
}

#trash {
  fill: lightcoral;
}

.trash-icon {
  cursor: pointer;
}

.download-icon,
.dropdown-icon {
  margin-top: 0px;
  cursor: pointer;
}

.dropdown-item {
  display: flex !important;
  gap: 9px;
  align-items: center;
}

.dropdown-item span {
  background: #ffc413;
  color: black;
  padding: 3px 6px;
  font-size: 10px;
  border-radius: 4px;
  font-weight: bold;
}

.app-heading {
  margin-left: 12px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
}

.navbar-inverse .app-heading {
  color: #7cc5ff;
  text-shadow: 0px 0px 3px #2196F3;
}

.navbar-default .app-heading {
  color: #ecf0f1;
  text-shadow: none;
}

.container {
  position: relative;
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
}

.make-hidden {
  display: none !important;
}

.about-notice {
  --shadow-color: 0deg 0% 67%;
  --shadow-elevation-low:
    0.3px 0.5px 0.9px hsl(var(--shadow-color) / 0),
    0.9px 1.9px 3.2px hsl(var(--shadow-color) / 0.45);
  background-color: #ecf0ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-elevation-low);
}

.about-author-container {
  display: inline-flex;
  flex-direction: row;
  gap: 5px;
}

.about-author-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.modal-content {
  border-radius: 14px;
  border: none;
  background-color: var(--dough-white);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
  background-color: var(--dough-white);
}

.btn {
  border-radius: 8px;
}

.swal2-popup {
  border-radius: 1.3125em !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  border-radius: 0.55em !important;
}

.form-control {
  border-radius: 8px;
  background-color: var(--dough-white);
}

.swal2-popup {
  background: var(--dough-white) !important;
}

.sticky-notice {
  position: absolute;
  background: #009688;
  bottom: 48px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0px 0px 9px 2px #abababc9;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 14px;
}

.word-count-container {
  position: absolute;
  display: inline-block;
  background: #e2dcd8;
  bottom: 1.4em;
  right: 1.4em;
  margin-left: auto;
  padding: 5px 14px;
  border-radius: 20px;
  color: #403333;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 14px;
}

.dark .word-count-container { 
  background: #e0ceff;
}

.tab-content .container {
  width: 100%;
  padding: 20px 0px;
}

.word-count-container p {
  margin: 0;
}

.sticky-notice p {
  margin: 0;
  line-height: 26px;
}

.sticky-notice a {
  color: #ffeb3b;
}

.dark .sticky-notice {
  background: #a2ffa2;
  box-shadow: 0px 0px 17px 0px #abababc9;
  color: #272727;
  font-weight: bold;
}

.dark .sticky-notice a {
  color: #93103d;
}

textarea {
  padding: 15px 24px 40px;
  border: 1px solid #e6e4e4;
}

a {
  font-weight: bold;
}

.dark textarea {
  border: #000000;
  background-color: var(--obsidian-black);
  color: #dedede;

  border-right: 1px solid #3e3e3e;
  border-left: 1px solid #3e3e3e;
}

.dark {
  background-color: var(--obsidian-black);
  color-scheme: dark;
}

.adFooter {
  position: fixed;
  bottom: 0px;
  font-size: 0.8em;
  z-index: 1000;
  background: #ffffff;
  padding: 5px;
  text-align: center;
  width: 100%;
  float: left;
  border-top: 1px solid #f0f0f0;
}

.theme-switcher {
  background-color: var(--c-bg-secondary);
  border-radius: 8px;
  display: flex;
  padding: 0 3px;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 12px;
}

.theme-switcher .slider {
  display: block;
  position: absolute;
  z-index: 1;
  width: calc((100% - 6px) / 3);
  top: 3px;
  transform: translatex(-110%);
  bottom: 3px;
  border-radius: 6px;
  transition: 0.15s ease, transform 0.25s ease-out;
  background-color: var(--c-bg-button);
  box-shadow: var(--slider-shadow);
}

.theme-switcher input {
  display: none;
}

.theme-switcher input:nth-of-type(1):checked ~ .slider {
  transform: translateX(0);
}

.theme-switcher input:nth-of-type(2):checked ~ .slider {
  transform: translateX(100%);
}

.theme-switcher input:nth-of-type(3):checked ~ .slider {
  transform: translateX(200%);
}

.theme-switcher label {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  width: calc(100% / 3);
  color: var(--c-text-secondary);
}

.theme-switcher label span {
  padding: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: #727272;
  cursor: pointer;
}

.theme-switcher label svg {
  display: inline-block;
  margin-right: 0.5rem;
  width: 20px;
}

#mode {
  cursor: pointer;
  display: flex;
  font-size: 16px;
}

#carbonads {
  --width: 180px;
  --font-size: 14px;
}

#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 5px;
  max-width: 270px;
  border-radius: 4px;
  text-align: center;
  border: dashed 1px #e6e6e6;
  background-color: hsl(0, 0%, 98%);
  font-size: var(--font-size);
  line-height: 1.5;
  width: 100%;
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
}

.carbon-img {
  display: block;
  margin-bottom: 8px;
  max-width: var(--width);
  line-height: 1;
}

.carbon-img img {
  display: block;
  margin: 0 auto;
  max-width: 130px !important;
  width: var(--width);
  height: auto;
  float: left;
  margin: 0;
}

.carbon-text {
  display: block;
  padding: 0 1em 8px;
  max-width: 138px;
  float: left;
  text-align: left;
}

.carbon-poweredby {
  display: block;
  padding: 10px var(--font-size);
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 0;
}

.cookie_box_close {
  display: inline-block;
  position: absolute;
  top: 4px;
  right: 5px;
  cursor: pointer;
  font-weight: bolder;
  font-size: 16px;
  color: black;
}

.modal-container {
  padding: 10px 20px;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 14px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-weight: bold;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

.custom-modal-title {
  display: inline-block;
}

.install-app-btn-container {
  display: none;
}

.install-app-btn {
  padding: 5px 10px;
  background-color: #3F51B5;
  color: white;
  font-weight: bold;
  font-size: 13px;
  border-radius: 6px;
}

.install-app-btn:hover,
.install-app-btn:focus {
  text-decoration: none;
  color: white;
  transform: scale(1.05);
}

#changelog h4 {
  font-size: 16px;
  font-weight: bold;
}

#changelog h4:first-child {
  margin-top: 0;
}

.mic-icon {
  cursor: pointer;
}

.mic-active span {
  position: relative;
  display: inline-block;
}

/* Pulse effect around mic when active */
.mic-active span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  background-color: rgba(255, 0, 0, 0.503);
  border-radius: 50%;
  z-index: 1;
  animation: heartbeat 1.2s infinite ease-in-out !important;
}

.icon-container {
  display: flex;
  gap: 12px;
  height: 50px;
  line-height: 20px;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-modal {
  position: relative;
}

.about-modal-logo {
  position: absolute;
  right: 0px;
  top: 60px;
  transform: rotate(6deg);
  opacity: 0.09;
}

.navbar-flex {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 591px) {
  .about-modal-logo {
    display: none;
  } 
}

.checkbox.checbox-switch {
  padding-left: 0;
}

.checkbox.checbox-switch label,
.checkbox-inline.checbox-switch {
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.checkbox.checbox-switch label input,
.checkbox-inline.checbox-switch input {
  display: none;
}

.checkbox.checbox-switch label span,
.checkbox-inline.checbox-switch span {
  width: 35px;
  border-radius: 20px;
  height: 18px;
  border: 1px solid #dbdbdb;
  background-color: rgb(255, 255, 255);
  border-color: rgb(223, 223, 223);
  box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.checkbox.checbox-switch label span:before,
.checkbox-inline.checbox-switch span:before {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  content: " ";
  top: 0;
  position: relative;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.checkbox.checbox-switch label>input:checked+span:before,
.checkbox-inline.checbox-switch>input:checked+span:before {
  left: 17px;
}

.checkbox.checbox-switch label>input:checked+span,
.checkbox-inline.checbox-switch>input:checked+span {
  background-color: rgb(180, 182, 183);
  border-color: rgb(180, 182, 183);
  box-shadow: rgb(180, 182, 183) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:checked:disabled+span,
.checkbox-inline.checbox-switch>input:checked:disabled+span {
  background-color: rgb(220, 220, 220);
  border-color: rgb(220, 220, 220);
  box-shadow: rgb(220, 220, 220) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:disabled+span,
.checkbox-inline.checbox-switch>input:disabled+span {
  background-color: rgb(232, 235, 238);
  border-color: rgb(255, 255, 255);
}

.checkbox.checbox-switch label>input:disabled+span:before,
.checkbox-inline.checbox-switch>input:disabled+span:before {
  background-color: rgb(248, 249, 250);
  border-color: rgb(243, 243, 243);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Switch Light */
.checkbox.checbox-switch.switch-light label>input:checked+span,
.checkbox-inline.checbox-switch.switch-light>input:checked+span {
  background-color: rgb(248, 249, 250);
  border-color: rgb(248, 249, 250);
  box-shadow: rgb(248, 249, 250) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Dark */
.checkbox.checbox-switch.switch-dark label>input:checked+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked+span {
  background-color: rgb(52, 58, 64);
  border-color: rgb(52, 58, 64);
  box-shadow: rgb(52, 58, 64) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-dark label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked:disabled+span {
  background-color: rgb(100, 102, 104);
  border-color: rgb(100, 102, 104);
  box-shadow: rgb(100, 102, 104) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Success */
.checkbox.checbox-switch.switch-success label>input:checked+span,
.checkbox-inline.checbox-switch.switch-success>input:checked+span {
  background-color: rgb(40, 167, 69);
  border-color: rgb(40, 167, 69);
  box-shadow: rgb(40, 167, 69) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-success label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-success>input:checked:disabled+span {
  background-color: rgb(153, 217, 168);
  border-color: rgb(153, 217, 168);
  box-shadow: rgb(153, 217, 168) 0px 0px 0px 8px inset;
}

/* Switch Danger */
.checkbox.checbox-switch.switch-danger label>input:checked+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked+span {
  background-color: rgb(200, 35, 51);
  border-color: rgb(200, 35, 51);
  box-shadow: rgb(200, 35, 51) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-danger label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked:disabled+span {
  background-color: rgb(216, 119, 129);
  border-color: rgb(216, 119, 129);
  box-shadow: rgb(216, 119, 129) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Primary */
.checkbox.checbox-switch.switch-primary label>input:checked+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked+span {
  background-color: rgb(0, 105, 217);
  border-color: rgb(0, 105, 217);
  box-shadow: rgb(0, 105, 217) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-primary label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked:disabled+span {
  background-color: rgb(109, 163, 221);
  border-color: rgb(109, 163, 221);
  box-shadow: rgb(109, 163, 221) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Info */
.checkbox.checbox-switch.switch-info label>input:checked+span,
.checkbox-inline.checbox-switch.switch-info>input:checked+span {
  background-color: rgb(23, 162, 184);
  border-color: rgb(23, 162, 184);
  box-shadow: rgb(23, 162, 184) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-info label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-info>input:checked:disabled+span {
  background-color: rgb(102, 192, 206);
  border-color: rgb(102, 192, 206);
  box-shadow: rgb(102, 192, 206) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Warning */
.checkbox.checbox-switch.switch-warning label>input:checked+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked+span {
  background-color: rgb(255, 193, 7);
  border-color: rgb(255, 193, 7);
  box-shadow: rgb(255, 193, 7) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-warning label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked:disabled+span {
  background-color: rgb(226, 195, 102);
  border-color: rgb(226, 195, 102);
  box-shadow: rgb(226, 195, 102) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.monospaced {
  font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}

/* Heartbeat animation */
@keyframes heartbeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  30% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
  #carbonads {
    float: none;
    margin: 0 auto;
    max-width: 320px;
  }

  #carbonads span {
    position: relative;
  }

  #carbonads>span {
    max-width: none;
  }

  .carbon-img {
    float: left;
    margin: 0;
  }

  .carbon-img img {
    max-width: 130px !important;
  }

  .carbon-text {
    float: left;
    margin-bottom: 0;
    padding: 8px 20px;
    text-align: left;
    max-width: calc(100% - 129px - 3em);
  }

  .carbon-poweredby {
    left: 130px;
    bottom: 0;
    display: block;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: #ecf0f1;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus {
    color: #ecdbff;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>.active>a,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus {
    color: #ecdbff;
    background-color: #8e44ad;
  }
}

.form-horizontal .control-label {
  text-align: left !important;
}

.navbar-toggle {
  margin-right: 24px;
}

.navbar-nav>li>a {
  padding-left: 2px;
}

@media (max-width: 412px) {
  .nav>li>a {
    padding: 10px 10px;
  }

  .nav-tabs {
    border-bottom: 1px solid #ddd;
    font-size: 13px;
  }
}

@media (max-width: 766px) {
  .dark textarea {
    border-right: 1px solid #0d1117;
    border-left: 1px solid #0d1117;
  }
}

@media (max-width: 450px) {
  .sticky-notice {
    width: 75%;
  }

  .navbar-brand {
    padding: 15px 12px;
  }
}

@media (max-width: 480px) {
  #pipContainer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .keyboard-icon {
    display: none !important;
  }

  .fullscreen-icon {
    display: none !important;
  }

  .navbar-nav>li>a {
    padding-left: 30px;
  }

  .navbar-flex {
    display: block;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    float: right;
    margin: 0;
  }
}

.ambient-noise-icon {
  position: relative;
}

.floating-notes {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-link {
  padding-right: 0 !important;
}

@keyframes floatNote {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) scale(0.8);
    opacity: 0;
  }
}

.affiliate-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
  max-width: 305px;
  border: 1px solid #e0e0e0;
}

.affiliate-popup.show {
  display: block;
  animation: slideIn 0.5s ease-out forwards;
}

.dark .affiliate-popup {
  background-image: radial-gradient(45.07% 92.4% at 51% 7.61%, #464646 0, #181e27 100%);
  border-color: #30363d;
}

.dark .affiliate-content a {
  color: #c9d1d9;
}

.dark .affiliate-content a:hover {
  color: #58a6ff;
}

.dark .close-popup {
  color: #8b949e;
}

.dark .close-popup:hover {
  color: #c9d1d9;
}

.affiliate-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.affiliate-content a {
  color: #2c3e50;
  text-decoration: none;
  flex-grow: 1;
}

.affiliate-content a:hover {
  color: #3498db;
}

.close-popup {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* White Noise Player Styles */
.sound-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.6em;
}

.sound-button>div:first-child {
  display: flex;
  flex-direction: row;
  gap: 0.6em
}

.sound-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  border-radius: 10px;
  background: #f1efef;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  gap: 22px;
}

.sound-button:hover {
  background: #e3e2e2;
}

.sound-button.playing {
  background: #dcefff;
}

.sound-button span {
  flex: 1;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-button.playing::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
  position: absolute;
  top: 10px;
  right: 10px;
}

#shareNotesContainer {
  display: none;
}

#shareNotes {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

.dark-mode .sound-button.playing span::after {
  background-color: #64b5f6;
}

.volume-control {
  width: 100px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #cccccc;
  outline: none;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
  border: none;
}

/* Dark mode styles */
.dark-mode .sound-button {
  background: #2d2d2d;
  color: #fff;
}

.dark-mode .sound-button:hover {
  background: #3d3d3d;
}

.dark-mode .sound-button.playing {
  background: #1a3f5f;
  border: 1px solid #2196f3;
}

.dark-mode .volume-slider {
  background: #444;
}

.sound-button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.sound-button.loading::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #2196f3;
  border-top-color: transparent;
  border-radius: 50%;
  animation: loading-spinner 0.8s linear infinite;
  top: 10px;
  right: 10px;
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode loading state */
.dark-mode .sound-button.loading::before {
  border-color: #64b5f6;
  border-top-color: transparent;
}

/* Global mute button styles */
.global-mute-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.global-mute-button.muted svg {
  color: #ff3333;
}

.custom-modal-title {
  display: flex;
  align-items: center;
}

/* Global mute button styles */
.global-mute-button.muted svg {
  color: #ff3333;
}

/* Import OpenDyslexic font */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Dyslexic font class */
.dyslexic {
  font-family: 'OpenDyslexic', sans-serif !important;
  line-height: 1.6;
}

.new-tag {
  background: #71fa82 !important;
}

@media print {
  .dark .affiliate-popup, .affiliate-popup, .word-count-container {
    display: none !important;
  }

  .dark textarea {
    border-left: none;
    border-right: none;
  }

  textarea {
    border: none;
    border-left: none;
    border-right: none;
  } 
}