* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: grid;
  width: 100%;
  grid-template-rows: auto 1fr auto;
  font-family: "Poppins", sans-serif;
  background-color: black;
}

nav {
  padding-left: 0.5em;
  padding-right: 1em;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto auto auto auto auto auto auto;
  place-items: center;
  font-size: 20px;
  position: relative;
}

.smallerLogo {
  width: 150px;
}

a {
  text-decoration: none;
  color: rgb(235, 230, 230);
  padding: 0.8em;
}

a.acsb-sr-only {
  color: transparent !important;
}

.bookA {
  display: grid;
  place-items: center;
}

#qumaLogo {
  justify-self: start;
}

main {
  display: grid;
  width: 100%;
  grid-template-rows: auto auto;
  background-color: #fff;
  padding-top: 1.5em;
  justify-content: center;
}

.heading {
  display: grid;
  place-items: center;
}

.breakline {
  width: 7rem;
  height: 3px;
  background-color: #fcae12;
  margin-bottom: 1.5em;
}

h1 {
  color: #fcae12;
  padding-top: 0.1em;
  padding-bottom: 0.55em;
}

h2 {
  color: black;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-size: 24px;
}

p {
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 1em;
}

footer {
  background-color: black;
  margin-top: 1em;
  padding: 1em;
  display: grid;
  width: 100%;
  place-items: center;
}

.gold {
  color: #fcae12;
  font-weight: bold;
}

.productImg {
  padding-bottom: 0.75em;
  height: 350px;
}

.productOne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  margin-bottom: 2.5em;
  row-gap: 2rem;
  column-gap: 4rem;
}

.productOne.productInline {
  grid-template-columns: 1fr;
}

.books {
  display: grid;
  place-items: center;
  max-width: 480px;
  min-width: 310px;
}
.books.osbook {
    justify-self: end;
}

.books p {
  min-height: 80px;
}

.footP {
  color: rgb(235, 230, 230);
  padding-top: 0.75em;
  padding-bottom: 0.1em;
  font-size: 24px;
}

.subFooter {
  width: 70%;
  font-weight: bold;
  display: grid;
  place-items: center;
}

.mobile {
  display: none;
}

.mobileFooter {
  display: none;
}

.button {
  background-color: rgb(183, 125, 0);
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  display: inline-block;
  cursor: pointer;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: bold;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #ebebeb;
  width: 100%;
}

.cta-text {
  text-align: center;
  padding-top: 0;
}

@media only screen and (max-width: 1520px) {
  nav {
    font-size: 20px;
  }
}

@media only screen and (max-width: 1380px) {
  a {
    padding: 0.5em;
  }

  h2 {
    font-size: 20px;
  }
}

@media only screen and (max-width: 1300px) {
  nav {
    font-size: 18px;
  }

  .productImg {
    height: 310px;
  }

  .subFooter {
    width: 80%;
  }
}

@media only screen and (max-width: 1225px) {
  nav {
    font-size: 17px;
  }

  .productImg {
    height: 290px;
  }

  h2 {
    font-size: 18px;
  }

  .footP {
    font-size: 21px;
  }
}

@media only screen and (max-width: 1125px) {
  .footP {
    font-size: 20px;
  }

  nav {
    padding-right: 1.3em;
  }
}

@media only screen and (max-width: 1090px) {
  nav {
    padding-left: 0.2em;
    padding-right: 1.1em;
  }

  a {
    padding: 0.4em;
  }
}

@media only screen and (max-width: 1060px) {
  nav {
    font-size: 16px;
  }

  .productImg {
    height: 280px;
  }

  h1 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  h2 {
    font-size: 17px;
  }

  .footP {
    font-size: 18px;
  }
}

@media only screen and (max-width: 990px) {
  nav {
    font-size: 15px;
  }

  h2 {
    font-size: 16px;
  }
}

@media only screen and (max-width: 928px) {
  nav {
    font-size: 14px;
    padding-right: 1em;
  }

  .productImg {
    height: 270px;
  }

  .footP {
    font-size: 16px;
  }
}

@media only screen and (max-width: 860px) {
  nav {
    padding-right: 0.9em;
  }

  a {
    padding: 0.35em;
  }
}

@media only screen and (max-width: 840px) {
  nav {
    padding-left: 0.25em;
  }

  .productImg {
    height: 260px;
  }
}

@media only screen and (max-width: 820px) {
  nav {
    font-size: 12px;
    padding-right: 0.7em;
  }

  .productImg {
    height: 255px;
  }

  h2 {
    font-size: 15px;
  }

  .subFooter {
    width: 90%;
  }

  h1 {
    font-size: 26px;
  }
  .books.osbook {
    justify-self: center;
}
}

@media only screen and (max-width: 730px) {
  .productOne {
    grid-template-columns: none;
    grid-template-rows: 1fr 1fr;
  }

  .productOne.productInline {
    grid-template-columns: none;
    grid-template-rows: 1fr;
  }

  .productImg {
    height: 350px;
  }

  h2 {
    font-size: 22px;
  }

  .footP {
    font-size: 20px;
    padding-top: 8px;
  }

  .cpu {
    display: none;
  }

  .display {
    display: none;
  }

  .mobile {
    display: grid;
    place-items: center;
    padding: 0.5em 0.7em 0.5em 0.7em;
    margin-right: 1em;
    color: rgb(235, 230, 230);
    font-size: 24px;
  }

  .mobileFooter {
    display: grid;
    place-items: center;
    color: rgb(235, 230, 230);
  }

  li {
    font-size: 12px;
    list-style: none;
  }
  
  #onClick {
    position: absolute;
    top: 100%; /* Positions it directly below the nav */
    left: 0;
    width: 100%; /* Full width of the nav */
    background-color: black; /* Black background */
    z-index: 10; /* Ensure it appears above other elements */
    padding: 10px 0; /* Add some padding for better spacing */
}

/* Style the menu items for better appearance */
#onClick li {
    text-align: center; /* Center the menu items */
    padding: 10px 0; /* Add padding for better spacing */
}

/* Ensure the none class still works to hide the menu */
.none {
    display: none;
}
  
}

@media only screen and (max-width: 650px) {
  .productImg {
    height: 330px;
  }

  p {
    font-size: 17px;
  }
}

@media only screen and (max-width: 585px) {
  .mobile {
    margin-right: 0.25em;
  }

  .productImg {
    height: 320px;
  }

  p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 540px) {
  .mobile {
    margin-right: 0.15em;
  }

  li {
    font-size: 11px;
  }

  .subFooter {
    width: 98%;
  }

  p {
    font-size: 15px;
  }

  footer {
    padding: 0.7em;
  }
}

@media only screen and (max-width: 525px) {
  footer {
    padding: 0.5em;
  }

  .mobile {
    padding: 0.5em 0.15em 0.5em 0.15em;
  }

  .footP {
    font-size: 18px;
  }
}

@media only screen and (max-width: 500px) {
  .productImg {
    height: 300px;
  }

  p {
    font-size: 14px;
  }

  footer {
    padding-left: 0.1em;
    padding-right: 0.1em;
  }
}

@media only screen and (max-width: 480px) {
  .mobile {
    padding: 0.5em 0em 0.5em 0em;
    margin-right: 0em;
  }

  li {
    font-size: 10px;
  }

  .footP {
    font-size: 17px;
  }

  p {
    font-size: 13.5px;
  }
}

@media only screen and (max-width: 440px) {
  p {
    font-size: 13px;
  }

  .display {
    display: block;
  }

  #noClick {
    margin-right: 0.5em;
  }

  .none {
    display: none;
  }

  li {
    font-size: 11px;
  }
}

@media only screen and (max-width: 425px) {
  p {
    font-size: 12px;
  }

  footer {
    margin-top: 0.75em;
  }

  h2 {
    font-size: 20px;
  }
}

@media only screen and (max-width: 400px) {
  p {
    font-size: 11.5px;
  }

  footer {
    margin-top: 0.5em;
  }
}

@media only screen and (max-width: 380px) {
  .footP {
    font-size: 15.5px;
  }

  h2 {
    font-size: 19px;
  }

  li {
    font-size: 10px;
  }
}

@media only screen and (max-width: 370px) {
  p {
    font-size: 10.7px;
  }

  nav {
    padding-right: 0.3em;
  }
}
