/* Ensure a smooth transition without white flicker */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #1c1c1c; /* Consistent background color */
}

/* Font smoothing and box-sizing */
.name, html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, :after, :before {
    box-sizing: border-box;
}

/* Apply consistent styling to the html element */
html {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto Mono', monospace;
    font-size: 19px;
    line-height: 1.3;
    min-height: 100%;
    text-align: center;
    padding: 5rem 3rem;
    color: rgba(255, 255, 255, .85);
    background-color: #1c1c1c; /* Background color to prevent white screen */
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 370px) {
    html {
        padding: 4rem 2rem;
    }
}

.content {
    margin: auto;
    max-width: 500px;
    padding-bottom: 2rem;
}

.avatar {
    border-radius: 100%;
    box-shadow: rgba(0, 0, 0, .4) 0 3px 12px;
    max-width: 150px;
    pointer-events: none;
    width: 40vw;
}

.name {
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
}

.social-bar {
    display: block;
    margin-top: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, .5);
    display: inline-block;
    font-size: 1.5rem;
    margin: .3rem;
    text-decoration: none;
    transition: all .5s ease;
}

.social-link:hover {
    color: rgba(255, 255, 255, .85);
    transform: translate(0, -.2rem) scale(1.1);
}
