:root {
  --main-color: #fff;
  --text-color: #000;
  --highlight: #ffff00;
  --accent1: #0000ff;
  --accent2: #ff0000;
}

:root:has(option[value="dark"]:checked) {
  --main-color: #222;
  --text-color: #fff;
  --highlight: #000;
  --accent1: #00ff22;
  --accent2: #ff00ee;
}

:root:has(option[value="red"]:checked) {
  --main-color: #F0D8CC;
  --text-color: #FF0000;
  --highlight: #fff;
  --accent1: #47281F;
  --accent2: #758BFD;
}

:root:has(option[value="blue"]:checked) {
  --main-color: #473BF0;
  --text-color: #F6F7F8;
  --highlight: #F6F7F8;
  --accent1: #2EC4B6;
  --accent2: #FF3366;
}

:root:has(option[value="yellow"]:checked) {
  --main-color: #EDB230;
  --text-color: #222;
  --highlight: #F2DBFF;
  --accent1: #6D62FF;
  --accent2: #7700FF;
}



*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  font-size: 8px;
  overflow: hidden;
  background: var(--main-color);
  color: var(--text-color);
}

@media screen and (orientation: portrait) {
  body {
    width: 200vw;
    overflow-y: clip;
    overflow-x: scroll;
  }
}

::selection,
::-moz-selection {
  background: var(--accent1);
  color: var(--main-color);
}

:root:has(option[value="blue"]:checked) ::selection,
:root:has(option[value="blue"]:checked) ::-moz-selection {
  background: var(--accent2);
  color: var(--text-color);
}

:root:has(option[value="yellow"]:checked) ::selection,
:root:has(option[value="yellow"]:checked) ::-moz-selection {
  background: var(--text-color);
}

main {
  width: 100%;
  height: 100%;
  display: grid;
  grid-tempalte-columns: 1fr;
  grid-template-rows: 4em 1fr 6em;
  grid-template-areas: "header" "body" "footer";
}

:root:has(option[value="red"]:checked) main {
  border-bottom: 6px solid var(--accent1);
}

:root:has(option[value="blue"]:checked) main {
  border-bottom: 6px solid var(--accent2);
}

:root:has(option[value="yellow"]:checked) main {
  border: 4px solid var(--text-color);
}

header {
  grid-area: header;
}

.marquee {
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: .5px;
  padding: .5em;
  background: var(--accent1);
  color: var(--main-color);

  --gap: 1rem;
  position: relative;
  display: flex;
  overflow: hidden;
  gap: var(--gap);
}

:root:has(option[value="red"]:checked) .marquee {
  color: var(--accent2);
}

:root:has(option[value="yellow"]:checked) .marquee {
  background: var(--text-color);
  color: var(--accent1);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll 15s linear infinite;
}

ul {
  list-style: none;
}

section {
  grid-area: body;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

#ascii {
  font-family: "Courier New", monospace;
  white-space: pre;
  font-size: clamp(7px, .80vw, .85vh);
  animation: rotate 20s ease-in infinite;
}

a {
  color: var(--accent1);
}

:root:has(option[value="red"]:checked) a,
:root:has(option[value="blue"]:checked) a {
  color: var(--accent2);
}

a:hover {
  background: var(--highlight);
}

a:visited {
  color: var(--accent2);
}

:root:has(option[value="red"]:checked) a:visited,
:root:has(option[value="blue"]:checked) a:visited {
  color: var(--accent1);
}

footer {
  grid-area: footer;
}

.theme {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1em;
}

.info {
  text-align: center;
}

.info a, .info a:visited {
  color: var(--main-color);
}

.info a:hover {
  background: none;
}

.info a:hover svg {
  fill: var(--accent1);
}

.info p {
  font-size: 10px;
}

.info svg {
  fill: var(--text-color);
  width: auto;
  height: 30px;
}

@keyframes rotate {
  0% {transform: rotateY(0deg);}
  60% {transform:rotateY(0deg);}
  100% {transform: rotateY(360deg);}
}

@keyframes scroll {
  from {transform: translateX(0);}
  to {transform: translateX(calc(-100% - var(--gap)));}
}