@media only screen and (min-width: 760px) and (max-width: 1024px) {
  .social {
    top: 37%;
  }

  .story {
    left: 18%;
    width: 30vw;
  }

  #book {
    width: 65vw;
    height: 55vh;
  }

  /* h3 {
    font-size: 2vw !important;
  } */
  .p-res {
    font-size: 0.8vw !important;
  }

  .h5-res {
    font-size: 0.5em !important;
  }

  .promotion-card {
    width: 20vw;
    height: 16vw;
  }

  .promotion-card .promotion-content {
    padding: 0.5em;
  }

  .social ul {
    transform: translate(-240px, 0);
  }

  .social ul li {
    width: 274px;
  }

  .social-link {
    font-size: 12px !important;
  }

  .social ul li:hover .social-link {
    font-size: 12px;
  }

  .social ul li:hover {
    transform: translate(80px, 0);
  }
}

@media only screen and (min-width: 760px) and (max-width: 900px) {
  .story {
    top: 35%;
  }
}

/* Styles for smaller screens */
@media (max-width: 760px) {
  .restrictions-message {
    /* background-color: #44ab3e; */
    color: #ffffff;
    /* padding: 10px; */
    text-align: center;
    height: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* .social {
    display: none;
  } */
  /* #book,
  .story {
    display: none;
  } */

  /* warning screen*/
  .warning-body {
    background: black;
    background-color: #8e9cb6;
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

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

  .image {
    height: 175;
    width: 177;
  }

  .text {
    padding-left: 5rem;
    font-size: large;
  }

  .buttons {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
  }

  @keyframes opa {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* blured */

  #warning {
    filter: drop-shadow(0px 0px 10px red);
  }

  #Group7 {
    animation: opa 0.6s ease-in-out infinite alternate;
  }
}

@media only screen and (min-device-width: 480px) and (max-device-width: 915px) and (orientation: landscape) {

  .warning-body {
    background: black;
    background-color: #8e9cb6;
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

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

  .image {
    height: 175;
    width: 177;
  }

  .text {
    padding-left: 5rem;
    font-size: large;
  }

  .buttons {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
  }

  @keyframes opa {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* blured */

  #warning {
    filter: drop-shadow(0px 0px 10px red);
  }

  #Group7 {
    animation: opa 0.6s ease-in-out infinite alternate;
  }
}

@media only screen and (min-width: 640px) and (max-width:760px) {
  #book {
    width: 75%;
    height: 50%;
    user-select: none;
    perspective: 100vw;
  }

  .story {
    position: absolute;
    left: 15%;
    width: 35%;
    background-color: #d1d1d1;
    padding: 1%;
    border-radius: 2%;
    user-select: none;
  }

  .story p {
    font-size: 13px !important;
  }

  .story h1 {
    font-size: 15px !important;
  }

  .post h3 {
    font-size: 14px !important;
  }

  .h1,
  h1 {
    font-size: 12px !important;
  }

  p {
    font-size: 7px !important;
  }

  .promotion-card .promotion-content {
    color: white;
    max-width: 100%;
  }

  .promotion-card {
    width: 23vw;
    height: 21vw;
  }
}

@media only screen and (min-width: 511px) and (max-width:640px) {
  #book {
    width: 75%;
    height: 50%;
    user-select: none;
    perspective: 100vw;
  }

  .story {
    position: absolute;
    left: 15%;
    width: 35%;
    background-color: #d1d1d1;
    padding: 1%;
    border-radius: 2%;
    user-select: none;
  }

  .story p {
    font-size: 13px !important;
  }

  .story h1 {
    font-size: 14px !important;
  }

  .post h3 {
    font-size: 13px !important;
  }

  .h1,
  h1 {
    font-size: 11px !important;
  }

  p {
    font-size: 8px !important;
  }

  .promotion-card .promotion-content {
    color: white;
    max-width: 100%;
  }

  .pic-medium,
  .pic-medium {
    max-width: 10vw;
  }

  .promotion-card {
    width: 22vw;
    height: 24vw;
  }
}


/* Mobile responsive */
@media only screen and (max-width:510px) {
  .post h3:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 55px;
    background-color: #111;
  }
}

@media only screen and (min-width: 430px) and (max-width: 510px) {
  .story {
    position: absolute;
    left: 50%;
    top: 1%;
    width: 38vw;
    background-color: #d1d1d1;
    padding: 1%;
    border-radius: 2%;
    user-select: none;
  }

  .story p {
    font-size: 7px !important;
  }

  #book {
    width: 80vw;
    height: 45vh;
    perspective: 100vw;
    margin-top: 10%;
  }

  .post h3 {
    font-size: 11px !important;
  }

  #book h1 {
    font-size: calc(1.375rem + -2.5vw) !important;
  }

  .h1,
  h1 {
    font-size: calc(1.375rem + -1.5vw) !important;
  }

  p {
    font-size: 7px !important;
  }

  .link {
    font-size: 2.5vw;
  }

  .pic-medium,
  .pic-medium {
    max-width: 10.5vw;
  }

  .promotion-card {
    width: 22vw;
    height: 31vw;
  }

  .promotion-card .promotion-content {
    color: white;
    max-width: 100%;
  }
}


@media only screen and (min-width: 380px) and (max-width: 430px) {
  .story {
    position: absolute;
    left: 50%;
    top: 1%;
    width: 38vw;
    background-color: #d1d1d1;
    padding: 1%;
    border-radius: 2%;
    user-select: none;
  }

  .story p {
    font-size: 7px !important;
  }

  .bookcover:after {
    right: 5px !important;
  }

  #book {
    width: 85vw;
    height: 45vh;
    perspective: 120vw;
    margin-top: 10%;
    margin-left: 5%;
  }

  .post h3 {
    font-size: 10px !important;
  }

  .h1,
  h1 {
    font-size: 12px !important;
  }

  p {
    font-size: 6px !important;
  }

  .promotion-card {
    width: 24vw;
    height: 33vw;
  }

  .promotion-card h5 {
    font-size: 10px !important;
  }

  .promotion-card p {
    font-size: 7px !important;
  }

  .promotion-card .promotion-content {
    color: white;
    /* padding: 0.8em; */
    max-width: 100%;
  }

  .link {
    font-size: 2.5vw;
  }

  .pic-medium,
  .pic-medium {
    max-width: 12.5vw;
  }
}

/* Height Adjustment */
@media only screen and (max-width:548px) and (min-width:530px) {
  #book {
    width: 90%;
    height: 54%;
    user-select: none;
    perspective: 100vw;
  }
}

@media only screen and (max-height:459px) {
  .story {
    position: absolute;
    left: 17%;
    top: 20%;
    width: 27vw;
    height: 60%;
  }

  #book {
    width: 75%;
    height: 85%;
    perspective: 120vw;
    margin-top: 0%;
    margin-left: 5%;
  }
}

@media only screen and (min-width:300px) and (max-width:380px) {

  #book {
    width: 80vw;
    height: 50vh;
    user-select: none;
    perspective: 100vw;
  }

  .story {
    position: absolute;
    left: 55%;
    width: 38vw;
    background-color: #d1d1d1;
    padding: 1%;
    border-radius: 2%;
    user-select: none;
    top: 5%;
  }

  .story h1 {
    font-size: 12px !important;
  }

  .story p {
    font-size: 7px !important;
  }

  .bookcover .title .small {
    font-size: 11px !important;
  }

  .bookcover:after {
    right: 0% !important;
  }
}

@media screen and (max-height: 375px) {
  .story p {
    font-size: 9px !important;
  }

  .story h1 {
    font-size: 11px !important;
  }
}

@media screen and (max-height: 540px) {
  #book {
    height: 80%;
  }
}

@media screen and (max-height: 390px) {
  #book {
    height: 95%;
  }

  .dm-img {
    /* display: none !important; */
  }
}

@media screen and(max-height: 380px) {
  .promotion-card {
    width: 23vw !important;
    height: 18vw !important;
  }
}

@media screen and (max-height: 420px) {
  .story {
    position: absolute;
    left: 17%;
    top: 20%;
    width: 25vw;
    height: 65%;
  }

  .story p {
    font-size: 9px !important;
  }

  .story h1 {
    font-size: 11px !important;
  }

  .promotion-card {
    width: 20vw;
    height: 12vw;
    padding-top: 15px;
  }

  .img-res {
    display: none !important;
  }
}

@media screen and (max-height: 399px) {
  .story {
    position: absolute;
    left: 17%;
    top: 20%;
    width: 27vw;
    height: 70%;
  }

  .story p {
    font-size: 9px !important;
  }

  .story h1 {
    font-size: 11px !important;
  }

  .promotion-card {
    width: 23vw;
    height: 15vw;
  }

  .w-75 {
    width: 40% !important;
  }

  .img-res {
    display: none !important;
  }
}

@media screen and (min-height: 377px) and (max-height:390) {
  .promotion-card {
    width: 23vw;
    height: 12vw;
  }
}

@media screen and (min-height: 590px) and (max-height:610px) {
  #book {
    width: 65vw;
    height: 75vh !important;
  }

  #book>p {
    font-size: 6px !important;
  }
}

@media screen and (max-width: 790px) {
  .social {
    top: 2%;
  }

  .bookcover {
    padding-left: 10px;
  }

  .logo {
    position: absolute;
    top: 6%;
    left: 22%;
    background-color: white;
    border-radius: 4px;
  }
}

@media screen and (max-height: 376px) {
  .social {
    display: none !important;
  }
}

@media screen and (max-height: 450px) {
  .dm-img {
    /* display: none !important; */
  }
}

@media screen and (max-width:950px) {
  .post>p {
    padding: 3px 0px 7px 13px !important;
    margin-bottom: 0rem !important;
    padding-bottom: 0px !important;
  }
}

@media screen and (min-width: 368px) and (max-width:380px) {
  .promotion-card {
    width: 25vw;
    height: 29vw;
  }

  .promotion-card .promotion-content {
    max-width: 100%;
  }

  .promotion-content>h5 {
    font-size: 11px !important;
  }

  .promotion-content>p {
    font-size: 6px !important;
  }

  p {
    font-size: 5px !important;
  }

  .pic-medium {
    max-width: 10.5vw;
  }

  .post h3:before {
    height: 2px;
    width: 28px;
  }

  .post h3:after {
    left: 0;
    bottom: 1px;
  }
}

@media only screen and (min-width: 847px) and (max-width:855px) {
  .promotion-card {
    width: 19vw;
    height: 12vw;
  }
}

@media only screen and (min-width: 1015px) and (max-width:1030px) {
  .promotion-card {
    width: 19vw;
    height: 17vw;
  }

  p {
    font-size: 11px !important;
  }

  .promotion-content>p {
    font-size: 8px !important;
  }
}

@media only screen and (min-width: 390px) and (max-width:399px) {
  .pic-medium {
    max-width: 11.3vw !important;
  }
}





@media screen and (max-width:700px) {
  p.bullet:before {
    display: inline-block;
    content: "";
    -webkit-border-radius: 0.375rem;
    border-radius: 0.375rem;
    height: 0.35rem;
    width: 0.35rem;
    margin-right: 0.5rem;
    background-color: #c9ced8;
  }
}

@media screen and (max-width:650px) {
  p.bullet:before {
    display: inline-block;
    content: "";
    -webkit-border-radius: 0.375rem;
    border-radius: 0.375rem;
    height: 0.25rem;
    width: 0.25rem;
    margin-right: 0.5rem;
    background-color: #c9ced8;
  }
}

@media screen and (max-width:420px) {
  .specific img {
    height: 27px;
    top: 1px;
  }
}



@media screen and (max-width:420px) {
  .post>p {
    /* padding: 10px 0px 10px 15px; */
    padding: 7px 7px 7px 15px;
    margin: 0px;
    text-align: justify;
    line-height: 8px;
  }

  #book {
    height: 55%;
    margin-top: 50%;
    margin-left: 7%;
  }

  .bookcover .title .small {
    font-size: 6px;
    line-height: 160%;
    font-weight: 400;
    font-style: italic;
    font-family: "Merriweather", serif;
    padding-left: 2px;
    color: #ccc;
  }


  .w-50 {
    line-height: 1px;
    display: flex !important;
    flex-direction: column !important;
    width: 200px !important;
  }
}

@media screen and (max-height: 399px) {
  .story {
    position: absolute;
    left: 17%;
    top: 20%;
    width: 27vw;
    height: 70%;
  }

  .story p {
    font-size: 9px !important;
  }

  .story h1 {
    font-size: 11px !important;
  }

  .promotion-card {
    width: 23vw;
    height: 13vw;
  }

  .w-75 {
    width: 40% !important;
  }

  .img-res {
    display: none !important;
  }
}

@media screen and (max-width:330px) {
  .promotion-card h5 {
    font-size: 7px !important;
    margin-top: 10px;
  }

  .promotion-card p {
    font-size: 6px !important;
  }

  #book {
    height: 55%;
    margin-top: 50%;
    margin-left: 7%;
  }

}

@media screen and (max-height:415px) and (orientation: landscape) {

  p.bullet:before {
    display: inline-block;
    content: "";
    -webkit-border-radius: 0.375rem;
    border-radius: 0.375rem;
    height: 0.25rem;
    width: 0.25rem;
    margin-right: 0.5rem;
    background-color: #c9ced8;
  }
}


@media screen and (max-width:380px) {
  .gappspecific img {
    gap: 0.3rem !important;
    height: 20px;
  }

  .promotion-card-deck {
    display: flex;
    gap: 0.3em;
    position: absolute;
    top: 45%;
    z-index: 1111;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
  }

  .bookcover .title .small {
    font-size: 7px !important;
    line-height: 160%;
    font-weight: 400;
    font-style: italic;
    font-family: "Merriweather", serif;
    padding-left: 0px;
    color: #ccc;
  }

  #book {
    height: 55%;
    margin-top: 50%;
    margin-left: 7%;
  }

  .post>p {
    /* padding: 10px 0px 10px 15px; */
    padding: 7px 0px 7px 15px;
    margin: 0px;
    text-align: justify;
    line-height: 9px;
  }
}

@media screen and (min-height: 370px) and (max-height:380px) {
  .post>p {
    /* padding: 10px 0px 10px 15px; */
    padding: 7px 0px 7px 15px;
    margin: 0px;
    text-align: justify;
    line-height: 7px !important;
  }

  .w-50 p {
    margin-bottom: 0.3rem !important;
  }

  /* .promotion-content .p-res {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 7px !important;
  } */
}

@media only screen and (min-width: 630px) and (max-width:635px) {
  .gappspecific img {
    gap: 0.01rem !important;
  }
}

@media only screen and (min-width: 1020px) and (max-width:1030px) {
  #book {
    width: 65vw;
    height: 70vh;
  }
}

@media only screen and (min-width:350px) and (max-width:375px) {
  .fw-bold {
    font-weight: 700!important;
    font-size: 7px !important;
}
.promotion-card .promotion-content {
  color: white;
  padding: 0.8em;
  max-width: 100%;
  position: relative;
  z-index: 2;
  margin-top:16px;
}

.p-res{
  margin-top: 0;
  margin-bottom: 1rem;
}

.h5-res{
  padding-bottom: 0;
  margin-bottom: 0; 
 }

 .promotion-card {
  font-family: "Montserrat", sans-serif;
  background: #6dc97ceb;
  width: 20vw;
  height: 18vw;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: 0.8s ease;
  align-items: center;
}
}

@media only screen and (min-width:475px) and (max-width:490px) {
.fw-bold {
  font-weight: 500!important;
  font-size: 10px !important;
}

.promotion-card {
  font-family: "Montserrat", sans-serif;
  background: #6dc97ceb;
  width: 18vw;
  height: 25vw !important;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: 0.8s ease;
  align-items: center;
}

#book {
  width: 90vw;
  height: 45vh;
  perspective: 100vw;
  margin-top: 10%;
}
}

@media only screen and (min-width:373px) and (max-width:392px) {
 .pb-0{
    width: 90px !important;
}
}