/* Blog Post Visibility Fix */
.blog-container {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #222 !important;
  min-height: 300px;
  display: block;
}
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden !important;
  }
}
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}
@media (max-width: 600px) {
  #theme-toggle {
    position: fixed !important;
    top: 14px !important;
    left: 16px !important;
    right: auto !important;
    z-index: 1001 !important;
    margin: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
  }
}
/* Extra responsive tweaks for about.html */
@media (max-width: 600px) {
  .about-header {
    padding: 1.1rem 0.2rem !important;
  }
  .about-title {
    font-size: 1.35rem !important;
  }
  .about-subtitle {
    font-size: 1rem !important;
  }
  .about-section {
    padding: 1.1rem 0.2rem !important;
  }
  .about-section-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.7rem !important;
  }
  .about-section-text {
    font-size: 0.98rem !important;
    max-width: 98vw !important;
    padding: 0 0.2rem !important;
  }
  .team-grid {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .team-member {
    width: 98vw !important;
    padding: 0.7rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.98rem !important;
  }
  .team-img, .team-img-placeholder {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 0.7rem !important;
  }
  .team-name {
    font-size: 1rem !important;
  }
  .team-role {
    font-size: 0.95rem !important;
  }
  .team-desc {
    font-size: 0.92rem !important;
  }
  .values-grid {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .value-card {
    width: 98vw !important;
    padding: 0.7rem 0.2rem !important;
    font-size: 0.97rem !important;
  }
  .about-footer {
    padding: 0.7rem 0.1rem !important;
    font-size: 0.85rem !important;
  }
}
body.night-mode .value-card {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #222 !important;
}
body.night-mode .about-section-text {
  color: #fff !important;
}
body.night-mode .team-img,
body.night-mode .team-img-placeholder {
  background: #222 !important;
}
body.night-mode .team-member {
  margin-bottom: 2.5rem !important;
  border-bottom: 2px solid #444 !important;
  padding-bottom: 2.5rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
body.night-mode .team-member:last-child {
  border-bottom: 2px solid #444 !important;
}
body.night-mode .team-member,
body.night-mode .team-name,
body.night-mode .team-role,
body.night-mode .team-desc {
  color: #fff !important;
  background: #111 !important;
}
/* === About Page Custom Styles === */
.about-header {
  background: #23232b;
  color: #fff;
  padding: 2rem 0;
}
.about-header-container {
  text-align: center;
}
.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.about-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.about-section {
  padding: 2rem 0;
}
.about-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.about-section-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  width: 260px;
  margin-bottom: 1rem;
}
.team-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  background: #e5e7eb;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.team-img-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e5e7eb;
  margin: 0 auto 1rem auto;
}
.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.team-role {
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.team-desc {
  color: #555;
  font-size: 0.98rem;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.value-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.2rem 1.5rem;
  text-align: initial;
  width: 270px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: block;
  margin-right: 0.5rem;
}
.value-desc {
  color: #444;
  font-size: 0.97rem;
  text-align: left;
  margin-bottom: 0;
  line-height: 1.35;
}
.value-icon {
  font-size: 1.5em;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}
.about-footer {
  background: #23232b;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}
.about-footer-container {
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .team-grid, .values-grid {
    flex-direction: column;
    align-items: center;
  }
  .team-member, .value-card {
    width: 90%;
    margin-bottom: 1.5rem;
  }
}
body.night-mode .cart-item h3,
body.night-mode .cart-item .text-lg,
body.night-mode .cart-item .text-indigo-700 {
  font-weight: bold !important;
  color: #111 !important;
}
body.night-mode .cart-item .text-gray-800,
body.night-mode .cart-item .description,
body.night-mode .cart-item .text-green-700,
body.night-mode .cart-item .price {
  font-weight: normal !important;
  color: #111 !important;
}
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}
@media (max-width: 768px) {
  body {
    min-height: 100vh !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    position: relative;
  }
  footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0 !important;
    padding: 1rem 0 !important;
    background: #23232b;
    color: #fff;
    text-align: center;
  }
  main {
    padding-bottom: 120px !important;
  }
}
/* === Cart Button Styles === */

/* Hide desktop cart button for 100px-302px screens */
@media (min-width: 100px) and (max-width: 302px) {
  .desktop-cart-btn {
    display: none !important;
  }
}

/* Show desktop cart button by default */
.desktop-cart-btn {
  display: inline-block !important;
}

/* Hide mobile cart button by default */
.mobile-cart-btn {
  display: none !important;
}

@media (min-width: 100px) and (max-width: 302px) {
  .desktop-cart-btn {
    display: none !important;
  }
  .mobile-cart-btn {
    display: inline-block !important;
  }
}
@media (min-width: 100px) and (max-width: 302px) {
  .nav-mobile-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 0;
  }
  #theme-toggle {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 12px !important;
    position: relative;
    align-self: center;
  }
}
@media (min-width: 100px) and (max-width: 302px) {
  #theme-toggle {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 12px !important;
    position: relative;
  }
}
@media (min-width: 100px) and (max-width: 302px) {
  .main-nav .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }


  #theme-toggle {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block;
    position: relative;
    margin-top: 10px !important; /* Push below Osumare's Gallery */
    align-self: flex-start;
    width: 36px;
  }
  /* To move right, swap margin-left and margin-right: */
  /*
  #theme-toggle.move-right {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  */
  .burger {
    margin-left: 0 !important;
    margin-top: 8px !important;
    align-self: flex-start;
    width: 32px;
    display: block !important;
    position: relative;
  }
}
/* === Proceed to Checkout Button Custom === */
#checkout-btn {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 16px rgba(34,197,94,0.12);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
  outline: none;
  margin-top: 2.5em;
}
#checkout-btn:hover, #checkout-btn:focus {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(34,197,94,0.18);
}
#checkout-btn.animated {
  animation: checkout-bounce 0.4s;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
}
@keyframes checkout-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
/* === Remove Button Custom === */
.remove-btn {
  background: linear-gradient(90deg, #e94560 0%, #f43f5e 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.6rem;
  box-shadow: 0 2px 8px rgba(233,69,96,0.12);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
  outline: none;
  margin-top: 0.7em;
}
.remove-btn:hover, .remove-btn:focus {
  background: linear-gradient(90deg, #be123c 0%, #f43f5e 100%);
  transform: scale(1.09);
  box-shadow: 0 6px 18px rgba(233,69,96,0.18);
}
.remove-btn.removed {
  animation: remove-bounce 0.4s;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}
@keyframes remove-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
/* Cart button under Enter Gallery: hidden by default, shown only for 100px-302px screens */
.mobile-cart-btn {
  display: none !important;
}
@media (min-width: 100px) and (max-width: 302px) {
  .mobile-cart-btn {
    display: inline-block !important;
  }
}
/* === Add to Cart Button Custom === */
.add-to-cart {
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 2.2rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
  outline: none;
}
.add-to-cart:hover, .add-to-cart:focus {
  background: linear-gradient(90deg, #1d4ed8 0%, #6366f1 100%);
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(37,99,235,0.18);
}
.add-to-cart.added {
  animation: cart-bounce 0.4s;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}
@keyframes cart-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
/* === Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* === Global Styles === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: whites;
  color: #333;
  line-height: 1.6;
  /* Removed opacity: 0 and transform to ensure visibility */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded {
  opacity: 1;
  transform: translateX(0);
}

body.fade-out {
  animation: slideOutLeft 0.5s forwards;
}

.main-nav {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      gap: 15px;
      padding: 10px 0;
      position:sticky;
      top: 0;
      z-index: 1000;
      
    }

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: #222;
  text-align:left;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #333;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  height: 2px;
  background: #222;
  width: 0;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
  transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
  background: url('banner.jpg') center/cover no-repeat fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  position: relative;
  text-align: center;
}


.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* === Button === */
.btn {
  background: #e94560;
  color: white;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #d7334e;
  transform: scale(1.05);
}

/* === Section Styling === */
section {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 2rem;
  text-align: center;
}

/* === Artwork Display === */
.art-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.art-row img,
.art-thumb img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.art-row img:hover,
.art-thumb img:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* === About Section === */
.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bio img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e94560;
  margin-top: -30px;
}

.about{
  margin-top: -60px;
}

#segunjpg{
  margin-top: 10px;
}

/* === Gallery Wall === */
.gallery-room {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  gap: 2rem;
  margin-top: 1rem;
}

.gallery-wall {
  background: #f3f3f3;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  border-top: 1px solid #ddd;
  transform-style: preserve-3d;
}

.left-wall {
  transform: rotateY(40deg) translateZ(-50px);
}

.center-wall {
  transform: translateZ(0);
}

.right-wall {
  transform: rotateY(-40deg) translateZ(-50px);
}

.art-frame {
  background: white;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 300px; /* Adjust as needed */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  width: 250px;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.4s ease;
  will-change: transform, opacity;
}



.art-frame.visible {
  opacity: 1;
  transform: translateY(0);
}

.art-frame:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  z-index: 2;
}

.art-frame img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  backface-visibility: hidden;
}

.label {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* === Lightbox === */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

    .featured + .about {
      margin-top: 0px !important;
    }
#lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 1;
  transition: opacity 0.2s ease;
}

#prev-btn {
  left: 2%;
}

#next-btn {
  right: 2%;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

/* === Music Toggle === */
#music-toggle {
  background: #333;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* === Feedback Form === */
.feedback-form {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.feedback-form button {
  background: #e94560;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
}

.feedback-form button:hover {
  background: #d7334e;
}

/* === Guestbook === */
#guestbook-entries {
  margin-top: 3rem;
  text-align: left;
}

#entries-list {
  list-style: none;
  padding: 0;
}

#entries-list li {
  background: #f8f8f8;
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid #e94560;
  border-radius: 4px;
}

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

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
  }
  .cart-mobile {
    display: block !important;
  }
  .cart-desktop {
    display: none !important;
  }
}

header {
      background: #1a1a1a;
      color: #fff;
      text-align: center;
      padding: 2rem;
    }

    header h1 {
      font-size: 2.5rem;
    }

    header p {
      font-style: italic;
      margin: 1rem 0;
    }

    .enter-btn {
      background: #e63946;
      color: #fff;
      padding: 0.8rem 1.5rem;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1.2rem;
    }

    .enter-btn:hover {
      background: #d00000;
    }


.nav-btn {
      text-decoration: none;
      color: #333;
      padding: 8px 15px;
      font-size: 16px;
    }


 /* Ensure no extra margin/padding on the first section */
    #welcome {
      margin-top: 25px;
      padding-top: 10px;
    }
  
  #welcome2 {
  margin-top: -30px;
}


  #gallery{
    margin-top: 15px;
  }

  .section-header {
  background-color: transparent;
  color: #222;
  font-size: 1rem;
}



 .nav-btn:hover {
      background-color: #f0f0f0;
      border-radius: 5px;
    }



    #wall1-btn {
      background: #457b9d;
      color: #fff;
    }

    #wall2-btn {
      background: #2a9d8f;
      color: #fff;
    }

    #wall3-btn {
      background: #e9c46a;
      color: #333;
    }

    #exit-btn {
      background: #e63946;
      color: #fff;
    }

.nav-btn {
            display: inline-block;
            padding: 1rem 1.5rem;
            margin: 0.8rem 0.6rem; /* 👈 Adds space between buttons */
            text-decoration: none;
            color: #fff;
            background: linear-gradient(45deg, #4A90E2, #50C9C3);
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
            transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
        }
        .nav-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
            background: linear-gradient(45deg, #50C9C3, #4A90E2);
        }
        .nav-btn:active {
            transform: translateY(0);
            box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
        }

/* Reset default margins and ensure full-width layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Prevents padding from adding to width */
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers nav horizontally */
  width: 100%;
  min-height: 100px; /* Increased height */
  position: relative; /* Positioning context for absolute p */
  background-color: #f8f8f8; /* Optional: Makes height visible */
}

nav {
  background: grey;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.footernav {
  display: flex;
  justify-content: center; /* Centers links horizontally */
  gap: 30px; /* Spacing between links */
  flex-wrap: wrap;
  width: 100%;
}

.footernav a {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(90deg, #4a90e2, #9013fe);
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footernav a:hover {
  background: linear-gradient(90deg, #9013fe, #4a90e2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#seguns-virtual-gallery {
  position: absolute; /* Removes p from flex flow */
  top: 50%; /* Positions at 50% from top */
  left: 50%; /* Positions at 50% from left */
  transform: translate(-50%, -50%); /* Centers both vertically and horizontally */
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  color: #333;
}


@media (max-width: 600px) {
  .footernav {
    flex-direction: column; /* Stack links vertically */
    gap: 10px;
  }
  .footernav a {
    font-size: 1rem; /* Slightly smaller on mobile */
    padding: 6px 12px;
  }
}


.footernav a:active {
  background: #333; /* Darker background when clicked */
}
.footernav a:visited {
  opacity: 0.8; /* Slightly faded for visited links */
}

/* Lightbox overlay styling */
.lightbox-overlay {
  /* removed duplicate overlay styling, use #lightbox-overlay only */
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.lightbox-nav {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  margin: 0 20px;
}



.music-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: radial-gradient(circle at center, #8e44ad, #3498db);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.music-button:hover {
  transform: translateY(-4px) scale(1.05);
}

.music-button .icon {
  font-size: 1.8rem;
  color: white;
  animation: pulseNote 3s infinite;
  z-index: 2;
}

@keyframes pulseNote {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.music-button .waves {
  position: absolute;
  bottom: 10px;
  display: flex;
  gap: 3px;
}

.music-button .waves span {
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 50px;
  animation: ripple 1s infinite ease-in-out;
}

.music-button .waves span:nth-child(1) {
  animation-delay: 0s;
}
.music-button .waves span:nth-child(2) {
  animation-delay: 0.2s;
}
.music-button .waves span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ripple {
  0% { height: 10px; opacity: 0.4; }
  50% { height: 20px; opacity: 0.8; }
  100% { height: 10px; opacity: 0.4; }
}





.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: linear-gradient(145deg, #202020, #2c2c2c);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
  color: white;
  font-family: 'Poppins', sans-serif;
}

.login-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: white;
  font-size: 1rem;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}


.logout-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: linear-gradient(to right, #c0392b, #e74c3c);
}


.tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #e0e7ff;
  color: #3730a3;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #6366f1;
  color: white;
}

.art-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

form#uploadForm {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* === Burger Toggle Hidden by Default === */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
}


/* === Mobile Toggle Styles === */
@media (max-width: 768px) {
  .burger {
    display: block !important;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 101;
  }
  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
    gap: 1rem;
    padding: 1rem 0;
  }


  @media (max-width: 768px) {
  .gallery-room {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  @media (max-width: 768px) {
  .gallery-wall {
    width: 100%;
    transform: none !important; /* Overrides 3D rotation */
    padding: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
  }
}

  }


@media (max-width: 768px) {
  .gallery-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gallery-wall img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }

  .art-frame {
    width: 90%;
    text-align: center;
  }
}


@media (max-width: 768px) {
  body {
    min-height: auto !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
    background-color: lightyellow; /* Or whatever you're using */
  }
}


  .nav-wrapper.active {
    display: flex;
  }
}


@media (max-width: 768px) {
  #music-toggle {
    display: none;
  }
}


@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    
  }

  body {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: lightyellow; /* Or whatever you're using */
    
  }

  .gallery-room, .gallery-wall {
    overflow-x: hidden;
    transform: none !important; /* Removes horizontal effects causing overflow */
    width: 100%;
  }
}

@media (max-width: 768px) {
  footer {
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  #seguns-virtual-gallery {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .footernav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .footernav a {
    width: 90%;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .nav-wrapper {
    max-height: 70vh; /* 👈 limit nav height */
    overflow-y: auto;  /* 👈 allows scrolling if needed */
    /* display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 1000; */
  }

  .nav-wrapper.active {
    display: flex;
  }

  .nav-btn {
    margin-bottom: 0.6rem;
  }
}



.art-frame .description {
  max-height: 3.5rem;       /* Limit height */
  overflow: hidden;         /* Hide overflow */
  text-overflow: ellipsis;  /* Show ... for overflow */
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* Max 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
  #pagination {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .main-nav {
    margin-top: 48px !important;
  }
  }
  .nav-wrapper {
    position: static !important;
    z-index: 1 !important;
  }


#pagination button {
  margin: 0 6px;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, #4f46e5 0%, #3b82f6 70%);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#pagination button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.8);
}


#pagination button.active {
  background: linear-gradient(to right, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  transform: scale(1.1);
}

/* === Currency Selector Styles === */
#currency-select {
  padding: 0.5em 1em;
  border-radius: 6px;
  border: 1px solid #2563eb;
  font-size: 1em;
  background: #f3f4f6;
  color: #2563eb;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
#currency-select:focus {
  border-color: #4f46e5;
  outline: none;
}
label[for="currency-select"] {
  font-weight: bold;
  color: #2563eb;
  margin-right: 8px;
}
/* === Extra Responsive Design for Mobile Devices === */
@media (max-width: 480px) {
  html, body {
    font-size: 15px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .main-nav, .nav-container {
    flex-direction: column;
    gap: 8px;
    padding: 0.5rem 0.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .art-row img, .art-thumb img {
    width: 120px;
    height: 120px;
  }
  .art-frame {
    max-width: 95vw;
    width: 95vw;
    padding: 0.5rem;
  }
  section {
    padding: 2rem 0.5rem;
  }
  .feedback-form {
    padding: 1rem;
  }
  .login-container {
    margin: 40px auto;
    padding: 15px;
  }
  .footernav {
    gap: 5px;
  }
  .footernav a {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
  .music-button {
    width: 50px;
    height: 50px;
  }
  .btn, .nav-btn, .enter-btn, .logout-btn, .login-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 375px) {
  html, body {
    font-size: 13px;
  }
  .hero h1 {
    font-size: 1.2rem;
  }
  .main-nav, .nav-container {
    gap: 4px;
    padding: 0.2rem 0.2rem;
  }
  .art-row img, .art-thumb img {
    width: 90px;
    height: 90px;
  }
  .art-frame {
    padding: 0.2rem;
  }
  .footernav a {
    font-size: 0.8rem;
    padding: 2px 4px;
  }
}
