* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    font-family: sans-serif;
    font-size: 125%;
    color: hsl(0, 0%, 20%)
}

div#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 50vw;
    margin: 2rem auto;
}

div.titles {
    margin-bottom: 1rem;
}

div.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    width: 100%;
}

div.card:last-child {
    margin-bottom: 0;
}

div.links {
    display: flex;
    flex-direction: row;
    align-self: center;
    justify-content: space-around;
    width: 75%;
    margin-top: 1rem;
}

a {
    text-decoration: none;
    color: hsl(230, 80%, 45%)
}

a:hover {
    text-decoration: none;
    color: hsl(210, 100%, 43%);
    transition: 0.33s;
}

div.project * {
    margin-bottom: .5em;
}

@media only screen and (max-width: 768px) {
    div.links {
        flex-direction: row;
        width: min-content;
        justify-items: flex-end;
        align-items: center;
        width: 100%;
    }

    div.links a {
        padding: 0.5em;
        border: 1px solid hsl(230, 80%, 45%);
        background: hsl(230, 80%, 45%);
        color: white;
        border-radius: 8px;
        font-weight: 500;
    }

    div#main {
        width: 80vw;
    }
}
