html {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}

main {
    padding-left: 30px;
}

@font-face {
    font-family: 'Consolas';
    src: url('../fonts/consola.ttf') format('truetype'); /* Regular */
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Consolas';
    src: url('../fonts/consolab.ttf') format('truetype'); /* Bold */
    font-weight: bold;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Consolas';
    src: url('../fonts/consolai.ttf') format('truetype'); /* Italic */
    font-weight: normal;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'Consolas';
    src: url('../fonts/consolaz.ttf') format('truetype'); /* Bold Italic */
    font-weight: bold;
    font-style: italic;
}

/* Responsive */
@media (min-width: 2200px) {
    html {
        font-size: 18px;
        width: 30%;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 100%;
        width: 70%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 80%;
        width: 100%;
    }

    main {
        padding-left: 0px;
    }
}



body {
    font-family: 'Consolas', 'Roboto Mono', 'Menlo', 'Courrier New', 'Arial';
    padding: 20px;
    
    display: flex;
    align-items: center;
    flex-direction: column;

    transition: background-color 0.3s ease, color 0.3s ease;
}

/** Header **/
header {
    display: flex;
    margin-right: auto;
}

h1 {
    margin: 0px;
}

/* Themes > toggle button */
#theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding-right: 10px;
    margin-top: 2px;
}

#theme-toggle img {
    width: 24px;
    height: 24px;
}

#theme-toggle:hover {
    opacity: 0.8;
}


/* Themes > auto-detect */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #fafafa;
        color: #000000;
    }
}

/* Themes > base */
body.light-mode {
    background-color: #fafafa;
    color: #000000;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/** Main **/

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0px;
    padding-right: 0px;
}

li + li {
    margin-top: 2px;
}

/* Details */
details {
    cursor: pointer;
}

details > summary {
    list-style-type: '> ';
}

details[open] > summary {
    list-style-type: 'v ';
}

details[open] {
    max-width: 682px; /* for 27 inch monitors */
}

summary {
    margin-bottom: 5px;
}

#questions li + li {
    margin-top: 10px;
}

#questions summary:hover, #questions details[open] summary:hover {
    background-color: rgb(90, 73, 245);
}

#questions details[open] summary {
    background-color: rgb(78, 58, 255);
}

/** Footer **/
footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/** Others **/
::selection {
    background-color: rgb(115, 101, 238)
}

a {
    color: rgb(78, 58, 255); 
}

a:visited {
    color: rgb(127, 58, 255); 
}

/** ASCII Art **/
pre {
    font-size: 12px;
    white-space: pre-wrap;
}

pre .glowing {
    text-shadow: rgb(226, 225, 219) 1px 0 10px;
    animation: glow 2s infinite alternate;
}

pre .glowing2 {
    text-shadow: rgb(226, 225, 219) 1px 0 10px;
    animation: glow 3s infinite alternate;
}

pre .glowing-moon {
    text-shadow: rgb(226, 225, 219) 1px 0 10px;
    animation: glow-moon 5s infinite alternate;
}

@keyframes glow {
    from {
      text-shadow: rgb(226, 225, 219) 1px 0 10px;
    }
    to {
      text-shadow: rgb(235, 234, 230) 1px 0 30px;
    }
}
  

@keyframes glow-moon {
    from {
      text-shadow: rgb(255, 255, 255) 1px 0 10px;
    }
    to {
      text-shadow: rgb(255, 255, 255) 1px 0 30px;
    }
}

pre .sliding {
  display: inline-block;
  animation: slide 10s ease-in-out infinite;
}

pre .sliding2 {
    display: inline-block;
    animation: slide2 8s ease-in-out infinite reverse;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slide2 {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}