html {
    scroll-behavior: smooth;
    background-image: url(assets/Background1.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #F7F7F7;
}

body {
    font-family: Rosario, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 40px;
}

.logo {
    width: 64px;
}

h1, h2, h3, p {
    color: #4B4B4B;
}

h1, h2, h3 {
    font-family: Unna, serif;
    font-size: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 400;
}

p {
    font-weight: lighter;
    font-size: 16px;
}

.tag {
    font-size: 12px;
    font-style: italic;
}

.caption {
    font-size: 12px;
}

ul {
    list-style-type: none;
    padding: 0;
}

.emphasize-text-1 {
    color: #15799D;
    font-weight: 700;
}

.emphasize-text-2 {
    font-weight: 700;
}

.underline-text {
    text-decoration: underline;
}

.italic-text {
    font-style: italic;
}

a {
    text-decoration: none;
    color: #4B4B4B;
}

li:hover a h2 {
    color: #15799D;
}

li:active a h2 {
    color: #003142;
}

header {
    background-color: rgba(247, 247, 247, 0.9);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 56px 16px 32px 16px;
    position: sticky;
    top: 0;
    left: 0;
    align-items: center;
    z-index: 1;

    a {
        grid-column: 2;
        justify-self: center;
    }

    .bars {
        width: 48px;
        justify-self: end;
    }
}

main {
    padding: 32px 0;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-gap: 64px;

    .menu {
        transform: translateX(100%);
        transition: all .5s;
        display: block;
        width: 100%;
        height: 100%;
        position: fixed;
        text-align: right;
        background-color: rgba(247, 247, 247, 0.9);

        ul {
            margin: 0;

            li {
                padding-right: 16px;

                a {
                    h2 {
                        margin: 0;
                        padding: 9px 0;
                    }
                }
            }
        }
    }

    .show-menu {
        transform: translateX(0);
    }

    #bio, #project, #skills, #contact {
        scroll-margin-top: 152px;
    }

    #introduction {
        padding: 0 16px;
        display: grid;
        grid-gap: 32px;

        .tagline {
            display: grid;
            grid-gap: 16px;
            text-align: center;

            .name {
                h1,h3 {
                    display: inline;
                }

                h3 {
                    padding-right: 8px;
                }
            }

            p {
                margin: 0 auto;
                width: 70%;
            }
        }

        #bio {
            display: grid;
            grid-gap: 8px;

            h2, p {
                margin: 0;
            }
        }

    }

    #project {
        padding: 0 16px;
        display: grid;
        grid-gap: 16px;

        h2 {
            margin: 0;
        }

        .projects {
            display: grid;
            grid-gap: 32px;

            .project-left, .project-right {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                grid-gap: 8px;

                img {
                    align-self: center;
                    width: 173px;
                }

                #popoff {
                        width: 75px;
                    }

                .tags {
                    grid-column: span 2;
                    text-align: center;

                    .tag {
                        display: inline;
                        margin: 0 4px;
                        padding: 4px 8px;
                        border: 1px solid #15799D;
                        border-radius: 256px;
                        color: #666666;
                    }
                }

                p {
                    grid-column: span 2;
                    margin: 0;
                }

                a {
                    font-size: 12px;
                    width: 80px;
                    padding: 3px 0;
                    text-align: center;
                    background-color: #15799D;
                    color: #F7F7F7;
                    border-radius: 256px;
                    filter: drop-shadow(1px 1px 2px rgba(0,0,0,.25));
                }

                a:hover {
                    color: #15799D;
                    background-color: #F7F7F7;
                }

                a:active {
                    color: #F7F7F7;
                    background-color: #003142;
                    filter: none;
                }
            }
        }
    }

    #skills {
        display: grid;
        grid-gap: 32px;
        padding: 0 16px;

        h2 {
            margin: 0;
        }

        .skills {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            text-align: center;
            grid-gap: 16px;

            #skill9 {
                grid-column: 2;
            }

            .skill {
                display: grid;
                grid-gap: 8px;

                img {
                    height: 24px;
                }

                p {
                    margin: 0;
                }
            }
        }
    }

    #contact {
        text-align: center;
        padding: 0 16px;
        display: grid;
        grid-gap: 8px;

        h2, p {
            margin: 0;
        }

        .contact-method {
            /* height: 48px; */
            display: flex;
            justify-content: center;

            a {
                display: block;
                width: 48px;
                height: 48px;
                
                span {
                    margin-top: 12px;
                    font-size: 24px;
                    color: #15799D;
                }
            }
        }
    }
}

footer {
    p {
        margin: 0;
        text-align: center;
    }
}

img {
width: 100%;
height: auto;
display: block;
}

@media screen and (min-width: 640px) {
    html {
        background-image: url(assets/Background2.png);
        background-position: 0 12px;
    }

    body {
        padding-bottom: 32px;
    }

    header {
        padding: 32px;
    }

    main {
        padding: 64px 0;

        .menu ul {
            margin: 0 32px;
        }
        
        #introduction {
            grid-gap: 28px;
            padding: 0 32px;

            #bio {
                text-align: center;
                width: 70%;
                margin: auto;

                p {
                    margin: 0 32px;
                }
            }
        }

        #project {
            padding: 0 32px;
            grid-gap: 28px;
    
            .projects {
                .project-left, .project-right {
                    column-gap: 16px;
                    
                    img {
                        width: 200px;
                        height: 56px;
                    }
    
                    .image-left, .image-right {
                        width: 100%;
                        height: 136px;
                    }
    
                    #popoff {
                        width: 75px;
                    }
                }
    
                .project-right {
                    grid-template-columns: 1fr auto;
                    grid-template-rows: repeat(4, auto);
    
                    .image-right {
                        grid-row: 1/-1;
                        grid-column: 2;
                    }
    
                    .tags, p, a {
                        grid-column: 1;
                    }
    
                    .tags {
                        text-align: left;
    
                        .tag {
                            margin: 0 12px 0 0;
                        }
                    }
    
                    a {
                        grid-row: 4;
                    }
                }
    
                .project-left {
                    grid-template-columns: auto 1fr;
                    grid-template-rows: repeat(4, auto);
    
                    .image-left {
                        grid-row: 1/-1;
                        grid-column: 1;
                    }
    
                    .tags, p, a {
                        grid-column: 2;
                    }
    
                    .tags {
                        text-align: left;
    
                        .tag {
                            margin: 0 12px 0 0;
                        }
                    }
    
                    a {
                        grid-row: 4;
                    }
                }
            }
        }

        #skills {
            padding: 0 32px;
            grid-gap: 28px;
    
            .skills {
                column-gap: 24px;

                .skill {
                    height: 88px;
                    display: flex;
                    flex-flow: column;
                    align-items: center;

                    img {
                        height: 32px;
                    }

                    .caption {
                        width: 80px;
                        font-size: 16px;
                    }
                }
            }
        }
    }
}

@media screen and (min-width: 1024px) {
    html {
        background-image: url(assets/Background3.png);
        background-position: 0 -12px;
    }

    header {
        padding-left: 200px;

        a {
            grid-column: 1;
            justify-self: start;
        }

        .bars {
            display: none;
        }
    }

    main {
        h1 {
            font-size: 64px;
        }

        h2, h3, p {
            font-size: 24px;
        }

        .menu {
            transform: translateX(0%);
            transform: translateY(-80px);
            background-color: initial;
            z-index: 1;
            width: auto;
            height: auto;
            margin-left: auto;
            right: 0;

            ul {
                display: flex;
                width: 540px;
                gap: 32px;
                margin: 0 14vw 0 auto;
                justify-content: end;

                li {
                    padding: 0;

                    a {
                        h2 {
                        padding: 0;
                        }
                    }
                }
            }
        }

        #introduction {
            grid-gap: 40px;

            .tagline {
                .name {
                    width: 342px;
                    margin: auto;

                    h1, h3 {
                        display: block;
                        margin: 0;
                    }

                    h3 {
                        padding-bottom: 16px;
                        text-align: initial;
                    }
                }

                p {
                    width: 40%;
                    max-width: 560px;
                }
            }

            #bio {
                grid-gap: 16px;

                p {
                    max-width: 880px;
                    margin: 0 auto;
                }
            }
        }

        #project {
            padding: 0 14%;

            .projects {
                grid-gap: 128px;

                .project-left, .project-right {
                    column-gap: 32px;

                    img {
                        width: 236px;
                        height: 65px;
                    }

                    .image-left, .image-right {
                        height: 20vw;
                        max-height: 252px;
                    }

                    #typezine {
                        height: 102px;
                    }

                    #popoff {
                        width: 88px;
                    }
                }
            }
        }

        #skills {
            grid-gap: 16px;

            .skills {
                column-gap: 32px;

                .skill {
                    height: 128px;

                    img {
                        height: 64px;
                    }

                    .caption {
                        width: 100%;
                        font-size: 20px;
                    }
                }
            }
        }

        #contact {
            padding: 0;
            
            p {
                width: 80%;
                max-width: 1040px;
                margin: auto;
            }

            .contact-method {
                a {
                    width: 64px;
                    height: 64px;

                    span {
                        font-size: 40px;
                    }
                }
            }
        }
    }

    footer {
        p {
            font-size: 24px;
        }
    }
}