body {
    width: 100%;
    max-width: 586px;
    margin: 0 auto 15px;
    padding: 20px;
    background-color: #fff;
    font: 14.6px normal;
    font-family: 'JetBrains Mono', monospace;
    text-align: justify;
    box-sizing: border-box;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: clamp(18px, 24px, 28px);
    font-weight: normal;
    color: #000;
    text-align: left;
    text-transform: uppercase;
    margin: 10px 0px;
    position: relative;
    padding-left: 20px;
}

h1::before {
    content: "/";
    position: absolute;
    left: 0;
    color: red;
    font-weight: bold;
}

h1 .post-title a {
    text-decoration: none;
}

h2 {
    font-size: clamp(14px, 16px, 18px); /* Adatta la dimensione tra 24px e 32px */
    font-weight: normal;
    color: #000;
    text-align: left;
    text-transform: uppercase;
    margin: 10px 0px;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: "#";
    position: absolute;
    left: 0;
    color: red;
    font-weight: bold;
}

h2 .post-title a {
    text-decoration: none;
}

.sitetitle {
    font-size: clamp(24px, 36px, 42px); /* Fluid font size */
    font-weight: 600;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background-color: red;
    padding: 0px 20px 0px 20px;
    display: inline-block;
    text-decoration: none;
    transform: scaleY(1.6);
    font-style: italic;
    width: 100%;
    box-sizing: border-box; /* Added box-sizing */
    text-align: center;
    text-shadow: 1px 1px 0px black; /* Added text shadow here */
    white-space: nowrap;
}

.profilepicture {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    margin-top: 0px;
    max-width: 180px;
    height: auto;
    border-radius: 5%;
}


.subtitle{
    font-size: clamp(12px, 14px, 14px);
    /* font-family: 'Impact', sans-serif; */
    text-align: left;
    font-weight: bold;
    padding: 20px 0px 5px 0px;
    display: block;
    /* background-color: black;
    color: white;
    text-transform: uppercase; */
    text-align: left;
    white-space: nowrap;
}

a:not(.sitetitle):not(h1) {
    font-family: 'JetBrains Mono', monospace;
    color: black;
    text-decoration: underline;
}

a:not(.sitetitle):visited {
    text-decoration: underline dotted;
}

main {
    margin-top: 0px;
    line-height: 1.5rem;
}

ul {
    padding-left: 18px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    padding: 5px 20px 5px 0px;
    display: flex;
    align-items: center;
}

nav li a{
    font-size: clamp(16px, 18px, 18px);
    text-align: center;
    display: block;
    flex-grow: 1;
}

.post-list-item {
    margin: 10px 5px;
    list-style-type: square;
}

.pixelfed {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0px auto 20px auto;
    font-size: clamp(8px, 10px, 12px);
    font-style: italic;
  }

  .album-cover {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
  }

  #tags {
    list-style: none;
    padding: 0;
    margin: 10px 0; 
    display: flex;
    flex-wrap: wrap; 
    gap: 5px; 
  }
  
  #tags li {
    margin: 0;
    padding: 0;
    display: inline;
  }
  
  #tags li a {
    font-size: 0.8em; 
    text-decoration: none; 
    padding: 2px 5px; 
    border: 1px solid #ccc;
    border-radius: 3px;
    
  }
  
  #tags li a:visited {
    text-decoration: none;
  }
  
.boxed-text {
    font-size: 0.8em;
    text-decoration: none;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: inherit;
    display: inline-block;
    line-height: normal;
    font-weight: bolder;
    margin: 0px 10px 0px 0px ;
}

.boxed-text:visited {
    text-decoration: none;
}

.highlight {
    background-color: #f8f8f8; 
    padding: 15px; 
    margin: 15px 0; 
    overflow-x: auto; 
    border-radius: 4px; 
    font-size: 0.9em; 
    line-height: 1.4; 
    border: 1px solid #eee; 
}