/* styles.css - shared look */
:root{
  --accent: #ff6b6b;
  /* --bg: #0b1020; */
  --bg: #ffc2d1;
  --card: rgba(255,255,255,0.04);
  --glass: rgba(255,255,255,0.06);
  --text: #660000;
}

*{
    box-sizing:border-box
}
html,body{
    margin:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
    scroll-behavior: smooth;
}
body{
    background:var(--bg);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background:linear-gradient(120deg,#ff7aa24d,#7af4ff4d,#ffd37a57,#a2ff7a54); */
    background-color: rgba(0, 0, 0, 0.9);
    /* background: rgba(255, 255, 255, 0.733); */
    background: linear-gradient(120deg,#ee7795e0,#b95151e1, #ee7795da,#cc5050de);
    background-attachment: scroll;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
}

.logo {
    width: 110px;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 2222;
    width: 100%;
    padding: 0;
    margin: 0;
}

#navbar li {
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
  list-style: none;
  padding: 0 20px;
}

#navbar li a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    color: #660000;
    transition: 0.3s ease;
}

#navbar li a:focus,
#navbar li a:hover,
#navbar li a.active {
  color: #000;
}

#navbar li a:focus:after,
#navbar li a:hover:after,
#navbar li a.active::after {
  width: 100%;
  left: 0%;
}

#navbar li a:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #000;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

/* hero */
.hero{
  position:relative;
  height:80vh;
  width: 95%;
  border-top-left-radius: 18px;    /* top-left stays sharp */
  border-top-right-radius: 18px;   /* top-right stays sharp */
  border-bottom-left-radius: 18px;   /* bottom-left rounded */
  border-bottom-right-radius: 18px;  /* bottom-right rounded */
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  margin: 28px auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:0 8px 30px rgba(0,0,0,0.6);
}

#storeHero {
  height:90vh;
}

/* animated gradient (soft, shifting) */
.gradient-bg{
  position:absolute;inset:0;
  filter:blur(16px) saturate(120%);
  background:linear-gradient(120deg,#ffc2d1,#cf758c, #ac4848,#a53333);
  background-size:600% 600%;
  animation: gradientShift 18s linear infinite;
  opacity:.85;
}
@keyframes gradientShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* floating bubbles as pseudo-sprites */
.bubbles{
  position:absolute; inset:0; pointer-events:none;
}
.bubble{
  position:absolute;
  width:var(--size);
  height:var(--size);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.712), rgba(255, 255, 255, 0.37) 50%);
  border-radius:50%;
  filter: blur(2px);
  opacity:0.85;
  transform: translate3d(0,0,0);
  animation: floaty linear infinite;
}
@keyframes floaty{
  0%{transform: translateY(0) translateX(0) scale(1)}
  50%{transform: translateY(-40px) translateX(8px) scale(1.06)}
  100%{transform: translateY(0) translateX(-8px) scale(1)}
}

.hero-content{
  z-index:3;
  text-align:center;
  padding:20px;
  width:100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
#instr {
  flex-direction: column;
  gap: 20px;
}
#login {
  flex-direction: column;
}
#loginHero {
  width: 40%;
  height: 90vh;
}
/* Center the form */
#loginForm {
  max-width: 360px;
  margin: 50px auto;
  padding: 30px 25px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Input fields */
#loginForm input[type="text"],
#loginForm input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

/* Input focus effect */
#loginForm input:focus {
  border-color: #ffb6c1;
  box-shadow: 0 0 6px rgba(255, 182, 193, 0.6);
}

/* Login button */
#loginForm button {
  width: 100%;
  background-color: #ffb6c1;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Button hover */
#loginForm button:hover {
  background-color: #ff9aae;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
}

/* Optional: make placeholder text a bit lighter */
#loginForm input::placeholder {
  color: #aaa;
}

.storeHeroContent {
  z-index:3;
  text-align:center;
  padding:20px;
  width:100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
}

#leftSide h1 span {
  font-size: 3em;
  font-style: italic;
  font-family: 'Great Vibes', cursive;
}
#leftSide img {
  width: 200px;
}
#rightSide img {
  width: 400px;
}
.hero h1{
    font-size:clamp(28px,4vw,44px);
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 8px;
    font-weight: 800;
    margin:0 0 8px;
    color: #660000;
}
.hero h2{
    font-size: 24px;
    font-family: monospace;
    font-weight: 800;
    margin:0 0 8px;
    /* color: #202020; */
    color: #660000;
}
.hero p{
    opacity:.9;
    margin:0 0 12px;
    max-width:800px;
    font-size: 18px;
    font-weight: 600;
    margin-left:auto;
    margin-right:auto;
    /* color: #202020; */
    color: #660000;
}
.storeHeroContent h1 {
  font-family: 'Dancing Script', cursive;
}
#login h1 {
  font-size:clamp(28px,4vw,44px);
  font-family: 'Great Vibes', cursive;;
  letter-spacing: 2px;
  font-weight: 800;
}
#login h1 span {
  font-size: 2.4em;
  font-style: italic;
  font-family: 'Great Vibes', cursive;
}

#instr h1 {
  font-family: 'Great Vibes', cursive;
}

#thanksSection {
    width: 100%;
    margin:0;
    padding:24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
#thanksSection h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 64px;
  margin-bottom: 0;
  margin-top: 0;
}
#thanksSection p {
  font-weight: 500;
}
.storesButton, .linkButton {
  position: relative;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  cursor: pointer;
  border-radius: 6em;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: #ffc2d1;
  background-color: #660000;
  margin-top: 10px;
}
.linkButton {
  padding: 0.7em 2em;
}

.storesButton span, .linkButton a {
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
}
.linkButton a {
  font-size: 16px;
}

.storesButton:hover, .linkButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.storesButton:active, .linkButton:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.storesButton::after, .linkButton::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.storesButton::after, .linkButton::after {
  background-color: #660000;
}

.storesButton:hover::after, .linkButton:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}
#thanksRightSide img {
  width: 500px;
  margin: 0px 50px;
}

#stores {
  margin-top: 50px;
}
#rsHeading {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
#rsHeading img {
  width: 200px;
}
#rsHeading h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 94px;
}
/* registry stores buttons */
.stores{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:12px;
}

.store-btn{
  background:linear-gradient(135deg, #660000, #aa2929);
  color:#ffc2d1;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  width: 30em;
  text-align: center;
  transition: 0.6s ease;
}

.store-btn:hover {
  background:linear-gradient(135deg, #d38c9e, #d86985);
  color: #660000;
}

/* simple table-like layout */

.table-container {
  width: 100%;
  max-width: 100%;
  max-height: 400px; /* adjust height */
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #660000;
  border-radius: 20px;
  margin-top: 20px;
}

#itemsTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* force horizontal scroll if too narrow */
}

#itemsTable th,
#itemsTable td {
  border: 1px solid #660000;
  padding: 8px;
  text-align: center;
  white-space: nowrap; /* prevent text wrapping */
}

#itemsTable thead {
  position: sticky;
  top: 0;
  background-color: #660000;
  z-index: 2;
  color: #ffc2d1;
}

#itemsTable tbody tr:nth-child(even) {
  background-color: #660000b7;
  color: #ffc2d1;
}
#itemsTable tbody tr:nth-child(odd) {
  background-color: #ffc2d1be; /* first row, third row, etc. */
  color: #660000;
}
.table{width:100%;border-radius:10px;background:var(--card);padding:10px;overflow:auto}
.row{display:grid;grid-template-columns: 1.6fr 2fr 1fr 0.8fr 0.8fr 0.6fr 0.8fr; gap:12px;align-items:center;padding:10px;border-bottom:1px solid rgba(255,255,255,0.03)}
.header{font-weight:700;color: #660000;background: rgba(255,255,255,0.02)}
.cell{font-size:14px;word-break:break-word}
.small{font-size:13px;opacity:.9}
.link{color:#660000;text-decoration:underline}

/* footer */
footer{
  padding:16px;
  text-align:center;
  align-content: center;
  margin-top:18px;
  color: #660000;
}

footer h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 124px;
}
footer p {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
}
footer h3 {
  color: #660000;
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  padding-bottom: 40px;
}
footer h4 {
  color: #660000;
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
}
footer a img {
  width: 400px;
  padding-bottom: 40px;
}
.backToTop, .logoutBtn {
  padding:4px 4px;
  border-radius:80px;
  border:none;
  background:#660000;
  color:#ffc2d1;
  cursor:pointer;
  width: 12em;
  height: 4em;
  text-align: center;
  font-weight:600;
  font-size: 18px;
  font-family: 'Dancing Script', cursive;
}

/* Base responsive styles */
img {
  max-width: 100%;
  height: auto;
}

/* Flexible container adjustments */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#thanksSection {
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure text remains readable on all devices */
.hero p {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#thanksSection p {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive images with maintained aspect ratios */
.logo {
    width: 110px;
    max-width: 100%;
    height: auto;
}

#leftSide img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

#rightSide img {
    width: 400px;
    max-width: 100%;
    height: auto;
}

#thanksRightSide img {
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 0px 20px;
}

#rsHeading img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

footer a img {
    width: 400px;
    max-width: 100%;
    height: auto;
    padding-bottom: 40px;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    button, .storesButton, .linkButton, .store-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    #navbar li a {
        padding: 15px 20px;
        display: block;
    }
    
    .custom-checkbox .checkmark {
        min-width: 24px;
        min-height: 24px;
    }
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 9999;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #660000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    #navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(120deg,#ee7795e0,#b95151e1, #ee7795da,#cc5050de);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 9998;
        padding: 0;
    }

    #navbar.active {
        left: 0;
    }

    #navbar li {
        margin: 20px 0;
        padding: 10px 20px;
    }

    #navbar li a {
        font-size: 24px;
        color: #660000;
    }

    .logo {
        width: 80px;
        order: -1;
        margin-bottom: 40px;
    }
}

/* Specific handling for 1024x600 and similar resolutions */
@media (max-width: 1024px) and (max-height: 600px) {
    .hero {
        height: auto;
        min-height: 85vh;
        width: 98%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 20px;
        padding: 20px 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    #leftSide, #rightSide {
        flex: 1;
    }
    
    #leftSide h1 {
        font-size: clamp(24px, 3.5vw, 32px);
        margin-bottom: 10px;
    }
    
    #leftSide h1 span {
        font-size: 2.2em;
    }
    
    #leftSide img {
        width: 140px;
    }
    
    #rightSide img {
        width: 280px;
    }
    
    #thanksSection {
        flex-direction: row;
        gap: 20px;
        padding: 20px 15px;
    }
    
    #thanksSection h3 {
        font-size: 40px;
    }
    
    #thanksSection p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    #thanksRightSide img {
        width: 320px;
        margin: 0px 20px;
    }
}

/* Tablet and Desktop responsive breakpoints */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    
    #leftSide, #rightSide {
        text-align: center;
    }
    
    #rightSide img {
        width: 300px;
    }
    
    #thanksSection {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    
    #thanksRightSide img {
        width: 400px;
        margin: 0;
    }
    
    #rsHeading img {
        width: 150px;
    }
    
    #rsHeading h3 {
        font-size: 70px;
    }
    
    footer a img {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 60vh;
        width: 98%;
        margin: 20px auto;
    }
    
    #leftSide img {
        width: 150px;
    }
    
    #rightSide img {
        width: 250px;
    }
    
    #thanksSection h3 {
        font-size: 48px;
    }
    
    #thanksRightSide img {
        width: 300px;
    }
    
    #rsHeading {
        flex-direction: column;
        gap: 20px;
    }
    
    #rsHeading h3 {
        font-size: 60px;
        margin: 0;
    }
    
    .stores {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 50vh;
        margin: 15px auto;
        padding: 20px;
    }
    
    .hero h1 {
        font-size: clamp(24px, 5vw, 36px);
        letter-spacing: 4px;
        text-align: center;
    }
    
    #leftSide h1 span {
        font-size: 2em;
    }
    
    #leftSide img {
        width: 120px;
    }
    
    #rightSide img {
        width: 200px;
    }
    
    #thanksSection {
        padding: 20px 15px;
    }
    
    #thanksSection h3 {
        font-size: 36px;
    }
    
    #thanksSection h4 {
        font-size: 18px;
    }
    
    #thanksSection p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    #thanksRightSide img {
        width: 250px;
    }
    
    #rsHeading img {
        width: 100px;
    }
    
    #rsHeading h3 {
        font-size: 40px;
    }
    
    footer h1 {
        font-size: 80px;
    }
    
    footer h3 {
        font-size: 20px;
        padding-bottom: 20px;
    }
    
    footer a img {
        width: 250px;
        padding-bottom: 20px;
    }
    
    .backToTop, .logoutBtn {
        width: 10em;
        height: 3.5em;
        font-size: 16px;
        margin: 5px;
    }
    
    #bottomButtons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Additional handling for 1024px wide screens */
@media (min-width: 1024px) and (max-height: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        width: 96%;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 30px;
        padding: 25px 20px;
    }
    
    #leftSide img {
        width: 160px;
    }
    
    #rightSide img {
        width: 320px;
    }
}

/* Landscape orientation handling for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 90vh;
    }
    
    #navbar {
        height: 100vh;
        padding-top: 60px;
    }
    
    #navbar li {
        margin: 15px 0;
    }
    
    #navbar li a {
        font-size: 20px;
    }
    
    .logo {
        width: 60px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .hero h1 {
        font-size: clamp(20px, 6vw, 28px);
        letter-spacing: 2px;
    }
    
    #leftSide h1 span {
        font-size: 1.8em;
    }
    
    #leftSide img {
        width: 100px;
    }
    
    #rightSide img {
        width: 150px;
    }
    
    #thanksSection {
        padding: 15px 10px;
    }
    
    #thanksSection h3 {
        font-size: 28px;
    }
    
    #thanksSection h4 {
        font-size: 16px;
    }
    
    #thanksSection p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    #thanksRightSide img {
        width: 200px;
    }
    
    #rsHeading img {
        width: 80px;
    }
    
    #rsHeading h3 {
        font-size: 32px;
    }
    
    .storesButton, .linkButton {
        padding: 0.8em 2em;
        font-size: 18px;
    }
    
    .storesButton span, .linkButton a {
        font-size: 18px;
    }
    
    footer h1 {
        font-size: 60px;
    }
    
    footer h3 {
        font-size: 16px;
        padding-bottom: 15px;
    }
    
    footer h4 {
        font-size: 14px;
    }
    
    footer a img {
        width: 200px;
        padding-bottom: 15px;
    }
    
    .backToTop, .logoutBtn {
        width: 9em;
        height: 3em;
        font-size: 14px;
    }
}

/* Login form responsive styles */
@media (max-width: 768px) {
    #loginHero {
        width: 95%;
        height: auto;
        min-height: 70vh;
    }
    
    #loginForm {
        margin: 30px auto;
        padding: 25px 20px;
        max-width: 320px;
    }
    
    #login h1 {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    #login h1 span {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    #loginHero {
        width: 98%;
        min-height: 60vh;
    }
    
    #loginForm {
        margin: 20px auto;
        padding: 20px 15px;
        max-width: 300px;
    }
    
    #login h1 {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 20px;
    }
    
    #login h1 span {
        font-size: 1.8em;
    }
}

/* Large screen optimization */
@media (min-width: 1400px) {
    .hero {
        max-width: 1200px;
        margin: 28px auto;
    }
    
    #thanksSection {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 24px;
    }
    
    footer {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .stores {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

/* Extra large screen handling */
@media (min-width: 1800px) {
    body {
        max-width: 1600px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Table responsive styles */
@media (max-width: 880px) {
    .row {
        grid-template-columns: 1fr;
    }
    .header {
        display: none;
    }
}

/* Print styles for better printing experience */
@media print {
    .hamburger,
    #navbar,
    .storesButton,
    .linkButton,
    .backToTop,
    .logoutBtn {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

