@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;@700&display=swap");

:root {
  --body-background: #fff;
  --text-color: #2d2d2d;
  --input-bg-color: rgba(0, 0, 0, 0.38);
  --track-bg-color: rgba(0, 0, 0, 0.38);
  --color-primary: #a445ed;
  --color-background: #fff;
  --color-background-1: #e9e9e9;
  --color-text-1: #757575;
  --color-modal: #fff;
  --box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
}
.dark-theme {
  --body-background: #050505;
  --text-color: #fff;
  --color-background-1: #1f1f1f;
  --color-primary: #a445ed;
  --text-color: #fff;
  --color-text-1: #757575;
  --box-shadow: 0px 5px 30px #a445ed;
  --color-modal: #1f1f1f;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--body-background);
  display: block;
}

.sans-serif {
  font-family: sans-serif;
}

.serif {
  font-family: serif;
}

.mono {
  font-family: "Roboto Mono", monospace;
}

.header {
  width: 78.699%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
  margin-bottom: 3.125em;
}

.header__side-container {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}
.dropdown-content {
  position: absolute;
}
.header__side-container-1 {
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: flex-end;
}

.header__side-container-1 span {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-color);
  cursor: pointer;
}

.header__side-container-1 img {
  cursor: pointer;
}

.header__side-container-2 {
  display: flex;
  align-items: center;
  width: 5.999375em;
  height: 2.25em;
  justify-content: space-around;
  gap: 0.3em;
}
.main {
  width: inherit;
}
.cl-toggle-switch {
  margin-top: 7px;
  /* margin-right: 3px; */
}

.cl-switch {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

/* Input */
.cl-switch > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  right: 6px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: var(--track-bg-color);
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s 0.1s, transform 0.2s 0.1s;
}

/* Track */
.cl-switch > span::before {
  content: "";
  float: right;
  display: inline-block;
  margin: 5px 0 5px 10px;
  border-radius: 7px;
  width: 36px;
  height: 14px;
  background-color: var(--track-bg-color);
  vertical-align: top;
  transition: background-color 0.2s, opacity 0.2s;
}
/* TODO */
/* Thumb */
.cl-switch > span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 16px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: #fff;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, transform 0.2s;
}

/* Checked */
.cl-switch > input:checked {
  right: -10px;
  background-color: var(--color-secondary);
}

.cl-switch > input:checked + span::before {
  background-color: var(--color-primary);
}

.cl-switch > input:checked + span::after {
  background-color: #fff;
  transform: translateX(16px);
}

/* Hover, Focus */
.cl-switch:hover > input {
  opacity: 0.04;
}

.cl-switch > input:focus {
  opacity: 0.12;
}

.cl-switch:hover > input:focus {
  opacity: 0.16;
}

/* Active */
.cl-switch > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.cl-switch > input:active + span::before {
  background-color: #8f8f8f;
}

.cl-switch > input:checked:active + span::before {
  background-color: #a445ed;
}

.moon-icon-active path {
  stroke: #a445ed;
}

.dropdown-content {
  background-color: var(--color-modal);
  z-index: 100;
  visibility: hidden;
  width: 11.438rem;
  height: 9.5rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  right: 210px;
  top: 80px;
}
/* TODO */
.show-dropdown-content {
  visibility: visible;
}

.dropdown-content a {
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 10px;
  -webkit-tap-highlight-color: transparent;
}
.hide-term-meaning-wrapper {
  display: none;
  visibility: hidden;
}
.dropdown-content a:hover {
  color: var(--color-primary);
}
.input-container {
  display: flex;
  position: relative;
}
.input-container__input {
  width: 78.699%;
  margin: 0 auto;
  height: 60px;
  background-color: var(--color-background-1);
  outline: none;
  border: 0;
  border-radius: 16px;
  padding: 1em;
  font-family: "Inter", sans-serif;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text-color);
  caret-color: var(--color-primary);
}
.input-container__input::placeholder {
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  color: var(--text-color);
  mix-blend-mode: normal;
  opacity: 0.25;
}
.input-container__input:focus {
  border: 1px solid var(--color-primary);
}
.input-container__icon {
  position: absolute;
  right: 14%;
  top: 36%;
  cursor: pointer;
}
.input-container span {
  position: absolute;
  top: calc(100%);
  left: calc(11%);
  margin-top: 0.1em;
  font-family: inherit;
  font-weight: 400px;
  font-size: 1.25em;
  color: red;
}
.make-border-red {
  border: 1px solid red;
}
.error-modal {
  display: none !important;
  width: 100%;
  margin: 0 auto;
  margin-top: 8.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.show-error-modal {
  display: flex !important;
}

.error-modal__emoji {
  font-size: 4em;
}
.error-modal__description {
  font-weight: 700;
  font-size: 1.25em;
  color: var(--text-color);
}
.error-modal__message {
  font-weight: 400;
  padding: 0 1em;
  text-align: center;
  color: var(--color-text-1);
}

.hide-term-meaning-wrapper {
  display: none;
  visibility: hidden;
}
.term-meaning-wrapper {
  margin-top: 10px;
}
.term-meaning-wrapper__1 {
  width: 78.699%;
  margin: 0 auto;
  height: 114px;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 2.4375em;
}
.term-meaning-wrapper__spell-phonetic-cont {
  height: 100%;
  flex-grow: 1;
}
#word-spelling {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: var(--text-color);
  font-style: normal;
}
#word-phonetic {
  color: var(--color-primary);
  font-size: 1.5em;
  font-weight: 400;
}
.term-meaning-wrapper__spell-phonetic-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.term-meaning-wrapper__pronunciation-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 1;
  flex-basis: 4.6875em;
}
.icon-play {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: all 0.2s;
  cursor: pointer;
  background-color: var(--color-primary);
  border-radius: 50%;
}
.icon-play:active {
  transform: scale(0.8);
}

.term-meaning-wrapper__2--heading-cont-noun,
.term-meaning-wrapper__2--heading-cont-verb,
.term-meaning-wrapper__2--heading-cont-adjective {
  width: 78.699%;
  margin: 0 auto;
  position: relative;
  margin-bottom: 2.375em;
}
.term-meaning-wrapper__2--heading-cont-noun span,
.term-meaning-wrapper__2--heading-cont-verb span {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  font-size: 1.5em;
  color: var(--text-color);
}
.term-meaning-wrapper__2--heading-cont-noun span::after,
.term-meaning-wrapper__2--heading-cont-verb span::after {
  position: absolute;
  content: "";
  top: 50%;
  width: 90%;
  height: 1px;
  background-color: var(--color-background-1);
}
.term-meaning-wrapper__2--meanings-cont-noun,
.term-meaning-wrapper__2--meanings-cont-verb {
  width: 78.699%;
  margin: 0 auto;
  margin-bottom: 3.9375em;
}
.term-meaning-wrapper__2--meanings-cont-noun span,
.term-meaning-wrapper__2--meanings-cont-verb span {
  display: block;
  font-size: 1.25em;
  font-style: normal;
  font-family: inherit;
  color: var(--color-text-1);
  margin-bottom: 1.5em;
}
.term-meaning-wrapper__2--list-noun li,
.term-meaning-wrapper__2--list-verb li {
  margin-bottom: 0.8125em;
  list-style-type: none;
  text-indent: -0.7em;
  color: var(--text-color);
  font-weight: 400;
}
.term-meaning-wrapper__2--list-noun li::before {
  content: "• ";
  color: var(--color-primary);
}
.term-meaning-wrapper__2--list-verb li::before {
  content: "• ";
  color: var(--color-primary);
}

.synonyms-container {
  width: 78.699%;
  margin: 0 auto;
  display: flex;
  gap: 1.5em;
  margin-bottom: 2.4375em;
}
.synonyms-container span {
  font-weight: 400;
  font-size: 1.25em;
  color: var(--color-text-1);
}
.synonyms-container div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.synonyms-container div span {
  font-size: 1.25em;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
}
.source-url-container {
  width: fit-content;

  margin-left: 10%;

  height: 2.25em;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
}
.source-url-container span {
  font-size: inherit;
  font-weight: 400;
  font-size: 0.875em;
  color: var(--color-text-1);
}
.source-url-container a {
  font-weight: inherit;
  font-weight: 400;
  font-size: 0.875em;
  color: var(--text-color);
}
.source-url-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  flex-basis: 14px;
}
@media (max-width: 426px) {
  .cl-toggle-switch {
    margin-right: 3px;
  }
}
@media (max-width: 377px) {
  html {
    font-size: 11px;
  }
  .cl-toggle-switch {
    margin-right: 3px;
  }
  .dropdown-content {
    left: 60px;
  }
}

@media (max-width: 357px) {
  html {
    font-size: 10px;
  }

  .header__side-container-1 span {
    margin-right: 0.5em;
  }

  .header__side-container-1 {
    width: 11.125em;
  }

  .header__side-container-2 {
    width: 7.999375em;
  }

  .header {
    width: 81.699%;
  }
}

@media (max-width: 619px) {
}

@media (max-width: 475px) {
  .term-meaning-wrapper__pronunciation-container {
    align-items: center;
  }
  html {
    font-size: 13px;
  }
  .dropdown-content {
    right: 164px;
  }
}

@media (max-width: 419px) {
  html {
    font-size: 12px;
  }

  .header__side-container-1 img {
    margin-right: 1em;
  }
}
