/*.container {
    display: flex;
    flex-direction: column;
}*/

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
}

body {
    color: #ececec;
    background-color: #313338;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
}

.nav-button {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    margin: 0 0.625rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.nav-button:hover {
    background-color: #666666;
}

html {
    scroll-behavior: smooth;
}

/* Language toggle button */
.nav-right button {
    background-color: #4d6c96;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
    position: absolute;
    top: 1.35rem;
    right: 1rem;
}

@media (max-width: 425px) {
    .nav-right button {
        top: 4.8rem;
    }
}
.nav-right button:hover {
    background-color: #155ab6;
}

.title {
    text-align: center;
}

/* Table of content */
#toc {
    max-width: 250px;
    /*position: sticky;*/
    top: 1rem;
    padding: 1rem;
    border: 3px solid #787878;
}

#toc h2 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

#toc-list {
    list-style: none;
    padding-left: 0;
}

#toc-list li {
    margin: 0.3em 0;
}

#toc-list a {
    text-decoration: none;
    color: #007acc;
}

#toc-list a:hover {
    text-decoration: underline;
}

/* Timeline */
#timeline {
    position: relative;
    margin: 2em auto;
    width: 90%;
    max-width: 800px;
    padding-left: 2em;
}

/* Arrow */
.timeline-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: black;
    border-radius: 2px;
}

/* Arrow head */
.timeline-arrow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -7px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid black;
}

.timeline-event {
    position: relative;
    margin: 2em 0;
    padding-left: 2.5em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Theme-based dot */
.timeline-event::before {
    content: '';
    position: absolute;
    left: 0.6em;
    top: 0.75em;
    width: 12px;
    height: 12px;
    background-color: var(--theme-color);
    border-radius: 50%;
    z-index: 2;
}

/* Theme classes */
.theme-work {
    --theme-color: #007acc;
}

.theme-education {
    --theme-color: #28a745;
}

.theme-personal {
    --theme-color: #f39c12;
}

.event-content {
    border-left: 4px solid var(--theme-color);
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #7C7BA0;
    color: #000000;
}

.event-thumbnail img {
    /*width: 60px;*/
    max-height: 60px;
    max-width: 100%;
    object-fit: cover;
}

/* Event links styling */
.event-links a {
    margin-right: 0.5em;
    font-size: 1.2em;
    text-decoration: none;
}

/* Apply color to event content for each theme */
.theme-work .event-content {
    border-color: #007acc;
}

.theme-education .event-content {
    border-color: #28a745;
}

.theme-personal .event-content {
    border-color: #f39c12;
}

/* Year markers */
.timeline-year {
    width: 4em;
    text-align: right;
    margin-right: 1em;
    font-weight: bold;
    color: #b0b0b0;
    position: relative;
    top: 0.4em;
}

#timeline-filters {
    max-width: 100%
}

.filter-button {
    background-color: #4d6c96;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
}

#filter-work {
    background-color: #007acc;
}

#filter-education {
    background-color: #28a745;
}

#filter-personal {
    background-color: #f39c12;
}

.link-icon {
    height: 48px;
    object-fit: contain;
    margin-right: 0.5em;
}

#inria-event {
    background-color: #d5d5d5;
}

/* Technologies and tools */
.technologies-tools {
    max-width: 100%
}

.techtools-row {
    max-width: 100%
}

.techtools-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    background-color: rgb(202, 202, 202);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%
}

.techtools-logo {
    max-height: 60px;
    object-fit: contain;
    margin-right: 0.5em;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    background-color: rgb(202, 202, 202);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%
}

.contact-logo-button {
    max-height: 60px
}

.contact-picture {
    max-height: 60px
}

.contact-button {
    background-color: #4d6c96;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
}

#copyEmail::after {
    content: "xxxxxxxxxxxxx";
    visibility: hidden;
    display: block;
    height: 0;
    overflow: hidden;
}