body {
    font-family: "Montserrat", sans-serif;

    --primary-color: #44444E;
    --secondary-color: #37353E;
    --text-color: #d3dad9;

    --header-height: 3rem;

    border-color: var(--text-color);
    color: var(--text-color);

    margin: 0px;
}


header {
    background-color: #29282c;
    display: flex;
    justify-content: center;
    align-items: end;
    height: var(--header-height);
}

main {
    background-color: var(--primary-color);
    min-height: calc(100dvh - var(--header-height));


    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    display: flex;
    font-size: 28px;
    gap: 10rem;
    justify-content: space-around;
}

nav a {
    border-bottom: 2px solid var(--secondary-color);
    padding: 1px 20px;
    text-decoration: none;

    color: var(--text-color);
}

nav a:hover {
    border-color: white;
    border-bottom: 2px solid;
}

.selected:hover {
    border-bottom: 2px solid var(--primary-color);
}

.selected {
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

footer {
    display: block;
    position: sticky;
    bottom: 10px;
    right: 10px;
}

#about-container {
    font-weight: normal;
    display: none;
    max-width: 200px;
}

#about-button {
    padding: 0.6rem;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 2px solid;
    border-radius: 8px;
    font-weight: 700;
}

#about-button:hover #about-container {
    display: block;
}

.card {
    background-color: var(--secondary-color);
    border-radius: 0 0 20px 20px;
    padding-bottom: 1rem;
    height: 516px;
    width: 392px;
}

.card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.card-tags {
    display: flex;
    gap: 10px;
}

.card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

.card-tag-item {
    color: var(--text-color);
    text-decoration: none;

    pointer-events: auto;
    padding: 8px;

    background-color: rgb(116, 32, 32);
}

.card-tag-item:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.card-body {
    margin: 20px;
}


.presentation {
    background-color: var(--primary-color);

    padding-top: 4em;
    padding-bottom: 4em;
    display: flex;
    flex-flow: column nowrap;
    min-width: 100%;
    align-items: center;
    gap: 1em;
    justify-items: space-between;
}

.presentation-head {
    display: flex;
    flex-flow: row nowrap;
    max-width: 75%;
    justify-content: space-between;
    text-align: justify;
}

.presentation-body {
    max-width: 75%;
    min-width: 65%;
    text-align: justify;
}

.presentation-pfp {
    display: flex;
    align-items: center;
    justify-content: center;   
    margin-left: 4rem;
}

.presentation-pfp img {
    max-width: min(500px, 36dvw);
    max-height: 400px;
    border-radius: 4%;
    vertical-align: middle;
}

@media (max-width: 1280px) {
    .presentation-head-written {
        width: 100%;
    }
    .presentation-pfp {
        margin: 1rem;
    }
    .presentation-pfp img {
        max-width: 100%;
        max-height: max(400px, 30dvh);
    }
    .presentation-head {
        flex-flow: column nowrap;
    }
}

.card-pfp-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background-color: #3a393f;
    overflow: hidden;
}

.card-pfp-wrapper::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #3a393f 25%, #4a4950 50%, #3a393f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.card-pfp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.card-pfp.loaded {
    opacity: 1;
}

.blue-btn {
    margin-left: 4rem;
    height: 40px;
    padding: 0 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
    line-height: 40px;
}

.blue-btn:hover {
    background-color: #2563eb;
}