/* --- ESTO SOBREESCRIBE TODO EL SISTEMA DE MODOS --- */
@font-face {
    font-family: 'starborn'; 
    src: url('fonts/starborn.otf'); /* Asegúrate de que esta ruta sea correcta en Neocities */
}

/* Colores por defecto (Claro) */
:root {
    --text: #772f1a;
    --border: #E293A3; 
    --accent: #FF80AB;
    --bg: #FFE4E8;
    --gradientTop: #FFF5F7;
    --gradientBottom: #FFB1C1;
    --h-color: #420420;
    --container-bg: rgba(255, 255, 255, 0.8);
    --bg-image: url("https://amysmessyworld.neocities.org/images/mymelodyfondo.jpg");
    --header-text: #FFF5F7;
    --header-img: url("https://amysmessyworld.neocities.org/banners/banner1.jpg");
    --cursor: url('https://cur.cursors-4u.net/food/foo-6/foo507.png');
    
}


.dark-mode {
    --text: #ffd1dc;
    --border: #8d4a57;
    --accent: #ff4081;
    --bg: #2d1b1e;
    --gradientTop: #4a2a2f;
    --gradientBottom: #2d1b1e;
    --h-color: #ffb1c1;
    --container-bg: rgba(30, 10, 15, 0.85);
    --bg-image: url("https://amysmessyworld.neocities.org/images/fondoscuro.jpeg");
    --header-text: #fff4e6;
    --header-img: url("https://amysmessyworld.neocities.org/banners/banner2.jpg");
    --cursor: url('https://cdn.cursors-4u.net/previews/kuromi-1162d491-32.webp')32 32;
}





* { 
	box-sizing: border-box;
}


body {
  font-family: "Winky Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 550;
  font-style: bold;
  color: var(--text);
    

    /* Tu fondo de My Melody */
    background-image: var(--bg-image)!important;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    background-color: var(--bg);
}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border); /* El borde oscuro que acabamos de cambiar */
	outline: 3px solid #C481A7;      /* Antes era casi blanco, ahora es un rosa más vivo */
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;
	background-color: rgba(255, 255, 255, 0.8);
	background-image: none;
	background-color: var(--container-bg);
	min-height: 700px;
}

/* 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%; }


.starborn {
    font-family: 'starborn', sans-serif !important;
    /* Opcional: ajusta el tamaño ya que Starborn es pequeñita */
    font-size: 1.3rem; 
}

/* Pink Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 3px solid var(--bg);
}

/* Pink Text Selection */
::selection {
    background: var(--accent);
    color: white;
}

header {
    background-image: var(--header-img)!important;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120px; 
    border: 2px ridge var(--border);
    border-radius: 5px;
    position: relative;
    background-color: var(--accent);
    transition: background-image 0.3 ease;
    
    #theme-toggle {
    display: block;
    margin: 5px auto;
    width: calc(100% - 10px);
    border: 2px ridge #E293A3;
    border-radius: 5px;
    background: #FFF5F7;
    color: #772f1a;
    padding: 4px;
    text-align: center;
    font-family: 'starborn', sans-serif;
    font-size: 1.3rem;
}
}

header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	/* Mantengo tus sombras exactamente igual */
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--header-text);
	
	/* Añado el reborde negro por fuera */
	-webkit-text-stroke: 1px #000000;
}

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: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}


/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}

section {
  box-sizing: border-box;
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 2px;
	padding-left: 10px;
	padding-right: 10px;
	max-height: 500px;
	overflow: auto;


}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6 { 
    margin: 5px;
    line-height: 1.2;
    color: var(--h-color); /* Esto les dará el color a todos por igual */
}
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);
}


    border-radius: 10px;
}