                                                            
                                                            
                                                            /* ==== imports ==== */
                                                            
/* ==== fonts ==== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400&display=swap');

@font-face {
  font-family: "calpina";
  src: url("/fonts/CalpinaRegular-4BrGW.otf") format("opentype");
}

@font-face {
  font-family: "pixemon";
  src: url("/fonts/Pixemon.otf") format("opentype");
}

@font-face {
  font-family: "bonn";
  src: url("/fonts/bonn_light.ttf") format("truetype");
}

@font-face {
  font-family: "horizon";
  src: url("/fonts/Horizon.otf") format("opentype");
}

@font-face {
  font-family: "inter";
  src: url("/fonts/inter.italic.ttf") format("truetype")
}

a {
  text-decoration: none;
  color: white;
}

h1 {
  font-size: 1.25rem;
  text-decoration: underline;
  text-align: center;
  padding: 5px;
  font-family: "horizon";
  color: white;
  font-weight: 10;
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: teal;
}

#contact {
  font-size:1rem;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
  font-family: "bonn";
  color: #f0f0ef;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
  margin: 10px auto;
  background: #30245835;
  border-radius: 10px;
  outline: ridge 3px #f0f0ef;
  width: 50%;
  padding: 5px;
}

h3 {
  font-size: 0.8rem;
  font-family: "inter";
  color: white;
  transform:scale(1,1.5);
  font-weight: 600;
  text-shadow: 1px 1px 2px #808080;
}
  
h4 {
  font-size: 0.7rem;
  font-family: "inter";
  color: #30a8a8;
  transform:scale(1,1.5);
  text-shadow: 1px 1px 2px #00ffff;
  font-weight: bold;
}
                                                        /* ===  MAIN LAYOUT ===*/
                                                        
/* ==== RESET + FORMAT (resets website preset format) ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gap: 5px;
  --container-width: 100%; 
  --container-height: 100%;
  --margin-width: 10%;
}


body {
  background-image: url("components/background-landscape.png");
    background-repeat: repeat; /* Prevents the image from tiling */
    background-position: center; /* Centers the image */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;

}

.layout {
  width: var(--container-width);
  max-width: var(--container-width);
  padding: 1% var(--margin-width) 0 var(--margin-width);
  min-height: var(--container-height);
  align-items: center;
}

.cat {
  display: flex;
  flex-direction: row;
  gap: 150px;
  position: absolute;
  z-index: 20;
  width: 100%;
  justify-content: center;
  top: 0;

}

.cat img {
  width: 50px;
  height: auto;
}

#home {
  gap: 170px!important;

}
                                                        /* ==== BASIC DESIGN COMPONENTS ====*/
                                                        
/* ==== boxes ====*/
.box {                     
  width: calc(100% - 10px);
  position: relative;
  z-index: -999;
  height: 110px;
  margin: 5px auto 0 auto;
  padding: 2px;
  border:ridge 5px #7fffd490;
  display: block; /* Ensures the background wraps cleanly around the tab link */
  text-decoration: none;
  outline: solid 10px #523C21;
}

#title_box {
  background-image: url("components/title-back.png");
  width: calc(100% - 10px);
  height: 110px;               /* Keeps your header height constraint intact */
  margin: 5px auto 0 auto;
  border: ridge 5px #7fffd490;
  outline: solid 10px #523C21;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;                  /* Safe positive value so it stays functional */
}

#title {
  display: block;
  position: relative;
  margin: 20px auto;
}

.oval {
  width: 300px;           /* Must be wider than the height to make it an oval */
  height: 40px;          /* The vertical size */
  background-image: url("components/polkadot.png"); 
  box-shadow:
    0 0 0 5px #f0f0ef;
  border-radius: 50%;     /* This rounds the corners completely into a smooth oval */
  outline: solid 3px #523C21;
  position: relative;
  margin: 20px auto;      /* Centers it on the page */
  
  z-index: 1;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

#hib1 {
  z-index: 2;
  position: absolute;
  top: -20px;
  left:-90px;
  width: 60%;
  transform: scaleX(-1.05) rotate(15deg);
}

#hib3 {
  position: absolute;
  z-index: 2;
  top: 35px;
  left: 225px;
  width: 65%;
  transform: scale(1.05) rotate(10deg);
}

#list-nav-box {
  width: 100%;
  height: 20px;
  display:flex;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  transform: skewX(-20deg);
  outline: solid 2px #523c2150;
  background-image: linear-gradient(
    to bottom, 
    rgba(82, 60, 33, 0.6) 0%, 
    rgba(82, 60, 33, 0.2) 90%, 
    rgba(82, 60, 33, 0) 90.1%, 
    rgba(0, 0, 0, 0.15) 100%
  );
  box-shadow: 
    inset 0 4px 6px rgba(288, 288, 288, 0.8), /* Inner top reflection */
    inset 0 -4px 6px rgba(238, 238, 238, 0.8),       /* Inner bottom shade */
    0 8px 12px rgba(0, 85, 128, 0.3);         /* Soft colorful drop shadow */
}


.list_row {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

#list_logo {
  position: relative;
  display: flex;
  justify-content: flex-end;
  top: 3px;
  gap: 0;
}

.logo {
  width: 30px;
  position: relative;
  opacity: 0.9;
}

.tab-title {
  width: 90px;           /* Must be wider than the height to make it an oval */
  height: 30px;          /* The vertical size */
  background-color: #BFBF00; 
  box-shadow:
    0 0 0 2px white;
  border-radius: 20%;     /* This rounds the corners completely into a smooth oval */
  margin: 20px auto;
  position: relative;
}


#update1 #japan-pic{
  width: 300px;           /* Must be wider than the height to make it an oval */
  height: 200px;          /* The vertical size */
  background-color: #D73059; 
  box-shadow:
    5px 5px 0 10px #512C15; /*horizontal-trans vertical-trans blur size*/
  border-radius: 20%;     /* This rounds the corners completely into a smooth oval */
  margin: 10px;
  position: relative;
  top: 8px;
  z-index: -1;
}

#update2 #japan-pic2{
  width: 300px;           /* Must be wider than the height to make it an oval */
  height: 200px;          /* The vertical size */
  background-color: #D73059; 
  box-shadow:
    5px 5px 0 10px #D73059; /*horizontal-trans vertical-trans blur size*/
  border-radius: 20%;     /* This rounds the corners completely into a smooth oval */
  margin: 20px 60px;
  position: relative;
  z-index: -1;
}

.part { 
  background-image: url(components/tab_background.jpg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  width: 100%;
  border-radius: 6px 6px 60px 30px;
  position: relative;
  border: ridge 4px #f0f0ef;
  outline: solid 4px #352d23;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;                  /* Lowered from 20 so it does not block the shop */
}

/*==== tabs ====*/
/* --- Core Layout & Resets --- */
.main-tabs input[type="radio"], 
.sub-tabs input[type="radio"] {
  display: none; /* Safely hides all native input circles */
}

#nav-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 30px;
  margin: 0 12px 0 10px;
}

.tab-nav {
  display: flex;
  position: relative;
}

.sub-tabs {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sub-nav {
  display: flex;         
  flex-direction: row;   
  justify-content: center;
  gap: 10px;
  position: relative;    /* Keeps layout calculating heights naturally */
  margin: 15px 0;        /* Spaces out your label buttons cleanly */
  top: 20px;
}


/* Button Styling (Adjust colors to match your brown/cyan vibe) */
label {
  margin: 20 auto;
  padding: 3px 6px;
  cursor: pointer;
  font-family: "inter", sans-serif;
  position: relative;
  font-size: 0.65rem;
  color: #F4F4F4;
  transform:scale(1,1.5);
  font-weight: 600;
  text-shadow: 1px 1px 2px #808080;
  z-index: 1000;
}

/* Hide ALL content panes by default */
.content {
  display: none;
  width: 100%;
  height: auto !important;     /* Dynamically expands heights downwards */
  overflow: visible !important;/* Unlocks global scrolling workflow */
}

.sub-content {
  display: none;         /* Hidden by default until activated */
  width: 100%;
}

/* --- MAIN TABS SHOW/HIDE ENGINE --- */
#tab-home:checked ~ .main-content-home { display: block; }
#tab-shop:checked ~ .main-content-shop { display: block; }
#tab-about:checked ~ .main-content-about { display: block; }
#tab-contact:checked ~ .main-content-contact { display: block; }

/* --- SUB TABS SHOW/HIDE ENGINE --- */
#sub-lewkin:checked ~ .content-lewkin { display: block; }
#sub-cider:checked ~ .content-cider { display: block; }
#sub-skincare:checked ~ .content-skincare { display: block; }

/* Active Tab Highlight Visual Cue */
#tab-home:checked ~ .tab-nav label[for="tab-home"],
#tab-shop:checked ~ .tab-nav label[for="tab-shop"],
#tab-about:checked ~ .tab-nav label[for="tab-about"],
#tab-contact:checked ~ .tab-nav label[for="tab-contact"],

#sub-lewkin:checked ~ .sub-nav label[for="sub-lewkin"],
#sub-cider:checked ~ .sub-nav label[for="sub-cider"],
#sub-skincare:checked ~ .sub-nav label[for="sub-skincare"] {
  background: #0CC0DF;
  color: #512C15;
  font-weight: bold;
}



/*==== shop tab ====*/

#shop-box {
  background-image: url("components/poop.jpg");
  width: 100%;
  border-radius:6px 6px 60px 30px;
  
  position: relative;
  border:ridge 4px #f0f0ef;
  outline: solid 4px #352d23;
  top: 12px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
}
  
.sub-box {
  display: block;
  position: relative;
  background: url("components/test.jpg");
  margin: 20px auto 0 auto;
  border: ridge 5px white;
  width: calc(100% - 10px);
  z-index: 5;                  /* Elevated layer to safely process touch events */
  height: auto !important;     /* Natural flow constraints */
  max-height: none !important;      
  overflow: visible !important; 
  justify-content: center;
  min-height: 500px;
  padding: 10px 0;
}

.sub-tab-box {
  width: 95%;
  max-width: 500px;  
  margin: 20px auto;
  justify-content: center;
  padding: 25px 5px 20px 5px ;
}

.border {
  background-image: url("components/bk.jpg");
  width: 97%;
  display: block;
  margin: 0 auto;
  position: relative;
  outline: ridge 3px teal;
  border-radius: 15px;
  
}


.border img {
  width: 300px;
  display: block;
  margin: 0 auto;
}

.bubble {
  position: absolute;
  display: block;
  margin: 0 auto;
  align-content: center;
  justify-content: center;
  z-index:200;
  top: 30px;
  left: 310px;
  
}
.bubble img {
  transform: rotate(20deg);
  width: 65px;
  height: 65px;
}
#bubble-text {
  position: absolute;
  display: block;
  z-index:201;
  top: 26px;
  left: 15px;
  transform: rotate(15deg);
}
.sub-box, .grid-mobile, .main-content-shop {
  touch-action: pan-y !important; /* Force-enables standard vertical scrolling */
}

.sub-box, .grid-mobile {
  pointer-events: auto !important; /* Re-links click and touch recognition */
}

.copyable-text {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  text-decoration: none;
}

.highlight-code {
  color: purple;
  text-decoration: underline;
  font-weight: bold;
}

/* --- THE JUMPING GRAPHIC ENGINE --- */
.jumping-popup-img {
  position: absolute;      /* Pulls the image out of layout document flow entirely */
  width: 120px;            /* The target growth size */
  height: 120px;
  object-fit: contain;
  z-index: 99999;          /* HIGHEST LAYER: Floats past carousels and headers cleanly */
  pointer-events: none;    /* Prevents the pop-up from blocking subsequent mouse clicks */
  
  /* Bouncy gravity curve physics animation */
  animation: burstJump 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- THE GRAVITY EFFECT KEYFRAMES --- */
@keyframes burstJump {
  0% {
    transform: scale(0.2) translateY(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: scale(1.3) translateY(-80px) rotate(-10deg); /* Shoots up and expands massive */
    opacity: 1;
  }
  40% {
    transform: scale(1) translateY(-100px) rotate(5deg);   /* Slow floats at the apex peak */
    opacity: 1;
  }
  100% {
    transform: scale(0.6) translateY(20px) rotate(25deg);   /* Falls downward and vanishes */
    opacity: 0;
  }
}

.carousel_selection {
  display: block;
  width: 97.5%;
  max-width: 97.5vw;       /* Force the carousel box to perfectly snap to the phone screen width */
  overflow-x: hidden;
  background: url("components/white-background.jpg");
  position: relative;
  height: 350px;
  top: 10px;
  margin: 10px auto;
  justify-content: center;
  border: ridge 4px black;
  border-radius: 15px;
}

.grid-mobile {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 40px;      /* LARGE vertical space between grid rows */
  column-gap: 25px;        
  width: 95%;
  max-width: 550px;  
  margin: 10px auto;
  justify-content: center;

}

/* FIX: Style the actual grid children (the anchor tags) */
.grid-mobile a {
  display: block;             /* Forces link blocks to fill their grid track slots */
  width: 100%;
}

.grid-mobile img {
  height: 200px;            
  width: 100%;                /* Forces images to match the links layout */

  border-radius: 8px;
  display: block;
  
}

/* Remove the broken .carousel_selection:target block entirely */

/* --- SUB TABS CAROUSEL INTEGRATION ENGINE --- */
/* This makes sure that when the cider tab radio is checked, the layout renders cleanly */
#sub-cider:checked ~ .content-cider { 
  display: block !important; 
}

/* --- THE FUNCTIONAL CAROUSEL ENGINE (Keep these solid properties) --- */
.carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;       /* Enables the gesture/touch swipe horizontal scrollbar */
  overflow-y: hidden;
  white-space: nowrap;
  gap: 20px;
  width: 90%;            /* Clean full width matching the phone frame */
  background: transparent;

  margin: 20px auto;
  
  /* Smooth snapping behavior */
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; 
}
  
.carousel img {
  height: 300px;            
  width: auto;
  flex-shrink: 0;         /* Stops the browser from crushing image widths to fit the screen */
  border-radius: 8px;
  scroll-snap-align: center; 
}

/*==== Retro hover pop animation effects ====*/
.pop-up {
  /* Establish base state transition speed (0.3 seconds) */
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
  cursor: pointer;
  position: relative;
  z-index: 10; /* Keeps normal images layered standardly */
}

.pop-up:hover {
  /* 1. Pop forward: Scales the image up by 10% (1.10) */
  transform: scale(1.10) translateY(0) !important; 
  
  /* 2. Layering: Forces the hovered item to jump above overlapping borders/boxes */
  z-index: 999 !important; 
  
  /* 3. Shadow Drop: Adds a dark lifting shadow beneath the graphic */
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.45)) !important;
}

footer {
  background-image: linear-gradient(
    to bottom, 
    rgba(82, 60, 33, 0.6) 0%, 
    rgba(82, 60, 33, 0.2) 90%, 
    rgba(82, 60, 33, 0) 90.1%, 
    rgba(0, 0, 0, 0.15) 100%
  );
  box-shadow: 
    inset 0 4px 6px rgba(288, 288, 288, 0.8), /* Inner top reflection */
    inset 0 -4px 6px rgba(238, 238, 238, 0.8),       /* Inner bottom shade */
    0 8px 12px rgba(0, 85, 128, 0.3);         /* Soft colorful drop shadow */
  box-shadow: 0 -5px 0 0 #0CC0DF; /* Top border accent matching your design */
  padding: 15px;
  text-align: left;
  font-family: "horizon";
}

                                                            /* ===== MOBILE BUG FIXES ==== */
                                                            
                                                            
/* browser viewport stay at the top */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100vh;
}
