* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
/* font-family: 'BioRhyme', serif;
font-family: 'Cormorant', serif;
font-family: 'League Spartan', sans-serif; */
body {
  width: 100vw;
  overflow-y: scroll;
}
body::-webkit-scrollbar {
  display: none;
}
.navbar {
  width: 100%;
  height: 5rem;
  position: relative;
}
.navbar video {
  width: 100%;
  height: 5rem;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}
.title {
  text-align: center;
  padding: 0.5rem 1rem;
  /* font-family: "Cormorant", serif; */
  width: 100vw;
  background-image: linear-gradient(
    to right,
    rgb(36, 34, 34),
    rgb(28, 49, 165)
  );
  font-size: 55px;
  mix-blend-mode: overlay;
  color: #fff;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
}
@media all and (min-width: 200px) and (max-width: 450px) {
  .title {
    font-size: 32px;
  }
  .navbar video {
    height: 50px;
  }
}

main {
  height: 100dvh;
}
#newslist {
  margin: auto;
  width: 60dvw;
}
@media all and (min-width: 710px) and (max-width: 1100px) {
  #newslist {
    width: 70dvw;
  }
}
@media all and (min-width: 450px) and (max-width: 710px) {
  #newslist {
    width: 80dvw;
  }
}
@media all and (min-width: 200px) and (max-width: 450px) {
  #newslist {
    width: 90dvw;
  }
}
#newslist > div {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(8, 28, 177, 0.389);
  cursor: pointer;
}
#newslist > div > img {
  width: 100%;
  height: 25rem;
}
#newslist > div > h1 {
  text-align: center;
  font-size: 30px;
  font-family: "BioRhyme", serif;
  padding: 1rem 0;
}
#newslist > div > :nth-child(3) {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  padding: 0.5rem 0.3rem;
}

#newslist > div > p {
  font-family: "Cormorant", serif;
  padding: 1rem 0.3rem 2rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 50%;
  height: 99dvh;
  z-index: 10;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}
.modal-content > div {
  position: absolute;
  top: 1rem;
  left: 0;
  bottom: 1rem;
  translate: transform(-50%, 50%);
}
.modal-content > div > img {
  margin: auto;
  width: 100%;
  height: 40dvh;
}
.modal-content > div > div {
  height: 40dvh;
  box-shadow: 0 2px 10px rgba(45, 69, 252, 0.915);
  padding: 0.6rem 0.5rem 1rem;
  background-color: #fff;
  color: rgba(130, 27, 186, 0.815);
  overflow-y: scroll;
  scroll-behavior: smooth;
}
.modal-content > div > div::-webkit-scrollbar {
  display: none;
}
@media all and (min-width: 710px) and (max-width: 1100px) {
  .modal-content {
    width: 70%;
  }
}
@media all and (min-width: 450px) and (max-width: 710px) {
  .modal-content {
    width: 80%;
  }
}
@media all and (min-width: 200px) and (max-width: 450px) {
  .modal-content {
    width: 90%;
  }
}
/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  color: rgb(246, 5, 5);
  font-size: 35px;
  font-weight: bolder;
}

.close:hover,
.close:focus {
  color: #ab2d2d;
  text-decoration: none;
  cursor: pointer;
}

.btnpagi {
  padding: 1rem 0 2rem 0;
  width: 20%;
  margin: auto;
  display: flex;
  gap: 8px;
}

button {
  display: block;
  margin: auto;
  width: fit-content;
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  color: azure;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 1rem;
  background-image: linear-gradient(
    to right,
    rgb(36, 34, 34),
    rgb(28, 49, 165)
  );
}
@media all and (min-width: 200px) and (max-width: 710px) {
  .btnpagi {
    padding: 0.5rem 0 0.1rem 0;
    width: 50%;
    margin: auto;
    display: flex;
    gap: 8px;
  }
  button {
    margin: auto;
    width: fit-content;
    font-family: "League Spartan", sans-serif;
    font-size: 1rem;
    color: azure;
    padding: 0.2rem 0.5rem;
  }
}

.spinner-box {
  scroll-behavior: none;
  width: 400px;
  height: 80dvh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.configure-border-1 {
  width: 115px;
  height: 115px;
  padding: 3px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fb5b53;
  animation: configure-clockwise 3s ease-in-out 0s infinite alternate;
}

.configure-border-2 {
  width: 115px;
  height: 115px;
  padding: 3px;
  left: -115px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(63, 249, 220);
  transform: rotate(45deg);
  animation: configure-xclockwise 3s ease-in-out 0s infinite alternate;
}

.configure-core {
  width: 100%;
  height: 100%;
}

@keyframes configure-clockwise {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes configure-xclockwise {
  0% {
    transform: rotate(45deg);
  }
  25% {
    transform: rotate(-45deg);
  }
  50% {
    transform: rotate(-135deg);
  }
  75% {
    transform: rotate(-225deg);
  }
  100% {
    transform: rotate(-315deg);
  }
}
