* {
  font-family: "Amiri", serif;
}

:root {
  --primary-bg: #e2ddd9;
  --primary-text: #00008b;
  --accent-color: #d4af37;
  /*buttons*/
  --secondary-bg: #f7f7f7;
  --third-bg: #342f73;
  --places-bg: #14104e;
  --secondary-text: #ffffff;
  --chat-bubble-person1: #d4af37;
  --chat-bubble-person2: #d4d5d6;
  --placeholder-color: #8b0000;
  --border-color: #ddd;
  --white-color: #ffffff;
}

.dark-theme {
  --primary-bg: #1e1e1e;
  --primary-text: #f5f5f5;
  --accent-color: #ff7e67;
}

header {
  background-color: var(--third-bg);
  color: var(--white-color);
}

body {
  position: relative;
  background-color: var(--places-bg);
  font-size: 1rem !important;
}

/* Media queries for tablets */
@media (max-width: 768px) {

  .places-page-content h1 {
    font-size: 4.5vw;
  }

  .places-page-content h2 {
    font-size: 3.8vw;
  }

  .places-page-content h3 {
    font-size: 3.3vw;
  }

  .places-page-content h4 {
    font-size: 2.8vw;
  }

  .places-page-content h5 {
    font-size: 2.3vw;
  }

  .places-page-content h6 {
    font-size: 2vw;
  }

  .places-page-content p {
    font-size: 1.8vw;
  }
}

/* Media queries for mobile devices */
@media (max-width: 480px) {
  .places-page-content h1 {
    font-size: 6vw;
  }

  .places-page-content h2 {
    font-size: 5vw;
  }

  .places-page-content h3 {
    font-size: 4.2vw;
  }

  .places-page-content h4 {
    font-size: 3.5vw;
  }

  .places-page-content h5 {
    font-size: 3vw;
  }

  .places-page-content h6 {
    font-size: 2.5vw;
  }

  .places-page-content p {
    font-size: 2.2vw;
  }
}

/* text */

/* .places-page-content h1 {
  font-size: 2.5rem !important;
}

.places-page-content p {
  font-size: 1.2rem !important;
} */

.background-image {
  height: 65vh;
  background-image: url("../images/backgrounds/pngtree-image-of-an-ancient-egyptian-temple-with-columns-on-floor-picture-image_2672557.jpg");
  /* Replace with your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: -1;
}

.background-image::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 10px;
  background: var(--places-bg);
  bottom: -10px;
  left: 0;
  box-shadow: 10px 10px 40px 50px var(--places-bg);
}

.title-for-landing-places {

  width: 100%;
  background-color: var(--places-bg);
  color: var(--white-color);
  font-weight: bold;
}

.title-for-landing-places h1 {
  font-family: "Cairo", sans-serif !important;
  font-size: 3.5rem !important;
}

@media (max-width: 768px) {
  .title-for-landing-places h1 {
    font-size: 3rem !important;
  }
}

@media (max-width: 480px) {
  .title-for-landing-places h1 {
    font-size: 2.5rem !important;
  }
}

.introduction-for-places p {
  color: var(--white-color);
  font-size: 20px;
  line-height: 3rem;
  font-family: "Cairo", sans-serif !important;
}

.introduction-for-places {
  position: relative;
}

.introduction-for-places .islamic {
  position: absolute;
  max-width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#places {
  padding: 50px 0px;
}

#places h1 {
  color: var(--white-color);
  font-family: "Cairo", sans-serif !important;
}

#places h3 {
  color: var(--white-color);
  font-family: "Cairo", sans-serif !important;
}

.rightline {
  display: flex;
}

.leftline {
  display: flex;
  justify-content: flex-end;
}

.lineHead {
  border: 1px solid var(--white-color);
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 0;
  height: 7px;
  position: absolute;
  transform-origin: 0 0;
  transform: translateY(0.5px) rotate(-45deg);
  width: 7px;
  background-color: var(--places-bg);
}

.leftline .lineHead-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(-90deg, var(--white-color), var(--places-bg));
}

.rightline .lineHead-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--white-color), var(--places-bg));
}

.places img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
  /* Smooth transition for hover */
  border-radius: 5px;
}

.ancient-place {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.5s ease;
  border-radius: 5px;
}


.ancient-place:hover {
  transform: scale(1.1);
}

/* .place-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: 30px;
  border: solid 2px var(--white-color);
  opacity: 0;
  transition: all 0.8s ease-in-out;
  width: 0;
  padding: 0;
  margin: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ancient-place:hover .place-title {
  width: calc(100% - 25px);
  height: calc(100% - 25px);
  opacity: 1;
} */

.place-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: 30px;
  border: solid 2px var(--white-color);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  width: calc(100% - 55px);
  padding: 0;
  margin: 0;
  height: calc(100% - 55px);
  display: flex;
  align-items: center;
  justify-content: center;
}


.ancient-place:hover .place-title {
  opacity: 1;
}

.ancient-place::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.5s ease-in-out;
  border-radius: 5px;
}

.ancient-place:hover::before {
  background: rgba(0, 0, 0, 0.7);
}



footer .copy .lineHead {
  top: 0;
}