:root {
  --primary-color: rgb(183, 230, 235);
  --secondary-color: rgb(22, 211, 228);
  --dark-text: rgb(68, 68, 68);
}

body {
  background: linear-gradient(30deg, rgb(77, 77, 77), rgb(58, 58, 58));
  color: var(--dark-text);
}

#page-logo a {
  color: var(--primary-color);
}

#page-logo a:hover,
#page-logo a:focus {
  color: rgb(111, 218, 230);
}

header a {
  color: var(--primary-color);
  background-color: transparent;
}

header {
  position: static;
}

header a {
  color: var(--primary-color);
}

header nav a:hover,
header nav a:focus {
  background-color: rgb(183, 230, 235);
  color: rgb(59, 59, 59);
}
/*-----------Span Element------------*/
.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}
/*----------------MAIN----------------*/
main ul {
  width: 98%;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.25rem;
}

main ul li:nth-of-type(3) {
  grid-column: 1 / span 2;
}

main ul li:nth-of-type(8) {
  grid-column: 1 / span 2;
}

main li {
  display: flex;
  background-color: white;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

main li img {
  width: 18.75rem;
  height: 17.5rem;
  object-fit: cover;
}

.item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* main li p{
  text-align: justify;
} */

.item-content h2 {
  margin: 0;
}

.actions {
  text-align: right;
}

.actions a {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.375rem;
  transition: all 0.3s ease-in-out;
}

.actions a:hover,
.actions a:focus {
  background-color: rgb(235, 253, 255);
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/*----------Media-Queries------------*/

/****** Laptops and Large Screens ******/
@media (max-width: 84rem) {
  main li img {
    height: 100%;
    min-width: 17.5rem;
  }
}

/****** Tablets ******/
@media (max-width: 68.75rem) {
  main ul {
    width: 90%;
  }

  main li {
    flex-direction: column;
  }

  .item-content {
    height: 14rem;
  }

  main li img {
    height: 50%;
    width: 100%;
  }

  main ul li:nth-of-type(3) {
    height: 37rem;
  }

  main ul li:nth-of-type(3) img {
    width: 100%;
  }

  main ul li:nth-of-type(8) {
    height: 37rem;
  }
  main ul li:nth-of-type(8) img {
    width: 100%;
  }
}

/****** Small Tablets and Large Phones ******/
@media (max-width: 64rem) {
  /*1024px*/

  main ul {
    width: 40rem;
  }

  .item-content {
    height: 19rem;
  }

  main ul li:nth-of-type(3) {
    height: 40.5rem;
  }

  main ul li:nth-of-type(3) img {
    width: 40rem;
    height: 20rem;
  }

  main ul li:nth-of-type(8) {
    height: 42.5rem;
  }
  main ul li:nth-of-type(8) img {
    width: 40rem;
    height: 20rem;
  }
}

/****** Mobile Phones ******/
@media (max-width: 41rem) {
  /*768px*/

  main ul {
    width: 90%;
    max-width: 28rem;
  }

  .item-content {
    height: auto;
  }

  main ul li {
    grid-column: 1 / span 2;
  }

  main ul li:nth-of-type(3) {
    height: auto;
  }

  main ul li:nth-of-type(8) {
    height: auto;
  }

  main ul li:nth-of-type(3) img {
    width: 100%;
  }

  main ul li:nth-of-type(8) img {
    width: 100%;
  }

  .second-paragraph {
    display: none;
  }
}
