main {
    margin-top: 55px;
    /* background-color: var(--background); */
    position: fixed;
    top: 0px;
    left: 0;
    min-height: 100vh;
    background: url(./portfolio.jpg) center center/cover;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

.container {
    width: 95%;
    height: 100%;
    margin: auto;
    padding-top: 5px;
    overflow-y: visible;
}

.card {
    position: relative;
    margin: 32px;
    opacity: 0.9;
    background-color: var(--light-color);
}

.card:nth-child(odd) {
    transform: translateX(200px);
}

.card:nth-child(even) {
    transform: translateX(-200px);
}

.card:last-of-type {
    margin-bottom: 100px;
}

.role {
    margin-left: 0.8rem;
    font-size: 1.2rem;
    font-style: italic;
    color: red;
}

.come-in {
    transform: translateX(0);
    animation: come-in 0.8s ease forwards;
}

a {
    color: var(--dark-bg);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6, p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
} 

h3 {
    font-size: 1.75rem;
    color: var(--main-color);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

ul {
    margin-bottom: 1rem;
}

.screenshots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.screenshot {
    margin: 10px;
    max-width: 95%;
}

@keyframes come-in {
    to { transform: translateY(0); }
}

@media screen and (min-width: 768px) {
    .container {
        width: 80%;
    }
    p {
        text-align: left;
        line-height: 1.5;
    }
}