:root {
    --color-text: #ddd;
    --color-background: #222;
    --color-background-alt: #2a2a2a;
    --color-border: #3f3f3f;
    --color-highlight: #0f91ff;
    --color-mark: rgba(255, 255, 0, 0.25);
    --color-shadow: rgba(0, 0, 0, 0.4);
    --font-family: "Source Code Pro", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-family: var(--font-family);
    line-height: 1.75;
    background: var(--color-background);
    color: var(--color-text)
}

a,
a:visited {
    color: var(--color-highlight)
}

li {
    list-style-position: outside;
    margin: auto;
    width: 10rem;
    font-weight: bold;
}

footer,
header,
.main-body {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 45%;
    width: 100%;
    word-break: break-word;
}

body p {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
}

p:last-of-type {
    margin-top: 50px;
}

.avatar {
    display: block;
    width: 140px;
    height: auto;
    margin: auto;
    border-radius: 30px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: white;
}

/* Grid */
.strong-skills-grid {
    grid-template-columns: 1fr 1fr;
}

.skills-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid {
    display: grid;
    column-gap: normal;
    place-items: center;
    width: 75%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* For mobile phones: */
@media only screen and (max-width: 768px) {

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    footer,
    header,
    .main-body {
        max-width: 100%;
        width: 100%;
    }
}

/* Repo Cards */

.repo-cards {
    display: grid;
    margin-top: 20px;
    margin-bottom: 20px;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    grid-template-columns: repeat(1, minmax(0, 1fr))
}

.repo-card>div {
    background: var(--color-background-alt) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px var(--color-shadow);
    display: flex;
    flex-direction: column;
    padding: 15px !important
}

.repo-card>div>* {
    color: var(--color-text) !important;
    font-family: var(--font-family);
    font-size: 1rem !important
}

.repo-card>div svg {
    fill: var(--color-text) !important
}

.repo-card>div>div:last-of-type {
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    overflow-x: auto
}

.repo-card>div>div:last-of-type>div {
    white-space: nowrap
}

.repo-card>div>div>span {
    color: var(--color-highlight) !important;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis
}

.repo-card>div>div>span>a {
    text-decoration: underline !important
}

@media (min-width:700px) {
    .repo-cards {
        margin-top: 40px;
        margin-bottom: 40px;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .repo-card>div {
        height: 100%
    }
}