

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --toggle-color: #000000;
  --toggle-hover: #999999;
  --link-color: #3ebad6;
  --link-visited: #e675d3;
  --link-hover: #77d1e6;
  --link-active: #aee5f2;
}

:root.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --toggle-color: #ffffff;
  --toggle-hover: #999999;
  --link-color: #5ebce0;
  --link-visited: #f0a0d8;
  --link-hover: #7fe1f0;
  --link-active: #a8f0ff;
}

html, body {
     height: 100%;
}

body {
    background-color: var(--bg-color);
    font-family: 'Helvetica', sans-serif;
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
}

.centered {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em 1em;
    margin-bottom: 4em;
}

.logo {
    width: 100%;
    max-width: 315px;
    aspect-ratio: 607 / 94;
    background-image: url('light.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 0 0.5em 0;
    padding-bottom: 1em;
}

:root.dark-mode .logo {
    background-image: url('dark.png');
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    line-height: 1;
    font-size: 2em;
    font-weight: bold;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1em;
    font-size: 0.85em;
    opacity: 0.7;
    background: var(--bg-color);
}

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

a:visited {
    color: var(--link-visited);
}

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

a:active {
    color: var(--link-active);
}

.theme-toggle {
    position: fixed;
    top: 1.7em;
    right: 0.5em;
    font-size: 1em;
    cursor: pointer;
    user-select: none;
    color: var(--toggle-color);
    background-color: var(--bg-color);
    padding: 0.3em 0.5em;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.3s ease;
    z-index: 1000;
}

@media screen and (max-width: 768px) {
  .theme-toggle {
    top: 3.4em;
  }

  .logo {
    max-width: 250px;
  }
}

.theme-toggle:hover {
    color: var(--toggle-hover);
}

