/* ------------------ Heading stuff ------------------ */

h1.prefix {
    color: var(--color-primary-text-faded-2);
    margin-bottom: 0px;
}

.project-title h1 {
    /* match hr */
    display: inline;
    margin-bottom: 0px;
    margin-top: 0px;
    width: fit-content
}

.project-title {
    margin-bottom: 0.3rem;
    display: flex;
    height: fit-content;
    justify-content: space-between;
}

.project-title a img {
    cursor: pointer;
    display: inline;
}

/* ------------------ Description stuff ------------------ */


section.project-description {
    margin-top: 1rem;
    border-radius: 3px;
    background-color: var(--color-primary-background-faded-2)
}

.project-description p {
    color: var(--color-primary-text-faded-3);
    font-style: italic;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-description p.year {
    color: var(--color-primary-text-faded-1);
    margin-top: 0px;
    font-weight: bold;
    font-style: normal;
    padding-left: 1rem;
}


/* ------------------ Content stuff ------------------ */


section.content img {
    max-width: 100%;
    height: auto;
}

section.content h1 {
    display: inline-flex;
    align-items: center;
    /* vertically center children */
    gap: 0.25em;
    /* optional spacing between text and anchor */
}

a.heading-anchor {
    opacity: 0.3;
    font-size: 0.7em;
}

div.yt-shorts-double {
    white-space: nowrap;
}

@media (max-width: 768px) {
    div.yt-shorts-double iframe {
        max-height: 400px;
    }
}

p.katex-block {
    max-width: 100%;
    overflow-x: auto;
}

/* ------------------ Education Section ------------------ */

#education {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#education h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#education p {
    font-style: italic;
    color: var(--color-primary-text-faded-3);
    margin-bottom: 1rem;
}

#education-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#education-table th,
#education-table td {
    border: 1px solid var(--color-primary-background-faded-2);
    padding: 0.75rem;
    text-align: left;
}

#education-table th {
    background-color: var(--color-primary-background-faded-2);
    font-weight: bold;
}

#education-table tr:nth-child(even) {
    background-color: var(--color-primary-background-faded-1);
}

#education-table tr:hover {
    background-color: var(--color-primary-background-faded-3);
}

/* ------------------ Skills Section ------------------ */
#skills {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#skills h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#skills p {
    font-style: italic;
    color: var(--color-primary-text-faded-3);
    margin-bottom: 1rem;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-badge {
    display: inline-block;
    background-color: var(--color-primary-background-faded-2);
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary-text-faded-2);
    transition: transform 0.3s, background-color 0.3s;
    cursor: default;
}

.skill-badge:hover {
    background-color: var(--color-primary-text-faded-1);
    transform: scale(1.1);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-primary-background-faded-1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    width: 0;
    background-color: var(--color-primary-text-faded-2);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}
