* {
  box-sizing: border-box;
}

:root {
  --head-foot-link-text: #f3e89b;


  /*
  --gradient-hue: 29;
  --gradient-sat: 53.2%;
  --gradient-lum: 9.2%;
  */
  background-color: hsl(189, 38%, 24%);
  --gradient-hue: 29;
  --gradient-sat: 53.2%;
  --gradient-lum: 9.2%;
  --gradient-mainColor: hsla(var(--gradient-hue),var(--gradient-sat),var(--gradient-lum),1);
}

body {
  margin: 0;
  padding: 0;
  background-color: #DDD9AB;
  font-family: 'Ysabeau SC', Palatino, sans-serif;
  color: white;
  /* background-image: url("pics/woods-background-blurry1500.avif"); */
  background-image: url("pics/woods-background-lessblurry-contrast.avif");
  z-index: -1;
  position: relative; /* Add this */
}

body a:hover {
  color: white;  /* Change this to your desired hover color */
}

header,
footer {
  font-family: 'Ysabeau SC', 'Trebuchet MS',sans-serif;
  color: white;
  width: 100%;
  z-index: 2;
  border-style: solid;
  border-color: rgba(0,0,0,.1);
  border-bottom-width: 3px;
  /*
  background: linear-gradient(0deg, rgba(36, 23, 11,1) 0%, rgba(79, 63, 29,.9) 40%, rgba(55, 40, 21,.7) 65%, rgba(35, 24, 14,.85) 100%);
  background: linear-gradient(0deg, hsla(29,53.2%,9.2%,1) 0%, hsla(41,46.3%,21.2%,.9) 40%, hsla(34,44.7%,14.9%,.7) 65%, hsla(29,42.9%,9.6%,.85) 100%);


  background: linear-gradient(0deg, var(--gradient-mainColor,),1) 0%, hsla(41,46.3%,calc(var(--gradient-lum) + 12%,.9) 40%, hsla(34,44.7%,14.9%,.7) 65%, hsla(29,42.9%,9.6%,.85) 100%);

  background: linear-gradient(0deg, hsla(var(--gradient-hue),var(--gradient-sat),var(--gradient-lum),1) 0%, hsla(41,46.3%,21.2%,.9) 40%, hsla(34,44.7%,14.9%,.7) 65%, hsla(29,42.9%,9.6%,.85) 100%);
  */
  background: linear-gradient(0deg, hsla(var(--gradient-hue),var(--gradient-sat),var(--gradient-lum),.9) 0%, hsla(calc(var(--gradient-hue) + 12),calc(var(--gradient-sat) - 7%),calc(var(--gradient-lum) + 12%),.9) 40%, hsla(calc(var(--gradient-hue) + 12),calc(var(--gradient-sat) - 8.5%),calc(var(--gradient-lum) + 6%),.7) 65%, hsla(var(--gradient-hue),var(--gradient-sat),var(--gradient-lum),.85) 100%);
}

header {
  height: 140px; /* Default - This is the height on desktop screens */
  position: sticky;
  top: 0;
  border-bottom-left-radius: 50px;
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 0px;
}

.header-content,
.footer-content {
  margin: 0 auto;
  padding-top: 0px;
  padding-right: 25px;
  padding-bottom: 3px;
  padding-left: 25px;
  max-width: 1200px;
  width: 95%;
}
/*
.header-content {
  min-height: 140px;
}
*/

svg path {
  fill: var(--head-foot-link-text);
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 0px;
}

header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 200;
  margin-bottom: 4px;
  text-align: center;
}

header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 200;
  margin-bottom: 0px;
}

header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 3px;
  text-align: center;
}

header a {
  color: white;
  text-decoration: none
}

header img {
  width: 100%;
  height: auto;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 8px;
  /*font-size: 1.4rem; */
  padding-left: 2px;
}

.contact-info a {
  color: var(--head-foot-link-text); 
  text-decoration: underline;
  text-decoration-color: #927f54;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  margin: 4px;
  font-size: 1.33rem;
  font-weight: 200;
}

.footer-content a {
  font-size:16px;
  padding: 15px;
}

.subtext {
  text-align: right;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.apartment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(60,93,37,.85);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  width: 1024px;
  max-width: 90%; 
  border-style: solid;
  border-color: rgba(0,0,0,.05);
  border-width: 2px;
}

.apartment a {
  color: #e9f44d;
  font-weight: 200;
  text-decoration: underline;
  text-decoration-color: #a2a851;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.apartment img {
  width: 100%;
  height: auto;

}

.apartment p {
  text-align: justify;
  margin: 4px;
}

.img-container {
  position: relative;
  display: inline-block;
  border-style: inset;
  border-color: #3b5429;
  border-width: 3px;
}

.img-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 5px 5px 6px rgba(0, 0, 0, 0.6),  inset -2px -2px 5px rgba(0, 0, 0, 0.4);;
  pointer-events: none;
  z-index: 1;
}

.img-container img {
  display: block;
  position: relative;
  z-index: 0;
}

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%; 
  padding-top: 56.25%; /* for 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.details {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.2rem;
}

.address {
  display: flex;
  justify-content:center ;
  font-size: 1.2rem;
  font-weight: 300;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-top-right-radius: 50px;
}

.footer-content {
  display: flex;
  max-width:fit-content;
  /*margin: 0 auto;*/
  font-size: 16px;
}

.footer-content a {
  font-size: 16px;
}

@media (min-width: 1200px) {
  .header-content,
  .footer-content,
  .apartment {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 940px) {
  body header {
    height: 120px;
  }  
}

@media (min-width: 569px) and (max-width: 939px) {
  body header  {
    height: 150px !important;
  }
}

@media (min-width: 484px) and (max-width: 570px) {
  body header  {
    height: 205px !important;
  }
}

@media (min-width: 400px) and (max-width: 485px) {
  body header  {
    height: 205px !important;
  }
  body .header-content h1 {
    font-size: 24px !important;
  }
}

@media (min-width: 0px) and (max-width: 399px) {
  body header  {
    height: 200px !important;
  }
  body .header-content h1 {
    font-size: 24px !important;
  }
  header h2 {
    padding-left: 8px;
    font-size: 24px;
  }
}
