
:root {
    --background: white;
    --color-main: black;
    --color-secondary: rgb(77, 77, 77);

    --phone-width: 520px;
}

@media (prefers-color-scheme: dark)
{
    :root {
        --background: rgb(23, 23, 23);
        --color-main: white;
        --color-secondary: rgb(220, 220, 220);
    }
}

html, body {
    font-family: 'Helvetica';
    cursor: default;
    background-color: var(--background);
    color: var(--color-main);
}

h1 {
    font-size: 2em;
    margin-bottom: 0;
}

#bio {
    display: flex;
    flex-direction: row;
    align-items: top;
}


#me-pic {
    border-radius: 20px;
    width: 207px;
    height: 323px;
    margin-left: 20px;
}

#bio-text  {
    max-width: 20em;
    display: flex;
    flex-direction: column;
    align-items: inherit;
}

#bio-text h2 {
    font-size: 1.25em;
    margin-top: 0.25em;
    margin-right: 0.25em;
    text-align: right;
    font-weight: normal;
}

@media (min-width: 521px) {
    #social-row {
        display: flex;
        justify-content: space-between;
        width: -webkit-fill-available;
    }
}

@media (max-width: 520px) {
    p {
        text-align: justify;
    }

    h2 {
        font-size: 2.5em;
        margin-top: 2em;
        margin-bottom: 0;
    }

    #bio {
        flex-direction: column;
        align-items: center;
    }

    #me-pic {
        margin-left: 0;
    }

    #bio-text {
        width: auto;
        align-items: center;
        margin-bottom: 2em;
    }

    #bio-text h2 {
        margin-top: 0.35em;
        margin-right: 0;
        margin-bottom: 0.85em;
    }

    #bio-skills, #contact {
        text-align: center;
    }

    #canvas {
        display: none;
    }

    #projects {
        padding-left: 0.25em;
        padding-right: 0.25em;
    }

    .not-mobile-friendly {
        display: none;
    }
}

#social-row, #contact {
    margin-bottom: 0.75em;
}

#social-row a {
    display: inline-block;
}

#social-row a:not(:first-child) {
    margin-left: 2em;
}

#social-row a img {
    width: 36px;
    height: 36px;
}

#contact a {
    display: block;
    color: var(--color-secondary);
    text-decoration: none;
}

#contact a:not(:first-child) {
  margin-top: 0.2em;
}

#bio-skills span {
    white-space: nowrap;
}

p {
    max-width: 40em;
    font-size: 1.25em;
}

#about p {
    margin-left: 12px;
    margin-right: 12px;
}

#projects li {
    display: block;
}

#projects li span {
    display: block;
}

#projects li h3 {
    font-size: 2em;
    margin-bottom: 0.2em;
}

#projects li .description {
    font-style: italic;
}

#projects li .date {
    opacity: 0.9;
}

#projects li p {
    font-size: 1.1em;
}

content {
    max-width: 50em;
    float: left;
}

#canvas {
    float: right;
}

#projects h3 .links {
    display: inline-block;
    white-space: nowrap;
}

#projects h3 .links a:not(:first-child) {
    margin-left: 0.1em;
}

#projects h3 .links a img {
    width: 0.9em;
    transform: scale(1.25);
    transform-origin: top center;
}
