* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

img {
  display: block;
}

button {
  font-family: inherit;
  color: inherit;
}
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(200, 60%, 99%), 0 0 0 4px hsl(3, 86%, 64%);
}

body {
  font-family: "Noto Sans", sans-serif;
  background: linear-gradient(180deg, hsl(215, 74%, 95%) 0%, hsl(185, 48%, 95%) 100%);
  background-repeat: no-repeat;
  color: hsl(227, 75%, 14%);
}

.wrapper {
  max-inline-size: 23.4375rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background-color: hsl(200, 60%, 99%);
  border-radius: 0.625rem;
}

.theme-btn {
  padding: 0.875rem;
  background-color: hsl(0, 0%, 93%);
  border-radius: 0.75rem;
  border: none;
}
.theme-btn:hover {
  cursor: pointer;
  background-color: hsl(0, 0%, 78%);
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  margin-block: 2.5rem 2rem;
}

.title {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.filter-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.2px;
  background-color: hsl(200, 60%, 99%);
  border: 1px solid hsl(217, 61%, 90%);
  padding: 0.5rem 1.25rem 0.625rem;
  border-radius: 999px;
  box-shadow: 0 1px 2px 0 hsla(217, 28%, 78%, 0.4);
}
.filter-btn:hover {
  cursor: pointer;
  color: hsl(227, 75%, 14%);
  opacity: 70%;
}

.active {
  background-color: hsl(3, 77%, 44%);
  color: hsl(200, 60%, 99%);
}
.active:hover {
  cursor: pointer;
  color: hsl(200, 60%, 99%);
  background-color: hsl(3, 71%, 56%);
  opacity: 100%;
}

.extensions {
  display: grid;
  gap: 0.75rem;
}

.extension-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  block-size: 12.5rem;
  background-color: hsl(200, 60%, 99%);
  padding: 1.25rem;
  border: 1px solid hsl(217, 61%, 90%);
  border-radius: 1.25rem;
  box-shadow: 0 2px 2px 0 hsl(217, 61%, 90%), 0 1px 5px 1px hsl(217, 61%, 90%);
}

.extension-info {
  display: flex;
  gap: 1rem;
}

.extension-icon {
  inline-size: 3.75rem;
  block-size: 3.75rem;
}

.extension-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.extension-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.extension-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: hsl(226, 11%, 37%);
}

.extension-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-btn {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.5px;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(0, 0%, 78%);
  border-radius: 999px;
  background: none;
}
.remove-btn:hover {
  cursor: pointer;
  color: hsl(200, 60%, 99%);
  background-color: hsl(3, 77%, 44%);
}

label {
  display: inline-block;
  line-height: 0;
}

input[type=checkbox] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  inline-size: 2.25rem;
  block-size: 1.25rem;
  background-color: hsl(0, 0%, 78%);
  border-radius: 999px;
  outline: none;
  position: relative;
}
input[type=checkbox]:hover {
  cursor: pointer;
}
input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(200, 60%, 99%), 0 0 0 4px hsl(3, 86%, 64%);
}

input[type=checkbox]::before {
  content: "";
  inline-size: 1rem;
  block-size: 1rem;
  background-color: hsl(200, 60%, 99%);
  border-radius: 999px;
  position: absolute;
  inset: 2px;
}

input[type=checkbox]:checked {
  background-color: hsl(3, 77%, 44%);
}
input[type=checkbox]:checked:hover {
  cursor: pointer;
  background-color: hsl(3, 71%, 56%);
}

input[type=checkbox]:checked::before {
  transform: translateX(1rem);
}

body[data-dark-mode=true] {
  background: linear-gradient(180deg, #040918 0%, #091540 100%);
  color: hsl(200, 60%, 99%);
}
body[data-dark-mode=true] button:focus-visible {
  box-shadow: 0 0 0 2px hsl(226, 25%, 17%), 0 0 0 4px hsl(3, 86%, 64%);
  background-color: hsl(226, 11%, 37%);
}
body[data-dark-mode=true] header {
  background-color: hsl(226, 25%, 17%);
}
body[data-dark-mode=true] .theme-btn {
  background-color: hsl(225, 23%, 24%);
}
body[data-dark-mode=true] .theme-btn:hover {
  background-color: hsl(226, 11%, 37%);
}
body[data-dark-mode=true] .filter-btn {
  background-color: hsl(225, 23%, 24%);
  color: hsl(200, 60%, 99%);
  border: 1px solid hsl(226, 11%, 37%);
  box-shadow: 0 0 0;
}
body[data-dark-mode=true] .filter-btn:hover {
  background-color: hsl(226, 11%, 37%);
  opacity: 100%;
}
body[data-dark-mode=true] .active {
  background-color: hsl(3, 86%, 64%);
  color: hsl(227, 75%, 14%);
}
body[data-dark-mode=true] .active:hover, body[data-dark-mode=true] .active:focus-visible {
  background-color: hsl(3, 71%, 56%);
}
body[data-dark-mode=true] .extension-card {
  background-color: hsl(226, 25%, 17%);
  border: 1px solid hsl(226, 11%, 37%);
  box-shadow: 0 0 0;
}
body[data-dark-mode=true] .extension-description {
  color: hsl(0, 0%, 78%);
}
body[data-dark-mode=true] .remove-btn {
  border: 1px solid hsl(226, 11%, 37%);
}
body[data-dark-mode=true] .remove-btn:hover {
  color: hsl(227, 75%, 14%);
  background-color: hsl(3, 86%, 64%);
}
body[data-dark-mode=true] input[type=checkbox]:hover {
  background-color: hsl(226, 11%, 37%);
}
body[data-dark-mode=true] input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(226, 25%, 17%), 0 0 0 4px hsl(3, 86%, 64%);
}
body[data-dark-mode=true] input[type=checkbox]:checked {
  background-color: hsl(3, 86%, 64%);
}
body[data-dark-mode=true] input[type=checkbox]:checked:hover {
  background-color: hsl(3, 71%, 56%);
}

@media (min-width: 45rem) {
  .wrapper {
    max-inline-size: 48rem;
    padding: 1.5rem 2rem 4rem;
  }
  header {
    padding: 0.75rem 1rem;
  }
  .filter-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .extensions {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 73rem) {
  .wrapper {
    max-inline-size: 90rem;
    padding: 2.5rem 8.4375rem 4rem;
  }
  header {
    padding: 0.75rem 1rem;
  }
  .filter-section {
    margin-block: 4rem 2rem;
  }
  .extensions {
    grid-template-columns: 1fr 1fr 1fr;
  }
}/*# sourceMappingURL=style.css.map */