header {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 300px;
}
html {
  overflow-x: hidden;
  overflow-y: hidden;
}
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #0a192f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

section {
  margin-bottom: 30px;
}

h2 {
  color: #8b5cf6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.link-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.link-item {
  margin: 10px;
  opacity: 0;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
}

a {
  color: #a78bfa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #0a192f;
  transition: color 0.3s ease;
}

a:hover {
  color: #c4b5fd;
}

.link-item a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #6a1b9a;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.link-item a:hover {
  background-color: #4a148c;
  box-shadow: 0 0 20px rgba(106, 27, 154, 0.6);
}

.link-item a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #8e24aa, #7b1fa2, #6a1b9a, #4a148c);
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  animation: glowing 20s linear infinite;
}

.link-item a:hover::before {
  opacity: 1;
}
.link-item {
  animation: solarisGlow 1s forwards;
  margin-bottom: 2vh;
}

.link-item:nth-child(1) { animation-delay: 0.2s }
.link-item:nth-child(2) { animation-delay: 0.4s }
.link-item:nth-child(3) { animation-delay: 0.6s }
.link-item:nth-child(4) { animation-delay: 0.8s }
.link-item:nth-child(5) { animation-delay: 1.0s }
.link-item:nth-child(6) { animation-delay: 1.2s }

/* Second link container */
.link-container:last-of-type .link-item:nth-child(1) {
  animation-name: solarisGlow;
  animation-delay: 1s;
}

.link-container:last-of-type .link-item:nth-child(2) {
  animation-name: solarisGlow;
  animation-delay: 1.2s;
}

.link-container:last-of-type .link-item:nth-child(3) {
  animation-name: solarisGlow;
  animation-delay: 1.4s;
}

@keyframes solarisGlow {
  0% {
    opacity: 0;
    transform: scale(0.5);
    box-shadow: 0 0 0 rgba(106, 27, 154, 0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(106, 27, 154, 0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(106,27,154,0.6));
  }
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}


#splash_text {
  position: relative;
  top: -112px;
  left: 50px;
  color: #ff5;
  font-family: 'Press Start 2P', cursive;
  animation-name: bigsmall;
  animation-duration: 0.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  text-shadow: 8px 4px 15px rgb(207, 207, 68);
  white-space: nowrap;
  overflow: hidden;
}

@keyframes bigsmall {
  0% {
    transform: scale(1) rotate(-22deg);
  }
  100% {
    transform: scale(1.2) rotate(-22deg);
  }
}

@keyframes fly-in {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  60% {
    transform: translateX(20%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e2e8f0;
  margin: 0;
  padding: 2em;
  background: linear-gradient(
    45deg,
    var(--color-1) 0%,
    var(--color-1) 25%,
    var(--color-2) 25%,
    var(--color-2) 50%,
    var(--color-3) 50%,
    var(--color-3) 75%,
    var(--color-4) 75%,
    var(--color-4) 100%
  );
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: gradient-animation 30s ease infinite;
}

:root {
  --color-1: #0a192f;
  --color-2: #4c11d8;
  --color-3: #0a192f;
  --color-4: #4405ff;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.save-links button {
    animation-name: solarisGlow;
    animation-delay: 1.6s;
    border: none;
    background-color: #6A1B9A;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 10px 0px;
    color: rgb(255, 255, 255);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    position: relative;
    text-decoration-color: rgb(0, 0, 0);
    text-decoration-line: none;
    text-decoration-style: solid;
    text-decoration-thickness: auto;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 2px;
    transition-behavior: normal;
    transition-delay: 0s;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: ease-in-out;
    font-size: 16px;
}

h1,
h2 {
  color: #8b5cf6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

hr {
  border: 1px solid #8b5cf6;
}

p {
  margin: 0.5em 0;
}

strong {
  color: #8b5cf6;
}

span {
  color: #a0aec0;
}




















































/* Open button in top-right corner */
#openSettingsBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #6a1b9a;
    color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Settings panel */
#settingsPanel {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0a192f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    z-index: 999;
    display: none;
}

/* Close button inside panel */
#closeSettingsBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4a148c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Panel heading */
#settingsPanel h2 {
    text-align: center;
    color: #8b5cf6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

/* Setting sections */
.setting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual setting items */
.setting-item {
    margin-bottom: 10px;
}

/* Buttons in settings */
#settingsPanel button {
    border: none;
    background-color: #6a1b9a;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
}

#settingsPanel button:hover {
    background-color: #4a148c;
    box-shadow: 0 0 15px rgba(106,27,154,0.6);
}

/* HR inside panel */
#settingsPanel hr {
    border: 1px solid #8b5cf6;
    margin: 15px 0;
}