* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, Arial, Helvetica, sans-serif;
}

p {
  margin-top: 1em;
  line-height: 1.9rem;
  color: #848180;
}

.images {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.container {
  display: flex;
  flex-wrap: wrap;
  text-align: justify;
  background-color: #fff;
}

.container > * {
  padding: 10px;
  margin: 10px;
  flex: 1 100%;
  border-radius: 10px;
}

/*---
.header {
  padding: 10px 16px;
  position: fixed;
  width: 100%;
  top: 0;
}
---*/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #031f50;
  color: black;
  position: sticky;
  top: 0;
  z-index: 1;
}

.logo {
  width: 250px;
  height: 50px;
  align-items: left;
  position: absolute;
}

.brand-title {
  font-size: 1.5rem;
  margin: 0.5rem;
  padding-left: 3rem;
  min-height: auto;
}

.navbar-links ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-links li {
  list-style: none;
}

.navbar-links li a {
  text-decoration: none;
  color: white;
  padding: 1rem;
  display: block;
}

.navbar-links li:hover {
  background-color: #1171a8;
  transition: 1s;
  border-radius: 5px;
}

.toggle-button {
  position: absolute;
  top: 1.75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

.footer {
  background: gray;
  text-align: center;
  padding: 10px 40px;
  min-width: auto;

  color: #fff;
}

.footer a:link {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #e23d3d;
}

.footer a:visited {
  color: #bcdcee;
}

.main {
  text-align: left;
  background: #fff;
  min-width: auto;
  font-size: 18px;
  padding: 20px 40px;
}

.Left-col {
  background: #fff;
  padding: 20px 40px;
}

.Right-col {
  background: #fff;
  padding: 20px 40px;
}

.drop {
  float: left;
  font-size: 300%;
  line-height: 1em;
  margin: 0px 0px 10px 0px;
  padding: 0px 5px;
  border: none;
  background: #fff;
}

@media all and (min-width: 800px) {
  .main {
    flex: 3;
  }

  .Left-col {
    order: 1;
  }

  .Right-col {
    order: 2;
  }

  .main {
    order: 2;
  }

  .footer {
    order: 4;
  }
}

@media all and (min-width: 800px) {
  .aside {
    flex: 1;
  }
}

@media (max-width: 800px) {
  .toggle-button {
    display: flex;
  }

  .navbar-links {
    display: none;
    width: 100%;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links ul {
    width: 100%;
    flex-direction: column;
  }

  .navbar-links li {
    text-align: center;
  }

  .navbar-links li a {
    padding: 0.5rem 1rem;
  }

  .navbar-links.active {
    display: flex;
  }
}

/*---div inside the footer---*/

.footer-inside {
  display: flex;
  padding: 20px 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-inside > div {
  background: gray;
  width: 200px;
  height: auto;
  padding: 10px;
  margin-bottom: 1rem;
  text-align: left;
  align-items: baseline;
}

.footer-inside > div > .images {
  width: 40px;
  float: left;
  margin: 10px 10px 10px 0px;
}

.footer-inside > .item-2 > a {
  display: inline-block;
  width: 15%;
}

.services > ol {
  list-style-type: none;
  margin-top: 10px;
  padding: 0;
  line-height: 1.5em;
}

.item-1 {
  width: 50%;
}

.item-2 {
  width: 30%;
}

.item-3 {
  width: 20%;
}

@media all and (min-width: 800px) {
  .footer-inside {
    flex: 1;
  }

  .item-1 {
    flex: 1;
    order: 1;
    flex-grow: 2;
  }

  .item-2 {
    flex: 1;
    order: 3;
    flex-shrink: 1;
  }

  .item-3 {
    flex: 1;
    order: 2;
    flex-grow: 4;
  }
}

/*---my first grid ---*/

.first-grid {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 10px;
  grid-template-rows: auto;
  grid-template-columns: repeat(auto-fill, 1fr);
  background-color: #fff;
  padding: 10px;
  
}

.grid-item-1 {
  grid-row: 1;
  grid-column: 1;
}

.grid-item-2 {
  grid-row: 1;
  grid-column: 2;
}

.grid-item-3 {
  grid-row: 2;
  grid-column: 1;
}

.grid-item-4 {
  grid-row: 2;
  grid-column: 2;
}

.first-grid > div {
  display: grid;
  background-color: aquamarine;

  text-align: center;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

.first-grid > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*--- php Form ---*/

.feedback_form {
  display: flex;
  flex-wrap: wrap;
  min-width: auto;
  justify-content: center;
}

fieldset {
  position: relative;
  margin: auto;
  height: 100%;
  width: 100px;
}

/*-- privacy area--*/

.privacy-infolist {
  display: flex;
  position: relative;
  margin-top: 20px;
  margin-left: 40px;
  line-height: 1.9rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #5a5858;
}

.privacy-infolist ol {
  padding-left: 20px;
}

.privacy-infolist li {
  padding-left: 10px;
}

/*-- start of for-sale.html --*/

.rentcon1 {
  display: block;
  justify-content: center;
  background-color: rgb(252, 249, 249);
  width: 100%;
  border: 1px solid rgb(113, 116, 113);
  padding: 10px;
  margin: 0;
  height: auto;
}

/*-- start of for-rent.html --*/

.rentcon2 {
  justify-content: center;
  background-color: rgb(252, 249, 249);
  width: 100%;
  border: 1px solid rgb(172, 175, 172);
  padding: 10px;
  margin: 0;
  align-items: center;
}

.rent-gallery {
  padding: 5px;
  background-color: rgb(248, 247, 248);
  justify-content: center;

  flex-direction: row;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

#box-it {
  border: 1px solid grey;
  padding: 30px;
  text-align: justify;
  justify-content: center;
  height: auto;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.rent-gallery > div > .images {
  padding: 5px;
  width: 100%;
}

.rent-01 {
  border: 1px solid #ccc;
  display: flex;
}

.rent-01:hover {
  border: 1px solid #555657;
  opacity: 0.5;
  transition: 0.5s;
}

/*---
.rent-01 > .desc {
  padding: 15px;
  text-align: left;
  margin-bottom: 10px;
  margin-top: 10px;
}
----*/

.navbar-links a.active {
  background-color: #739900;
  border-radius: 5px;
}

.rent-details-01 {
  display: flex;
  justify-content: space-evenly;
  padding: 10px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.developer-gallery {
  display: flex;
  text-align: justify;
  flex-wrap: wrap;
}

.developer-gallery > .images-02 {
  width: 269px;
  height: 100px;
  float: left;

  margin: 0px 0px 15px 20px;
  padding-top: 15px;
}

.images-02:hover {
  opacity: 0.5;
  cursor: pointer;
  transition: 0.5s;
}

.image-banner {
  display: flex;
}

.image-banner > #image-banner01 {
  display: block;
  width: 100%;
  margin: 0 auto;
  transition: 0.3s;
}

a:link {
  color: rgb(71, 71, 146);
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: rgb(2, 24, 99);
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: rgb(8, 67, 122);
  background-color: transparent;
  text-decoration: underline;
}

/*-- For Istana model units ---*/

.box-unit {
  display: flex;
  justify-content: center;
  flex-direction: row;
  background-color: rgb(162, 187, 23);
  flex-wrap: wrap;
  object-fit: contain;
  width: 100%;
  margin: 0 auto !important;
  padding: 5px;  
}

.box-unit2 {
  display: flex;  
  justify-content:center;
  flex-direction: row;
  background-color: white;
  flex-wrap: wrap;
  object-fit: contain;
  width: auto;
  margin: auto;
  padding: 5px; 
}


.box-unit > .images-03 {
  width: 100%;
  justify-content: center;
  transition: 0.6s ease-in-out;
  display: flex;
}

.box-unit2 > .images-03 {
  width: auto;
  justify-content: center;
  transition: 0.6s ease-in-out;
  display: flex;
}

.box-1 {
  display: flex;
  height: auto;
  width: auto;
  background-color: #ffffff;
  border-color: 5px solid #3f3e3e;
  padding: 5px;
}

.box-2 {
  display: flex;
  height: auto;
  width: auto;
  background-color: #f9fcf9; 
  padding: 5px;
  border-color: 5px solid #584d4d;
  border: 1px solid;
  
}

/*  
.model-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  object-fit: cover;
  padding: 5px;
  justify-content: center;
  background-color: rgb(224, 26, 26);
}
*/

.images-03:hover {
  cursor: pointer;
  transition: 0.5s;
  transform: scale(1.1);
}

/*-- Project Details ---*/

.project-details {
  display: flex;
  flex-direction: row;
  background-color: #f7f9fc;
  padding: 10px;
  justify-content: center;
  border: 1px solid rgb(211, 207, 207);
  width: auto;
}

.details-box {
  padding: 20px;

  font-size: medium;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  justify-content: center;
  line-height: 1.5em;
}

.note {
  display: flex;
  justify-content: left;
}

/*----istana map---*/

.box-map {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #1171a8;
  padding: 5px;
  
  width: 100%;
  flex-wrap: wrap;
  object-fit: cover;
}

.box-map > .images-04 {
  width: 80%;

  transition: 0.6s ease-in-out;
  display: flex;
}

.images-04:hover {
  cursor: pointer;
  transition: 0.5s;
  transform: scale(1.2);
}

@media all and (max-width: 400px) {
  .box-map {
    display: flex;
    width: auto;
  }

  .box-unit {
    display: flex;
    width: auto;
  }

  .box-unit2 {
    display: flex;
    width: auto;
  }

  .images-03 {
    width: 100%;
    display: flex;
  }

  .images-04 {
    width: 100%;
    display: flex;
  }

  .feedback_form {
    display: flex;
    flex-wrap: wrap;
    min-width: auto;
  }

  .model-flex {
    display: flex;
    width: auto;
  }



}
