/*
font-family: 'Oswald', sans-serif;
font-weight: 200; ExtraLight 
font-weight: 300; Light
font-weight: 400; Regular
font-weight: 500; Medium
font-weight: 600; SemiBold
font-weight: 700; Bold

font-family: 'Roboto', sans-serif;
font-weight: 400; Regular
font-weight: 500; Medium
font-weight: 700; SemiBold
font-weight: 900; Black
font-style: italic; Italic
font-weight: 700; font-style: italic; ExtraBold Italic

font-family: 'Roboto Condensed', sans-serif;
font-weight: 300; Light
font-weight: 700; Bold
*/

:root {
    --link-text-color: #c4da53;
    --background-top-color: #9dcb41;
    --background-bottom-color: #b5d44e;
    --content-width: 67%;
    --content-margin: 0 2em;
    --font-size-p: 1em;
}

/* Body initial styles */
body {
    background: linear-gradient(to bottom, var(--background-top-color), var(--background-bottom-color));
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #000000;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 14% 72% 14%;
    padding: 0 1%;
    height: 4.5em; 
}

.navbar-logo {
    display: flex;
    justify-content: end;
    overflow-y: visible;
}

.navbar-logo .logo {
    height: 5em;
    width: auto;
    justify-self: right;
    align-self: self-end;
    margin-top: 0.75em;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-left: 1.7%;
}

.navbar-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    margin: 0;
}

.navbar-link {
    color: var(--link-text-color);
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    text-decoration: none;
    font-size: 1.2em;
    padding: 1em 0.5em 0;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-link:hover {
    font-weight: 700;
}

.navbar-link:active {
    transform: translateY(1px);
    font-weight: 700;
}

.navbar-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5em;
}

.language-button {
    background: none;
    border: none;
    border-radius: 5px;
    width: 2.5em;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--link-text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 4.5em;
    left: 0;
    width: 100%;
    background-color: #000000;
    z-index: 999;
    padding: 1em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-item {
    margin: 0.5em 0;
}

.mobile-nav-link {
    color: var(--link-text-color);
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    text-decoration: none;
    font-size: 1.2em;
    padding: 0.5em 1em;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.mobile-nav-link:hover {
    font-weight: 700;
    background-color: rgba(196, 218, 83, 0.1);
}

#mainContent {
    margin: 4.5em 0 3em 0;
    padding: 0 0 1.1em 0;
    background-image: url('../assets/home_png/home_background.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow-x: hidden;
    flex-direction: column;
    background-position: top;
}

/* Main content container */
.container {
    margin-top: 7em;
    margin-bottom: 4em;
    justify-content: center;
}

/* Index page main element with background */
.landing-section {
    display: grid;
    grid-template-columns: 16% 16% 36% 16% 16%;
    margin-top: 4.5%;
    align-items: end;
}

.image-container {
    align-self: flex-end;
}

.scientist_1 img, .scientist_2 img, .scientist_3 img, .scientist_4 img {
    width: 90%;
}

.scientist_1, .scientist_2, .scientist_3, .scientist_4 {
    position: relative;
    bottom: -0.5em;
}

.scientist_2 img, .scientist_3 img {
    width: 130%;
}

.scientist_3 {
    justify-self: end;
    margin: 0 20% 0 -20%;
}

.scientist_4 {
    right: -10%;
}

.pedestal_item {
    display: grid;
    grid-template-rows: 45% 25% 30%;
    overflow: visible;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 25em;
    margin: 0 auto;
}

.anormalia_logo {
    align-self: start;
    justify-self: center;
}

.anormalia_logo img {
    height: auto;
    position: relative;
    z-index: 1;
    max-width: 140%;
    left: -20%;
}

.item {
    align-self: end;
    justify-self: center;
    position: relative;
}

.glow{
    position: absolute;
    z-index: 0;
    width: 340%;
    height: auto;
    left: -120%;
    top: -150%;
    max-width: none;
    max-height: none;
    transform: scale(1);
    transform-origin: center;
}

.item_image{
    width: 100%;
    max-width: 8em;
    height: auto;
    position: relative;
    z-index: 1;
}

.pedestal {
    align-self: start;
    justify-self: center;
    overflow-y: visible;
    max-height: 20em;
}

.pedestal img {
    width: 100%;
    max-width: 20em;
    height: auto;
    position: relative;
    z-index: 1;
}

.buy-ticket-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    z-index: 1;
    padding: 0.75em 0 0 0;
}

.buy-button {
    background-color:#000000;
    color: var(--link-text-color) ;
    font-family: 'Oswald';
    font-weight: 200;
    font-size: clamp(1.2em, 3vw, 2em);
    text-transform: uppercase;
    padding: 0.5% 20%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    cursor: pointer;
}

.buy-button:hover {
    background-color: #1a1a1a;
    filter: brightness(1.05);
}

.buy-button:disabled {
    background-color: #2a2a2a;
    color: #7a7a7a;
    cursor: not-allowed;
    opacity: 0.6;
}

.buy-button:hover:disabled {
    background-color: #2a2a2a;
    filter: none;
}

.buy-ticket-subtitle {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 0.8em;
}

/* Welcome section styles */
.welcome-section {
    width: var(--content-width);
    margin-top: 2em;
    align-self: center;
    z-index: 1;
}

.welcome-title_1, .welcome-title_2 {
    background-color: #000000;
    overflow: hidden;
}

.welcome-title_1 h1, .welcome-title_2 h1{
    font-size: clamp(1.5em, 4vw, 3em);
    color: #ffffff;
    font-family: 'Oswald';
    font-weight: 200;
    text-transform: uppercase;
    justify-self: center;
    line-height: 1.1;
    padding: 0.4em 0 0 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-title_2 h1{
    font-weight: 600;
    padding: 0 0 0.4em 0;
    margin-top: -0.1em;
}

.welcome-white-box {
    background-color: #ffffff;
    width: 100%;
    height: 1.5em;
}

.welcome-white-box-2 {
    margin-top: 0;
}

.welcome-content {
    background-color: #383a42;
    width: 100%;
    align-self: center;
    z-index: 1;
    display: grid;
    grid-template-columns: 50% 50%;
    margin: 0;
    padding: 1em 0 0 0;
    
}

.welcome-content-text {
    grid-column: 1;
    color: #ffffff;
    font-family: 'Roboto';
    font-weight: 400;
    font-size: var(--font-size-p);
    line-height: 1.2;
    text-align: justify;
    padding-left: 38%
}

.welcome-content-image {
    grid-column: 2;
    padding: 1em 15% 0 15%;
}

.collaborator {
    width: 20%;
    height: auto;
}

.collaborator.c1 {
    transform: translateY(5%);
}

.collaborator.c2 {
    transform: translateY(-5%);
}

.ccassi-logo {
    width: 60%;
    height: auto;
    margin:5% 10% 0 0;
}

/* Hotel section styles */
.hotel-section {
    width: var(--content-width);
    margin-top: 2em;
    align-self: center;
    z-index: 1;
}

.hotel-title {
    background-color: #000000;
    width: 90%;
    align-content: start; 
    padding: 1em 5%;
    text-transform: uppercase;
    overflow: hidden;
}

.hotel-title h1 {
    font-size: clamp(1.2em, 3vw, 2em);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin: 0.1em 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-title p {
    font-size: clamp(0.9em, 2.5vw, 1.25em);
    color: #ffffff;
    font-family: 'Roboto Condensed';
    font-weight: 400;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-title h2 {
    font-size: clamp(1.1em, 2.8vw, 1.7em);
    color: #ffffff;
    font-family: 'Oswald';
    font-weight: 200;
    margin: 0;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-image {
    margin: 0 0 -0.5% 0;
}

.hotel-image img {
    width: 100%;
    height: auto;
}

.hotel-content {
    width: 90%;
    padding: 1% 5% 3%;
    background-color: #ffffff;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.hotel-content p {
    font-size: var(--font-size-p);
    color: #000000;
    font-family: 'Roboto';
    font-weight: 400;
    text-align: justify;
}

.hotel-content-black {
    background-color: #000000;
    width: 90%;
    align-content: start; 
    padding: 1em 5%;
    align-content: start;    
}

.hotel-content-black-title {
    font-size: 1.25em;
    color: #ffffff;
    font-family: 'Roboto';
    font-weight: 400;
    margin: 0 0 0.5em 0
}

.hotel-content-black-text {
    font-size: var(--font-size-p);
    color: #ffffff;
    font-family: 'Roboto';
    font-weight: 400;
    margin: 0;
    text-align: justify;
}

.hotel-content:last-child {
    margin-bottom: 5%;
}

/* Content section with white background */
.content-section {
    background-color: #ffffff;
    margin: var(--content-margin);
    width: var(--content-width);
    justify-self: center;
}

.title-section {
    background-color: #000000;
    width: 100%;
    align-content: start;   
}

.title-section h1 {
    font-size: clamp(2em, 6vw, 4em);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin: 0.25em 0 0.1em 0;
}

/* Rules navigation styles */
.rules-navigation-container {
    padding: 0 3em 1.5em 3em;
    line-height: 1.1;
}

.rules-link {
    color: var(--link-text-color);
    font-family: 'Oswald';
    font-weight: 300;
    text-decoration: none;
    font-size: clamp(1em, 2.5vw, 1.5em);
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin: 0;
    padding: 0; 
}

.rules-link:hover {
    font-weight: 700;
}

.rules-link:active {
    font-weight: 700;
}

.rules-separator {
    color: #ffffff;
    font-family: 'Oswald';
    font-weight: 300;
    font-size: clamp(1em, 2.5vw, 1.5em);
}

/* Rules content styles */
.rules-content {
    padding: 1em 3em;
    background-color: #ffffff;
}

.rules-content h2 {
    font-size: clamp(1.5em, 4.5vw, 3em);
    color: #000;
    font-family: 'Oswald';
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 0;
    line-height: 1.2;
}

.rule-section {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
}

.rule-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rule-section p.revision-date {
    font-family: 'Oswald';
    font-weight: 300;
    font-size: 0.9em;
    color: #000;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    line-height: 1;
}
.chapter {
    margin: 1.2em 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}


.chapter.collapsible.collapsed .chapter-content {
    max-height: 0;
    padding: 0;
}

.chapter:hover {
    border-color: var(--link-text-color);
    box-shadow: 0 2px 8px rgba(196, 218, 83, 0.1);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    background-color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.chapter-header:hover {
    background-color: #1a1a1a;
}

.chapter-title-container {
    flex: 1;
}

.chapter_title {
    font-family: 'Oswald';
    font-weight: 700;
    font-size: clamp(1.5em, 3.5vw, 2.25em);
    color: var(--link-text-color);
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.chapter_subtitle {
    font-family: 'Oswald';
    font-weight: 500;
    font-size: clamp(0.9em, 1.8vw, 1.1em);
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.chapter-toggle {
    font-family: 'Oswald';
    font-weight: 700;
    font-size: 1.5em;
    color: var(--link-text-color);
    transition: transform 0.3s ease;
    user-select: none;
    min-width: 1.5em;
    text-align: center;
}

.chapter.collapsed .chapter-toggle {
    transform: rotate(0deg);
}

.chapter:not(.collapsed) .chapter-toggle {
    transform: rotate(45deg);
}

.chapter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.chapter:not(.collapsed) .chapter-content {
    max-height: none;
    padding: 1.5em;
}

.chapter_content {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: var(--font-size-p);
    line-height: 1.6;
    color: #000;
    margin: 0;
    padding: 0;
}


/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hidden class for loading spinner */
.hidden {
    display: none !important;
}

/* Footer Styles */
.footer {
    background-color: #000000;
    width: 100%;
    height: 4em;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0.5em 1em 0;
    display: flex;
    align-items: top;
    justify-content: center;
}

.social-buttons {
    display: flex;
    gap: 0.5em;
    align-items: top;
}

.social-button {
    width: 2.25em;
    height: 2.25em;
    background-color: var(--link-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #000000;
    border: 2px solid var(--link-text-color);
}

.social-button:hover {
    background-color: #000000;
    color: var(--link-text-color);
}

.social-button svg,
.social-button img {
    width: 1.5em;
    height: 1.5em;
}

.social-button img {
    filter: brightness(0);
}

.social-button:hover img {
    color: var(--link-text-color);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   Organized by size (largest to smallest)
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1023px) {
    :root {
        --content-width: 80%;
    }
    .navbar-container {
        grid-template-columns: 20% 60% 20%;
        padding: 0 1em;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        justify-content: center;
    }
    
    .navbar-logo {
        justify-content: flex-start;
        align-items: center;
    }
    
    .navbar-action {
        justify-content: flex-end;
        align-items: center;
    }
    
    /* Ensure logo and language button maintain their positions */
    .navbar-logo .logo {
        height: 5em;
        margin-top: 0.75em;
    }
    
    .language-button {
        width: 2.5em;
        height: 2.5em;
    }

    #mainContent {
        margin: 3.7em 0 3em 0;
    }
    
    /* Responsive scaling for pedestal elements */
    .pedestal_item {
        max-width: 20em;
    }
    
    .pedestal img {
        max-width: 18em;
    }
    
    .item_image {
        max-width: 6em;
    }

    .welcome-content-text {
        padding-left: 20%;  
    }
    .welcome-content-image {
        padding: 1em 10% 0 15%;
    }
    
    .anormalia_logo img {
        padding-top: 5%;
    }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
    :root {
        --content-width: 89%;
        --font-size-p: 0.9em;
        --content-margin: 0 1em;
    }

    .navbar-container {
        padding: 0 15px;
        height: 60px;
        grid-template-columns: 25% 50% 25%;
    }
    
    .navbar-logo {
        justify-content: flex-start;
        align-items: center;
    }
    
    .navbar-logo .logo {
        height: 4em;
        margin-top: 0.5em;
    }
    
    .navbar-action {
        justify-content: flex-end;
        align-items: center;
    }
    
    .language-button {
        width: 2em;
        height: 2em;
    }
    
    .hamburger-button {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .mobile-nav {
        top: 60px;
    }
    
    /* Mobile responsive scaling for pedestal elements */
    .pedestal_item {
        max-width: 12em;
    }
    
    .pedestal img {
        max-width: 10em;
    }
    
    .item_image {
        max-width: 3.5em;
    }
    
    .glow {
        width: 280%;
        left: -90%;
        top: -120%;
    }

    .anormalia_logo img {
        padding-top: 8%;
        max-width: 180%;
        left: -40%;
    }

    .welcome-content {
        display: flex;
        flex-direction: column;
    }

    .welcome-content-text {
        padding: 5%;
    }
    .welcome-content-image {
        padding: 0 10% 5% 10%;
    }

    .collaborator-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5em;
    }

    /* Allow multiple lines for hotel name and direction on mobile */
    .hotel-title h1,
    .hotel-title h2 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .rules-content {
        padding: 1em 2em;
    }

    #rulesContent {
        margin-top: 6em;
    }

    /* Mobile responsive adjustments for footer */
    .social-buttons {
        gap: 1em;
    }
    
    .social-button {
        width: 2.2em;
        height: 2.2em;
    }
    
    .social-button svg,
    .social-button img {
        width: 1.3em;
        height: 1.3em;
    }
    
    .container {
        padding: 0;
    }
    
    .content-section {
        padding: 0em;
        margin: 0 0.5em;
    }
    
    /* Mobile responsive adjustments for collapsible chapters */
    .chapter-header {
        padding: 0.8em 1em;
    }
    
    .chapter_title {
        font-size: 1.3em;
    }
    
    .chapter_subtitle {
        font-size: 1em;
    }
    
    .chapter-toggle {
        font-size: 1.3em;
    }
    
    .chapter:not(.collapsed) .chapter-content {
        padding: 1em;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --content-width: 98%;
        --font-size-p: 0.8em;
    }

    .navbar-logo .logo {
        height: 3em;
        margin-top: 1.5em;
    }

    .navbar-list {
        gap: 15px;
    }
    
    .navbar-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .navbar-button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    /* Extra small screen responsive scaling for pedestal elements */
    .pedestal_item {
        max-width: 10em;
    }
    
    .pedestal img {
        max-width: 8em;
    }
    
    .item_image {
        max-width: 2.5em;
    }
    
    .glow {
        width: 250%;
        left: -75%;
        top: -100%;
    }

    .anormalia_logo img {
        padding-top: 10%;
        max-width: 160%;
        left: -30%;
    }

    .welcome-content-image {
        padding: 0 5% 5% 5%;
    }

    /* Welcome titles responsive adjustments for 480px and below */
    .welcome-title_1 h1, .welcome-title_2 h1 {
        font-size: clamp(1.1em, 3.2vw, 2.0em);
        padding: 0.3em 0.2em 0 0.2em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }

    .welcome-title_2 h1 {
        padding: 0 0.2em 0.3em 0.2em;
    }

    .rules-content {
        padding: 1em 0.5em;
    }

    .rules-navigation-container {
        padding: 0 1em 0.5em 1em;
    }
}