@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/noto-sans-v39-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* red-hat-text-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/noto-sans-v39-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* red-hat-text-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/noto-sans-v39-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root:has([value='moon']) {
  --gradient: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
  --neutral-900: hsl(227, 75%, 14%);
  --neutral-0: hsl(200, 60%, 99%);
  --neutral-600: hsl(226, 11%, 37%);
  --neutral-700: hsl(225, 23%, 24%);
  --neutral-100: hsl(0, 0%, 93%);
}
:root:has([value='sun']) {
  --gradient: linear-gradient(180deg, #040918 0%, #091540 100%);
  --neutral-900: hsl(0, 0%, 93%);
  --neutral-0: hsl(226, 25%, 17%);
  --neutral-600: hsl(0, 0%, 78%);
  --neutral-700: hsl(0, 0%, 78%);
  --neutral-100: hsl(226, 11%, 37%);
}

:root {
  --neutral-900: hsl(227, 75%, 14%);
  --neutral-800: hsl(226, 25%, 17%);
  --neutral-700: hsl(225, 23%, 24%);
  --neutral-600: hsl(226, 11%, 37%);
  --neutral-300: hsl(0, 0%, 78%);
  --neutral-200: hsl(217, 61%, 90%);
  --neutral-100: hsl(0, 0%, 93%);
  --neutral-0: #fbfdfe;

  /* Red */

  --red-400: hsl(3, 86%, 64%);
  --red-500: hsl(3, 71%, 56%);
  --red-700: hsl(3, 77%, 44%);

  /* Gradient */

  --light-gradient: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
  --dark-gradient: linear-gradient(180deg, #040918 0%, #091540 100%);
}

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--neutral-900);
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans';
  font-weight: 400;
  font-size: 1rem;
  background: var(--gradient);
}

button {
  cursor: pointer;
}

.inner-wrap {
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

.wrapper {
  padding-inline: 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--neutral-0);
  padding: 10px;
  border-radius: 10px;
}

p {
  color: var(--neutral-600);
  font-weight: 500;
}

button.theme-switcher {
  appearance: none;
  border: none;
  background-color: var(--neutral-100);
  padding: 12px;
  border-radius: 15px;
}

button.theme-switcher:hover,
button.theme-switcher:active {
  background-color: var(--neutral-300);
}
.all-list:focus,
.active-list:focus,
.inactive-list:focus,
.remove:focus,
.slider:focus,
button.theme-switcher:focus {
  border: 2px solid red;
  outline: none;
}

/* Extensions Filtering Options Style */

h1 {
  font-size: 2.5rem;
  text-align: center;
  padding-block: 25px;
}

.filtered-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
}

.all-list,
.active-list,
.inactive-list {
  color: var(--neutral-900);
  background-color: var(--neutral-0);
  appearance: none;
  font-size: 1.5rem;
  padding-block: 8px;
  padding-inline: 20px;
  border-radius: 30px;
  border: 1px solid var(--neutral-100);
}

.all-list:hover,
.active-list:hover,
.inactive-list:hover {
  color: var(--neutral-600);
  background: var(--neutral-100);
}

.all-list.active,
.active-list.active,
.inactive-list.active {
  color: var(--neutral-0);
  background-color: var(--red-700);
}

/* Extension List Styling  */
.extensions {
  display: grid;
  gap: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  background: var(--neutral-0);
  padding: 15px;
  border-radius: 15px;
  gap: 30px;
  box-shadow: -1px 2px 3px -1px var(--neutral-300);
}

.content {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.dev-lens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interactive-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

button.remove {
  appearance: none;
  color: var(--neutral-700);
  background: var(--neutral-0);
  padding-block: 10px;
  padding-inline: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 35px;
  border: 1px solid var(--neutral-300);
}

button.remove:hover,
button.remove:active {
  color: var(--neutral-0);
  background-color: var(--red-700);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  width: 20px;
  height: 20px;
  right: 2px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--red-700);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

@media (width >= 48rem) {
  .wrapper {
    padding-inline: 44px;
  }

  /* Extensions List styling */
  h1 {
    font-size: 1.8rem;
    text-align: start;
  }

  .filtered-extensions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .filtered-list {
    gap: 15px;
    padding-bottom: 0px;
  }

  /* Extension List Styling  */
  .extensions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 64rem) {
  .wrapper {
    max-width: 75em;
    margin-inline: auto;
    padding-inline: 0;
  }

  .extensions {
    grid-template-columns: repeat(3, 1fr);
  }
}
