@import "styles.css";

/* mobile first */

html {
    scroll-behavior: smooth;
}

.article_container {
    max-width: 670px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.article_data {
    padding-top: 2em;
}

.article_title {
    font-family: var(--feature-font);
    font-size: 1.5em;
    text-transform: uppercase;
}

.upload_info {
    padding-top: 1rem;
    color: var(--accent-color);
    font-size: 1.1rem;
    padding-bottom: 2rem;
}

.upload_info .author {
    padding-bottom: 0.4em;
}

.upload_info .divider {
    display: none;
}

.article_content {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.6rem;
    word-wrap: break-word;
    padding-top: 2rem;
}

#to_top {
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
    border: 1px solid var(--accent-color);
    outline: none;
    background-color: var(--background-color);
    height: 60px;
    width: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

#to_top svg {
    height: 36px;
    width: 36px;
}

.sticky {
    position: sticky;
    bottom: 6rem;
    height: 0;
}

.right {
    float: right;
}

.bottom {
    height: 6rem;
}

/* desktop */

@media (min-width: 670px) {
    .article_data {
        padding: 6em 0;
        text-align: center;
    }
    
    .article_title {
        font-size: 2.25em;
    }
    
    .upload_info {
        padding-top: 3rem;
        padding-bottom: 5rem;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    
    .author, .date {
        flex: 1;
        text-align: center;
    }
    
    .upload_info .author {
        padding-bottom: 0;
    }
    
    .upload_info .divider {
        display: block;
    }
    
    .article_content {
        padding-top: 0;
        font-size: 1.25rem;
        line-height: 1.7rem;
    }
}