:root {
    --body-width: 37rem;
    --body-height: 100vh;
}

body {
    max-width: var(--body-width);
    margin: 64px auto;
    padding: 0 2rem;
    align-items: center;
}

li {
    margin: 10px 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    > h3 {
        margin-bottom: 0;
    }

    > nav {
        display: flex;
        align-items: center;

        > ul {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;

            > li {
                margin: 0 0.5rem;
            }
        }
    }
}

.text-center {
    text-align: center;
}

.scroll-container {
    height: 100vh;
    width: 100%;
    margin: 1rem auto 0;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.projects-title-div {
    margin-bottom: 0;
}

.card {
    border: 1px solid #ccc;
    background-color: #fafafa;
    border-radius: 2px;
    padding: 1rem;
    margin: 0 auto 1rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    align-items: stretch;
    max-height: 132px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.4, 1.2), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.4, 1), opacity 0.3s ease-out;
    user-select: none;
    width: 90%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    scroll-snap-align: start;

    &:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    &.pressed {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset;
        transition: transform 0.05s ease, box-shadow 0.05s ease;
    }
}

.card-img {
    width: 185px;
    height: 83px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    flex-shrink: 0;
    margin-bottom: 19px;
    margin-left: 8px;

    &.placeholder {
        border: 2px dashed #aaa;
        background-color: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-style: italic;
    }
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    height: 100px;
    gap: 0;

    &.clicked {
        .card-title {
            opacity: 0;
            pointer-events: none;
        }

        .card-description {
            opacity: 1;
        }
    }
}

.card-description {
    flex: 7;
    min-height: 0;
    text-align: center;
    overflow-y: auto;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.250s ease;
}

.card-title {
    flex: 1.5;
    min-height: 0;
    font-weight: 500;
    color: #3f3e3e;
    font-family: monospace;
    font-size: .8rem;
    display: flex;
    align-items: center;
    opacity: 1;
}

.card-links {
    flex: 1.5;
    min-height: 0;
    display: flex;
    gap: 1rem;
    font-family: monospace;
    flex-direction: row-reverse;

    a {
        color: #555;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}