:root {
  --primary:      hsl(196, 50%, 90%);
  --primary-b:    hsl(196, 80%, 40%);
  --primary-c:    hsl(196, 50%, 20%);
  --secondary:    hsl(16, 80%, 40%);
  --secondary-b:  hsl(16, 50%, 90%);
  --secondary-c:  hsl(16, 50%, 20%);
  --text: var(--secondary-c);
  --menu: var(--secondary-b);
  --logo: var(--secondary);
}

html {
  height: 100%;
}

body {
  font-family: sans-serif;
  margin: 0;
  display: flex; /* Enable flexbox for the body */
  flex-direction: column; /* Stack elements vertically */
  height: 100%;
}

main {
  height: calc(100% - 1.4em - 10px);
  position: relative;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: fixed; /* Prevent scrolling */
  background-color: var(--primary);
  width: 100%;
  z-index: 99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  position: fixed; /* Prevent scrolling */
  width: 100%;
  z-index: 10; /* Ensure it stays on top */
}

.menu li:not(:first-child) {
  margin-left: 20px;
}

.menu a {
  text-decoration: none;
  font-size: 24px; /* Text height */
  color: var(--secondary);
}

.menu a:hover {
  background-color: var(--secondary-b);
}

.menu-icon {
  display: none; /* Hide the icon by default */
  flex-direction: column;
  cursor: pointer;
  font-size: 24px; /* Adjust font size as needed */
}

/* Responsive Menu */
@media (max-width: 600px) {
  .menu {
    display: flex;
    left: -184px; /* Hide the menu on smaller screens */
    flex-direction: column;
    position: absolute;
    top: 60px;
    width: 90px;
    background-color: var(--primary-b);
    padding: 20px;
    transition: left 0.4s ease-in-out;
  }

  .menu-icon {
    display: flex; /* Show the icon */
  }

  .menu.active {
    left: 0;
  }

  .menu li {
      margin: 10px 0 10px 20px;
  }
}

.logo {
  width: 6em;
  color: var(--logo);
}

section {
    padding: 69px 20px 0;
    text-align: center;
  color: var(--text);
  min-height: 100%;
}

#home h2 {
  font-size: 48px;
}

#home {
  font-size: 32px;
  color: var(--primary);
  background-image: url('img/home/home.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Media query for devices with a width less than 600px */
@media (max-width: 1000px) {
  #home {
    background-attachment: scroll; /* Disable parallax */
  }
}

#casa {
  background-image: url('img/casa/balcony1.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  padding: 0;
}

#casa-background {
  background-color: hsla(0, 0%, 100%, 0.6);
  z-index: 2;
  min-height: 500px;
  padding-top: 70px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create three equal columns that sits next to each other */
.column-3 {
  flex: 32%;
  max-width: 32%;
  padding: 0 4px;
}

.column-3 img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column-3 {
    flex: 100%;
    max-width: 100%;
  }
}

.wir {
  margin-top: auto;
  margin-bottom: auto;
}

/* Create two equal columns that sits next to each other */
.column-2 {
  flex: 48%;
  max-width: 48%;
  padding: 0 4px;
}

.column-2 img {
  margin-top: 8px;
  margin-bottom: 20px;
  vertical-align: middle;
  width: 60%;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column-2 {
    flex: 100%;
    max-width: 100%;
  }
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text);
  background-color: var(--secondary-b);
  position: relative;
}
