* {
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

[data-theme="catpuccin"] {
    --header-bg-color: rgb(36, 38, 51);
    --footer-bg-color: rgb(36, 38, 51);
    --sidebar-bg-color: rgb(42, 44, 59);
    --primary-text: rgb(200, 208, 242);
    --red-circle: rgb(236, 103, 101);
    --yellow-circle: rgb(241, 189, 68);
    --green-circle: rgb(18, 219, 119);
    --primary-border: rgb(68, 69, 87);
    --file-focus-color: rgb(49, 52, 69);
    --sidebar-hover-bg: rgb(60, 63, 80);
    --content-bg-color: rgb(49, 52, 69);
    --html-icon-color: rgb(213, 92, 38);
    --alert-bg-color: rgb(55, 53, 53);
    --alert-text-color: rgb(224, 201, 151);
    --file-tab-deselected: rgb(30, 32, 42);
    --dim-text: rgb(100, 108, 142);
    --md-icon-color: rgb(94, 163, 239);
    --accent-color: rgb(169, 141, 198);
    --vim-normal-bg: rgb(237, 214, 208);
    --syntax-green: #a6d189;
    --syntax-red: #e78284;
    --syntax-blue: #8caaee;

    --text-2xs: 14px;
    --text-xs: 16px;
    --text-sm: 18px;
    --text-md: 24px;
    --text-lg: 40px;
    --text-xl: 50px;
    --text-2xl: 60px;

    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
} /* All colors and text sizes defined here */

[data-theme="monokai"] {
    --header-bg-color: rgb(60, 58, 62);
    --footer-bg-color: rgb(60, 58, 62);
    --sidebar-bg-color: rgb(50, 48, 52);
    --primary-text: rgb(252, 252, 250);
    --red-circle: rgb(236, 103, 101);
    --yellow-circle: rgb(241, 189, 68);
    --green-circle: rgb(18, 219, 119);
    --primary-border: rgb(70, 68, 72);
    --file-focus-color: rgb(60, 58, 61);
    --sidebar-hover-bg: rgb(60, 58, 61);
    --content-bg-color: rgb(44, 42, 46);
    --html-icon-color: rgb(213, 92, 38);
    --alert-bg-color: rgb(55, 53, 53);
    --alert-text-color: rgb(224, 201, 151);
    --file-tab-deselected: rgb(30, 32, 42);
    --dim-text: rgb(100, 108, 142);
    --md-icon-color: rgb(94, 163, 239);
    --accent-color: rgb(249, 218, 120);
    --vim-normal-bg: rgb(237, 214, 208);
    --syntax-green: rgb(179, 219, 130);
    --syntax-red: rgb(237, 108, 137);
    --syntax-blue: rgb(145, 218, 230);

    --text-2xs: 14px;
    --text-xs: 16px;
    --text-sm: 18px;
    --text-md: 24px;
    --text-lg: 40px;
    --text-xl: 50px;
    --text-2xl: 60px;

    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
} /* Monokai Theme */

[data-theme="github-light"] {
    --header-bg-color: rgb(246, 248, 250);
    --footer-bg-color: rgb(246, 248, 250);
    --sidebar-bg-color: rgb(246, 248, 250);
    --primary-text: rgb(32, 35, 40);
    --red-circle: rgb(236, 103, 101);
    --yellow-circle: rgb(241, 189, 68);
    --green-circle: rgb(18, 219, 119);
    --primary-border: rgb(224, 228, 232);
    --file-focus-color: rgb(232, 235, 238);
    --sidebar-hover-bg: rgb(232, 235, 238);
    --content-bg-color: rgb(255, 255, 255);
    --html-icon-color: rgb(213, 92, 38);
    --alert-bg-color: rgb(246, 248, 250);
    --alert-text-color: rgb(147, 105, 33);
    --file-tab-deselected: rgb(246, 248, 250);
    --dim-text: rgb(100, 108, 142);
    --md-icon-color: rgb(94, 163, 239);
    --accent-color: rgb(224, 228, 232);
    --vim-normal-bg: rgb(91, 99, 109);
    --syntax-green: rgb(45, 97, 48);
    --syntax-red: rgb(190, 53, 54);
    --syntax-blue: rgb(33, 79, 168);

    --text-2xs: 14px;
    --text-xs: 16px;
    --text-sm: 18px;
    --text-md: 24px;
    --text-lg: 40px;
    --text-xl: 50px;
    --text-2xl: 60px;

    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
} /* GitHub Light Theme */

@font-face { /* JetBrains Supremacy */
    font-family: 'JetBrainsMono Nerd Font';
    src: url('JetBrainsMonoNerdFont-Subset.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important; /* The delay is set to -1ms so the animation finishes instantly */
        animation-duration: 1ms !important; /* The duration is set to 1ms instead of 0 so the JS does not break */
        scroll-behavior: auto !important; /* Disables smooth scroll on the page */
        transition-duration: 0.1s !important; /* Stripping the transition duration */
        transition-delay: 0s !important; /* Transition delay can be 0. The JS does not break */
    }

    .reveal-section, .timeline-card, .timeline-card p { /* self-explanatory */
        transform: none !important;
        width: 45% !important;
        opacity: 1 !important;
    }
}

body {
    margin: 0;
    font-family: Helvetica, 'Arial', sans-serif;
    color: var(--primary-text);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--content-bg-color);
}

a {
    color: var(--primary-text);
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xs);
    padding-bottom: var(--space-2xs);
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
    background-color: var(--header-bg-color);
    border-bottom: 1px solid var(--primary-border);
    font-family: "JetBrainsMono Nerd Font", "Arial", sans-serif;
}

@media screen and (max-width: 395px) {
    header {
        display: none;
    }
}

@keyframes slideHorizontal {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes slideVertical {
    0% {
        height: 0;
    }

    100% {
    }
}

#header-left {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

#header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

#header-left h1 {
    font-weight: normal;
    margin: 0px;
    margin-left: var(--space-xs);
    font-size: var(--text-2xs);
    line-height: 1;
}

.red-circle {
    width: 12px;
    height: 12px;
    background-color: var(--red-circle);
    border-radius: 100px;
    margin-right: var(--space-2xs);
}

.yellow-circle {
    width: 12px;
    height: 12px;
    background-color: var(--yellow-circle);
    border-radius: 100px;
    margin-right: var(--space-2xs);
}

.green-circle {
    width: 12px;
    height: 12px;
    background-color: var(--green-circle);
    border-radius: 100px;
    margin-right: var(--space-2xs);
}

#main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0px;
}

#sidebar {
    width: 16.5%;
    background-color: var(--sidebar-bg-color);
    border-right: 1px solid var(--primary-border);
}

@media screen and (max-width: 768px) {
    #sidebar {
        display: none;
        width: 0%;
    }
}

#content {
    width: 83.5%;
    background-color: var(--content-bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    #content {
        width: 100%;
    }
}

#sidebar ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

#sidebar p {
    padding: 0px;
    margin: 0px;
    font-size: var(--text-xs);
}

#sidebar li {
    padding: var(--space-2xs) var(--space-md);
    text-decoration: none;
    margin: var(--space-2xs) 0px;
    font-size: var(--text-xs);
}

#sidebar li:hover {
    background-color: var(--sidebar-hover-bg);
}

#sidebar a {
    text-decoration: none;
}

.nerd-icon {
    padding: 0px var(--space-2xs);
    font-family: "JetBrainsMono Nerd Font", Arial, sans-serif;
}

.md-icon {
    color: var(--md-icon-color);
}

.focused {
    background-color: var(--file-focus-color);
}

.alert {
    color: var(--alert-text-color);
    background-color: var(--alert-bg-color);
    border-radius: 5px;
    padding: var(--space-2xs);
}

#file-tab-bar {
    background-color: var(--header-bg-color);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--accent-color);
}

#file-tab-bar a {
    text-decoration: none;
}

#navigation-arrows {
    border-right: 1px solid var(--primary-border);
    padding: var(--space-xs);
    padding-right: var(--space-xs);
    padding-left: var(--space-2xs);
}

@media screen and (max-width: 768px) {
    #navigation-arrows {
        display: none;
    }
}

.file-tab {
    background-color: var(--file-tab-deselected);
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-right: 1px solid var(--primary-border);
}

.file-tab-focused {
    background-color: var(--content-bg-color);
}

#text {
    padding-top: var(--space-md);
    margin-left: var(--space-md);
    margin-right: var(--space-md);
    font-size: var(--text-sm);
    overflow-y: auto;
    flex: 1;
    font-family: JetBrainsMono Nerd Font, Arial, sans-serif;
}

@media screen and (max-width: 768px) {
    #project-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

.dim {
    color: var(--dim-text);
    margin-right: var(--space-sm);
}

.dim-inline {
    color: var(--dim-text);
}

#footer-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2xs) var(--space-xs);
    background-color: var(--header-bg-color);
    border-top: 1px solid var(--primary-border);
    font-family: 'JetBrainsMono Nerd Font', Arial, sans-serif;
}

#footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

#footer-right {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

#footer-left h1 {
    font-weight: normal;
    margin: 0px;
    margin-left: var(--space-xs);
    font-size: var(--text-2xs);
    line-height: 1;
}

#vim-normal {
    background-color: var(--vim-normal-bg);
    color: var(--footer-bg-color);
    padding: var(--space-2xs) var(--space-xs);
    border-radius: 5px;
}

#markdown-text {
    border-right: 1px solid var(--primary-border);
    padding-right: var(--space-xs);
    display: flex;
    align-self: stretch;
    align-items: center;
}

.green {
    color: var(--syntax-green) !important;
}

.blue {
    color: var(--syntax-blue) !important;
}

.red {
    color: var(--syntax-red) !important;
}

.content-box {
    border: 1.75px solid var(--syntax-blue);
    padding: var(--space-xs);
}

.bold {
    font-weight: bold;
    display: inline;
}

#text h1 {
    margin: 0px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
    line-height: 1;
}

#text h2 {
    margin: 0px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.bold-md {
    font-weight: bold;
}

.bold-md::before,
.bold-md::after {
    content: "**";
    color: var(--dim-text);
    font-weight: normal;
}

#terminal {
    animation: slideVertical 0.5s ease-in;
    height: 275px;
    overflow: auto;
    resize: vertical;
    transition: height 0.4s ease-in-out !important;
    font-family: 'JetBrainsMono Nerd Font', 'Arial', 'sans-serif';
}

#terminal-tab-bar {
    background-color: var(--header-bg-color);
    border-top: 1px solid var(--primary-border);
    border-bottom: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
}

#terminal-content {
    background-color: var(--content-bg-color);
    padding: var(--space-xs);
    outline: none;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.terminal-tab {
    background-color: var(--content-bg-color);
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-right: 1px solid var(--primary-border);
}

.hidden {
    height: 0 !important;
    overflow: hidden !important;
}

.hidden-sideways {
    width: 0 !important;
    overflow: hidden !important;
}

.forceshow {
    display: inline !important;
}

.full-width {
    width: 100% !important;
}

@keyframes cursor-blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.cursor {
    animation: cursor-blink 1s infinite;
}

#terminal-input {
    background-color: var(--content-bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    width: 100%;
    font-family: 'JetBrainsMono Nerd Font';
    font-size: var(--text-xs);
}

.old-input {
    background-color: var(--content-bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    width: 100%;
    font-family: 'JetBrainsMono Nerd Font';
    font-size: var(--text-xs);
}

.prompt {
    gap: var(--space-xs);
    display: flex;
    align-items: center;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fullscreen {
    height: 100vh !important;
}

h2 {
    font-size: var(--text-lg);
}

h3 {
    font-size: var(--text-md);
}

#timeline-content {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    margin-bottom: var(--space-md);
}

@media screen and (max-width: 768px) {
    #timeline-content {
        margin-top: var(--space-md);
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        justify-content: center;
        align-items: center;
    }
}

.timeline-card {
    text-align: center;
    padding: var(--space-md);
    border: 1.75px solid var(--syntax-blue);
    width: 60%;
    box-shadow: 5px 5px 0px 0px var(--syntax-blue);
    transition: all 0.3s ease;
    margin-left: var(--space-md);
    margin-right: var(--space-md);
}

.timeline-card:hover {
    box-shadow: 0px 0px 0px 0px;
    transform: translateX(5px) translateY(5px);
    transition: all 0.3s ease;
}

.timeline-card h4 {
    color: var(--syntax-green);
}

.timeline-card h5 {
    color: var(--syntax-red);
}

.timeline-card p {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.timeline-card:hover p {
    max-height: 200px;
    opacity: 1;
    transition: all 0.3s ease;
}

.show {
    opacity: 1 !important;
    width: 60% !important;
}

.reveal-section {
    opacity: 0;
    width: 10%;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
}

.timeline-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
}

.project-card {
    border: 1.75px solid var(--syntax-blue);
    width: 80%;
    padding: var(--space-md);
    box-shadow: 5px 5px 0px 0px var(--syntax-blue);
    transition: all 0.3s ease;
    margin: var(--space-lg);
}

.project-card:hover {
    box-shadow: 0px 0px 0px 0px;
    transform: translateX(5px) translateY(5px);
    transition: all 0.3s ease;
}

.project-title {
    color: var(--syntax-red);
}

.project-stack {
    color: var(--syntax-green);
}

.project-card .project-description {
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-description {
    opacity: 1;
    max-height: 1000px;
    transition: all 0.3s ease;
}

.project-card ul {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.project-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.project-header-left {
    justify-content: flex-start;
    align-items: center;
}

.project-header-right {
    justify-content: flex-end;
    align-items: center;
}

.project-header-right img {
    width: 100px;
}

@media screen and (max-width: 768px) {
    .project-header-right img {
        width: 70px;
    }
}

.selector-tags {
    display: flex;
    flex-direction: row;
    gap: var(--space-xs);
    flex-wrap: wrap;
    row-gap: var(--space-md);
}

.selector-tag input {
    display: none;
    cursor: pointer;
}

.selector-tag label {
    border: 1.75px solid var(--syntax-blue);
    color: var(--syntax-blue);
    padding: var(--space-2xs);
    cursor: pointer;
}

.selector-tag label:hover {
    background-color: var(--syntax-blue);
    color: var(--content-bg-color);
}

.selector-tag input:checked + label {
    background-color: var(--syntax-blue) !important;
    color: var(--content-bg-color) !important;
}

@media screen and (max-width: 768px) {
    #project-cards {
        margin: 0 auto;
        padding: 0;
    }
}

#hero {
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    color: var(--syntax-green);
    font-size: var(--text-2xl);
    line-height: 1;
    margin: 0;
    animation: slide-up 1s ease-in;
    animation-fill-mode: backwards;
}

#hero h3 {
    font-size: var(--text-lg);
}

#typing-div {
    display: flex;
    flex-direction: row;
    animation: slide-up 1s ease-in;
    animation-delay: 1s;
    animation-fill-mode: backwards;
}

#hero h2 {
    font-size: var(--text-md);
    animation: slide-up 1s ease-in;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

@media screen and (max-width: 768px) {
    #hero h1 {
        font-size: var(--text-lg);
    }

    #hero h3 {
        font-size: var(--text-md);
    }
}

@media screen and (max-width: 768px) {
    #vim-normal {
        display: none;
    }
    #markdown-text {
        display: none;
    }
}

#typing-div {
    display: flex;
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    #typing-text {
        font-size: var(--text-md);
    }
    #cursor {
        font-size: var(--text-md);
    }
}

form input[type=text] {
    background-color: var(--content-bg-color);
    border: 1.75px solid var(--syntax-blue);
    color: var(--primary-text);
    font-family: 'JetBrainsMono Nerd Font', Arial, sans-serif;
    padding: var(--space-2xs);
    width: 50ch;
    outline: none;
}

@media screen and (max-width: 768px) {
    form input[type=text] {
        width: 40ch;
    }
}

form input[type=text]:focus-visible {
    outline: 1.75px solid var(--syntax-red);
    outline-offset: 2px;
}

textarea {
    background-color: var(--content-bg-color);
    border: 1.75px solid var(--syntax-blue);
    color: var(--primary-text);
    font-family: 'JetBrainsMono Nerd Font', Arial, sans-serif;
    padding: var(--space-2xs);
    width: 42ch;
    height: 30ch;
    outline: none;
}

@media screen and (max-width: 768px) {
    textarea {
        width: 33ch;
    }
}

textarea:focus-visible {
    outline: 1.75px solid var(--syntax-red);
    outline-offset: 2px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

form {
    margin-left: var(--space-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

form button {
    background-color: var(--content-bg-color);
    color: var(--syntax-blue);
    border: 1.75px solid var(--syntax-blue);
    width: fit-content;
    font-family: 'JetBrainsMono Nerd Font', Arial, sans-serif;
    padding: var(--space-2xs);
    font-size: var(--text-2xs);
}

form button:hover {
    background-color: var(--syntax-blue);
    color: var(--content-bg-color) !important;
}

#submit-popup {
    position: fixed;
    padding: var(--space-xs);
    font-size: var(--text-xl);
    border: 1.75px solid var(--syntax-blue);
    color: var(--syntax-green);
    background-color: var(--content-bg-color);
    cursor: pointer;
}

#submit-popup::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

@keyframes slide-up {
    from {
        transform: translateY(var(--space-md));
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#pfp {
    width: 150px;
    border-radius: 100px;
}