/* embed fonts */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Light.ttf') format('truetype');
    font-weight: 300; /* Regular */
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700; /* Semibold */
    font-display: swap;
}

::selection {
    background-color: #333;
    color: #fff;
}
::-moz-selection {
    background-color: #333;
    color: #fff;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

a {
    padding-bottom: 1px;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: #ccc;
}

a:hover {
    border-bottom: 1px solid #333;
    color: #333;
}

.link {
    border-bottom: 1px solid transparent;
}

.link:hover {
    border-bottom: 1px solid transparent;
}

.link:hover i {
    color: #333;
}

.link:hover span {
    border-bottom: 1px solid #ccc;
}

.link span {
    margin-right: 10px;
    border-bottom: 1px solid #333;
    color: #333;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

#yearContents li {
    line-height: 1.3;
    counter-increment: step-counter;
    text-transform: uppercase;
    color: #ccc;
}

#yearContents li:before {
    display: inline-block;
    float: left;
    margin-right: 10px;
    content: counters(step-counter, ".", decimal-leading-zero);
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #fff;
}

.nav-link {
    border-bottom: 2px solid transparent;
    color: #ccc;
}

.nav-link.active,
.nav-link:active,
.nav-link:focus,
.nav-link:hover {
    border-bottom: 2px solid transparent;
    color: #333;
}

button.active,
button:active,
button:hover,
button:focus {
    color: #333!important;
}

.grey {
    color: #ccc;
}

/* logo */

.logo,
.logo:hover,
.logo:active,
.logo:focus {
    border-bottom: 1px solid transparent;
}

.logo img {
    width: 100px;
    height: 100px;
}

@media (min-width: 768px) {
    .logo img {
        width: 150px;
        height: 150px;
    }
}

/* cursor */
.cursor {
    animation: blink 1s infinite;
    font-weight: 300;
    color: #ccc;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* entry */
.entry {
    margin-top: 5rem;
}

/* history */
.history {
    min-height: 200px;
}

.project {
    padding: 2rem;
    min-height: 130px;
    height: auto;
    background-color: #fafafa;
}

.image img {
    border: 1px solid #eee;
}

/* timeline */
.timeline-menu-container {
    border-top: 1px solid #f0f0f0;
}

.timeline-menu-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* ie and edge */
    scrollbar-width: none; /* firefox */
}

.timeline-menu-wrapper::-webkit-scrollbar {
    display: none; /* chrome, safari, opera */
}

#timelineMenu .nav-link {
    white-space: nowrap;
    flex-shrink: 0; /* prevents items from shrinking */
    padding: 0.5rem 1rem;
    font-size: 2rem; 
    min-width: 80px; 
}

/* snap scrolling for better ux */
#timelineMenu {
    scroll-snap-type: x mandatory;
    align-items: center;
}

#timelineMenu .nav-item {
    scroll-snap-align: center;
}

.small,
#timelineMenu .small {
    font-size: 0.75rem;
}

/* dark mode */

.dark-mode {
    background-color: #000;
    color: #fff;
}

.dark-mode .navbar {
    background-color: #000;
    color: #fff;
}

.dark-mode .timeline-menu-container {
    border-top: 1px solid #222;
}

.dark-mode .image img {
    border: 1px solid #222;
}