/*  todo Importing fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --desktop-body-color: #ebebeb;
  --desktop-container-color: #f5f6f8;
  --font-color: #0d1833;
  --button-color: #0071e5;
  --checkbox-color: #ebebeb;
  --result-subname-font-weight: semibold;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Poppins, sans-serif;
  width: 100%;
  height: 100vh;
  background-color: var(--desktop-body-color);
  display: flex;
  justify-content: center;
  color: var(--font-color);
}
main {
  width: 60%;
  background-color: var(--desktop-container-color);
  margin: 2.2rem 0;
  border: 2px solid rgba(0, 0, 0, 16%);
  border-radius: 50px;
}
main h1 {
  /* border: 1px solid black; */
  text-align: center;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: 2rem;
}
main p {
  /* border: 1px solid black; */
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: regular;
}
div#checkboxes {
  /* border: 1px solid black; */
  width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  margin: 1rem 8.5rem;
}
div.subjects {
  /* border: 1px solid black; */
  display: flex;
  align-items: center;
  gap: 8px;
}
div.checkbox {
  /* border: 1px solid black; */
  position: relative;
  display: flex;
  align-items: center;
  margin: 1rem 0.5rem;
}
/* todo to hide browser default checkbox */
div.checkbox input {
  position: relative;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
/* todo to style our custom checkbox */
div.checkbox span.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--checkbox-color);
  border-radius: 4px;
}
/* todo On mouse-over our labels, add a cursor pointer */
div.subjects label:hover {
  cursor: pointer;
  font-weight: 600;
}
/* todo When the checkbox is checked, add a blue background */
div.checkbox input:checked ~ .checkmark {
  background-color: var(--button-color);
}
/* todo When the checkbox is checked, add a checkmark icon */
span.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
/* todo When the checkbox is checked, show the checkmark */
div.checkbox input:checked ~ span.checkmark:after {
  display: block;
}
/* todo Style the checkmark/indicator (hidden when not checked) */
div.checkbox span.checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* todo aligning button to center */
div.btn {
  /* border: 1px solid black; */
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
/* todo styling the button */
div.btn button {
  padding: 1rem 8.5rem;
  border: none;
  border-radius: 40px;
  background-color: var(--button-color);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: poppins;
}
/* todo adding transition on hover */
div.btn button:hover {
  transform: scale(1.1);
}
/* todo styling the output area */
div.op-area {
  display: none;
  border: 1px solid black;
  border-radius: 20px;
  background-color: #ffffff;
  margin: 1rem 1.5rem;
}
div.op-area h4 {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
}
div.op-area ul {
  font-size: 0.9rem;
  margin-left: 2.5rem;
}
@media only screen and (max-width: 600px) {
  body {
    background-color: var(--desktop-container-color);
    overflow: scroll;
  }
  main {
    border: 10px solid black;
    width: 100vw;
    height: 100vh;
    border: none;
    margin: 0;
    padding: 0;
    background-color: var(--desktop-container-color);
  }
  main h1 {
    /* border: 1px solid black; */
    font-size: 1.2rem;
  }
  main p {
    /* border: 1px solid black; */
    padding: 0 1.5rem;
    font-size: 0.8rem;
  }
  div#checkboxes {
    /* border: 1px solid black; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 1rem 4rem;
  }
  div.subjects {
    /* border: 1px solid black; */
    gap: 2px;
  }
  div.subjects label {
    font-size: 0.7rem;
  }
  /* todo aligning button to center */
  div.btn {
    /* border: 1px solid black; */
    margin: 0;
  }
  /* todo styling the button */
  div.btn button {
    padding: 0.5rem 5rem;
    transition: none;
    font-size: 0.8rem;
    font-family: poppins;
  }
  /* todo adding transition on hover */
  div.btn button:hover {
    transform: none;
  }
  /* todo styling the output area */
  div.op-area h4 {
    font-size: 0.8rem;
  }
  div.op-area ul {
    font-size: 0.7rem;
  }
}
@media only screen and (min-width: 600px) and (max-width: 767px) {
  body {
    background-color: var(--desktop-container-color);
    overflow: scroll;
  }
  main {
    border: 10px solid black;
    width: 100vw;
    height: 100vh;
    border: none;
    margin: 0;
    padding: 0;
    background-color: var(--desktop-container-color);
  }
  main h1 {
    /* border: 1px solid black; */
    font-size: 1.2rem;
  }
  main p {
    /* border: 1px solid black; */
    padding: 0 2.5rem;
    font-size: 0.8rem;
  }
  div#checkboxes {
    /* border: 1px solid black; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 1rem 4rem;
  }
  div.subjects {
    /* border: 1px solid black; */
    gap: 2px;
  }
  div.subjects label {
    font-size: 0.7rem;
  }
  /* todo aligning button to center */
  div.btn {
    /* border: 1px solid black; */
    margin: 0;
  }
  /* todo styling the button */
  div.btn button {
    padding: 0.5rem 5rem;
    transition: none;
    font-size: 0.8rem;
    font-family: poppins;
  }
  /* todo adding transition on hover */
  div.btn button:hover {
    transform: none;
  }
  /* todo styling the output area */
  div.op-area h4 {
    font-size: 0.8rem;
  }
  div.op-area ul {
    font-size: 0.7rem;
  }
}
@media only screen and (min-width: 767px) and (max-width: 992px) {
  main {
    width: 90%;
  }
  main h1 {
    /* border: 1px solid black; */
    margin-top: 1rem;
    font-size: 1.2rem;
  }
  main p {
    /* border: 1px solid black; */
    font-size: 0.8rem;
  }
  div#checkboxes {
    /* border: 1px solid black; */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0.5rem 4rem;
  }
  div.subjects label {
    font-size: 0.7rem;
  }
  /* todo aligning button to center */
  div.btn {
    /* border: 1px solid black; */
    margin: 0;
  }
  /* todo styling the button */
  div.btn button {
    padding: 0.5rem 6rem;
    transition: none;
    font-size: 0.8rem;
    font-family: poppins;
  }
  /* todo adding transition on hover */
  div.btn button:hover {
    transform: none;
  }
  /* todo styling the output area */
  div.op-area h4 {
    font-size: 0.8rem;
  }
  div.op-area ul {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
}
@media only screen and (min-width:992px) and (max-width:1439px){
  main {
    width: 80%;
  }
  main p {
    /* border: 1px solid black; */
    font-size: 0.9rem;
  }
  div#checkboxes {
    /* border: 1px solid black; */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0.5rem 4rem;
  }
  div.subjects label {
    font-size: 0.8rem;
  }
  /* todo aligning button to center */
  div.btn {
    /* border: 1px solid black; */
    margin: 0;
  }
  /* todo styling the button */
  div.btn button {
    padding: 0.5rem 6rem;
    font-size: 0.8rem;
    font-family: poppins;
  }
  /* todo styling the output area */
  div.op-area h4 {
    font-size: 0.8rem;
  }
  div.op-area ul {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
}