* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  text-align: right;
  font-family: sans-serif;
  overflow: hidden;
  background-color: rgba(244, 241, 232, 0.64);
}

@font-face {
    font-family: 'mitra';
    src: url(fonts/SI47ASH_MitraDeformed.ttf);
    font-weight: normal;
    
}

.container{
  display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}

/* ========== HEADER ========== */

.header {
  /* background-image: url(image/Path\ 7.svg); */
  background-repeat: repeat-x;
  background-size: contain;
  background-position: center;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 5vw;
  /* min-height: 90px; */
}
.header img{
  width: 100%;
    height: 12vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

h1 {
  font-family: 'mitra';
  color: white;
  font-size: 1.7rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white url(image/logo31.png) center/contain no-repeat;
}

/* ========== MAIN ========== */

.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  padding: 40px 5vw;
  /* flex-wrap: wrap; */
}

.villa-image {
  width: 300px;
  height: 300px;
  border-radius: 30px;

  background: center/cover no-repeat;
}

/* ===== TRIANGLES ===== */

.wrap {
display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: -10px;
    flex-direction: column;
    width: 600px;
    height: 400px;
    justify-content: flex-end;
}

/* common triangle */
.triangle,
.triangle-up {
  width: 120px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 10px;
  margin-left: -40px;

}

/* down triangle */
.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 15px;
}

/* up triangle */
.triangle-up {
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  display: flex;
  align-items: flex-start;
}

/* images inside triangles */
.triangle img {
  width: 100px;
  height: auto;
}
.triangle-up img {
  width: 70px;
  height: auto;
}



/* COLORS */
#light { background: rgba(164, 180, 196, 0.73); }
#alachiq { background: rgba(107, 75, 62, 0.73); }
#pool { background: rgba(0, 230, 255, 0.27); }
#fireplace { background: rgba(224, 90, 90, 0.83); }

/* ========== FOOTER ========== */

.footer{
  display: flex;
  height: 15vh;
}

.footer img {
  width: 100%;
  height: 15vh;
  display: block;
  position: absolute;
  bottom: -10;
  left: 0;
  z-index: -1;
}
.footer a{
  align-content: center;
}

a{
  text-decoration: none;
  color: white;
  margin-right: 2%;
  font-size: .7rem;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1050px) {
  .main-container {
    /* flex-direction: column; */
    align-items: center;
    align-items: center;
  }

  .villa-image {
    width: 200px;
    height: 200px;
  }
  .triangle,
.triangle-up {
  width: 100px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 10px;
  margin-left: -40px;

}
.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 15px;

}

/* up triangle */
.triangle-up {
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  display: flex;
  align-items: flex-start;
  margin-left: -40px;

}

  .triangle img {
  width: 60px;
  height: auto;
}
.triangle-up img {
  width: 40px;
  height: auto;
}
  #fireplace{margin: 0;}
  .wrap{
    transform: scale(.8);
  }
}

/* Mobile */
@media (max-width: 861px) {
  /* .header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  } */

  .main-container{
    justify-content: center;
  }

  .villa-image {
    width: 150px;
    height: 150px;
  }

  .triangle,
  .triangle-up {
    width: 120px;
    height: 220px;
  }

  .triangle img,
  .triangle-up img {
    width: 55px;
  }
  #fireplace{margin: 0;}

}
@media (max-width: 800px) {
  .main-container{
    /* flex-direction: column; */
    /* flex-wrap: wrap; */
  }
.wrap{
  transform: scale(.5);
}
}
@media (max-width: 660px) {
  .main-container{
    flex-direction: column;
    /* flex-wrap: wrap; */
  }
.wrap{
  transform: scale(.5);
  margin-top: -100px;
}
}


@media (max-width: 451px) {
.triangle,
  .triangle-up {
    width: 90px;
    height: 180px;
  }
  #fireplace{margin: 0;}
}


.info{
  width: 110px;
  height: 155px;
  border:3px solid #173222 ;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  display: flex;
    flex-direction: column;
    font-size: 10px;
    align-items: center;
    justify-content: space-evenly;
}

.info-right{
  width: 110px;
  height: 155px;
  border:3px solid #173222;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
    flex-direction: column;
    font-size: 10px;
    align-items: center;
    justify-content: space-evenly;
}

.arrow-right {
  width: 250px;
  aspect-ratio: 1 / 2;
 clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
 /* background-image: url(image/vil2.png); */
 background-size: contain;
 height: 100px;
 display: flex;
 align-items: center;

}

.arrow-left {
  width: 250px;
  aspect-ratio: 1 / 2;
clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
 /* background-image: url(image/vil2.png); */
 background-size: contain;
 height: 100px;
 display: flex;
 align-items: center;
}

.arrow-left img {
  position: absolute;
  right: 20px;
  width: 250px;
   background-size: contain;
   margin-right: 95px;
}
.arrow-right img {
  position: absolute;
  left: 20px;
  width: 250px;
   background-size: contain;
   margin-left: 95px;
}

.card{
  display: flex;
  margin: 10px;
  position: relative;
  overflow: hidden;
  /* margin-top: -20px; */
  align-items: center;
}

.triangle-image{
  width: 100px;
  height: 100px;
  position: absolute;
  top: 0;
  left: 0;
}

a h2{
  /* position: absolute; */
    bottom: 20px;
    right: 20px;
}

.info h2{
  color: black;
}
.info-right h2{
  color: black;
}
button{
  all: unset;
  cursor: pointer;
}

#back{
    position: absolute;
    top: 103px;
    right: 20px;
    width: 45px;
    height: 50px;
}

/* HTML: <div class="triangle"></div> */
.triangletst {
  --r:20px; /* border radius */

  height: 180px;
  aspect-ratio: cos(30deg);
  --_g:calc(tan(60deg)*var(--r)) left var(--r),#000 98%,#0000 101%;
  -webkit-mask:
    conic-gradient(from 60deg at calc(3*var(--r)/2 - 100%),#000 60deg,#0000 0)
     0 0/calc(100% - 3*var(--r)/2) 100% no-repeat,
    radial-gradient(var(--r) at calc(100% - 2*var(--r)) 50%,#000 98%,#0000 101%),
    radial-gradient(var(--r) at top    var(--_g)),
    radial-gradient(var(--r) at bottom var(--_g));
  clip-path: polygon(100% 50%,0 100%,0 0);
  background: linear-gradient(45deg,#FA6900,#C02942);
}

/* HTML: <img class="triangle" src="" alt=""> */
.triangleimg {
    --r: 20px;
    /* background-color: #C02942; */
    height: 180px;
    aspect-ratio: cos(30deg);
    --_g: calc(tan(60deg) * var(--r)) left var(--r), #000 98%, #0000 101%;
    -webkit-mask: conic-gradient(from 60deg at calc(3 * var(--r) / 2 - 100%), #000 60deg, #0000 0) 0 0 / calc(100% - 3 * var(--r) / 2) 100% no-repeat, radial-gradient(var(--r) at calc(100% - 2 * var(--r)) 50%, #000 98%, #0000 101%), radial-gradient(var(--r) at top var(--_g)), radial-gradient(var(--r) at bottom var(--_g));
    clip-path: polygon(100% 50%, 0 100%, 0 0);
    object-fit: contain;
    transform: scale(1.1);
    object-position: top;
    padding-top: 40px;
    padding-right: 50px;
}
/* HTML: <img class="triangle" src="" alt=""> */
.triangleimg2 {
  --r:20px; /* border radius */
/* background-color: #C02942; */
  height: 180px;
  aspect-ratio: cos(30deg);
  --_g:calc(tan(60deg)*var(--r)) right var(--r),#000 98%,#0000 101%;
  -webkit-mask:
    conic-gradient(from 240deg at calc(200% - 3*var(--r)/2),#000 60deg,#0000 0)
     100% 0/calc(100% - 3*var(--r)/2) 100% no-repeat,
    radial-gradient(var(--r) at calc(2*var(--r)) 50%,#000 98%,#0000 101%),
    radial-gradient(var(--r) at top    var(--_g)),
    radial-gradient(var(--r) at bottom var(--_g));
  clip-path: polygon(0 50%,100% 100%,100% 0);
      object-fit: contain;
    transform: scale(1.1);
    object-position: top;
    padding-top: 40px;
    padding-left: 60px;
}

#about-a{
      position: absolute;
    bottom: 15px;
}