html, body {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 135%;

    word-wrap: break-word;
    hyphens: auto;
    transition-duration: 0.8s;
    transition-property: color, background-color;
    transition-timing-function: ease-in-out;
    text-shadow:
            -1px -1px 0 #FFF,
            1px -1px 0 #FFF,
            -1px 1px 0 #FFF,
            1px 1px 0 #FFF;
}

a {
    color: #003b80;
    transition: color 0.8s ease-in-out;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

address {
    font-style: normal;
}

section div > p:first-child {
    margin-top: 0;
}

section div > p:last-child {
    margin-bottom: 0;
}

section#aboutme > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

section#aboutme > div > div > div {
    margin-top: 0.5em;
}

section#aboutme address + div > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

section#aboutme address + div > div > div:first-of-type {
    flex-basis: 5em;
    flex-grow: 0;
    flex-shrink: 0;
}

section#aboutme address + div > div > div:first-of-type:after {
    content: ":";
}

section > h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

section#aboutme > div > div:first-of-type {
    margin-left: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
}


section#aboutme img {
    width: 100%;
}

section#aboutme > div > div:last-of-type {
    flex-basis: 5.5cm;
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    margin-left: 1em;
}

section.timeline > div {
    margin-top: 1em;
    margin-bottom: 1em;
}

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

canvas {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: crisp-edges;
    filter: blur(0.6em);
    opacity: 0;
    transition: opacity 2.5s linear;
}
canvas.loaded {
    opacity: 1;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
}

.timeline-date {
    width: 140px;
    min-width: 140px;
    font-weight: bold;
    color: #3498db;
    font-size: 0.95rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-content h4 {
    margin: 0 0 0.2em 0;
    font-size: 1.2rem;
}

.timeline-content h5 {
    margin: 0 0 0.5em 0;
    font-weight: normal;
    color: #777;
    font-style: italic;
}

.timeline-content ul {
    margin: 0;
    padding-left: 1.2em;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-content p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.4;
}

.github-link {
    font-size: 0.9rem;
    color: #3498db;
    text-decoration: none;
}

.github-link:hover {
    text-decoration: underline;
}

body.dark .timeline-date {
    color: #0094ff;
}

body.dark .timeline-content h4 {
    color: #fff;
}

body.dark .timeline-content h5 {
    color: #aaa;
}

body.dark .timeline-content ul {
    color: #ccc;
}

body.dark .timeline-content p {
    color: #ccc;
}

body.dark .github-link {
    color: #0094ff;
}

#skills h4 {
    color: #0094ff;
    margin-top: 1.25em;
    margin-bottom: 0.4em;
}

#skills h4 + p {
    margin: 0 0 0.9em 0;
    color: #555;
    line-height: 1.4;
}

body.dark #skills h4 + p {
    color: #ccc;
}

#skills h4 {
    color: #00aaff !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0.3rem !important;
    font-size: 1.1rem !important;
}

#skills p {
    color: #aaa !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

#skills p strong {
    color: #fff !important;
    font-weight: bold !important;
}

.cv-wrapper {
    max-width: 900px;
    margin: 40px auto;

    background: #0a0a0c;

    padding: 50px;
    border-radius: 8px;
    border: 1px solid #222;
    box-content: border-box;
    position: relative;
    z-index: 10;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    .cv-wrapper {
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }
}
