@import url(https://fonts.googleapis.com/css?family=Noto+Sans:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

:root {
  /* Neutral Colors */

  --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: hsl(200, 60%, 99%);

  /* Red Colors */

  --Red-400: hsl(3, 86%, 64%);
  --Red-500: hsl(3, 71%, 56%);
  --Red-700: hsl(3, 77%, 44%);

  /*  Gradient Colors*/

  --Light-Gradient: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
  --Dark-Gradient: linear-gradient(180deg, #040918 0%, #091540 100%);

  /* Fonts Size */

  --txt-xsm: 0.8rem;
  --txt-sm: 1.2rem;
  --txt-md: 1.6rem;
  --txt-lg: 2rem;
  --txt-xlg: 2.4rem;

  /* Fonts Weight */
  --wgt-sm: 400;
  --wgt-md: 500;
  --wgt-lg: 700;

  --filter:brightness(01) invert(1);
    --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: hsl(200, 60%, 99%);
}

.light-mode{
  --Neutral-900: hsl(0, 0%, 93%);
  --Neutral-800: hsl(200, 60%, 99%);
  --Neutral-700: hsl(0, 0%, 78%);
  --Neutral-600: hsl(217, 61%, 90%);
  --Neutral-300: hsl(225, 23%, 24%);
  --Neutral-200: hsl(226, 11%, 37%);
  --Neutral-100: hsl(227, 75%, 14%);
  --Neutral-0: hsl(226, 25%, 17%);

  --Dark-Gradient:  linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);

   --Red-400:hsl(3, 71%, 56%);

  --filter: none;
}

/* RESET STYLE */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 50%;
  font-family: 'Noto Sans', sans-serif;
}

body {
  background-image: var(--Dark-Gradient);
  padding: 2rem;
  min-height: 100vh;
  background-repeat: no-repeat;
}

img {
  display: inline-block;
  width: 100%;
}

/* Header Styling */
#content-container {
  max-width: 1024px;
  margin: 0 auto;
}

header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--Neutral-800);
  border-radius: 1rem;
  box-shadow: 0 0 5px var(--Neutral-900);
  gap: 2rem;
}

#logo {
  filter: var(--filter);
  max-width: 15rem;
}

#dark-mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--Neutral-700);
  border: none;
  padding: 0.6rem;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 0 5px var(--Neutral-800);
  transition: all .1s ease;
}

#dark-mode-toggle img {
  width: 20px;
  align-self: center;
}

#dark-mode-toggle:hover {
  transform: scale(0.9);
  background-color: var(--Neutral-600);
}

#dark-mode-toggle:active {
  transform: scale(1);
}

/* Main content Styling */
#main-container {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

#section-header {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  color: var(--Neutral-0);
  margin-bottom: 2.5rem;
}

#section-header h2 {
  font-size: var(--txt-xlg);
  font-weight: var(--wgt-lg);
  letter-spacing: 2px;
}

.select-btn {
  background-color: var(--Neutral-800);
  color: inherit;
  font-size: var(--txt-md);
  border: none;
  border-radius: 2rem;
  padding: 1rem 2rem;
  margin-left: 1.3rem;
  font-weight: var(--wgt-md);
  cursor: pointer;
  transition: background 0.3 ease;
   box-shadow: 0 0 1px var(--Neutral-300);
}

.select-btn:hover {
  background-color: var(--Neutral-600);
  color: var(--Neutral-200);
}

.select-btn:first-child {
  margin-left: 0;
}

.select-btn.active-state {
  background-color: var(--Red-500);
  color: var(--Neutral-900);
}

#cards-item-container {
  display: grid;
  gap: 1.5rem;
}

.card-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: 1.5rem;
  background-color: var(--Neutral-800);
  border-radius: 10px;
   box-shadow: 0 0 1px var(--Neutral-300);
}

.card-header-container {
  display: flex;
  align-items: start;
  flex: 1;
  margin-bottom: 4rem;
  width: 100%;
}

.card-header-container img {
  max-width: 60px;
  margin-right: 2rem;
}

.card-header-txt h3 {
  color: var(--Neutral-0);
  font-size: var(--txt-lg);
  font-weight: var(--wgt-lg);
  margin-bottom: 0.75rem;
}

.card-header-txt p {
  color: var(--Neutral-300);
  font-size: var(--txt-md);
  font-weight: var(--wgt-sm);
  line-height: 1.3;
  letter-spacing: 1px;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-container .remove-btn {
  background-color: transparent;
  color: var(--Neutral-0);
  font-size: var(--txt-md);
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-weight: var(--wgt-sm);
  box-shadow: 0 0 1px var(--Neutral-300);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-container .remove-btn:hover {
  background-color: var(--Red-500);
}
 .active-toggle-btn {
  height: 2rem;
  width: 3.5rem;
  background-color: var(--Red-400);
  border: none;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

 .active-toggle-btn.active-toggle {
  background-color: var(--Neutral-600);
}

.active-toggle-btn::after{
  content: '';
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  position: absolute;
  background-color: hsl(200, 60%, 99%);
  top: 50%;
  transform: translateY(-50%);
  right: 1px;
  transition: left 2s ease,right 2s ease;
}

.active-toggle-btn.active-toggle::after{
  left: 1px;
}

@media (min-width: 550px) {
  #cards-item-container {
    grid-template-columns: repeat(2, 1fr);
  }

  #section-header {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 814px) {
  #cards-item-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
