/* =================================
   1. Import & Stili Globali
   ================================= */
@import url("animations.css");

@font-face {
    font-family: 'W95FA';
    src: url('fonts/w95fa.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'W95FA', monospace;
    font-weight: normal;
}

body {
    background-color: #018383;
    color: black;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* =================================
   2. Stili Elementi HTML di Base
   ================================= */
b,
strong {
    font-weight: bold;
}

a {
    text-decoration: none;
}

ul a {
    display: inline-block;
}

h1,
h2,
h3 {
    margin-bottom: 10px;
}

p,
li {
    margin-bottom: 5px;
}

code {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
}

marquee {
    background-color: #000000;
    color: #00ff0d;
    font-size: 14px;
}

/* =================================
   3. Layout Principale
   ================================= */
#container {
    max-width: 960px;
    width: 100%;
    padding: 10px;
}

.main-container {
    display: flex;
    gap: 5px;
}

header {
    background-image: url("/images/header.gif");
    background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #000081;
    color: white;
    padding: 5px 10px;
}

header h1 {
    letter-spacing: 2px;
    background: linear-gradient(183deg, #6000CA 10%, #CA00CD 70%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 60px;
    filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8));
    animation: flicker 1.5s infinite alternate;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 15px 0;
}

nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 2px 6px;
    background-color: #c0c0c0;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #858585;
    border-bottom: 2px solid #858585;
}

main {
    gap: 10px;
    margin-top: 25px;
    background-color: #C0C0C0;
    padding: 10px;
    border: #808080 2px solid;
    box-shadow:
        inset 2px 2px 0 #FFFFFF,
        inset -2px -2px 0 #000000;
    flex: 1;
}

#sidebar {
    width: 200px;
    height: auto;
    margin-top: 25px;
    background-color: #C0C0C0;
    padding: 10px;
    border: #808080 2px solid;
    box-shadow:
        inset 2px 2px 0 #FFFFFF,
        inset -2px -2px 0 #000000;
}

#sidebar ul {
    list-style-position: inside;
}

aside {
    background-color: #C0C0C0;
    padding: 40px;
    
    width: 200px;
    height: auto;
}

section {
    flex: 1;
}

footer {
    background-color: #000080;
    color: white;
    padding: 5px 10px;
    border: 2px solid #808080;
    margin-top: 20px;
    text-align: center;
    border-top: 2px solid #808080;
}

hr {
    
    
    margin: 20px 0;
}
footer p {
    margin: 0;
}

/* =================================
   4. Componenti e Widget
   ================================= */
#post-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000081;
    color: white;
    padding: 2px 6px;
    margin-bottom: 10px;
}

#post-bar h4 {
    margin: 0;
    font-weight: normal;
}

#post-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000081;
    color: white;
    padding: 5px 6px;
    border: 2px solid #808080;
    margin-bottom: 10px;
}

.window-icon {
    display: flex;
    gap: 2px;
    color: rgb(0, 0, 0);
}

.window-icon .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    border: 1px solid #666;
    border-radius: 1px;
    background: #c0c0c0;
    color: #000000;
    font-size: 20px;
}

#icon {
    height: 100px;
    width: auto;
    padding-bottom: 10px;
    margin-right: 50px;
}

#banners {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    background-color: #c0c0c0;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 2px;
    border: 2px inset #808080;
    background-color: #FFFFFF;
}

form button {
    padding: 4px 10px;
    border: 2px outset #808080;
    background-color: #C0C0C0;
    cursor: pointer;
}

#evento {
    margin-top: 10px;
    padding: 20px 10px;
    font-size: 20px;
    text-align: center;
    align-items: center;
    border: 2px outset #808080;
    
    background-color: #fefefb;
    background-image:
    radial-gradient(circle at 2px 2px, #fcf296 1px, transparent 1px),
    radial-gradient(circle at 5px 5px, #fcf296 1px, transparent 1px);
    background-size: 6px 6px;
	
    
    border-radius: 2px;
    color: #000000;
    cursor: pointer;
    
    justify-content: center;
}

#evento .img {
    
    border: 2px solid #000000;
    
}
#music-toggle {
   
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 24px;
  align-items: center;
  
  border: 2px outset #808080;
  background-color: #C0C0C0;
  border-radius: 2px;
  color: #000000;
  cursor: pointer;
}

.languages {
    display: flex;
    justify-content: flex-end;
    
}

.hidden {
    display: none;
}

.ita,.eng {
    display: auto;
} 

#chatcontrol {
    margin-top: 10px;
    padding: 4px 10px;
    
    align-items: center;
    border: 2px outset #808080;
    background-color: #5f5f5f;
    border-radius: 2px;
    color: #ffffff;
    
}

/* =================================
   5. Stili Specifici di Sezione/Pagina
   ================================= */

/* --- Post e Articoli --- */
article {
    background-color: #fefefb;
    background-image:
    radial-gradient(circle at 2px 2px, #fcf296 1px, transparent 1px),
    radial-gradient(circle at 5px 5px, #fcf296 1px, transparent 1px);
    background-size: 6px 6px;
    padding: 25px;
    margin-top: 1px;
    margin-bottom: 15px;
    margin-left: 1px;
    margin-right: 2px;
    display: block;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 2px 2px 0 #5a5a5a,
        inset -2px -2px 0 #ffffff;
}

article img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: #000000 2px 2px 5px 0px;
}

article figure {
    text-align: center;
    margin: 1em 0;
}

article figcaption {
    font-size: 0.8em;
    font-style: italic;
    color: #000000;
    margin-top: 0.3em;
    text-align: center;
}

article p, b {
    margin: 1em 0;
    text-align: justify;
    
}

article h2 {
 font-size: 30px;
 margin-bottom: 50px;
}



ul#lista-post,
ul#archive-list {
    list-style: none;
    padding-left: 0;
}

.post-home {
    display: flex;
    gap: 10px;
    border: 2px solid #808080;
    background-color: #FFFFFF;
    padding: 5px;
    margin-bottom: 5px;
}

.post-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px inset #808080;
}

.post-content {
    flex: 1;
}

.post-content a {
    font-weight: bold;
    text-decoration: none;
}

.post-content p {
    margin-top: 5px;
}

.post-embed {
    margin-top: 5px;
    border: 2px inset #808080;
    padding: 2px;
    width: max-content;
}

.post-embed iframe {
    display: block;
    max-width: 100%;
}

/* --- Archivio/Filtri --- */
#filtro {
    margin-bottom: 10px;
}

#filtro label {
    margin-right: 10px;
}

#filtro select {
    margin-right: 10px;
}

#paginazione button {
    margin: 2px;
    padding: 2px 6px;
    border: 2px solid #808080;
    background-color: #C0C0C0;
    cursor: pointer;
}

#paginazione button:disabled {
    background-color: #808080;
    color: white;
    cursor: default;
}

/* --- Galleria --- */
#home-image {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#galley {
    display: flex;
    padding: 20px;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#galley img {
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

#galley figure {
    text-align: center;
}

#galley figcaption {
    font-size: 0.8em;
    font-style: italic;
    color: #000000;
    text-align: center;
}

/* --- Guestbook --- */
#guestbook-spinner {
    margin-top: 20px;
    background-color: #f7efc3;
    border: 2px solid #808080;
    padding: 30px;
}

/* =================================
   6. Classi di Utilità e Varie
   ================================= */
#random-news {
    color: #11bbd1;
    font-size: 15px;
    filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8));
}

.visitors {
    background-color: #000000;
    margin-top: 20px;
    padding: 5px 10px;
    text-align: center;
    letter-spacing: 1px;
    background: linear-gradient(183deg, #6000CA 10%, #CA00CD 70%);
    background-clip: text;
    -webkit-background-clip: text;
    color: #ff00dd;
    font-size: 20px;
    filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8));
    animation: flicker-visitors 3.5s infinite alternate;
}

.wallet {
    cursor: pointer;
    font-family: monospace;
    color: #00aa66;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s;
}

/* =================================
   7. Interazioni (Hover, etc.)
   ================================= */
ul a:hover {
    animation-name: navbuttonanimation;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

nav a:hover {
    color: rgb(255, 255, 255);
}

.window-icon .icon:hover {
    background: #555;
}

.window-icon .icon.close:hover {
    background: #c00;
}

#galley img:hover {
    border: 5px solid #eb0dbb;
    animation: blink 1s ease-in-out;
}

#icon:hover {
    animation-name: iconamination;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

form button:hover {
    background-color: #808080;
    color: white;
}

.wallet:hover {
    background: #d9f9e7;
}
