/* -------------------- PROJECT PAGE COMMON CSS -------------------- */

.project-container {
    /* background-color: darkslategrey; */
    overflow-y: scroll;
}

header {
    height: 32vh;
    position: relative;
    overflow: hidden;
}

header img {
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    position: absolute;
    opacity: 0.6;
}

header span {
    z-index: 1;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px white;
    font-size: var(--menu-font-size);
    letter-spacing: calc(var(--menu-font-size) / 16);
    pointer-events: none;
}

.project-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date {
    color: var(--color-text);
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--font-size-mid);
}

.prtags {
    margin: auto 0;
    line-height: 1.15;
    flex-wrap: wrap;
    text-wrap: wrap;
}

/* .project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.reel {
    max-height: 75vh;
    max-width: 100%;
}

.sidenav {
    position: fixed;
    top: 0;
    height: 100%;
    min-width: 25%;
    background: var(--color-overlay);
    backdrop-filter: blur(6.9px);
    -webkit-backdrop-filter: blur(6.9px);
    /* overflow-y: auto; */
    left: -25%;
    flex-direction: column;
    z-index: 100;
}

.sidenav-links-container a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    font-family: var(--montserrat);
    font-size: 1.25rem;
    color: var(--color-text);
    margin: calc(var(--space-1) * 0.75);
    transition: var(--transition1);
    transform-origin: left;
}

.sidenav-links-container a:hover {
    color: white;
}

.sidenav-links-container a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--color-text);
    transition: var(--transition1);
}

.sidenav-links-container a.active-link::after,
.sidenav-links-container a:hover::after {
  width: 100%;
}

.active-link {
    color: white;
    font-weight: 600;
}

/* .active-link::before {
    content: "•";
    color: white;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
} */

.sidenav-toggle {
    position: fixed;
    top: 50%;
    left: 3.5%;
}

.sidenav-toggle, .sidenav-close {
    display: inline-block;
    user-select: none;
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--space-2);
}

.sidenav-close:hover {
    transform: scale(0.8);
}

.sidenav.open {
    left: 0;
}

.sidenav-links-container {
    text-align: left;
    flex-direction: column;
    max-height: 75%;
    overflow-y: auto;
}

.active-link {
    color: red;
}

.card {
    background: var(--color-card);
    backdrop-filter: blur(6.9px);
    -webkit-backdrop-filter: blur(6.9px);
    border-radius: 10px;
}
/* --------------- TIMELINE --------------- */

.timeline-container {
    display: flex;
    flex-direction: row;
}

.timeline-line {
    width: 5px;
    background-color: var(--color-text);
}

.timeline-item {
    padding: var(--space-1);
    margin: var(--space-1);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.8rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 3px solid var(--color-text);
}

.card.active {
    background: #4b4a46;
}

@media screen and (max-width: 1279px) {
    header {
        height: 24vh;
    }

    header img {
        max-height: 24vh;
    }

    .project-data {
        flex-direction: column;
        margin-bottom: var(--space-2);
    }

    .sidenav {
        position: fixed;
        top: 0;
        height: 100%;
        min-width: 100%;
        background: var(--color-overlay);
        backdrop-filter: blur(6.9px);
        -webkit-backdrop-filter: blur(6.9px);
        /* overflow-y: auto;
        overflow-x: hidden; */
        left: -100%;
        flex-direction: column;
        z-index: 1000;
    }

    .sidenav-links-container {
        max-height: 60%;
    }

}

