html, body {
    margin: 0 auto;
}

body {
    background: #fafafa;
    font-family: 'Lato', 'Roboto', Arial, sans-serif;
}

#wrapper {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-column-gap: .1em;
    grid-template-areas: "headerarea" "content" "footerarea";
}

header, main {
    display: block;
}

header {
    grid-area: headerarea;
    margin: 1% auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
}

img {
    float: left;
    border-radius: 50%;
    padding: 25px 10px;
    max-width: 100%;
    width: 200px;
    height: auto;
}

img:hover {
    -webkit-filter: blur(5px);
    filter: blur(3px);
    transition-duration: 0.5s;
}

.txt-format {
    text-align: center;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

span {
    padding: 8px 10px;
    margin: 3px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.csharp-icon {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

span:hover {
    border-color: #4e96d1;
    background: #e8f4ff;
    box-shadow: 0 2px 8px rgba(78, 150, 209, 0.2);
}

main {
    grid-area: content;
    width: 90%;
    max-width: 600px;
    background: #fff;
    margin: 1% auto;
    padding: 2%;
    border: 2px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
    border-radius: 7px;
    clear: both;
}

h1 {
    padding: 10px;
    text-align: center;
    /* box-shadow: 2px 2px 3px; */
}

h1:hover {
    border-radius: 25px;
    box-shadow: 5px 10px 20px;
    transition-duration: 0.3s;
    transition-timing-function: linear;
    transition-delay: 0.1s;
}

p {
    padding: 10px;
    margin: 1%;
    text-align: center;
}

a:link {
    color: rgb(78, 150, 209);
    text-decoration: none;
}

a:visited {
    color: rgb(68, 66, 190);
    text-decoration: none;
}

a:hover {
    color: rgb(0, 140, 255);
    text-decoration: underline;
}

footer {
    grid-area: footerarea;
    margin: 10px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) {
    #wrapper {
        margin: 0 auto;
        width: 100%;
        height: 100%;
        min-width: 300px;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto;
        grid-template-areas: "headerarea" "content" "footerarea";
    }
    header {
        grid-area: headerarea;
        width: 100%;
        clear: both;
    }
    main {
        grid-area: content;
        justify-content: center;
        text-align: center;
        width: 95%;
        max-width: 90vw;
        clear: both;
    }
    span {
        padding: 6px 8px;
        margin: 3px;
        font-size: 0.9em;
    }
    img {
        float: none;
        padding: 10px;
        width: 150px;
        border-radius: 50%;
    }
    footer {
        grid-area: footerarea;
    }
}

@media screen and (min-width: 768px) and (max-width: 1440px) {
    #wrapper {
        margin: 0 auto;
        width: 100%;
        height: 100%;
        min-width: 300px;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto;
        grid-template-areas: "headerarea" "content" "footerarea";
    }
    header {
        grid-area: headerarea;
        width: 100%;
        clear: both;
    }
    main {
        grid-area: content;
        justify-content: center;
        text-align: center;
        width: 85%;
        max-width: 600px;
        clear: both;
    }
    img {
        float: none;
        border-radius: 50%;
        padding: 10px;
        width: 180px;
    }
    footer {
        grid-area: footerarea;
    }
}