
/* Variables *****************************************************************/

:root {
  --font: "LektonCode";
  --max-width: 900px;
  --page-color-normal: #202020;
  --text-color-normal: #e8e8e8;
  --page-color-contrast: #101010;
  --text-color-contrast: #f8f8f8;
  --page-color-blend: #303030;
  --text-color-blend: #d8d8d8;
  --text-link: #eea51a;
  --text-visited: #f9a80e;
  --text-hover: #f9920e;
  --text-highlight: #ffbf46c4;
}

/* Fonts *********************************************************************/

@font-face {
    font-family: "LektonCode";
    font-display: swap;
    src: url("/assets/css/fonts/LektonCode-Regular.ttf") format("truetype");
}

/* Hyperlinks ****************************************************************/

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

a:link {
    color: var(--text-link);
}

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

a:focus {
    text-decoration: underline overline 2px dotted;
}

a:hover {
    color: var(--text-hover);
    text-decoration: underline overline 2px dotted;
}

a:active {
    text-decoration: underline overline 2px dotted;
}

.charLink {
    font-size: 2em;
}


/* Global style **************************************************************/

html {
    font-family: var(--font);
    font-size: 1.4em;
    font-weight: 500;
    background-color: var(--page-color-normal);
    color: var(--text-color-normal);
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-clip-margin: 1em;
    overflow-x: clip;
}

p, li {
    line-height: 1.75em;
}

img {
    max-width: var(--max-width);
}

hr {
    border:none;
    border-top: 2px dashed;
}

.podcastSeason {
    margin: 25px;
}

.podcast-icon {
    width: 64px;
    height: 64px;
    margin-bottom: -25px;
}

.rss-icon {
    width: 1.1em;
    height: 1.1em;
    margin-bottom: -2px;
}

article > p, div.content > p {
    text-align:left;
    text-justify:inter-character;
}

blockquote {
    color: var(--text-color-blend);
    background-color: var(--page-color-blend);
    font-style: italic;
    padding: 1em;
    margin-left: 2em;
    padding-left: 2em;
    border-left: 2px dashed;
    border-radius: 1em;
    text-align:justify;
    text-justify:inter-character;
}

code {
    font-family: var(--font);
    color: var(--text-color-contrast);
    background-color: var(--page-color-contrast);
    margin: 0.1em;
}

pre {
    color: var(--text-color-contrast);
    background-color: var(--page-color-contrast);
    margin: 1em;
    padding: 0.5em;
    border-radius: 1em;
    & > code {
        text-wrap: wrap;
        background-color: none;
        margin: none;
    }
}

figure {
    text-align: center;
    & > img {
        width: 100%;
        max-width: var(--max-width);
    }
}

section.fediFeed, section.blogFeed, div.comment {
    margin: 1em;
    padding: 1em;
    border-radius: 0.5em;
    color: var(--text-color-blend);
    background-color: var(--page-color-blend);
}

footer {
    text-align: center;
    font-size: 0.9em;
}


li.task-list-item {
    list-style-type: none;
    text-align: left;
}

input.task-list-item-chackbox {
    width: initial;
}

input, textarea {
    font-family: var(--font);
    font-size: 1em;
}

img.inline{
    margin: 1em;
}

img.left  {
    margin-left: 0;
    float: left;
}

img.right {
    margin-right: 0;
    float:right;
}

div.blogCard {
    background-color: var(--page-color-blend);
    color: var(--text-color-blend);
    border-radius: 1em;
    border-left: 2px dashed;
    border-right: 2px dashed;
    padding: 1em;
    margin: 1em;
}

input.searchParam {
    border: none;
    color: var(--text-color-contrast);
    background-color: var(--page-color-contrast);
    font-size: 0.85em;
}

span.highlight {
    background-color: var(--text-highlight);
    color: var(--page-color-contrast);
}

/* Header *******************************************************************/

.header {
    justify-content: center;
    border-bottom: 2px dashed;
}

.siteTitle {
    font-size: 2em;
    margin: 1em auto;
    text-align: center;
    & > .bigger {
        font-size: 1.25em;
    }
}

.titleImg {
    max-width: 1em;
    margin-right: 0.75em;

}

.announcement {
    font-size: 1.15em;
    color: var(--text-color-contrast);
    line-height: 0;
    width: 100%;
}

/* Navigation Menu **********************************************************/

.menucontainer {
    margin: auto;
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    border-bottom: 2px dashed;
}


.sub {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.menuitem {
    margin: 5px;
    flex: 130px;
    font-size: 1.25em;
    min-width: 130px;
    max-width: 130px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    opacity: 70%;
    text-decoration: none;
}

.submenuitem {
    margin: 10px;
    flex: 20%;
    font-size: 1.15em;
    max-width: 150px;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    opacity: 70%;
    text-decoration: none;
}

.void {
    max-width: 0px;
}

img.menuicon {
    height: 30px;
    width: 50px;
}

div.menucaption {
    opacity: 100%;
}

div.submenucaption {
    text-align: center;
    width: 100%;
    margin-bottom: 2px;
}

/* Blog Entry ****************************************************************/

.post-meta {
    display: inline-flex;
    vertical-align: baseline;
    width: 100%;
    font-size: 0.8em;
    justify-content: space-between;
    flex-flow: row wrap;
    padding-bottom: 10px;
    border-bottom: 2px dashed;
    &.meta {
        padding: 2px;
        > * {
          text-align: center;
          vertical-align: baseline;
          font-size: 0.8em;
        }
    }
}

span.readingTime {
    display: inline-block;
    text-wrap: nowrap;
}

/* Blog summary **************************************************************/

li.postList, li.postTitle {
    list-style-type: none;
}

h2.listed {
    display: inline;
}

.lang-it {
    display: inline-block;
    background-image: url("/assets/images/ita.svg");
    background-repeat: no-repeat;
    background-size: 22px;
    width: 22px;
    height: 15px;
    margin-left: 10px;
}

.lang-en {
    display: inline-block;
    background-image: url("/assets/images/eng.svg");
    background-repeat: no-repeat;
    background-size: 22px;
    width: 22px;
    height: 15px;
    margin-left: 10px;
}

.post_list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tag {
    display: inline-block;
    text-wrap: nowrap;
    padding-bottom: 0px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
    &::before {
        content: "<";
    }
    &::after {
        content: ">";
    }
}

.orange {
    background-color: #b35900;
}

.blue {
    background-color: #003d99;
}

.green {
    background-color: #03630f;
}

.black {
    background-color: #080808;
}

.purple {
    background-color: #663399;
}

.cyan {
    background-color: #01a4a4;
}

.tomato {
    background-color: #FF6347;
}

/* Podcast *******************************************************************/

canvas.p5Canvas{
    border-radius: 1.5em;
    border-left: 2px dashed var(--text-color-blend);
    border-right: 2px dashed var(--text-color-blend);
}

/* Comments form *************************************************************/

form.comment {
    background-color: var(--page-color-blend);
    border-left: 2px dashed var(--text-color-blend);
    border-right: 2px dashed var(--text-color-blend);
    border-radius: 1em;
    margin: 1em;
}

div.comment {
    line-height: 1.75em;
}


fieldset {
    border: none;
}

ul.fields{
    padding: 0;
}

li.field {
    list-style-type: none;
    margin-left: 2em;
    margin-right: 2em;
    margin-bottom: 1em;
}

li:has(input.messageButton){
    text-align: left;
}

input.msgForm {
    width: 100%;
    margin: auto;
}

textarea.commentMessage {
    width: 100%;
    margin: auto;
}

input.msgButton {
    margin: auto;
    width: 10em;
}

input#requirePublication{
    width: inherit;
    margin: 0;
}

/* Garden styles *************************************************************/

.gardenDisclaimer {
    margin: 1em;
    padding: 1em;
    border-radius: 1em;
    background-color: var(--page-color-blend);
    color: var(--text-color-blend);
}

.cardTitle {
    font-size: 1.5em;
}

/* Special effects ***********************************************************/

/* Blinking */

.blink {
    opacity: 0;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
  15% {
      opacity: 0;
  }
  20% {
    opacity: 100;
  }
  80% {
    opacity: 100;
  }
  85%{
    opacity: 0;
  }
}

/* Hidden */

.hidden {
    display: none;
}

/* Marquee */

.marqueeContainer {
    width: 100%;
    overflow-x: hidden;
}

.marquee {
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}
