@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Chakra+Petch:wght@400;display=swap');

:root {
    --bg-color: #050510;
    --main-font: 'Chakra Petch';
    --year-font: 'Orbitron';
    --text-color: #d0ffff;
    --link-color: #718ad6;
    --link-color-visited: #b17ad6;
    --highlight: #ff48a5;
    --accent-color: #2dab67;
    --accent-color-2: #addb77;
    --svg-accent-color: 70, 246, 155;
    --section-color: rgba(15, 36, 19, 0.4);
    --circle-color: #010715;
    --header-color: rgba(10, 10, 26, 0.8);
}

body {
    font-family: var(--main-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--link-color-visited);
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, var(--circle-color) 0%, #000000 80%);
    overflow: hidden;
}

#background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Position it above the star fields */
}

.grid-line {
    stroke: rgba(var(--svg-accent-color), 0.1);
    /*opacity: 0.1;*/
    stroke-width: 1px;
    transition: all 0.5s ease;
}

.node {
    fill: rgba(var(--svg-accent-color), 0.7);
    filter: drop-shadow(0 0 3px var(--primary-color));
    animation: pulse 8s infinite alternate ease-in-out;
}

.connector {
    stroke: rgba(var(--svg-accent-color), 0.4);
    stroke-width: 1px;
    animation: flicker 10s infinite alternate ease-in-out;
}

@keyframes move-stars-up {
    /*0%, 100% {transform: translateX(0px) translateY(0px);}
    50% {transform: translateX(100px) translateY(-1000px);}*/
    0%, 100% {transform: rotate(0deg);}
    50% {transform: rotate(120deg);}
}

@keyframes pulse {
    0% { r: 1; opacity: 0.5; }
    100% { r: 3; opacity: 1; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-thumb {
  border: 1.5px solid #0a132e;
  box-shadow: inset -10px 0px 2px #333;
  background: #444;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: url("Textures/SingleStar1.png") repeat top center;
    z-index: 1;
    animation: move-stars-up 200s infinite ease-in-out;
}

header {
    background-color: var(--header-color);
    border-bottom: 1px solid var(--accent-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--main-font), sans-serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-right: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 1rem;
    display: block;
    font-family: var(--year-font), sans-serif;
    font-size: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(0, 246, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0a0a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid var(--accent-color);
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.prediction-item {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.prediction-item::before {
    /*content: '›';*/
    content: '>';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.2rem;
}

.main-input {
    border-radius: 6px;
    width: 75%;
    font-family: var(--main-font), sans-serif;
    font-size: 3rem;
    padding: 0 3px;
    background-image: linear-gradient(
        to bottom,
        rgba(25, 115, 140, 1) 0%,
        rgba(15, 69, 84, 1) 53%,
        rgba(2, 5, 8, 1) 54%,
        rgba(10, 46, 56, 1) 100%
    );
    border: 1px solid var(--accent-color);
    transition: 0.5s;
}

.main-input::placeholder {
    color: var(--text-color);
}

.main-input:focus {
    color: var(--text-color);
}

button {
    border-radius: 6px;
    width: 20%;
    font: var(--main-font), sans-serif;
    font-size: 15px;
    color: var(--text-color);
    background-color: #000000;
    background-image: linear-gradient(
        to bottom,
        rgba(25, 140, 115, 1) 0%,
        rgba(15, 84, 69, 1) 53%,
        rgba(2, 5, 8, 1) 54%,
        rgba(10, 46, 56, 1) 100%
    );
    border: 1px solid var(--accent-color);
    transition: 0.5s;
}

button:hover{
    transform: scale(1.1, 1.1);
}

.scanlines {
    overflow: hidden;
    position: relative;
}
.scanlines:before, .scanlines:after {
    display: block;
    pointer-events: none;
    content: "";
    position: absolute;
}
.scanlines:before {
    width: 100%;
    height: 2px;
    background: rgba(17, 20, 30, 0.1);
    opacity: 0.15;
}
.scanlines:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(17, 120, 130, 0.1) 51%
    );
    background-size: 100% 8px;
    animation: scanlines 4s steps(60) infinite;
}

@keyframes scanlines {
    0% {
        background-position: 0% 50%;
    }
}

.section-content-wrapper .link-column {
    overflow-y: auto;
    border-radius: 0.5rem;
}

.section-content-wrapper .link-column ul {
    padding: 0rem;
}

.section-content-wrapper .link-column li a {
    color: var(--text-color);
    text-decoration: none;
    text-shadow: -1px 1px 2px var(--accent-color);
    transform: rotate(0deg);
}

.section-content-wrapper .link-column li a:hover {
    transform: rotate(20deg);
    text-shadow: 0px 0px 8px var(--text-color);
    animation: section-heading-animation 1.5s infinite;
}

.section-content-wrapper .link-column li div {
    background-image: linear-gradient(
        to bottom,
        rgba(25, 115, 140, 0.8) 0%,
        rgba(15, 69, 84, 0.8) 53%,
        rgba(2, 5, 8, 0.8) 54%,
        rgba(10, 46, 56, 0.8) 100%
    );
    margin: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-evenly;
}

.section-heading {
    padding: 10px;
    border: 1px solid var(--accent-color);
    /*Credit to https://mukkysworld.neocities.org for the linear gradient code!*/
    background-image: linear-gradient(
        to bottom,
        rgba(25, 115, 140, 0.8) 0%,
        rgba(15, 69, 84, 0.8) 53%,
        rgba(2, 5, 8, 0.8) 54%,
        rgba(10, 46, 56, 0.8) 100%
    );
    border-radius: 1rem;
}

.section-heading li a {
    color: var(--text-color);
    text-decoration: none;
    text-shadow: -1px 1px 2px var(--accent-color);
    transform: rotate(0deg);
    transition: all 0.15s ease;
}

.section-heading li a:hover {
    transform: rotate(20deg);
    text-shadow: 0px 0px 8px var(--text-color);
}

.link-heading {
    transition: all 0.15s ease;
}

.link-heading:hover {
    /*transform: translateZ(-3px) rotate(5deg);*/
    animation: section-heading-animation 1.5s infinite;
}

@keyframes section-heading-animation {
  0%, 100% {
    transform: rotate(-5deg);
    animation-timing-function: ease;
  }
  50% {
    transform: rotate(5deg);
    animation-timing-function: ease;
  }
}

.section-heading ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

.invisible-section-content {
    /*padding: 0.5rem;*/
    overflow-y: auto;
    max-width: 90%;
    margin: 0.5rem auto;
    display: flex;
    list-style-type: none;
    justify-content: space-evenly;
}

.invisible-section-content p {
    margin: 0.25rem;
}

.left-column, .right-column {
    width: 15%;
    min-width: 17.5rem;
    background: var(--section-color);
    padding: 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    margin: 1rem;
}

.left-column, .center-column, .right-column {
    padding: 10px;
    overflow: auto;
}

.center-column {
    width: 60%;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    flex: 2;
    margin: 0.5rem;
    text-align: justify;
}

.section-content-wrapper {
    padding: 1rem;
    overflow-y: auto;
    min-width: 400px;
    top: 0px;
    left: 0px;
    max-width: 80%;
    justify-content: space-between;
    margin: 2rem auto;
    background-color: var(--section-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
}

.flex {
    display: flex;
}

.section-content {
    padding: 1rem;
    overflow-y: auto;
    min-width: 100px;
    /*max-width: 1200px;
    padding-left: 10%;
    padding-right: 10%;*/
    margin: 1rem auto;
    background-color: var(--section-color);
    background-image: url("Textures/SectionBack.png");
    border: 1px solid var(--accent-color);
    border-radius: 8px;
}

.section-content summary {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.section-content summary:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

h1, h2 {
    font-family: var(--main-font), sans-serif;
    color: var(--accent-color);
    border-bottom: 2px solid;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    text-shadow: 0 0 10px var(--accent-color);
}
h2 {
    font-size: 2rem;
    text-shadow: 0 0 2px var(--accent-color);
}
ul {
    list-style-type: none;
}
.section-title {
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
}
.toc {
    background-color: rgba(0, 246, 255, 0.05);
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    border-radius: 5px;
    width: 30%;
}

.toc h2 {
    border-bottom: none;
    margin-top: 0;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    text-align: center;
}
.container.bounce-in {
    animation: bounce-in 1.1s both, hover-up-and-down 5s infinite;
}
.disclaimer {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-top: 20px;
    font-style: italic;
}
@keyframes bounce-in {
  0% {
    transform: translateY(-300px);
    animation-timing-function: ease;
    filter: blur(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    animation-timing-function: ease-out;
    filter: blur(0);
  }
}
@keyframes hover-up-and-down {
  0% {
    transform: translateY(-8px);
    animation-timing-function: ease;
  }
  50% {
    transform: translateY(8px);
    animation-timing-function: ease;
  }
  100% {
    transform: translateY(-8px);
    animation-timing-function: ease;
  }
}

section {
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}