@media (min-width: 600px) {
  .cat_cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .news {
    margin-top: -50px;
  }
  .pyramids_H1 {
    justify-content: space-between;
  }

  .pagesH1 {
    max-width: 35%;
    border-bottom: 4px solid #f7d590;
  }
  .contact_section .round_container {
    width: 65%;
  }
}
@media (min-width: 1100px) {
  .cat_cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .contact_section .round_container {
    min-width: 85%;
  }
  .popup_info,
  .popup_info2 {
    width: 190px;
  }
}
@media (max-width: 1200px) {
  .news_cards {
    padding: 0;
  }
}
@media (max-width: 850px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: inline;
  }
  .detail_mobile {
    display: block;
  }
  .detail_card {
    flex-direction: column;
  }

  .detail_card #text,
  .detail_card div:nth-child(2) {
    width: auto;
    text-align: center;
  }
  .detail_card .hide_father,
  .detail_card .hide_mother {
    top: 78%;
  }
  div#image {
    width: 100%;
  }
}
@media (min-width: 850px) {
  div#image {
    width: 50%;
  }
}
@media (max-width: 1100px) {
  .general_margin,
  .footer_cols {
    margin: 2% 4%;
  }
  .news_cards {
    padding: 0;
  }

  .adoption_section4 img {
    display: none;
  }
  .adoption_section4 {
    padding: 0 7%;
  }
  .modal-content {
    width: 90%;
  }
  .close {
    left: 90%;
    top: 8%;
  }
}
@media (min-width: 900px) {
  .news_cards {
    grid-template-columns: repeat(2, 1fr);
    /* grid-gap: 20px; */
  }
  .adoption_section2 div {
    max-width: 50%;
  }
  .card {
    padding: 30px 50px;
  }
  .adoption_section2.round_container {
    margin-left: 0;
  }
}
/* Tablet layout fixes */
@media only screen and (max-width: 900px) {
  nav a {
    font-weight: normal;
  }
  .card {
    padding: 30px;
  }
  #nav_right {
    display: none;
  }

  .mobile_nav_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
  }
  .menu-items {
    display: flex;
  }
  .mobile_nav_container li {
    list-style: none;
  }
  .mobile_nav_container a {
    text-decoration: none;
    color: #f7d590;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.7rem;
  }
  .mobile_nav_container a:hover {
    font-weight: bolder;
  }
  .mobile_nav_container {
    display: block;
    position: relative;
    height: 60px;
    width: 100%;
  }
  .mobile_nav_container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 7px;
    right: 5px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }
  .mobile_nav_container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 15px;
    right: 5px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: #f7d590;
  }
  .mobile_nav_container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }
  .mobile_nav_container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }
  .mobile_nav_container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }
  .menu-items {
    padding-top: 120px;
    /* box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0.5); */
    height: 100vh;
    width: 100%;
    transform: translate(-250%);
    display: flex;
    flex-direction: column;
    margin-left: -100px;
    padding-right: 120px;
    padding-left: 70px;
    transition: transform 0.5s ease-in-out;
    text-align: center;
  }
  .menu-items li {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
  }
  .mobile_nav_container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
    background-color: #2c2c2c;
  }
  .mobile_nav_container
    input[type="checkbox"]:checked
    ~ .hamburger-lines
    .line1 {
    transform: rotate(45deg);
  }
  .mobile_nav_container
    input[type="checkbox"]:checked
    ~ .hamburger-lines
    .line2 {
    transform: scaleY(0);
  }
  .mobile_nav_container
    input[type="checkbox"]:checked
    ~ .hamburger-lines
    .line3 {
    transform: rotate(-45deg);
  }
  .mobile_nav_container input[type="checkbox"]:checked ~ .logo {
    display: none;
  }

  .pyramids_H1 img {
    max-height: 70px;
  }
  .adoption_section2 img {
    display: none;
    /* max-height: 250px;
    margin-left: -90px;
    margin-right: -50px; */
  }
  .adoption_section2.round_container {
    background-color: white;
    border: 1px solid #9a9a9a;
  }
  .adoption_section2.round_container div.round_container {
    border: none;
    padding: 0;
  }
  .adoption_section2.round_container {
    padding: 30px;
  }
  .adoption_section2 div {
    min-width: 65%;
  }

  .info_container {
    max-width: 90%;
    margin-left: 10%;
    margin-right: 10%;
  }

  .about_section {
    flex-direction: column;
    row-gap: 30px;
    align-items: center;
  }
  .about_section2 img {
    display: none;
  }
  .about_section2 {
    padding: 0;
  }
  .divider {
    height: 80px;
  }
  .card {
    max-width: 450px;
  }
  .contact_section img:not(.round_container img) {
    display: none;
  }
  .ourCatP {
    max-width: 80%;
  }
}

@media (max-width: 1250px) {
  .contact_info_container {
    grid-template-rows: auto;
    grid-template-columns: auto;
  }
  .contact_info_container {
    justify-content: center;
  }
  .contact_info_container div {
    display: inline-flex;
    align-items: center;
    gap: 20px;
  }
  .contact_info_container div p {
    text-align: left;
  }
  #nav_right {
    width: 77%;
  }
  #nav_right a img {
    max-width: 26px;
    max-height: 12px;
    margin-right: 4px;
  }
  #nav_right a img.adopt_icon {
    max-width: 18px;
  }
}
@media (min-width: 1250px) {
  .contact_info_container div {
    justify-self: center;
  }
}
@media only screen and (max-width: 700px) {
  .cat_img {
    margin-bottom: 20%;
  }
  .btn_container {
    width: 165%;
    margin-top: 25%;
  }
  .text-container {
    margin-top: 15%;
  }
  .text-container p:nth-child(2) {
    line-height: 33px;
  }
  .btn_container button {
    font-size: 14px;
    margin: auto 10px;
  }
  .baner {
    align-items: flex-start;
  }
  .modalImg {
    display: none;
  }
  .modal_container form,
  .succeseful_message {
    margin-top: 25px;
    width: 88%;
  }
  .succeseful_message.center {
    margin-top: 18%;
  }
  .close {
    left: 80%;

    padding-left: 5%;
  }
}
@media (max-width: 1500px) and (min-width: 900px) {
  .adoption_section2.round_container {
    margin-left: 42px;
  }
}
/* Mobile */
@media only screen and (max-width: 450px) {
  nav a {
    font-weight: normal;
  }
  .pyramids_paragraph img,
  .pyramid {
    display: none;
  }
  .our_kingdom_container p {
    max-width: 90%;
  }
  .news_cards {
    margin: 2% 7%;
  }
  .card img {
    max-width: 270px;
  }
  .ourCatP {
    min-width: 100%;
  }
}
