@font-face {
  font-family: "SpaceMono Nerd Font";
  font-display: swap;
  src: local("SpaceMono Nerd Font"), url(../fonts/SpaceMonoNF.woff2) format("woff2"), url(../fonts/SpaceMonoNF.woff) format("woff");
}

:root {
  color-scheme: dark;
}

html, body {
  height: 100%;       
  margin: 0;           
  padding: 0;
}

html {
  background-color: var(--background-color);
  overflow-x: clip;
}

html.loaded {
  transition: background-color 0.2s ease-in-out;
}

body {
  display: flex;
  justify-content: center; 
  align-items: center;     
  color: var(--text-color);
  font-family: "SpaceMono Nerd Font", monospace;
}

#nokey {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: auto;
}

#wrap {
  display: flex;
  gap: 2em;
}

#text,
#image {
  animation: onload 1s;
}

#text {
  height: min-content;
}

#carouselImage {
  opacity: 0;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.15s ease-in-out, opacity 0.2s ease-in-out;
}

#carouselImage:hover {
  transform: scale(1.1);
  cursor: pointer;
}

#greeting {
  color: var(--accent-color-2);
  font-size: 2.5em;
  font-weight: 900;
  text-align: center;
}

#date {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--accent-color);
  text-align: center;
  margin: 1em 0;
}

#search {
  position: relative;
  margin-bottom: 20px;

  input {
    width: 100%;
    padding: 10px 10px 13px 40px;
    background: transparent;
    font-size: 20px;
    border: 2px dashed;
    border-color: var(--accent-color-2);
    box-shadow: 0px 0px 10px var(--accent-color-2);
    border-width: 3px;
    box-sizing: border-box;
    outline: none;
  }

  i {
    position: absolute;
    display: block;
    transform: translate(0, -50%);
    top: 48%;
    pointer-events: none;
    font-style: normal;
    font-size: 22px;
    margin-left: 10px;
    color: var(--text-color);
  }
}

.category {
  display: flex;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.6em;
}

.category button {
  font-weight: 600;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.category button:disabled {
  cursor: default;
}

.header {
  white-space: nowrap;
  font-weight: 600;
  margin-right: 5px;
}

#links {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(4, 1fr);
}

.page {
  position: relative;
  padding: 1em;
  border: 2px solid var(--accent-color-2);
  border-radius: 8px;
  box-shadow: 0px 0px 10px var(--accent-color-2);
  text-align: center;
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin: 14px 0px;
}

li {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

li:nth-child(1) { animation-delay: 0.8s; } 
li:nth-child(2) { animation-delay: 1.0s; }
li:nth-child(3) { animation-delay: 1.2s; }
li:nth-child(4) { animation-delay: 1.4s; }

ul.no-anim li {
  opacity: 1;
  animation: none !important;
}

a {
  color: var(--text-color);
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
}

/* Animation */
@keyframes onload {
  0% {
    transform: scale(0.1);
    opacity: 0;
    filter: blur(10px);
  }

  50% {
    transform: scale(1.1);
    opacity: 0.5;
    filter: blur(5px);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}