.projectSect {
    width: 100%;
    height: fit-content;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    --topHeight: 32px;
    --bottomHeight: 40px;
    margin-bottom: 40px;
}
@supports not selector(::-webkit-scrollbar) {
    .projectSect:nth-of-type(odd) {
        scrollbar-color: var(--color1dark) var(--altBackground);
    }
}

@supports selector(::-webkit-scrollbar) {
    .projectSect:nth-of-type(odd) ::-webkit-scrollbar-thumb {
        background: var(--color1dark);
    }
}

.projectSect > div:first-child {
    width: 100%;
    height: var(--topHeight);
    border-bottom: 1px solid var(--border);
    background-color: var(--color1dark);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    position: relative;
    align-content: center;
    color: white;
    font-size: 16pt;
    text-shadow: 1px 3px 1.5px var(--shadow);
    user-select: none;
    z-index: 2;
}

.projectSect:nth-of-type(even) > div:first-child {
    background-color: var(--color2dark);
}

.projectSect > div:nth-child(2) {
    height: 220px;
    display: flex;
}

.projectSect:nth-of-type(even) > div:nth-child(2) {
    flex-direction: row-reverse;
}

.projectSect > div:nth-child(2) > div {
    width: 100%;
    overflow: auto;
    z-index: 2;
    background-color: var(--background);
}

.projectSect > div:nth-child(2) > div > p {
    text-align: center;
    padding: 8px 20px;
    position: relative;
    min-height: 80px;
}

.projectSect > div:nth-child(2) a {
    width: 140px;
    height: 48px;
    background-color: var(--altBackground);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-block;
    margin: 0px 5px 30px 5px;
    transition: 0.2s;
    align-content: center;
    vertical-align: top;
    padding: 0px 4px;
    color: var(--text);
    text-decoration: none;
}

.projectSect > div:nth-child(2) a > div {
    width: 40px;
    height: 100%;
    align-content: center;
    display: inline-block;
    margin: 0;
    vertical-align: top;
}

.projectSect > div:nth-child(2) a svg {
    width: 30px;
    height: 30px;
    transition: 0.2s;
    vertical-align: center;
}

.projectSect:nth-of-type(even) > div:nth-child(2) a svg {
    fill: var(--color2light);
}

.projectSect > div:nth-child(2) a > p {
    display: inline-block;
    width: 80px;
    height: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    align-content: center;
}

.projectSect > div:nth-child(2) img {
    height: 100%;
    width: 50%;
    max-width: 300px;
    margin: 0;
    border-right: 1px solid var(--border);
    object-fit: cover;
    user-select: none;
}

.projectSect:nth-of-type(even) > div:nth-child(2) img {
    border-right: none;
    border-left: 1px solid var(--border);
}

.projectSect > div:last-child {
    width: 100%;
    min-height: var(--bottomHeight);
    height: fit-content;
    background-color: var(--background);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    border-top: 1px dashed var(--border);
    align-content: center;
    padding: 5px 0px;
}

.projectSect > div:last-child > div {
    width: fit-content;
    min-width: 100px;
    height: 24px;
    background-color: var(--altBackground);
    display: inline-block;
    border-radius: 100px;
    border: 1px solid var(--border);
    align-content: center;
    overflow: hidden;
    padding: 0px 10px;
    vertical-align: center;
    user-select: none;
    margin: 5px 3px;
}

.projectSect > div:last-child img {
    width: 15px;
    margin-right: 8px;
    vertical-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .projectSect > div:nth-child(2) a:hover {
        background-color: var(--backgroundHover);
        filter: drop-shadow(0 0 3px var(--border));
    }

    .projectSect > div:nth-child(2) a:hover svg {
        width: 36px;
        height: 36px;
    }
}

@media only screen and (max-width: 768px) {
    .projectSect > div:nth-child(2) {
        flex-direction: column;
        height: fit-content;
        overflow: hidden;
    }

    .projectSect:nth-of-type(even) > div:nth-child(2) {
        flex-direction: column;
    }

    .projectSect > div:nth-child(2) img {
        border-right: none;
        width: 100%;
        max-width: 100%;
        height: 60px;
        filter: blur(1.5px);
    }

    .projectSect:nth-of-type(even) > div:nth-child(2) img {
        border-left: none;
    }

    .projectSect > div:nth-child(2) > div {
        border-top: 1px solid var(--border);
    }
}
