body {
    background-color: #f8e7cb;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }

  body {
    font-size: 1rem;
    line-height: 1.5;
    padding: 1rem;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
  }

  #listdiv li {
    padding: 2;
  }

  img {
    height: auto;
    width: 275px;
  }

  nav div {
    font-size: 15px;
    background-color: white;
    border-radius: 25px;
    padding: 5px;
    display: block;
    background-color: #C97222;
    color: white;
    padding: 0.5rem 0.5rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    
  }

  nav div a {
    text-decoration: none;
    color: inherit;
  }

  header {
    border-bottom: 5px solid black;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: auto;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -5px;
  }

  nav {
    display: flex;
    justify-content: space-between;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 10px;
  }

  main {
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 17px;
    border: 3px solid #C97222;
    border-radius: 20px;
  }

  main .bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%) brightness(1.3);
    opacity: 0.6;
    z-index: -1;
  }

  main .sicakbg {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
    overflow: hidden;
    opacity: 1;
    z-index: -1;
  }
  
  #mainTitle {
    justify-content: center;
    display: flex;
  }

  #listDiv {
    justify-content: left;
    display: flex;
  }

  #listDiv li {
    display: flex;
    list-style-type: none;
    margin-bottom: 8px;
    flex: 1;
  }

  #listDiv ul {
    margin-left: 5%;
    padding-left: 0;
    margin-top: 5px;
  }

  #listDiv img {
    height: auto;
    width: 25px;
    margin-right: 10px;
  }

  #hTitle {
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
  }


  footer {
    border: 2px dotted #C97222;
    border-radius: 20px;
    padding: 3%;
    font-size: 8px;
    color: gray;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
  }

  .menu-item {
    position: relative;
    cursor: pointer;
    padding: 8px;
    list-style: none;
    font-family: sans-serif;
  }
  
  .menu-item img:first-child {
    width: 20px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .popup {
    display: none;
    position: absolute;
    top: 100%;
    left:70%;         
    transform: translateX(-50%);  
    width: 250px;       
    max-width: 90vw;    
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
    z-index: 99;
    text-align: center;
    border-radius: 8px;
  }

  .popup img {
    width: 100%;  
    height: auto;
    margin-bottom: 8px;
    border-radius: 6px;
  }
  
  .popup p {
    font-size: 0.85rem; 
    color: #333;
    margin: 0;
  }
  
  .menu-item:hover .popup {
    display: block;
  }
  
  #backToTop {
  position: fixed;
  bottom: 75px;
  right: 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: opacity 0.4s ease;
}

nav {
  position: sticky;
  top: 10px;
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#whatsappButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.4s ease;
}

#whatsappButton img {
  width: 28px;
  height: 28px;
}

  @media (max-width: 407px) {
    main ul li {
      font-size: 14px;
    }
}

  @media (max-width: 376px) {
    header img {
        height: auto;
        width: 225px;
    }
    
    main {
      font-size: 15px;
    }

    nav div {
        font-size: 13px;
    }


    .menu-item {
        position: relative;
        cursor: pointer;
        padding: 6px;
        list-style: none;
        font-family: sans-serif;
      }
      
      .menu-item img:first-child {
        width: 18px;
        margin-right: 6px;
        vertical-align: middle;
      }
      
      .popup {
        display: none;
        position: absolute;
        top: 80%;
        left: 35%;         
        transform: translateX(-50%); 
        width: 250px;       
        max-width: 60vw;    
        background: white;
        border: 1px solid #ccc;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 14 px;
        z-index: 99;
        text-align: center;
        border-radius: 8px;
      }
    
      .popup img {
        width: 100%;   
        height: auto;
        margin-bottom: 6px;
        border-radius: 4px;
      }
      
      .popup p {
        font-size: 0.8rem; 
        color: #333;
        margin: 0;
      }
      
      .menu-item:hover .popup {
        display: block;
      }
      
}

  @media (max-width: 350px) {
    header img {
        height: auto;
        width: 195px;
    }
    
    main {
      font-size: 14px;
    }

    main ul li {
      font-size: 12px;
    }

    nav div {
        font-size: 11px;
    }

}

  @media screen and (min-width: 768px) {
    body {
        font-size: 40px;
    }
    
    header img {
        width: 350px;
    }

    header p {
        font-size: 25px;
    }

    nav div {
        font-size: 35px;
    }

    nav {
        justify-content: space-around;
    }

    main {
        font-size: 30px;
        overflow: visible;
    }

    main div img {
        padding: 10px;
        width: 20px;
        height: auto;
        max-width: none;
        max-height: none;
    }

    .popup {
        width: 250px;
    }

    footer {
        font-size: 20px;
    }
}