/* global.css */
@import "themes.css";

:root {
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.5em;
    line-height: 1.65;
}

body {
    max-width: 27em;
    margin: auto;
    padding: 5em;
}

@media (max-width: 684px) {
    body {
        padding: 1em;
    }
}

@media (max-width: 382px) {
    body {
        font-size: 1.25em;
        padding: 1em;
    }
}

::selection {
    background-color: var(--accent);
    color: var(--crust);
}

h1 {
    font-size: 2em;
    margin: 0;
}

h2 {
    font-size: 1.7em;
    margin: 0;
}

h3 {
    font-size: 1.2em;
    margin: 0;
}

a {
    color: var(--accent);
    font-weight: bold;
}

a:hover {
    filter: brightness(90%);
}

nav a {
    margin-right: 1em;
}

pre {
    background-color: var(--mantle) !important;
    border-radius: 0.5em;
    padding: 1em;
    counter-reset: step;
    counter-increment: step 0;
}

code .line::before {
    display: inline-block;
    margin-right: 1.5rem;
    text-align: right;    
    color: var(--text);
    filter: opacity(50%);
    width: 1rem;

    content: counter(step);
    counter-increment: step;
}

details {
    padding: .6rem 1rem;
    background: var(--mantle);
    border-radius: 0.5em;
    margin: 1em 0;
}

details summary {
    margin-left: 0.5em;
    cursor: pointer;
    user-select: none;
}

/* Button styling for <a> elements */
a.button {
    display: inline-block;
    padding: 0.5em;
    background-color: var(--accent);
    color: var(--crust);
    border: none;
    border-radius: 0.5em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 30px;
}

a.button:hover {
    filter: brightness(110%);
}

#social {
    text-align: center;
    padding: 20px;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: inherit;
    font-size: 24px;
}

footer {
    background-color: #1E2030;
    color: #CAD3F5;
    padding: 10px 20px;
    text-align: center;
    left: 0;
    font-size: 14px;
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  
  footer h2 {
    font-size: 26px;
    margin: 10px 0;
  }
  
  footer .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  footer .social-links a {
    text-decoration: none;
    font-size: 20px;
  }
  
  footer .social-links a:hover {
    text-decoration: underline;
  }
  
  footer .copyright {
    font-size: 18px;
    margin-top: 12px;
  }

  .wave {
    animation-name: wave-animation;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    transform-origin: 70% 70%;
    display: inline-block;
  }
  
  @keyframes wave-animation {
      0% { transform: rotate( 0.0deg) }
     10% { transform: rotate(14.0deg) } 
     20% { transform: rotate(-8.0deg) }
     30% { transform: rotate(14.0deg) }
     40% { transform: rotate(-4.0deg) }
     50% { transform: rotate(10.0deg) }
     60% { transform: rotate( 0.0deg) }  
    100% { transform: rotate( 0.0deg) }
  }
  
  @font-face {
    font-family: 'Acer VGA 8x8';
    src: url(Web437_Acer_VGA_8x8.woff) format('woff');
    font-weight: normal;
    font-style: normal;
  }