/* ==========================================================================
   1.0 Universal Styles (Resets, etc.)
   ========================================================================== */
/* ANCHOR: 1.0 UNIVERSAL STYLES */

*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--background-color);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6; /* Improves readability */
    color: var(--main-text-color);
    /* width and max-width are not needed here */
    overflow-x: hidden; 
}

/* Ensure 'main' within the body also grows to push the footer down */
main {
    flex-grow: 1; 
    scroll-padding: 0;
}
  
/* For all headings (H1, H2, H3, H4, H5, H6) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    color: var(--main-header-color);
}

/* 
====================================================
1.1 Main Layout
====================================================
*/
/* ANCHOR 1.1 MAIN LAYOUT */

/* Page wrapper for Flexbox layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom right, var(--background-color-grad1), var(--background-color-grad2));
    position: relative;
    overflow: hidden; 
}

#body { 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 100vw;
    position: relative;
    z-index: 1; 
}

/* New CSS for the animated background overlay */
.animated-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Place behind the #body content */
    pointer-events: none; /* Allows clicks to pass through to elements beneath */
}

.animated-background-overlay span {
    position: absolute;
    display: block; 
    --i: 1;
    --size: calc(50px + var(--i) * 5px); 
    width: var(--size);
    height: var(--size);
    filter: blur(5px); 
    background: linear-gradient(var(--particle-color-grad1), var(--particle-color-grad2));
    animation: float-and-fade linear infinite;
    top: -100px; 
    border-radius: 50%; 
    opacity: 0; 

    /* Randomize animation duration and delay */
    animation-duration: calc(15s + var(--i) * 0.5s);
    animation-delay: calc(var(--i) * -3s);
}

.animated-background-overlay .pos-1 { left: 5%; }
.animated-background-overlay .pos-2 { left: 15%; }
.animated-background-overlay .pos-3 { left: 25%; }
.animated-background-overlay .pos-4 { left: 35%; }
.animated-background-overlay .pos-5 { left: 45%; }
.animated-background-overlay .pos-6 { left: 55%; }
.animated-background-overlay .pos-7 { left: 65%; }
.animated-background-overlay .pos-8 { left: 75%; }
.animated-background-overlay .pos-9 { left: 85%; }
.animated-background-overlay .pos-10 { left: 95%; }

.dot {
    visibility: visible;
    opacity: 1;
    transition: opacity 2s ease;
    z-index: -2;
}

@keyframes float-and-fade {
    0% {
        transform: translateY(0,0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--move-right), 550vh) rotate(720deg);
        opacity: 0;
    }
}

/* 
==========================================================================
1.2 Variables
========================================================================== 
*/
/* ANCHOR: 1.2 VARIABLES */
:root {
    color-scheme: dark; 
    --animation-duration: 0.3s;
    --animation-timing: ease-out;
    --transition-property: all var(--animation-duration) var(--animation-timing);

    --background-color-grad1: #2c2c2c;
    --background-color-grad2: #1c1c1c;
    --particle-color-grad1: #810b0ba1;
    --particle-color-grad2: #e088168f;
    /* --- Global Text & Icon Colors --- */
    --navbar-icon-color: #f8fafc;      
    --navbar-text-color-hover: #ffffff; 
    --main-text-color: #f8fafc;       
    /* --- Navbar colors (Solid background for stability and formality) --- */
    --fake-navbar-bg-color: #000000;   
    --navbar-seperation-line: #555555;  
    /*
      Navbar links + logo colors - uses subtle linear gradients for definition.
    */
    --navbar-item-color-grad1: #2c2c2c;
    --navbar-item-color-grad2: #404040; 
    --navbar-item-color-hover-grad1: #575757; 
    --navbar-item-color-hover-grad2: #888888;
    /* --- Footer colors --- */
    --footer-bg-color: #2c2c2c;     
    --footer-seperation-line: #555555;  
    /*
      --- Main Content Colors (Cards/Boxes) ---
      Purple is the primary brand/content color, suggesting innovation and prestige in a tech context.
      These are linear gradients for clean UI separation.
    */
    --main-element-box-bg-color-grad1: #0e0e0ecc;
    --main-element-box-bg-color-grad2: #1a1a1acc;
    --primary-accent-color: #410049;
    --secondary-accent-color: #FFD524;
    --secondary-accent-color-dark: #b39317;
    --action-link-color: #fab41d;
    --action-link-text-color-hover: #222020; /* NEEDS TO CONTRAST AGANST "--action-link-color" */
    /* --- Settings page styles --- */
    --settings-dropdown-menu-bg-color: var(--main-element-box-bg-color-grad1);
    --settings-dropdown-menu-hover-option-color: #9370DB33;
}




@media (prefers-reduced-motion: reduce) {
    :root {
        --animation-duration: 0s; 
        --transition-property: none;
    }
}

/*
=======================================================
2.0 Navbar
======================================================
*/
/* ANCHOR 2.0 NAVBAR */

#navbar {
    width: 100vw;
    height: 3.3rem;
    background: linear-gradient(to right, #3a3a3aaa, #0c0c0cbb);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; 
    justify-content: space-between;
    align-items: center;
    position: fixed;
    max-width: 100vw;
    z-index: 50;
    top: 0;
}

/* ANCHOR 2.1 NAVBAR - LOGO */

.logo { /* Incudes logo AND text */
    height: 200%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 20px;
    padding-left: 5px;
    background: linear-gradient(to right, var(--navbar-item-color-grad1), var(--navbar-item-color-grad2));
    color: var(--main-text-color);
    text-decoration: none;
    padding-right: 100px; 
    font-size: 1.1rem;

    clip-path: polygon(
        0% 0%,
        100% 0%,
        calc(70% - 30px) 100%,
        0% 100%
    );

    z-index: 50;
    transition: color 0.3s ease, background-color 0.3s ease, var(--transition-property);
}

.logo img {
    border-radius: 50%;
    width: 4rem;
    margin-top: 25px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}


/* ANCHOR NAVBAR - LINKS */

.active {
    background: #00000055;
    z-index: 50;
}

.navigation-button-contanor {
    height: 100%;
    top: 0;
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin: 0; 
    list-style-type: none;
    background: #0000000F;
}

.navigation-button-contanor li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(to bottom, var(--navbar-item-color-grad1), var(--navbar-item-color-grad2));
    transition: var(--transition-property);
    flex-wrap: wrap;
    margin-right: 10px;
    position: relative;
}

.navigation-button-contanor li:hover {
    background: linear-gradient(to bottom, var(--navbar-item-color-hover-grad1), var(--navbar-item-color-hover-grad2));
    cursor: pointer;
    color: var(--secondary-accent-color);
}

.nav-hover-effect::after {
    display: block;
    content: '';
    border-bottom: solid 3px transparent;
    border-image: linear-gradient(to right, var(--secondary-accent-color-dark), var(--secondary-accent-color), var(--secondary-accent-color-dark)) 1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    position: absolute; 
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-hover-effect:hover::after {
    transform: scaleX(1);
}

.navigation-button-contanor a {
    color: inherit; 
}

.navigation-button-contanor li:hover a {
    color: var(--secondary-accent-color);
}


.navigation-button-contanor a {
    color: var(--main-text-color);
    text-decoration: none;
}

/* ANCHOR 2.2 NAVBAR - FAKE BACKGROUND */

#fake-navbar {
    width: 100vw;
    height: 3.3rem;
    background: var(--fake-navbar-bg-color);
    display: flex; 
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
}

#fake-navbar-grad {
    width: 100vw;
    height: 0.3rem;
    background: var(--navbar-seperation-line);
    display: flex; 
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
    margin-bottom: 2.5rem;
    z-index: 1;
}


/* ANCHOR 2.3 NAVBAR - HAMBURGER MENU */

/* --- Hamburger Icon Styles (Desktop: Hidden) --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-right: 20px;
    z-index: 10;
    transform: scale(1, 1);
    transition: transform 0.1s ease;
}

.hamburger:hover {
    transform: scale(1.05, 1.05);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--main-text-color); /* Use a fallback color if var is missing */
    transition: 0.4s;
}

.hamburger:active {
    transform: scale(0.9, 0.9);
}

@media screen and (max-width: 945px) {
    .hamburger {
        display: block;
    }

    .navigation-button-contanor {
        position: fixed;
        right: -100%; 
        top: 3.3rem;
        flex-direction: column; 
        background-color: var(--fake-navbar-bg-color); 
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        height: auto; 
        padding: 5px 0;
        z-index: 5;
        border-radius: 0 0 0 10px;
    }

    .navigation-button-contanor.active {
        right: 0; /* Slide the menu into view */
    }

    /* Adjust individual list items for mobile view */
    .navigation-button-contanor li {
        margin: 1px 0;
        width: 300px;
        border-radius: 0;
        background-color: transparent;
        height: auto;
        padding: 2px;
    }

    .navigation-button-contanor li a {
        padding: 10px;
        display: block;
    }
}

@media screen and (max-width: 500px) { 
    .logo p /* Hides text to prevent text wrapping */{
        display: none;
    }
}

/* 
================================================
Main Layout
================================================
*/

.card {
    border-radius: 10px;
    border-left: var(--primary-accent-color) solid 10px;
    background: linear-gradient(to bottom right, var(--main-element-box-bg-color-grad1), var(--main-element-box-bg-color-grad2));
    padding: 20px;
    color: var(--main-text-color);
    backdrop-filter: blur(15px); /* The key property for background blur */
    -webkit-backdrop-filter: blur(15px); /* For older Safari support */
}

.card-plain {
    border-radius: 10px;
    background: linear-gradient(to bottom right, var(--main-element-box-bg-color-grad1), var(--main-element-box-bg-color-grad2));
    padding: 20px;
    color: var(--main-text-color);
    backdrop-filter: blur(5px); /* The key property for background blur */
    -webkit-backdrop-filter: blur(5px); /* For older Safari support */
}

.card-plain-no-padding {
    border-radius: 10px;
    background: linear-gradient(to bottom right, var(--main-element-box-bg-color-grad1), var(--main-element-box-bg-color-grad2));
    color: var(--main-text-color);
}

.action-link {
    border-radius: 10px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--action-link-color);
    text-decoration: none;
    border: 2px solid var(--action-link-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ANCHOR 3.0 MAIN LAYOUT - HOME */

.h-welcome {
    width: 100%;
    height: 33rem;
    text-align: center;
    z-index: 1;
    position: relative;
    border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
}

.h-welcome-title {
    font-size: 5rem;
    z-index: 3;
    line-height: 25rem;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    -webkit-text-stroke-width: 3px; /* The thickness of the stroke */
    -webkit-text-stroke-color: rgb(255, 255, 255); /* The color of the stroke */
    color:#000;
    user-select: none;
}

@media (max-width: 868px) {
    .h-welcome-title {
        margin-top: 100px;
        line-height: 10rem;
    }
}

@media (max-width: 454px) {
    .h-welcome-title {
        font-size: 4rem;
        line-height: 7.5rem;
        margin-top: 150px
    }
}

.h-welcome, .h-welcome-title {
    width: 100%;
    left: 0;
    right: 0;
}

.h-welcome-images {
    display: flex;
    flex-direction: row;
}

.h-welcome-img {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
    max-height: 33rem;
    border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
    filter: grayscale(20%);
}


@media (max-width: 786px) {
    .h-welcome-img {
        display: inline-block;
        height: 1000px;
        width: 1000px;
    }
}

.h-dicription-text {
    padding: 5rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
}

.h-details {
    width: 67%;
}

.h-details p {
    line-height: 2.3;
    font-size: 1.1rem;
}

.h-divder-details {
    width: 2px;
    background-color: whitesmoke;
    margin: 20px;
    margin-bottom: 0;
    align-self: stretch;
}

.h-stats {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 30%;
}

.h-stats-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.h-stats ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 425px) {
    .h-details p {
        font-size: 0.75rem;
    }

    .h-details {
        padding: none;
    }

    .h-stats-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .h-stats ul li {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
}

.loc-card {
    padding: 1rem;
    margin: 1.5rem;
    margin-bottom: 5rem;
    background-color: var(--background-color-grad2);
    box-shadow: 0 0 10px;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 300px) {
    .loc-card {
        display: none;
    }
}

.h-location-box {
    display: flex;
    flex-direction: column;
    background-image: url("images/hpimg3.png");
    
    
    background-repeat: no-repeat; 
    background-size: cover;       
    background-position: center; 
    height: 85vh;
    width: 95%;
    transition: background-image 0.5s ease-in-out;

}

.loc-title {
    font-size: 3rem;
    margin: 3px;
    user-select: none;
}

.h-location-discription {
    display: flex;
    z-index: 2;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 90rem;
    flex-direction: column;
    background: #0000003a;
}

@property --fade-stop {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 100%;
  }
  
  .h-location-discription-text {
      padding: 0rem 5rem;
      transition: --fade-stop 0.3s ease, max-height 0.3s ease-in-out;
      
      max-height: 17rem;
      overflow: hidden; 
      margin-top: 0;
      background-color: rgba(0, 0, 0, 0.3);
      padding-bottom: 10px;
      width: 100%;
  }
  
  .h-location-discription-text.faded {
      --fade-stop: 50%; 
      max-height: 5rem;
      margin-top: 0;
  }
  

.toggle-arrow {
    margin-top: 5rem;
    padding: 1rem;
    padding-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    padding-bottom: 0;
}

.toggle-arrow:hover{
    cursor: pointer;
}

#main-left-arrow, 
#main-right-arrow {
    position: relative;
    width: 4rem;
    height: 1rem;
    transition: transform 0.2s ease-out;
    transform-origin: center; 
    padding-top: 0;
}

#main-left-arrow::before, #main-left-arrow::after,
#main-right-arrow::before, #main-right-arrow::after {
    content: "";
    position: absolute;
    top: 25%;
    width: 55%;
    height: 3px;
    background: rgb(255, 255, 255);
}

#main-left-arrow::before, #main-right-arrow::before {
    left: 0;
    transform: rotate(-25deg);
    transform-origin: left;
}

#main-left-arrow::after, #main-right-arrow::after {
    right: 0;
    transform: rotate(25deg);
    transform-origin: right;
}

#main-left-arrow {
    transform: rotate(-90deg);
}

#main-right-arrow {
    transform: rotate(90deg);
}


#main-left-arrow.flipped, #main-right-arrow.flipped {
    transform: scaleX(-1);
}


.wide-caret {
    position: relative;
    width: 6rem;
    height: 1rem;
    bottom: 1rem;
    transition: transform 0.2s ease-in-out;
}

.wide-caret.flipped {
    transform: rotateX(180deg);
}

.wide-caret::before,
.wide-caret::after {
    content: "";
    position: absolute;
    top: 25%;
    width: 55%;
    height: 3px;
    background: rgb(255, 255, 255);
}

.wide-caret::before {
    left: 0;
    transform: rotate(-25deg);
    transform-origin: left;
}

.wide-caret::after {
    right: 0;
    transform: rotate(25deg);
    transform-origin: right;
}

.lr-arrows {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.lr-toggle-arrow {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 4.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
}

.lr-toggle-arrow:hover{
    cursor: pointer;
}

/*ANCHOR: 3.1 MAIN LAYOUT - TIMELINE */

#Incompatible {
    opacity: 0;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #Incompatible  {
        opacity: 1;
    }
}

.launch-timeline {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launch-timeline #timeline-startup {
    width: 2600px;
    height: 100px;
    padding: 25px;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 10px;
    border: 1px var(--action-link-color) solid;
    opacity: 1;
    transition: opacity 1s ease;
    cursor: pointer;
    color: var(--action-link-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px); /* The key property for background blur */
    -webkit-backdrop-filter: blur(15px); /* For older Safari support */
    background-color: #00000033;
    color: var(--action-link-color);
    transition: opacity 1s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



@keyframes shrinkAndRound {
    0% {
        width: 60%;
        height: 100px; /* Ensure height is set correctly */
        border-radius: 10px; /* Start with current border radius */
        color: #FFFFFF
    }
    25% {
        width: 4rem;
        height: 3rem;
        border-radius: 20px;
        color: #ffffff88
    }
    50% {
        width: 2.5rem; /* Target square width */
        height: 2.5rem; /* Target square height */
        border-radius: 40px; /* Start with current border radius */
        color: #00000000
    }
    100% {
        width: 2.5rem; /* Target square width */
        height: 2.5rem; /* Target square height */
        border-radius: 50%; /* Keep the initial rounding for now */
        color: #00000000
    }
}

@keyframes unShrinkAndRound {
    0% {
        width: 2.5rem; /* Target width */
        height: 2.5rem;
    }
    100% {
        width: 60%;
        border-radius: 10px;
    }
}

#fade {
    position: absolute;
    width: 100vw;
    height: 200vh;
    top: -100px;
    opacity: 0;
    z-index: -1;
    /* background: linear-gradient(to right, var(--background-color-grad1), var(--background-color-grad2));  */
    backdrop-filter: blur(100%);
    transition: opacity 0.5s ease-in;
}

.time-line {
    background-color: var(--action-link-color);
    width: 100vw;
    transform: translate(100px, -150px) scaleX(2);
}

.time-line-long {
    background-color: #fff;
}

#timeline-startup h1 {
    margin: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#exit-btn {
    position: absolute;
    top: 5px;
    right: 20px;
    opacity: 0.7;
    color: #fab41d;
    height: 40px;
    width: 10px;
    cursor: pointer;
    padding: 5px;
    user-select: none;
}

#time-line-startup {
    display: none;
    background-color: var(--action-link-color);
    user-select: none;
    height: 4px;
    position: absolute;
    transform: translate(1px, -150px) scaleX(3);
}

@keyframes expand-timeline-startup {
    0% {
        width: 0vw;
        transform: scaleX(0.3) translate(1px, -150px);
    }
    100% {
        width: 100vw;
        transform: scaleX(1) translate(1px, -150px);
    }
}

.launch-timeline div {
    z-index: 0;
    user-select: none;
}

.launch-timeline #timeline-startup:hover {
    background-color: var(--action-link-color);
    color: var(--action-link-text-color-hover);
}

#line-1, #line-2 {
    background-color: var(--action-link-color);
    height: 4px;
    width: 49vw;
}

#line-1 {
    width: 2000vh;
    transform: translateX(-100vw);
    transform-origin: 50vw 50%;
}

#line-2 {
    transform: translateX(100vw);
    transform-origin: -2vw 50%;
    width: 2000vh;
    display: inline-block;
}

@keyframes initialize-right {
    0% {
        transform: translateX(100vw);
    }
    20% {
        transform: translateX(0);
    }
    40% {
        transform: rotateZ(90deg);
        transform-origin: -25px 50%;

    }
}

@keyframes initialize-left {
    0% {
        transform: translateX(-100vw);
    }
    20% {
        transform: translateX(0);
    }
    40% {
        transform: rotateZ(90deg);
    }
}

#mid-line-1, #mid-line-2 {
    height: 200px;
    width: 4px;
    background-color: var(--action-link-color);
    visibility: hidden;
    z-index: 0;
    user-select: none;
    position: absolute;
}

#mid-line-1 {
    transform: translate(50vw, 200px) scaleY(80);
}

#mid-line-2 {
    transform: translate(50vw, -300px) scaleY(80);
}

@keyframes pan-right {
    0% {
        transform: translate(50vw, 200px) scaleY(80);
    }
    50% {
        transform: translate(calc(100vw + 100px), 200px) scaleY(80);
    }
    100% {
        transform: translateX(10000px);
    }
}

@keyframes pan-left {
    0% {
        transform:  translate(50vw, -300px) scaleY(80);
    }
    50% {
        transform: translate(-100px, -300px) scaleY(80);
    }
    100% {
        transform: translate(-100px, -300px) scaleY(80);
    }
}

.type-span {
    margin-top: 10px;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin-top: 1px;
    padding: 0 10px;
}

#type-1-span {
    background-color: blue;
}
#type-2-span {
    background-color: yellow;
}
#type-3-span {
    background-color: green;
}
#type-4-span {
    background-color: orange;
}
#type-5-span {
    background-color: purple;
}

.timeline-dot {
    position: absolute;
    height: 25px;
    width: 25px;
    background-color: white; 
    border-radius: 50%; 
    padding: 10px;
    user-select: none;
    z-index: 3;
    transition: transform 2s ease;
    scroll-behavior: smooth;
}

#dot-type-1:hover {
    background-color: #7878ff;
}

#dot-type-2:hover {
    background-color: #ffff41;
}

#dot-type-3:hover {
    background-color: #00db00;
}

#dot-type-4:hover {
    background-color: #ffbe45;
}

#dot-type-5:hover {
    background-color: #e701e7;
}

.dot-line {
    position: absolute;
    z-index: 1;
    width: 10vw;
    transition: width 2s ease, left 2s;
    height: 5px;
    background-color: var(--action-link-color);
    transform: translate();
}

#date-card-text {
    transform: translateY(-10px);
}

#right-arrow {
    position: absolute;
    user-select: none;
    cursor: pointer;
    right: 10px;
    bottom: 10px;
    height: 40px;
    width: 30px;
    font-size: 2rem;
    padding: 0;
    background-color: transparent;
    color: white;
}

#back-arrow {
    position: absolute;
    user-select: none;
    cursor: pointer;
    left: 10px;
    bottom: 10px;
    height: 40px;
    width: 30px;
    font-size: 2rem;
    padding: 0;
    background-color: transparent;
    color: white;
}


#top-card, #bottom-card, #date-card {
    backdrop-filter: blur(20px);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--action-link-color);
    position: absolute;
    right: 25px;
    width: 40vw;
    border-radius: 15px;
    opacity: 0;
}

#top-card {
    top: 75px;
    padding: 15px;
    padding-top: 0px;
    height: 200px;
}

#bottom-card {
    padding-left: 15px;
    top: 335px;
    height: 175px;
}

#key-title {
    margin-top: 5px;
    margin-bottom: 0;
}

#date-card {
    padding-left: 10px;
    top: 285px;
    height: 40px;
}

.time-line {
    position: absolute;
    left: 50vw;
    top: -100px;
    width: 200vw;
    height: 4px;
    transform: rotateZ(90deg);
    transition: all 2s ease;
    transform-origin: 0% 50%;
    z-index: 1;
    transition: --blue 2s ease, --purple 2s ease, --green 2s ease, --yellow 2s ease, --orange 2s ease, all 2s;
}

#change-dimension-btn {
    width: 250px;
    height: 30px;
    position: absolute;
    font-size: 1.2rem;
    bottom: 0;
    right: 0;
    cursor: pointer;
    user-select: none;
    opacity: 0.7;
    background-color: transparent;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: 1px solid var(--action-link-color);
    color: var(--action-link-color);
    transition: all 0.3s ease;
}

#change-dimension-btn:hover {
    opacity: 1;
    background-color: var(--action-link-color);
    color: white;
}

@property --purple {
    syntax: "<color>";
    inherits: true;
    initial-value: purple;
}

@property --orange {
    syntax: "<color>";
    inherits: true;
    initial-value: orange;
}

@property --green {
    syntax: "<color>";
    inherits: true;
    initial-value: green;
}

@property --yellow {
    syntax: "<color>";
    inherits: true;
    initial-value: yellow;
}

@property --blue {
    syntax: "<color>";
    inherits: true;
    initial-value: blue;
}

#far-right-time-line, #far-right-time-line-3d {
    background: linear-gradient(90deg, var(--purple), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));;
}
#close-right-time-line, #close-right-time-line-3d {
    background: linear-gradient(90deg, var(--orange), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));;
}
#middle-time-line, #middle-time-line-3d {
    background: linear-gradient(90deg, var(--green), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));;
}
#close-left-time-line, #close-left-time-line-3d {
    background: linear-gradient(90deg, var(--yellow), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));;
}
#far-left-time-line, #far-left-time-line-3d {
    background: linear-gradient(90deg, var(--blue), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));;
}

#far-right-time-line-3d {
    transform: rotateZ(69deg);
    z-index: 2;
}

#close-right-time-line-3d {
    transform: rotateZ(79.5deg);
    background: linear-gradient(90deg, var(--orange), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));
    z-index: 0;
}

#middle-time-line-3d {
    transform: rotateZ(90deg);
    background: linear-gradient(90deg, var(--green), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));
    z-index: 0;
}

#close-left-time-line-3d {
    transform: rotateZ(100.5deg);
    background: linear-gradient(90deg, var(--yellow), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));
    z-index: 0;
}

#far-left-time-line-3d {
    transform: rotateZ(111deg);
    background: linear-gradient(90deg, var(--blue), var(--action-link-color), var(--action-link-color), var(--action-link-color), var(--action-link-color));
    z-index: 2;
}

#reload-button button {
    margin: 2rem;
    background-color: #af801b;
    width: auto;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 0 10px 5px #af901b;
}

/* ANCHOR 3.2 MAIN LAYOUT - FAQ */

.faq-main-box {
    margin: 5rem;
    margin-top: 1rem;
    height: fit-content;
}

.faq-title {
    font-size: x-large;
}

/* PAA Section Styling */
.paa-container {
    margin-top: 1rem;
}

.paa-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.paa-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    font-size: 1rem;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    font-weight: bold;
}

.paa-question:hover {
    color: var(--secondary-accent-color);
}

.paa-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.paa-question.active .paa-icon {
    transform: rotate(180deg);
}

.paa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.paa-answer p {
    padding: 0 0 1rem 0;
    margin: 0;
    line-height: 1.5;
}

/* ANCHOR 3.3 MAIN LAYOUT - ARTICLES */

.article-layout {
    padding: 3rem;
    padding-top: 0;
    padding-right: 0;
}

.articles-row {
    overflow-y: hidden; 
    overflow-x: auto;
    height: fit-content;
    width: auto;
    padding: 15px;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    scrollbar-width: auto;
    scrollbar-color: auto; 
    overflow: auto;
    scroll-behavior: smooth;
} 

.articles-grid {
    display: grid;
    grid-template-rows: repeat(4, 3fr);
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.article-containor {
    height: 300px;
    width: 300px;
    transition: transform 0.15s ease-in-out;
}

.article-containor:hover {
    /* The whole container scales up uniformly now */
    transform: scale(1.03);
}


.articles-row a {
    text-decoration: none;
    color: inherit;
}

.articles-grid a {
    text-decoration: none;
    color: inherit;
}

.articles-title-serch {
    width: 100vw;
    height: 3.3rem;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

.search-container {
    position: relative; /* Essential for positioning the dropdown absolutely below it */
    display: inline-block;
    /* other positioning for your fixed element */
    position: fixed;
    right: 0;
    margin-right: 10px;
    z-index: 5;
}

.articles-search-form {
    background-color: var(--fake-navbar-bg-color);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ccc;
}

#searchInput {
    background: transparent;
    border: none;
    outline: none;
    font-size: inherit;
    color: inherit;
    width: 250px;
}

/* Style the dropdown menu itself */
.autocomplete-items {
    position: absolute;
    border: 1px solid #dfdfdf;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /* Position the results just below the input */
    top: 100%;
    left: 0;
    right: 0;
    background-color: #383838;
    max-height: 200px; /* Make the list scrollable if many results */
    overflow-y: auto;
    display: none; /* Hide by default */
}

/* Style individual results links */
.autocomplete-items a {
    padding: 10px;
    text-decoration: none;
    color: rgb(155, 155, 155);
    display: block;
    border-bottom: 1px solid #d4d4d4;
    cursor: pointer;
}

/* Style on hover/focus */
.autocomplete-items a:hover, .autocomplete-items a.active {
    background-color: #555555;
}

.articles-row-arrow {
    width: 90vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem
}

.articles-row-arrow span {
    background-color: #2c2c2c;
    border-radius: 50%;
    padding: 1rem;
}

.scroll-left, .scroll-right {
    cursor: pointer;
}

/* ANCHOR: 3.4 MAIN LAYOUT - SETTINGS */

.change-colors {
    width: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.change-colors span {
    margin-top: 10px;
}

.bubbles-on-off {
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--main-text-color);
}

#bubbles-checkbox {
    transform: translateY(5px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: 1px solid black;
    background-color: white;
}

#bubbles-checkbox:checked {
    background: linear-gradient(#810b0b, #e08816);
}

#save-btn, #restore-btn {
    margin-top: 10px;
    width: 100px;
    height: 25px;
    border-radius: 10px;
    background-color: transparent;
    color: var(--action-link-color);
    border: 1px solid var(--action-link-color);
    transition: all 0.3s ease;
    user-select: none;
    transform: translateX(calc(90vw - 300px));
}

#restore-btn {
    width: 150px;
}

#save-btn:hover, #restore-btn:hover {
    background-color: var(--action-link-color);
    color: black;
}

.settings-option {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
}

.settings-name {
    left: 100%;
}

.settings-toggle {
    right: 100%
}

.main-element-settings-box {
    width: 90%;
    height: auto;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
}

.main-element-settings-box ul {
    width: 100%;
    height: 100%;
    list-style-type: none;
    padding-left: 0;
}

.main-element-settings-box li p{
    color: var(--main-text-color);
    font-size: large;
    font-family: sans-serif;
    margin-left: 10px;
}

.main-element-settings-box li {
    width: 100%;
    border-radius: 3px;
    margin-bottom: 1px;
}


.settings-item {
    display: flex;
    justify-content: flex-end; 
    align-items: center; 
}
  

.select-items {
    position: absolute;
    right: 0; 
    background-color: var(--settings-dropdown-menu-bg-color);
    border: 1px solid var(--main-text-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 99;
}
  

.select-items div {
    padding: 10px 15px;
    cursor: pointer;
}
  

.select-items div:hover {
    background-color: var(--settings-dropdown-menu-hover-option-color);
}


.nav-item-icon {
    transition: transform var(--animation-duration) ease-in-out;
}

.native-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


.custom-style {
    height: 20px;
    width: 20px;
    background-color: var(--checkbox-color);
    border: 2px solid #555;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}


.checkbox-container:hover .native-checkbox ~ .custom-style {
    background-color: #eee;
}

.native-checkbox:checked ~ .custom-style {
    background-color: #4CAF50; 
    border-color: #4CAF50;
}

.native-checkbox:checked ~ .custom-style::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    display: block;
}

.reduce-motion-active {
    --animation-duration: 0s !important;
    --transition-property: none !important;
}

/* ANCHOR 3.5 MAIN LAYOUT - SOURCES */



/* ANCHOR 3.6 MAIN LAYOUT - MADE BY */

/* Basic layout */

.sources-card {
    margin-left: 6rem;
    margin-right: 6rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.fullscreen-btn {
    background: var(--primary-accent-color);
    padding: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}


/* ANCHOR 3.7 404 PAGE */
.layout404 {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
    gap: 5rem;
}

.error-details {
    padding: 1rem;
}

.options-box404 {
    display: flex;
    gap: 1rem;
}

.options404 {
    width: 100%;
    height: 2rem;
    padding: 2rem;
    text-align: center;
    border-radius: 10rem;
}

.error-details h3 :hover {
    background-color: var(--action-link-color);
    color: var(--action-link-text-color-hover);
}

.image-container {
    position: relative; /* Essential for positioning the fake cursor inside */
    display: inline-block;
    height: auto;
}

#target-image {
    display: block;
    height: 25rem;
    border-radius: 10px;
}

.fake-cursor {
    position: absolute;
    width: 32px; /* Size of your custom cursor image */
    height: 32px;
    background-image: url("https://freesvg.org/img/map-pin.png"); /* Replace with your cursor image */
    background-size: cover;
    pointer-events: none; /* Allows clicks/events to pass through to the image below */
    animation: movePattern 30s infinite ease-in-out; /* Apply the repeating animation */
}

@keyframes movePattern {
    /* Important Rule: If 'left' value < 55, then 'top' value < 55 */
    0%   {top: 10%; left: 20%;}
    5%   {top: 30%; left: 45%;}
    10%  {top: 60%; left: 70%;}
    15%  {top: 30%; left: 70%;}
    20%  {top: 15%; left: 90%;}
    25%  {top: 30%; left: 30%;}
    30%  {top: 65%; left: 80%;}
    35%  {top: 15%; left: 10%;}
    40%  {top: 5%;  left: 60%;}
    45%  {top: 40%; left: 75%;}
    50%  {top: 25%; left: 35%;}
    55%  {top: 70%; left: 55%;}
    60%  {top: 5%; left: 80%;}
    65%  {top: 30%; left: 70%;}
    70%  {top: 10%; left: 25%;}
    75%  {top: 65%; left: 85%;}
    80%  {top: 20%; left: 15%;}
    85%  {top: 55%; left: 80%;}
    90%  {top: 30%; left: 40%;}
    95%  {top: 50%; left: 60%;}
    100% {top: 10%;  left: 20%;}
}

/* ANCHOR: 3.7 Articles */

.articles-main-box {
    flex-grow: 1;
}

.articles-main-box p {
    margin-left: 1rem;
}

.articles-page {
    display: flex;
    flex-direction: row;
    padding: 3rem;
    padding-left: 6rem;
    padding-right: 6rem;
    gap: 3rem;
}

.related-articles-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-articles-section a {
    text-decoration: none;
}

/* ==========================================================================
   4.0 Footer
   ========================================================================== */
/* ANCHOR: 4.0 FOOTER */
#footer {
    margin-right: none;
    width: 100%;
    height: 75px;
    background-color: var(--footer-bg-color);
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 30px;
    font-family: sans-serif;
    max-width: 100%;
    z-index: 1;
}

#footer hr {
    padding: 1px;
    background: var(--footer-seperation-line);
    width: 100%;
    margin-bottom: 20px;
}

#footer a {
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: 2;
}

.footer-links-margin /* Added this so it doesnt push the <hr> if I add padding */{
    margin-left: 30px;
}

#footer small /* Bullet poins seperating items */ {
    margin-left: 15px;
    margin-right: 15px;
    color: var(--main-text-color)
}

/* ANCHOR END OF STYLE.CSS