/* ==================== */
/* GENERAL PAGE STYLES */
/* ==================== */
:root {
    /* Light Theme (Default) */
    --background-color: #ffffff;
    --text-color: #000000;
    --theme-toggle: grey;
    --theme-toggle-text: white;
    --button-background: #ffffff;
    --button-text: #000000;
    --button-hover-background: yellow;
    --button-hover-text: #000000;
    --page-background: #EEEBE0;
    --video-item-background: #f9f9f9;
    --video-title-color: #333;
    --video-description-color: #888;
    --popup-background: #222222;
    --popup-text: white;
    --logo-text-color: #333;
    --text-overlay-color: black;
    --container-bg: #f5f5f5;
    --border-color: #ddd;
    --general: #DBB92A;
    --accent-color: #4CAF50;
    --articles-grid-light: url('assets/light/ArticlesLayoutBackground.webp');
    --blogs-grid-light: url('assets/light/BlogLayoutBackground.webp');
    --store-grid-light: url('assets/light/StoreLayoutBackground.webp');
}

[data-theme="dark"] {
    /* Dark Theme */
    --background-color: #121212;
    --text-color: #ffffff;
    --theme-toggle: lightgray;
    --theme-toggle-text: black;
    --button-background: #333333;
    --button-text: #ffffff;
    --button-hover-background: #555555;
    --button-hover-text: #ffffff;
    --page-background: #1e1e1e;
    --video-item-background: #333333;
    --video-title-color: #ffffff;
    --video-description-color: #cccccc;
    --popup-background: #222222;
    --popup-text: #ffffff;
    --logo-text-color: #ffffff;
    --text-overlay-color: white;
    --container-bg: #2a2a2a;
    --border-color: #444;
    --articles-grid-dark: url('assets/dark/ArticlesLayoutBackground.webp');
    --blogs-grid-dark: url('assets/dark/BlogsLayoutBackground.webp');
    --store-grid-dark: url('assets/dark/StoreLayoutBackground.webp');
}

.grid-bg-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: auto;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.grid-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
}
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gelato Extra Light';
    overflow-x: hidden;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

@font-face {
    font-family: 'Gelato Extra Light';
    src: url("assets/fonts/Gelato/GelatoTypewriter-ExtraLight.otf");
}
@font-face {
    font-family: 'Gelato Bold';
    src: url("assets/fonts/Gelato/GelatoTypewriter-Bold.otf");
}
@font-face {
    font-family: 'Gelato Regular';
    src: url("assets/fonts/Gelato/GelatoTypewriter-Regular.otf");
}
@font-face {
    font-family: 'Avant Garde Bold Condensed';
    src: url("assets/fonts/AvantGarde/AvantGardeBoldCondensed.otf");
}
@font-face {
    font-family: 'Avant Garde Demi Condensed';
    src: url("assets/fonts/AvantGarde/AvantGardeDemiCondensed.otf");
}
@font-face {
    font-family: 'Avant Garde Book Condensed';
    src: url("assets/fonts/AvantGarde/AvantGardeBookCondensed.otf");
}
@font-face {
    font-family: 'Avant Garde CE Book';
    src: url("assets/fonts/AvantGarde/AvantGardeCEBook.otf");
}
@font-face {
    font-family: 'Kilimanjaro';
    src: url("assets/fonts/KilimanjaroSans-Regular.ttf");
}

/* ==================== */
/* GENERAL ELEMENT VISIBILITY */
/* ==================== */
.light-mode-element {
    display: block;
}

.dark-mode-element {
    display: none;
}

[data-theme="dark"] .light-mode-element {
    display: none;
}

[data-theme="dark"] .dark-mode-element {
    display: block;
}

/* ==================== */
/* NAVIGATION BAR */
/* ==================== */
.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--theme-toggle);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  border: solid 1px;
  border-color: var(--text-color);
}

.button-container {
  display: flex;
  gap: 10px;
}

/* Nav Button Container */
.nav-button-container {
  position: relative;
  bottom: -3px;
  cursor: pointer;
  display: inline-block;
  width: 125px;
  height: 40px; /* Adjust based on your image height */
}

/* Background image handling */
.nav-button-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('assets/light/navbar.webp');
}

[data-theme="dark"] .nav-button-bg {
  background-image: url('assets/dark/navbar.webp');
}

.nav-button-container.active .nav-button-bg {
  background-image: url('assets/light/navbarSelected.webp');
}

[data-theme="dark"] .nav-button-container.active .nav-button-bg {
  background-image: url('assets/dark/navbarSelected.webp');
}

/* Button Text */
.button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-size: 16px;
  font-family: 'Gelato Extra Light';
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.nav-button-container.active .button-text {
  color: var(--text-color);
}

.theme-toggle-container {
    position: absolute;
    top: 60px;
    right: 80px;
    z-index: 1000;
    cursor: pointer;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.light-switch {
    position: relative;
    width: 10px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 6px;
}

.switch-cord {
    width: 30px;
    height: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Cord styling */
.light-switch::before {
    content: '';
    position: absolute;
    top: -15px;
    width: 2px;
    height: 40px;
    background-color: #333;
    z-index: 1;
}

[data-theme="dark"] .light-switch::before {
    background-color: #ccc;
}

/* Pull animation */
.light-switch.clicked .switch-cord {
    transform: translateY(15px);
    transition: transform 0.2s cubic-bezier(0.24, 0.73, 0, 1.48);
}

/* ==================== */
/* PAGE CONTAINER */
/* ==================== */
.container {
    display: flex;
    height: 100vh;
    width: 600vw;
    transition: transform 0.5s ease-in-out;
}

.page {
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    align-items: center;
    padding: 0px;
    padding-top: 80px;
    font-size: 24px;
    flex-shrink: 0;
    background-color: var(--page-background);
}


/* Update to the footer */
.footer {
    position: relative;
    width: 100%;
    height: 100px;
    margin-top: 40px;
    bottom: 0;
}

/* Remove absolute positioning from page-specific footers */
.page2 .footer,
.page3 .footer,
.page4 .footer,
.page5 .footer{
    position: relative;
    top: auto;
    margin-top: 40px;
}
.page6 .footer {
    z-index: 2;
    position: relative;
    top: 1500px;
    margin-top: 40px;
}

/* Add a container class to push content above footer */
.page-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px; /* Space before footer */
}

/* ==================== */
/* PAGE 1: INICIO */
/* ==================== */
.page1 .container-1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    margin-bottom: 40px;
    gap: 30px;
}

.page1 .left-image, 
.page1 .right-image {
    flex: 1;
    position: relative;
    min-width: 0;
}

.page1 .left-image {
    position: relative;
    top:75px;
    right: 200px;
    max-width: 650px;
}

.page1 .right-image {
    max-width: 25vw;
}

.page1 .left-image img, 
.page1 .right-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.page1 .right-image-button {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.page1 .right-image-button:hover {
    transform: scale(1.05);
}

/* Container 2: 3 Images Side by Side */
.page1 .container-2 {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 10px;
}

.page1 .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.page1 .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 150px;
}

.page1 .image-item {
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.page1 .image-item:hover {
    transform: translateY(-5px);
}

.page1 .image-item img {
    width: 100%;
    height: relative;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Container 3: Marquee, Image, Marquee */
.page1 .container-3 {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    border-radius: 8px;
}

/* Replace the existing marquee styles with these */
.page1 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page1 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page1 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page1 .marquee-image-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.page1 .marquee-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.page1 .marquee-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'Gelato Extra Light';
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    padding: 20px;
    color: var(--text-color);
    text-align: justify;
}

/* Container 4: Subscribe Functionality */
.page1 .container-4 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    text-align: center;
}

.page1 .subscribe-box-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.page1 .subscribe-box-content {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.page1 .subscribe-button {
    padding: 1px 10px;
    background-color: var(--general);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Gelato Extra Light';
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2rem;
    margin-top: 15px;
}

.page1 .subscribe-button:hover {
    background-color: var(--button-hover-background);
    color: var(--button-hover-text);
}

/* Footer*/

.footer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.footer-content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.footer-center-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    font-size:1rem;
    font-family: "Gelato light";
    transition: none !important;
}

.footer-center-button:hover {
    transform: translate(-50%, -50%) !important;
}

.footer-social-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto;
    background-color: #E9DDB8;
}

.social-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    background-color: #E9DDB8;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button.instagram {
    background-image: url('assets/both/FooterWorld.webp');
}

.social-button.facebook {
    background-image: url('assets/both/FooterFacebook.webp');
}

.social-button.twitter {
    background-image: url('assets/both/FooterInstagram.webp');
}
.footer-logo {
    width:10vw;
    margin-top:5px;
    margin-bottom:5px;
}

/* ==================== */
/* PAGE 2: ARTICLES */
/* ==================== */
.page2 {
    padding-top: 100px;
    position: relative;
}

.page2 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page2 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page2 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page2 .page-subtitle {
    text-align: left;
    margin-left: 2vw;
    font-size: 1rem;
    width: 50%;
    font-family: 'Gelato Extra Light';
}

.page2 .page-title {
    font-family: 'Kilimanjaro';
    text-align: center;
    width: 100%;
    margin: 10px 0 30px;
    font-size: 64px;
}

/* Planet Image */
.page2 .planet-image-container {
    margin: 20px 0 40px;
    align-self: center;
}

.page2 .planet-img {
    width: 25vw;
    height: auto;
    object-fit: contain;
}

/* Articles Grid */
.page2 .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: 1092px;
    height:955px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    bottom: 30px;
}

.page2 .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 1080px;
    height: 1005px;
    background-image: var(--articles-grid-light);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.8;
}

[data-theme="dark"] .page2 .grid-bg {
    background-image: var(--articles-grid-dark);
}

/* Article Cards */
.page2 .article-card {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    padding: 20px;
    width:530px;
    height:462px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align:left;
}

.page2 .article-card:hover {
    transform: translateY(-5px);
}

.page2 .article-image-container {
    width: 100%;
    margin-bottom: 15px;
}

.page2 .article-img {
    width: 100%;
    object-fit: contain;
}

.page2 .article-title {
    font-family: 'Gelato Bold';
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.page2 .article-date {
    font-family: 'Gelato Extra Light';
    font-size: 0.9rem;
    top: 10px;
    position:relative;
    color: var(--text-color);
    opacity: 0.8;
}

/* Positioning Controls to move entire grid (Don't touch unless absolutely necessary)*/
.page2 .articles-grid {
    margin: 0 50px;
    padding: 0px; 
}

.page2 .grid-text {
    position: absolute;
    z-index: 2; /* Above the grid background but below articles */
    font-family: 'Gelato Extra Light';
    color: var(--text-color);
    text-align: center;
}

/* Top middle text */
.page2 .top-text {
    left: 50%;
    top:-15px;
    transform: translateX(-50%);
    width: 60%;
    font-size: 1.5rem;
    font-family: 'Avant Garde Book Condensed';    
}

/* Center text */
.page2 .center-text {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    font-size: 1.5rem;
    font-family: 'Avant Garde Book Condensed';
}

/* For fucks sake, the damn children objects are fucked up. Real quick just in case: 4=1 5=2 6=3 7=4. GL future me.*/
.page2 .article-card:nth-child(4) {
    position: relative;
    top: 30px;
    right: 8px;
}

.page2 .article-card:nth-child(5) {
    position: relative;
    top: 30px;
}

.page2 .article-card:nth-child(6) {
    position: relative;
    top: 60px;
    right: 8px;
}

.page2 .article-card:nth-child(7) {
    position: relative;
    top: 60px;
}

.article1-content .h2{
    font-family: 'Gelato Bold';
    font-size: 24px;
}

.article1-content .h3{
    font-family: 'Gelato Regular';
    font-size: 24px;
}

.article1-content .p{
    font-family: 'Gelato Extra Light';
    font-size: 16px;
}

/* ==================== */
/* PAGE 3: VIDEOS */
/* ==================== */
.page3 {
    padding-top: 100px;
}

.page3 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page3 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page3 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page3 .videos-container {
    width: 65vw;
    margin: 0 auto;
    padding: 20px;
}

.page3 .video-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.page3 .video-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
    width: 90%;
    background-color: var(--video-item-background);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page3 .video-item:hover {
    transform: scale(1.02);
}

.page3 .video-item img {
    width: 250px;
    height: 140px;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.page3 .video-item .video-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page3 .video-item h3 {
    font-size: 18px;
    font-family: 'Gelato Bold';
    margin: 0 0 10px 0;
    color: var(--video-title-color);
}

.page3 .video-item p {
    font-size: 14px;
    color: var(--video-description-color);
    font-family: 'Gelato Extra Light';
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== */
/* PAGE 4: PODCASTS */
/* ==================== */
.page4 .podcasts-container {
    width: 65vw;
    margin: 0 auto;
    padding: 20px;
}

.page4 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page4 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page4 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page4 .video-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.page4 .video-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
    width: 90%;
    background-color: var(--video-item-background);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page4 .video-item:hover {
    transform: scale(1.02);
}

.page4 .video-item img {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    object-fit: cover;
}

.page4 .video-item .video-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page4 .video-item h3 {
    font-size: 18px;
    font-family: 'Gelato Bold';
    margin: 0 0 10px 0;
    color: var(--video-title-color);
}

.page4 .video-item p {
    font-size: 14px;
    font-family: 'Gelato Extra Light';
    color: var(--video-description-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== */
/* PAGE 5: BLOGS */
/* ==================== */
.page5 .blogs-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    bottom:600px;
    top: 10px;
    background-image: var(--blogs-grid-light);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

[data-theme="dark"] .page5 .blogs-container {
    background-image: var(--blogs-grid-dark);
}

.page5 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page5 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page5 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page5 .blogs-container {
    width: 1200px;
    height:866px;
    padding: 20px;
}

.page5 h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size:4rem;
    font-family: 'Kilimanjaro';
}

.page5 .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page5 .blog-item {
    background-color: var(--page-background);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    font-family: 'Gelato Extra Light';
    font-size:14px;
    margin: 10px;
    width: 330px;
    left:px; 
}

.page5 .blog-item:hover {
    transform: translateY(-5px);
}

.page5 .blog-item h3 {
    text-align: left;
    font-family: 'Gelato Bold';
    color: var(--text-color);
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: left;
}
.page5 .blog-item p{
    font-family: 'Gelato Extra Light';
    font-size: 14px;
}

.page5 .blog-item .image-container {
    margin-top: auto; /* Pushes image to bottom */
    width: 100%;
    border: solid 1px;
}

.page5 .blog-item img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
    display: block;
}

/* Blog Image Visibility BC for some fucking reason it doesnt hide with the general code >:v */
.blog-item .image-container .light-mode-element {
    display: block;
}

.blog-item .image-container .dark-mode-element {
    display: none;
}

[data-theme="dark"] .blog-item .image-container .light-mode-element {
    display: none;
}

[data-theme="dark"] .blog-item .image-container .dark-mode-element {
    display: block;
}

.page5 .blog-item:nth-child(1) {
    left: 45px;
}
.page5 .blog-item:nth-child(2) {
    left: 8px;
}
.page5 .blog-item:nth-child(3) {
    right: 25px;
}
.page5 .blog-item:nth-child(4) {
    left: 45px;
}
.page5 .blog-item:nth-child(5) {
    left: 8px;
}
.page5 .blog-item:nth-child(6) {
    right: 25px;
}

.blog-popup-article .centered{
    font-size: 30px;
    font-family: 'Kilimanjaro';
    position: absolute;
    top: 43%;
    left: 50%;
    text-align:center;
    transform: translate(-50%, -50%);
}

.blog-popup-article .centered-1{
    font-size: 12px;
    font-family: 'Avant Garde Book Condensed';
    position: absolute;
    top: 49%;
    left: 50%;
    text-align:center;
    transform: translate(-50%, -50%);
}

.blog-popup-article .bottom-left {
    position: absolute;
    bottom: 20%;
    left: 5%;
    font-size: 14px;
    font-family:'Avant Garde Book Condensed';
}

.blog1-content .h3{
    font-family: 'Gelato Regular';
    font-size: 24px;
}

.blog1-content .p{
    font-family: 'Gelato Extra Light';
    font-size: 16px;
}

/* ==================== */
/* PAGE 6: TIENDA */
/* ==================== */
.page6 {
    padding-top: 100px;
    position: relative;
}

.page6 .marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 35px;
    margin: 10px 0;
}

.page6 .marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.page6 .marquee-content span {
    padding-right: 50px; /* Space between duplicates */
}

/* Animation moves the content by its full width */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.page6 .store-grid-container {
    position: absolute;
    width: 1302px;
    height: 1490px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
    top: 450px; 
}

.page6 .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--store-grid-light);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

[data-theme="dark"] .page6 .grid-bg {
    background-image: var(--store-grid-dark);
}

.page6 .grid-text {
    position: absolute;
    z-index: 2;
    font-family: 'Gelato Extra Light';
    color: var(--text-color);
    text-align: center;
}

.page6 .top-text {
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 60%;
    font-size: 1.5rem;
    font-family: 'Avant Garde Book Condensed';
}

.page6 .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.page6 .product-item {
    background-color: var(--container-bg);
    border-radius: 10px;
    padding: 15px;
    width: 400px;
    height: 310px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.page6 .product-item:hover {
    transform: translateY(-5px);
}

.page6 .product-item img {
    width: 80%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.page6 .product-item h3 {
    font-family: 'Gelato Bold';
    margin: 10px 0;
    color: var(--text-color);
}

.page6 .product-item .price {
    font-family: 'Gelato Extra Light';
    color: var(--text-color);
    margin-bottom: 10px;
}

.page6 .add-to-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page6 .add-to-cart-text {
    position: absolute;
    top: 40%;
    left: 40%;
    transform: translate(-40%, -40%);
    color: black;
    font-family: 'Gelato Extra Light';
    pointer-events: none;
    font-size: 0.8rem;
}

.page6 .add-to-cart img {
    width: 150px;
    height: auto;
    transition: transform 0.3s;
}

.page6 .add-to-cart:hover {
    transform: scale(1.1);
}
.page6 h3{
    font-family: 'Avant Garde CE Book';
    font-size: 24px;
}
/* Position each product item in the grid */
.page6 .product-item:nth-child(1){ 
    grid-row: 1; grid-column: 1; 
    top: 42px;
    
}
.page6 .product-item:nth-child(2){ 
    grid-row: 1; grid-column: 2;
    top: 42px;
}
.page6 .product-item:nth-child(3){
    grid-row: 1; grid-column: 3;
    top: 42px;
}
.page6 .product-item:nth-child(4){ 
    grid-row: 2; grid-column: 1;
    top: 28px;
}
.page6 .product-item:nth-child(5){ 
    grid-row: 2; grid-column: 2;
    top: 28px;
}
.page6 .product-item:nth-child(6){ 
    grid-row: 2; grid-column: 3; 
    top: 28px;
}
.page6 .product-item:nth-child(7){
    grid-row: 3; grid-column: 1;
    top: 12px;
}
.page6 .product-item:nth-child(8){ 
    grid-row: 3; grid-column: 2; 
    top: 12px;
}
.page6 .product-item:nth-child(9){ 
    grid-row: 3; grid-column: 3; 
    top: 12px;
}
.page6 .product-item:nth-child(10){ 
    grid-row: 4; grid-column: 1; 
    top: -2px;
}
.page6 .product-item:nth-child(11){
    grid-row: 4; grid-column: 2;
    top: -2px;
}
.page6 .product-item:nth-child(12){ 
    grid-row: 4; grid-column: 3;
    top: -2px;
}

/* Cart button in footer */
.page6 .cart-button-container {
    position: relative;
    width: 100%;
    text-align: center;
    top:1510px;
    margin-top: 20px;
    margin-bottom: 40px;
    z-index: 2;
}

.page6 #view-cart-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: inline-block;
    bottom: 0px;
}

.page6 #view-cart-button .checkout-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-family: 'Gelato Extra Light';
    pointer-events: none;
}

.page6 #view-cart-button img {
    width: 250px;
    height: auto;
    transition: transform 0.3s;
}

.page6 #view-cart-button:hover {
    transform: scale(1.1);
}


/* ==================== */
/* POPUP STYLES */
/* ==================== */
.video-popup,
.subscribe-popup,
.content-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.video-popup.active,
.subscribe-popup.active,
.content-popup.active {
    visibility: visible;
    opacity: 1;
}

.popup-content,
.subscribe-popup-content,
.content-popup-content {
    background-color: var(--popup-background);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 800px;
    color: var(--popup-text);
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
}

.content-popup-content {
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    font-family: 'Gelato Extra Light';
}

.content-popup-content h2 {
    font-family: 'Gelato Bold';
    color:#96afda;
}
.content-popup-content h3{
    color: #DBB92A;
}

.content-popup.active .content-popup-content {
    transform: translateY(0);
}

#video-frame-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: 5px solid white;
}

/* POPUP CLOSE BUTTON STYLES */
.popup-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.popup-close-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.popup-close-button:hover {
    transform: scale(1.1);
}

.popup-close-button:active {
    transform: scale(0.95);
}

/* Popup Button Styles */
.popup-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Subscribe Form in Popup */
.subscribe-form-popup input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
}

.subscribe-form-popup button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-form-popup button:hover {
    background-color: var(--button-hover-background);
    color: var(--button-hover-text);
}

.subscribe-prompt-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-prompt-bg {
    width: 100%;
    border-radius: 10px;
}

.subscribe-prompt-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.subscribe-prompt-button {
    background-color: var(--general);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 120px;
    font-family: 'Gelato Bold';
    transition: transform 0.3s;
}

.subscribe-prompt-button:hover {
    transform: scale(1.05);
}

/* ==================== */
/* CART POPUP STYLES */
/* ==================== */
.cart-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.cart-items {
    flex: 0 0 55%;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-family: 'Gelato Bold';
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.cart-item-price {
    font-family: 'Gelato Extra Light';
    color: white;
    margin: 0;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cart-item-controls button {
    background: var(--button-background);
    color: var(--button-text);
    border: 1px solid var(--border-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Gelato Bold';
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-controls button:hover {
    background: var(--button-hover-background);
    color: var(--button-hover-text);
}

.cart-item-quantity {
    min-width: 25px;
    text-align: center;
    font-family: 'Gelato Bold';
}

.cart-summary {
    flex: 1;
    background-image: url('assets/both/whiteSquare.webp');
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    z-index: 0;
}

.cart-summary-content {
    position: relative;
    z-index: 1;
}

.cart-summary-title {
    font-family: 'Kilimanjaro';
    font-size: 3rem;
    margin: 0 0 20px 0;
    text-align: center;
    color: white;
}

.cart-summary-total {
    font-family: 'Gelato Bold';
    font-size: 1.5rem;
    margin: 15px 0;
    text-align: center;
}

.cart-summary-shipping {
    font-family: 'Gelato Extra Light';
    font-size: 1.2rem;
    margin: 15px 0;
    text-align: center;
}

#checkout-button {
    margin-top: 30px;
    position: relative;
    display: block;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-button {
    position: relative;
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin: 30px auto 0;
    width: 250px;
}

.checkout-button img {
    width: 100%;
    height: auto;
    display: block;
}

.checkout-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-family: 'Gelato Extra Light';
    pointer-events: none;
}

.checkout-button:hover {
    transform: scale(1.05);
}

#checkout-button .checkout-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-family: 'Gelato Extra Light';
    pointer-events: none;
}

#checkout-button img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

#checkout-button:hover{
    transform: scale(1.05);
}

.empty-cart-message {
    text-align: center;
    font-family: 'Gelato Extra Light';
    color: white;
    padding: 20px 0;
}

.articles-container > *,
.blogs-container > *,
.store-container > * {
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== */
/* DEBUG PANEL STYLES (DEV ONLY JACKASS *STAY AWAY*) */
/* ==================== */
#debug-panel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    z-index: 9999;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

#debug-panel h3 {
    margin: 0 0 5px 0;
}

#debug-panel button {
    margin: 2px;
    padding: 3px 6px;
    font-size: 11px;
    background: #444;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#debug-panel button:hover {
    background: #666;
}

#debug-status {
    margin-top: 5px;
    color: #0f0;
    font-size: 11px;
}

/* ==================== */
/* Password Page Styles */
/* ==================== */

.password-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.password-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
}

.password-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    color: white;
}

.password-content h2 {
    font-family: 'Gelato Bold';
    margin-bottom: 30px;
    font-size: 24px;
}

#password-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #DBB92A;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

#password-submit {
    background-color: #DBB92A;
    color: black;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Gelato Bold';
}

#password-submit:hover {
    background-color: #f1d15d;
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    font-family: 'Gelato Extra Light';
    min-height: 20px;
}
