/* start light mode styling */
	:root {
		--text: darkslategrey;
		--border: lightgrey;
		--accent: teal;
		--bg: #dce3e1;
		--gradientTop: white;
		--gradientBottom: rgb(240, 248, 255, .8);
	}
	header {
        background: url('/assets/gumballpc.jpg');
	}
/* end light mode styling */

@font-face {
  font-family: 'Pictochat';
  src: url('/assets/fonts/pictochat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
    padding: 10px;
    font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
    color: var(--text);

    /* page background image */
    background: url('/assets/background.jpg') center center / cover no-repeat fixed;
}

/* Font di default solo per testo normale */
p, li, ul, ol, span, div, footer, input, textarea, label, table, td, th, pre, code {
  font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
  font-size: 1.13em;
  color: #184060; /* colore più scuro e leggibile */
  line-height: 1.7;
}

/* Titoli, navbar e titolo sito restano invariati */
nav, nav a, nav div,
h1, h2, h3, h4, h5, h6 {
  font-family: Verdana, Arial, sans-serif !important;
  color: #0b6fa4;
  font-size: revert;
  text-shadow: 0 1px 0 #fff, 0 2px 8px #b6eaff;
}

.kh2-title {
  font-family: 'KH2Menu', Verdana, Arial, sans-serif !important;
  color: #0b6fa4;
  text-shadow: 0 2px 8px #b6eaff, 0 1px 0 #fff;
}

/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: white;
			--border: #5a7678;
			--accent: #74C365;
			--bg: rgb(0,60,60,.8);
			--gradientBottom: rgb(0, 50, 60);
			--gradientTop: darkslategrey;
			a:link { color: lightblue; }
		}
		header {
			background: url('/assets/gumballpc.jpg');
		}
	}
/* end dark mode styling */


* { 
	box-sizing: border-box;
}
body {
    padding: 10px;
    font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
    color: var(--text);

    /* page background image */
    background: url('/assets/background.jpg') center center / cover no-repeat fixed;
}


.container {
	max-width: 68rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientBottom);
	background-image: 	repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}


nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
  display: block;
  margin: 7px 0;
  background: linear-gradient(90deg, #e0f7fa 60%, #b6eaff 100%);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #0b6fa4;
  font-weight: bold;
  font-size: 1.08em;
  box-shadow: 0 2px 8px 0 #b6eaff33;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
nav a:link, nav a:visited { 
	color: #0b6fa4;
}
nav a:hover, nav a:focus {
  background: linear-gradient(90deg, #7fd7f7 0%, #c1f7fa 100%);
  color: #fff;
  box-shadow: 0 4px 16px 0 #7fd7f799;
  text-shadow: 0 1px 6px #0b6fa4;
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
  background: #fafdff;
  border-radius: 14px;
  margin: 18px 0;
  padding: 18px 16px;
  box-shadow: 0 2px 16px 0 #b6eaff33;
  border: 2px solid #aee6f9;
}

footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3 {
  color: #0b6fa4;
  text-shadow: 0 1px 0 #fff, 0 2px 8px #b6eaff;
  font-weight: bold;
}
h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

@font-face {
  font-family: 'KH2Menu';
  src: url('/assets/fonts/KH2_ALL_MENU_I.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.kh2-title {
  font-family: 'KH2Menu', Verdana, Arial, sans-serif;
  font-size: 2.2em;
  color: #0b6fa4;
  text-shadow: 0 2px 8px #b6eaff, 0 1px 0 #fff;
  letter-spacing: 2px;
  word-break: break-word;
  max-width: 95vw;
  display: block;
}

/* Responsive title for mobile */
@media (max-width: 600px) {
  .kh2-title {
    font-size: 1.3em;
    right: 0;
    left: 0;
    margin: 10px auto;
    text-align: center;
    max-width: 98vw;
  }
}

marquee {
  color: #1a3a4f;
  background: linear-gradient(90deg, #e0f7fa 60%, #b6eaff 100%);
  border-radius: 8px;
  padding: 4px 0;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px 0 #b6eaff44;
}

nav {
  background: linear-gradient(90deg, #b6eaff 0%, #e0f7fa 100%);
  border-radius: 10px;
  padding: 10px 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px 0 #b6eaff33;
}

nav a {
  display: block;
  margin: 7px 0;
  background: linear-gradient(90deg, #e0f7fa 60%, #b6eaff 100%);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #0b6fa4;
  font-weight: bold;
  font-size: 1.08em;
  box-shadow: 0 2px 8px 0 #b6eaff33;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

nav a:link, nav a:visited {
  color: #0b6fa4;
}

nav a:hover, nav a:focus {
  background: linear-gradient(90deg, #7fd7f7 0%, #c1f7fa 100%);
  color: #fff;
  box-shadow: 0 4px 16px 0 #7fd7f799;
  text-shadow: 0 1px 6px #0b6fa4;
}

section {
  background: #fafdff;
  border-radius: 14px;
  margin: 18px 0;
  padding: 18px 16px;
  box-shadow: 0 2px 16px 0 #b6eaff33;
  border: 2px solid #aee6f9;
}

h1, h2 {
  color: #0b6fa4;
  text-shadow: 0 1px 0 #fff, 0 2px 8px #b6eaff;
}

ul {
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 1px 4px 0 #b6eaff22;
}

li {
  margin-bottom: 8px;
}

footer {
  background: linear-gradient(90deg, #b6eaff 0%, #e0f7fa 100%);
  border-radius: 0 0 14px 14px;
  padding: 12px 0;
  text-align: center;
  color: #0b6fa4;
  font-size: 1em;
  margin-top: 32px;
  box-shadow: 0 -2px 8px 0 #b6eaff22;
}

a {
  color: #ff7e5f;
  transition: color 0.2s;
}

a:hover {
  color: #ffb347;
}

img {
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 #b6eaff44;
  border: 2px solid #aee6f9;
}

/* Extra accent for buttons or important */
button, .btn, input[type="submit"] {
  background: linear-gradient(90deg, #7fd7f7 0%, #b6eaff 100%);
  color: #0b6fa4;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: bold;
  box-shadow: 0 1px 4px 0 #b6eaff44;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button:hover, .btn:hover, input[type="submit"]:hover {
  background: #0b6fa4;
  color: #fff;
}

/* Pixel Art Sidebar anni 2000 - aggiornata per bottoni meno larghi e tutti uguali */
.pixel-sidebar {
  width: 225px;
  min-width: 201px;
  max-width: 240px;
  background: repeating-linear-gradient(
    135deg,
    #e0f7fa 0 16px,
    #b6eaff 16px 32px
  );
  padding: 18px 6px 18px 6px;
  border: 4px solid #b6b6b6;
  border-radius: 12px;
  font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
  box-shadow: 0 4px 24px #b6eaff55;
  margin-bottom: 32px;
  margin-top: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pixel-section {
  margin-bottom: 28px;
  width: 100%;
}
.pixel-title {
  font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
  background: #ffe066;
  color: #7a5a00;
  font-size: 1.1em;
  padding: 8px 0;
  margin-bottom: 12px;
  text-align: center;
  border: 0;
  border-radius: 0;
  box-shadow:
    0 2px 0 #e6c200,
    0 4px 0 #fffbe6,
    0 0 0 4px #e6c200,
    0 0 0 8px #b6b6b6;
  outline: 2px solid #b6b6b6;
  outline-offset: 2px;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 1px 1px #fffbe6, 0 2px #e6c200;
  width: 100%;
  box-sizing: border-box;
}

.pixel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pixel-list li {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pixel-list a {
  width: 201px;
  min-width: 201px;
  max-width: 201px;
  min-height: 34px;
  height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: linear-gradient(180deg, #fafdff 60%, #e0e0e0 100%);
  border: 3px solid #b6b6b6;
  border-radius: 18px;
  box-shadow:
    0 2px 0 #fff,
    0 4px 0 #b6eaff44,
    0 2px 12px #b6eaff22;
  padding: 0 0 0 12px;
  font-size: 1.08em;
  color: #184060;
  font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
  text-decoration: none;
  position: relative;
  transition: box-shadow 0.2s, filter 0.2s, background 0.2s;
  font-weight: bold;
  letter-spacing: 1px;
  filter: brightness(1);
  box-sizing: border-box;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  width: 100%;
}

.pixel-avatar {
  border-radius: 8px;
  border: 4px solid #ffe066;
  box-shadow: 0 0 0 4px #b6b6b6, 0 2px 12px #b6eaff44;
  width: 90%;
  max-width: 120px;
  background: #fffbe6;
}

/* Main content migliorato */
.main-content {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  box-shadow: 0 4px 32px #b6eaff33;
  padding: 36px 28px 28px 28px;
  margin-top: 10px;
}

header {
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 18px 0 10px 0;
  box-shadow: 0 2px 8px 0 rgba(127,215,247,0.12);
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.kh2-title {
  font-family: 'KH2Menu', Verdana, Arial, sans-serif !important;
  font-size: 2.2em;
  color: #0b6fa4;
  text-shadow: 0 2px 8px #b6eaff, 0 1px 0 #fff;
  letter-spacing: 2px;
  word-break: break-word;
  max-width: 95vw;
  display: block;
}

.welcome-marquee {
  color: #1a3a4f;
  background: linear-gradient(90deg, #e0f7fa 60%, #b6eaff 100%);
  border-radius: 8px;
  padding: 4px 0;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px 0 #b6eaff44;
  font-family: 'Pictochat', 'MS PGothic', Verdana, Arial, sans-serif;
  font-size: 1.1em;
}

section {
  background: #fafdff;
  border-radius: 14px;
  margin: 18px 0;
  padding: 18px 16px;
  box-shadow: 0 2px 16px 0 #b6eaff33;
  border: 2px solid #aee6f9;
}

h1, h2, h3 {
  color: #0b6fa4;
  text-shadow: 0 1px 0 #fff, 0 2px 8px #b6eaff;
  font-weight: bold;
  font-family: Verdana, Arial, sans-serif;
}

ul {
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 1px 4px 0 #b6eaff22;
}

li {
  margin-bottom: 8px;
}

footer {
  background: linear-gradient(90deg, #b6eaff 0%, #e0f7fa 100%);
  border-radius: 0 0 14px 14px;
  padding: 12px 0;
  text-align: center;
  color: #0b6fa4;
  font-size: 1em;
  margin-top: 32px;
  box-shadow: 0 -2px 8px 0 #b6eaff22;
}

a {
  color: #ff7e5f;
  transition: color 0.2s;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #ffb347;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 0;
    max-width: 98vw;
    padding: 0 2vw;
  }
  .pixel-sidebar {
    margin: 0 auto 24px auto;
    width: 98vw;
    max-width: 340px;
  }
  .main-content {
    width: 100%;
    padding: 18px 4vw 18px 4vw;
    margin-top: 0;
  }
  header {
    padding: 12px 0 8px 0;
  }
  .kh2-title {
    font-size: 1.3em;
    margin: 10px auto;
    text-align: center;
    max-width: 98vw;
  }
}

/* Sidebar bottoni: larghezza fissa 201px, altezza 34px, centrati */
.pixel-list a {
  width: 201px;
  min-width: 201px;
  max-width: 201px;
  min-height: 34px;
  height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}