* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  text-align: right;
  font-family: sans-serif;
  overflow-x: 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: space-between;
  gap: 40px;

  padding: 40px 5vw;
  flex-wrap: wrap;
}

.villa-image {
  width: 300px;
  height: 300px;
  border-radius: 12px;

  background: url(image/vil2.png) center/cover no-repeat;
}

/* ===== TRIANGLES ===== */

.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-wrap: wrap; */
  gap: -10px;
}

/* 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: 0;
  left: 0;
  z-index: -1;
}
.footer a{
  align-content: center;
}

a{
  text-decoration: none;
  color: white;
  margin-right: 2%;
  font-size: .7rem;
}

h2{
  position: absolute;
    bottom: 20px;
    right: 20px;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1050px) {
  .main-container {
    /* flex-direction: column; */
    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;}
  a{
    display: contents;
  }

}

/* Mobile */
@media (max-width: 711px) {
  /* .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: 451px) {
.triangle,
  .triangle-up {
    width: 90px;
    height: 180px;
  }
  #fireplace{margin: 0;}
}