* {
    font-family: sans-serif;
}

:root
{
	--color-main: #2966a8;
	--color-alt: #e7ddcf;

	--color-main-hover: #264a88;

	--background-gradient-start: #0b122f;
	--background-gradient-end: #28283c;

	--font: ubuntu, sans;

	--border-radius: 20px;

	--box-shadow: 15px 15px 20px #00000050;
}

body {
    background-color: #232327;
    color: #fff;
    max-width: 65em;
    margin: auto;
    line-height: 1.5;
    padding: 0.8em;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
}

video {
    aspect-ratio: 16 / 9;
}

a {
    text-decoration: none;
    color: #3b88e0;
    word-wrap: break-word;
}

pre,
code {
    background-color: #3B3D3E;
    padding: 0.1em 0.4em;
    border-radius: 0.5em;
    font-size: 90%;
    box-decoration-break: clone;
}

blockquote {
    background-color: #3B3D3E;
    border-radius: 0.5em;
    padding: 0.2em 1em;
    margin-left: 1rem;
    border-left: 2px solid #a0a0a0;
}

summary {
    background-color: #3B3D3E;
    border-radius: 0.5em;
    padding: 0.2em 1em;
    margin-bottom: 1em;
}

select {
    width: 100%;
    border-radius: 0.5em;
    border: 1px solid #e7e8ea;
    padding: 0.5em 0.5em;
    margin-bottom: 0.5em;
}

select:hover {
    background-color: #cfd0d1;
}

.blog-top-controls summary {
    background-color: #3B3D3E;
}

.blog-history ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1em;
}

.blog-history ul li {
    background-color: #1f2b30;
    padding: 0.1em 0.4em;
    border-radius: 0.5em;
    box-decoration-break: clone;
}

.blog-history ul li a {
    color: #3b88e0;
}

body>p:nth-child(6) {
    text-align: center;
}

body>p:nth-child(6)>a {
    padding: 0.5em 5em;
    border-radius: 1em;
    background-color: #3B3D3E;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.15), 0 7px 20px 0 rgba(0, 0, 0, 0.1);
}

body>p:nth-child(6)>a:hover {
    background-color: #484a4b;
}

.blog-origin {
    font-size: 85%;
    color: seagreen;
}

.blog-origin a {
    color: #a0a0a0;
}

.blog-score {
    float: right;
    font-size: 85%;
    color: coral;
}

.blog-top-nav
{
	position: sticky;
	left: 0;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: row;
	background-color: #0000007f;
	color: #00000000;
	padding: 10px;
	width: 98.1%;
	box-shadow: var(--box-shadow);
}

.blog-top-nav a
{
	color: var(--color-alt);
	background-color: var(--color-main);
	border-radius: var(--border-radius);
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	padding: 10px;
	text-decoration: none;
	text-transform: capitalize;
	transition: background-color 0.5s;
}

.blog-top-nav img
{
	border-radius: 100%;
	width: 200px;
	height: 200px;
	margin-left: auto;
	margin-right: auto;
}

.blog-top-nav a:hover
{
	cursor: pointer;
	background-color: var(--color-main-hover);
}

.blog-top-user {
    text-align: center;
    padding-bottom: 2em;
    grid-column: 2 / 3;
    grid-row: span 2;
}

.blog-top-user-name {
    font-size: 180%;
    margin: 0;
}

.blog-top-user-id {
    font-size: 140%;
    margin: 0;
}

.blog-top-user-bio {
    padding-top: 1.5em;
}

.blog-avatar {
    float: left;
    height: 4em;
    width: auto;
    border-radius: 1em;
    border: 1px solid #3e3e3e;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.15), 0 7px 20px 0 rgba(0, 0, 0, 0.1);
}

.blog-title {
    font-size: 150%;
    text-decoration: none;
    color: #fff;
    margin-left: 0.3em;
}

.blog-author-tag {
    font-size: 85%;
    margin-left: 0.6em;
    color: #c6cacf;
}

.blog-pubdate {
    color: #a0a0a0;
    font-size: 85%;
}

.mention {
    background-color: #1f2b30;
    color: #3b88e0;
    padding: 0.1em 0.4em;
    font-size: 90%;
    border-radius: 0.5em;
}

.blog-top-controls {
    padding-bottom: 1.5em;
}

.blog-header {
    grid-column: 1 / 2;
}

h2.blog-header:nth-child(3) {
    grid-row: 1 / 2;
}

div.blog-posts:nth-child(4) {
    grid-row: 2 / 3;
}

h2.blog-header:nth-child(5) {
    grid-row: 3 / 4;
}

div.blog-posts:nth-child(6) {
    grid-row: 4 / 5;
}

.blog-posts {
    padding: 0.5em 1em;
    grid-column: 1 / 2;
    grid-row: 1 / span 10;
}

#clear {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.blog-post {
    border-radius: 1em;
    padding: 1em;
    margin-bottom: 1em;
    color: #fff;
    background-color: #19191C;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.15), 0 7px 20px 0 rgba(0, 0, 0, 0.1);

}

.blog-children {
    padding-left: 1em;
    border-left: 1px solid #a0a0a0;
}

.blog-children .blog-score {
    padding: 0em;
}

.blog-content img {
    border-radius: 1em;
    border: 1px solid #2f3131;
}

.blog-textarea {
    font-family: inherit;
    width: 100%;
}

.blog-history {
    padding: 0 2em;
    grid-column: 2 / 3;
}

.blog-history-title {
    font-weight: 600;
    font-size: 110%;
    text-decoration: underline;
}

.blog-textarea,
textarea {
    display: inline-block;
    width: 95%;
    border: 1px solid #D8DEE4;
    border-radius: 0.5em;
    padding: 0.5em 0.5em;
}

.blog-controls textarea {
    width: 97%;
}

input[type="text"],
textarea {
    background: #d9d9d9;
}

body>p:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 11;
    color: #19191C;
}

input[type="submit"],
input[type="file"] {
    padding: 0.5em;
    text-transform: uppercase;
    padding: 0.5em;
    text-transform: uppercase;
    background-color: #232327;
    color: inherit;
    border-radius: 0.5em;
    border: none;
    transition: background-color .2s ease-out;
}

input[type="submit"]:hover,
input[type="file"]:hover {
    background-color: #3c3c3c;
}

.blog-note input[type="submit"] {
    background-color: #247ADF;
    border-radius: 1em;
    color: #fff;
    padding: 1em;
    font-weight: 700;
    width: 100%;
}

.blog-note input[type="submit"]:hover {
    background-color: #0266d7;
}

input[type=text],
input[type=password],
input[type=number] {
    width: 97%;
    height: 1.2em;
    border-radius: 0.5em;
    border: 1px solid #D8DEE4;
    padding: 0.5em 0.5em;
    margin-bottom: 0.5em;
    font-size: 90%;
}

input[type=checkbox] {
    width: 1.3em;
    height: 1.3em;
    cursor: pointer;
}

.blog-footer {
    margin-top: 2em;
    font-size: 75%;
    grid-column: 1 / 2;
    grid-row: 12;
}

.blog-poll-result {
    margin-left: auto;
    margin-right: auto;
}

.blog-top-nav>sup {
    border-radius: 0.4em;
}

@media (max-width: 860px) {
    body {
        display: flex;
        flex-direction: column;
    }

    .blog-top-user {
        width: auto;
        padding: 0 1em;
    }

    .blog-top-nav a {
        padding-top: 2.5%;
    }
}
