:root {
   /* Color Scheme: Default Dark */
   color-scheme: dark !important;
   --primary-color: #f44336;
   --secondary-color: #4CAF50;;
   --background-color: #333;
   --text-color: #f4f4f4;
   --font-size: 1.2rem;
   --border-radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin:0;
  padding: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  margin:0;
  padding:0;

}

a, a:hover, a:link, a:visited {
  text-decoration: none;
  color: var(--text-color);
}

nav {
  color: var(--text-color);
  padding:0.5rem;
  margin:0;
  width:90%;
  position: fixed;
  top:0;
  left:50%;
  transform: translateX(-50%);
  z-index: 100;

  
}

nav .navbar {
  padding:0;
  margin:0;
  height: 50px;
}

nav .navbar ol {
  background-color: rgba(0,0,0,0.4);
  width:100%;
  height:100%;
  margin:0;
  list-style: none;
  padding: 5px 20px 5px 20px;
  border-radius:30px;
  display:flex;
  justify-content: space-around;
  align-items: center;
  gap:15px;
}

nav .navbar ol {
  li {
    width: 100%;
    height:100%;
    border-radius:30px;
    padding:15px;
    display:flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease;
    a { 
      width: 100%; 
      text-align: center;
    }
  }
  li:hover {
    background-color: rgba(170, 0, 0, 0.6);
    border-top-width: 2px;
    border-top-style: solid;
    border-top-color: #f44336;
  }
}

main {
  /* margin:calc(1rem + 50px) auto; */
  /* width:min(1200px,100%); */
  height:100dvh;
  width:100%;
  scroll-behavior: smooth;
  scroll-snap-type:y mandatory;
  overflow: auto; 
}

main.page {
  margin-top: calc(1rem + 50px);
  padding:0.8rem;
}

.section {
  height:100dvh;
  width:100%;
  display:flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  overflow: auto;
  position: relative;
  /* flex-direction: column; */
}

.hero {
  background-image: url('../images/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* background-attachment: fixed; */
}

.hero > div:last-child {
  width:40%;
  background-color: rgba(0,0,0,0.7);
  height: calc(70% - 50px - 1rem);
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1.5rem;
  padding: 1rem;
  gap: 1rem;
}

.hero h1 {
  font-size:4rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin:0;
  font-weight: 800;
}

.hero h2 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin:0;
  font-weight: 300;
}

#about {
  background-image: url('../images/chefjennie.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
}

#menu {
  background-image: url('../images/ruangan.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
}

#menu .inset {
  min-height:calc(85dvh - 50px - 1rem) !important;
  justify-content: center !important;
  align-self: center !important;
  align-items: center !important;
}

#menu .konten {
  padding:10px !important;
  width: 100% !important;
  display: flex !important;
  justify-items: center !important;
  align-items: center !important;
  padding: 10px !important;
  overflow: auto;
  gap:10px;
  scroll-behavior: smooth;
  scroll-snap-type:x mandatory;
  height: 100%;
}

#menu .konten .menu-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  width:300px !important;
  /* background-color: #f4f4f4; */
}
#menu .konten .menu-card .img {
    width: 300px;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    
  }
  #menu .konten .menu-card .img img {
      transition:all 0.6s ease;
      width: 100%;
      height: 100%;
      object-fit: cover;
      aspect-ratio: 1/1;
      border-radius: 1rem;
    }

#menu .konten .menu-card .img.ada .pesan {
      position: absolute;
      top:50%;
      right:50%;
      z-index:11;
      display:none;
      transform: translate(50%, -50%);
  }
#menu .konten .menu-card .img.habis .pesan {
    display: none;
  }

#menu .konten .menu-card .img:hover.ada .pesan {
    display:block;
  }
#menu .konten .menu-card .img:hover img {
      transform: scale(1.5);
  }
#menu .konten .menu-card .img.habis {
    position: relative;
}
#menu .konten .menu-card .img.habis img {
      filter: grayscale(100%);
    }
#menu .konten .menu-card .img.habis::after {
    content: "HABIS";
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    background-color: rgba(170, 0, 0, 0.6);
    padding:5px 10px 5px 10px;
    border-radius: 15px;
  }
#menu .konten .menu-card #menu .text {
    text-align: center;
    margin-top:15px;
    font-size: 1.2rem !important;
    text-overflow: ellipsis;
    overflow: hidden;      
    white-space: nowrap;
}

#data-menu-utama {
  background-image: url('../images/background2.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#kontak {
  background-image: url('../images/dapur.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */

}

#kontak ul {
  list-style: none;
  padding:0;
  margin:0;
  display: flex;
  gap:10px;
}

#kontak ul li a {
  font-size:1.2em !important;
}

#kontak .konten {
  display: flex;
  justify-content: center;
  align-items: center;
  gap:15px;
  width: 100%;
}

#kontak .konten * {
  width:100%;
  text-align: center;
}

.inset {
  position: absolute;
  z-index: 1;
  background-color: rgba(0,0,0,0.7);
  width:95%;
  border-radius:30px;
  top:calc(50% + 50px);
  transform: translateY(calc(-50% - 50px));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.konten {
  z-index: 10;
  width:75%;
  padding:20px;
}
 .konten h4 {
    font-weight: 200;
  }

#loading {
  position: fixed;
  inset:0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  pointer-events:all;
}

@media screen and (max-width: 768px) {
  * {
    font-size:0.9rem;
  }

  nav {
    width: 100%;
  }

  nav .navbar ol {
    gap:5px;
  }

  nav .navbar ol li {
    padding:5px;
  }

  .hero {
    height:100vh;
    flex-direction: column;
  }

  .hero > div:last-child {
    height:50%;
    width:90%
  }

  #kontak .konten {
    flex-direction: column;
  }

}


.fs-8em {
  font-size:0.8em;
}