*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background: ivory;
}

.container {
  padding: 0;
}

/* HEADER */
#header {
  min-height: 120px;
  width: 100%;
  height: 25vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10; /* Ensure header has a high z-index */
  position: relative;
  padding-top: 3vh;
}

#header .logo {
  width: 10vw;
}

#header a img {
  width: 100%;
  display: block;
  margin: 2vh 0 0 1vw;
}

.container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.container a {
  display: inline-block;
}

.productsHead a {
  font-family: "Quintessential", serif;
  font-weight: 400;
  font-style: normal;
  color: inherit;
  text-decoration: none;
}

.productsHead a:hover {
  color: inherit;
}

.productsHead {
  font-size: 3.5rem;
  color: #a0153e;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin-top: 2vh;
  width: auto;
}

.subHead {
  font-size: 1rem;
}

/* NAV BAR */

/* nav bar styling */
.nav {
  background-color: #a0153e;
  z-index: 20; /* Ensure nav bar has a high z-index */
  position: absolute;
  bottom: 0;
  width: 100%;
}

.nav ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 7%;
}

.nav ul li {
  display: inline-block;
  list-style: none;
}

/* Dropdown Button */
.dropbtn {
  background-color: #a0153e;
  color: ivory;
  padding: 16px;
  font-size: 1rem;
  border: none;
  z-index: 21; /* Ensure dropdown button has a high z-index */
  position: relative;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 22; /* Ensure dropdown has a high z-index */
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #a0153e;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 23; /* Ensure dropdown content has a high z-index */
}

/* Links inside the dropdown */
.dropdown-content a {
  color: ivory;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #820f30;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/*  FOOTER  */

#footer{
  height: 70vh;
  background-color: #a0153e;
}


/* Style for return to top button */
#return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: #a0153e;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  display: none;
}

#return-to-top i {
  font-size: 24px;
  line-height: 50px;
}

/* Media Query for larger screens WIDTH > 1550*/
@media screen and (min-width: 1550px) {
  #header{
    padding-top: 2vh;
    height: 20vh;  
  }
  .section1{
      height: 0vh;
  }
  .productsHead{
    font-size: min(4vw,3.5rem);
    width: max-content;
    transform: translateX(-50%);
  }
  .subHead{
    font-size: max(1.5vw,0.7rem);
  }
}

/* DISPLAY WIDTH < 1150 */
@media screen and (max-width: 1150px){
  #header{
    height: 20vh;
  }
  #header .logo{
    width: 20vh;
  }
  .productsHead{
    font-size: max(4vw,2rem);
    width: max-content;
    transform: translateX(-50%);
  }
  .subHead{
    font-size: max(1.5vw,0.7rem);
  }
  .nav ul{
    padding: 0 9%;
    gap: 0;
  }
  .dropdown *{
    font-size: min(1.5vw,0.7rem);
    
  }
  .dropbtn{
    padding: 7px;
  }  

}


/* Display WIDTH: < 850px */
@media screen and (max-width:850px){
  #header{
    height: min(17vh,20vw);
  }
}

/* Display WIDTH: < 600px */
@media screen and (max-width:600px){
  #header{
    height: 17vh;
  }
  .productsHead{
    width: max-content;
    transform: translateX(-13%);

  }

}

/* Display the burger menu icon on mobile devices */
@media screen and (max-width: 500px) {
  #header,#section1,#section2{
    margin-left: 15px;
  }
  #imageGrid{
    margin-left: max(30px,10vw);
  }
  .nav {
    display:flex;
    position:fixed;
    background-color: #a0153e;
    gap: 0;
    pad: 0;
    top: 0;
    width: 23px;
    left: 0;
  }
  .nav .dropdown-content *{
    display: none;
  }
  .dropbtn{
    writing-mode: vertical-rl;
    padding: 5px;
    font-size: 8px;
  }

  #header{
    height : 5vh;
    min-height: 150px;
  }
  #header .logo{
    min-width: 80px;
    width: min(13vh,23vw);
    margin-left: 20px;
    top: 0;
    left: 0;
  }

  .productsHead {
      text-align: right;
      margin-top: 10px;
      font-size: min(8vw,1.5rem);
      width: auto;
      transform: translateX(-10%);
    }
  .subHead{
    font-size: min(3vw,0.6rem);
  }
}

/* SCREEN WIDTH < 410px */
@media screen and (max-width:410px) {
    .container{
      display: grid;
      grid-template-rows: 50px 50px;
      gap: 100px;
      align-items: center;
      justify-content: center;

    }
    .productsHead{
      text-align: center;
      transform: translateX(-50%);
      width: 200px;
      font-size:1.4rem;

    }
    .subHead{
      font-size: 0.8rem;
    }
    #header{
      height: 200px;
    }
    #header .logo{
      width: 100px;
    }
}