:root {
    --accent: limegreen;
    --a-hover-color: yellow;
    --a-visited: mediumpurple;
    --body-bg: aliceblue;
    --body-color: black;
    --body-color-alt: mediumvioletred;
    --body-font: monospace;
    --code-bg: black;
    --code-color: lime;
    --code-font: monospace;
    --h-color: black;
    --hr-color: purple;
    --html-font: sans-serif;
    --img-border: solid purple;
    --main-color: purple;
    --white: white;
    --pre-code-border: solid beige;
}

a {
    border-bottom: 3px solid var(--accent);
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color: var(--a-hover-color);
    background-color: var(--main-color);
}

a:visited {
    color: var(--a-visited);
    text-decoration: none;
}

abbr {
    color: var(--main-color);
    font-style: italic;
}

aside {
    color: var(--body-color-alt);
    border-left: 3px solid var(--accent);
    float: right;
    font-style: italic;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    width: 40%;
}

aside p {
    margin: 0.5rem;
}

aside.feedsocial {
    color: transparent;
}

#back-blog {
    display: inline-block;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

blockquote {
    border-left: 3px solid var(--accent);
    font-style: italic;
    margin-left: 1rem;
    padding: 1rem;
    padding-block-end: .5rem;
    padding-block-start: .5rem;
}

body {
    background-color: var(--body-bg);
    color: var(--body-color);
    /*font-family: var(--body-font);*/
    font-size: 1.3rem;
    line-height: 1.3;
    margin: auto;
    margin-top: -20px;
    padding: 1rem;
}

code {
    background-color: var(--code-bg);
    color: var(--code-color);
    font-family: var(--code-font);
    font-size: 85%;
    padding-left: 5px;
    padding-right: 5px;
}

.cursor {
    color: #0000bb;
}

/*footer {
    font-family: monospace;
    text-align: center;
    display: inline-block;
    width: 100%;
}*/

figcaption {
    display: block;
    text-align: center;
    height: auto;
    margin: auto;
    font-size: 85%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--h-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1em;
}

header {
    margin-top: 50px;
}

header nav ul {
    align-items: center;
    /*display: inline-grid;*/
    justify-content: flex-start;
    margin-left: -46px;
}

header nav ul li {
    display: inline-flex;
    list-style: none;
    margin-left: 5px;
    margin-right: 5px;
}

html {
    font-size: 100%;
    font-family: var(--html-font);
    max-width: 70%;
    margin: 0 auto;
    padding: 1rem;
}

hr.dot {
    border: 0;
    border-top: 4px dotted var(--main-color);
    margin: 1rem 0;
}

iframe.mastofeed {
    border-inline: 2px;
    border-bottom: 10px solid aliceblue;
    border-top: 3px solid var(--main-color);
    display: block;
    /*height: auto;*/
    /*padding: -10px;*/
}

/* stile generale immagini */
img {
    border: 2px var(--img-border);
    display: block;
    height: auto;
    margin: auto;
    width: 80%;
    padding: 5px;
}

/*img:hover {
    width: 90%
}*/

.img-400 {
    width: 400px;
}

/*kbd {
    border-radius: 2px;
    padding: 1px 2px 0;
    background-color: mintcream;
    color: white;
    border: 2px solid var(--main-color);
}*/

kbd {
    background-color: #eeeeee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgb(0 0 0 / 0.2), 0 2px 0 0 rgb(255 255 255 / 0.7) inset;
    color: #333333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: bold;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

li {
    /*font-family: var(--body-font);*/
    font-size: 1.3rem;
    line-height: 1.3;
}

#note {
    font-size: .8em;
    font-style: italic;
}

/*p {
    font-family: monospace;
    font-size: 3.3rem;
}*/

pre {
    display: block;
    height: auto;
    margin: auto;
    /*max-width: 70%;*/
    padding: 15px;
}

pre code {
    background-color: var(--code-bg);
    border: 10px var(--pre-code-border);
    display: block;
    font-family: var(--code-font);
    overflow-wrap: break-word;
    padding: .5rem;
    padding-left: .8rem;
    padding-right: .8rem;
    text-wrap: wrap;
    white-space: pre-wrap;
}

.prompt {
    color: #bb0000;
}

samp kbd {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: none;
    display: inline-block;
    font-size: 0.85em;
    font-weight: bold;
    line-height: none;
    padding: 2px 4px;
    white-space: nowrap;
}

.titolo {
    /*font-family: var(--body-font);*/
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: .05rem;
    text-decoration: none;
}

/* Codice importazione font personalizzato */
/*@import url('https://fonts.bunny.net/css?family=Atkinson Hyperlegible Next');*/

/* Codice per risoluzioni differenti */
@media only screen and (max-width: 299px) {
    header nav ul {
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: -90px;
    }

    header nav ul li {
        display: grid;
        list-style: none;
        margin-left: 50px;
        margin-right: 50px;
    }

    img {
        width: 100%;
    }

}

@media (max-width: 800px) {
    html {
        max-width: 90%;
        margin: 0 auto;
        padding: 1rem;
    }

    img {
        width: 90%;
    }

    pre {
        max-width: 90%;
    }
}