body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

.sidenav {
    height: 100%;
    width: var(--nav-width);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: var(--accent-color);
    display: block;
    transition: color 0.3s;
}

.sidenav a:hover, .sidenav a.active {
    color: var(--active-color);
}

.main {
    margin-left: var(--nav-width);
    font-size: 1.1rem; 
}

@media screen and (max-height: 450px) {
    .sidenav { padding-top: 15px; }
    .sidenav a { font-size: 18px; }
}

.terminal-cursor {
    width: 10px;
    background-color: var(--text-color);
    animation: blink 1s infinite;
}

/* The Blinking Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-container {
    font-style: normal;
}

#typing-text {
    white-space: pre-wrap;
}

/* Class adding to disable animation */
/* Source - https://stackoverflow.com/a/16575811 */
/* Posted by Mark Amery, modified by community. See post 'Timeline' for change history */
/* Retrieved 2026-02-15, License - CC BY-SA 4.0 */

.no-animations {
    transition: none !important;
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  
  animation: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
}
