/* ---------------------------------------
   GLOBAL RESETS
--------------------------------------- */
html, body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove unwanted stacking contexts */
html, body {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  isolation: auto !important;
}

/* ---------------------------------------
   BACKGROUND IMAGE + OVERLAY
--------------------------------------- */
html {
  background-image: url('../images/brewery.jpg');
  background-position: center bottom;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.35);
  z-index: -1;
}

/* ---------------------------------------
   BODY
--------------------------------------- */
body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0 !important;
}

/* ---------------------------------------
   ONE SHARED STACKING CONTEXT
--------------------------------------- */
.page-content {
  position: relative !important;
  z-index: 10 !important;
}

/* NAVBAR stays above content, below click-popup */
.site-header,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* ---------------------------------------
   ROWS (NO stacking context)
--------------------------------------- */
.top-row,
.lager-row,
.white-row,
.red-row {
  position: relative !important;
  z-index: auto !important;
}

/* ---------------------------------------
   ITEM CONTAINERS (NO stacking context)
--------------------------------------- */
.pilsner-container,
.chardonnay-container,
.pinot_noir-container {
  position: relative !important;
  z-index: auto !important;
}

/* ---------------------------------------
   TOP ROW (lagers + whites)
--------------------------------------- */
.top-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 25vw;
  margin-top: calc(80px + 250px);
  width: 100%;
  margin-left: 60px;
  flex-wrap: nowrap;
}

.lager-row,
.white-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 50px;
}

/* ---------------------------------------
   RESTING ICON SIZES
--------------------------------------- */
.pilsner-i { width: 35px !important; }     /* Lagers */
.chardonnay-i { width: 25px !important; }  /* Whites */
.pinot-i { width: 30px !important; }       /* Bottles */

/* ---------------------------------------
   LAGER DISPLAY
--------------------------------------- */
.pilsner-container { display: inline-block; }

.pilsner { width: 80px; }

.pilsner-i {
  position: absolute;
  top: 30%;
  left: 53%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pilsner-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-45%);
  z-index: 3;
}

/* ---------------------------------------
   WHITE DISPLAY
--------------------------------------- */
.chardonnay-container {
  display: inline-block;
  margin: 0 50px;
}

.chardonnay { width: 30px; }

.chardonnay-i {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.chardonnay-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ---------------------------------------
   RED BOTTLE ROW
--------------------------------------- */
.red-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 80px;
  margin-top: 50px;
  width: 100%;
}

.pinot_noir-container { display: inline-block; }

.pinot_noir { width: 140px; }

.pinot-i {
  position: absolute;
  top: 50%;
  left: 46%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pinot-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-65%);
  z-index: 3;
}

/* ---------------------------------------
   CLICK-TO-ENLARGE POPUP
--------------------------------------- */
#image-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000000000;
  cursor: pointer;
  animation: fadeIn 0.2s ease-out;
}

#image-popup img {
  width: 60vw;
  max-width: 900px;
  height: auto;
  animation: zoomIn 0.2s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------------------------------------
   PREVENT BOOTSTRAP STACKING
--------------------------------------- */
.container,
.container-fluid {
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  isolation: auto !important;
}

.pilsner-i,
.chardonnay-i,
.pinot-i {
    cursor: pointer;
}
