:root {
  --bg-fallback: #008083;
  --box-bg: #edf2f5;
  --box-inner: #ffffff;
  --border-light: #ffffff;
  --border-dark: #404040;
  --header-bg: #31a4b1;
  --widget-title-bg: #5abdbd;
  --accent-link: #db6192;
}

* {
  box-sizing: border-box;
}

@font-face {                  
font-family: 'AnalogueOS';
src: url(https://humantooth.neocities.org/fonts/AnalogueOS-Regular.woff) format('woff');
font-weight: normal;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background-color: var(--bg-fallback);
  background-image: url("img/miku_below.gif"), url("img/background.gif");
  background-repeat: no-repeat, repeat;
  background-attachment: scroll, fixed;
  background-position: bottom right, top left;
  background-size: 400px auto, auto;
  font-family: 'Determination', 'Courier New', Courier, monospace, sans-serif;
  font-size: 13.5pt;
  color: #000000;
  overflow-x: hidden;
}

.layout-container {
  display: flex;
  align-items: flex-start;
  gap: 20px; 
}

.garfield-img {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 160px; 
  height: auto; 
  z-index: 0; 
}

.content-column {
  flex: 3 1 450px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.widget-bottom {
  width: 100%;
  margin-top: 15px;
  padding: 8px;
}

.widget-bottom iframe {
  display: block;
  width: 100%;
}

.stamp-sidebar {
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  position: relative;
  z-index: 1;
  width: 100px; 
  flex-shrink: 0;
}


.stamp-sidebar img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-sidebar-right {
  display: flex;
  flex-direction: column; 
  z-index: 1;
  width: 150px; 
  flex-shrink: 0;
}

.banner-sidebar-right img {
  width: 100%;
  height: auto;
  display: block;
}

.main-content {
  width: 100%;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  margin-bottom: 10px;
}


/* Envoltura general */
.site-wrapper {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  flex: 1;
  z-index: 1;
}

/* Cajas estilo biselado retro */
.retro-box {
  background: var(--box-bg);
  border-top: 2px solid var(--border-light);
  border-left: 2px solid var(--border-light);
  border-right: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-dark);
  padding: 12px;
  margin-bottom: 15px;
}

.hdecor-img {
  width: 100px;
  height: auto;
  margin-bottom: 5px;
  float: left;
}

.header-image {
  width: 100%;
  height: auto;
}
/* Encabezado */
.header {
  font-family: 'AnalogueOS', 'Courier New', monospace, sans-serif;
  text-align: center;
  background: var(--header-bg);
  color: #ffffff;
  margin-top: 5px; /* Espacio para las stickers decorativas superiores */
}

.header h1 {
  margin: 5px 0 10px 0;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  word-break: break-word;
}

marquee {
  background: #b8ecec;
  color: #468a72;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  padding: 4px;
}

/* Distribución en dos columnas */
.layout-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.sidebar {
  flex: 1 1 260px;
}



/* Widgets */
.widget h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  background: var(--widget-title-bg);
  color: #ffffff;
  padding: 4px 6px;
}

.widget ul {
  padding-left: 18px;
  margin: 5px 0;
}

.widget li {
  margin-bottom: 5px;
}

/* Blog / Artículos */
.post {
  background: var(--box-inner);
  position: relative;
  overflow: hidden;
}

.post-mood {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: auto;
  pointer-events: none;
}

.post-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--header-bg);
  padding-right: 55px; 
}

.post-date {
  font-size: 0.8rem;
  color: #666666;
}

hr {
  border: 0;
  border-top: 1px dashed #777777;
  margin: 10px 0;
}

.post-body {
  line-height: 1.5;
  font-size: 1rem;
}

/* Enlaces */
a {
  color: var(--accent-link);
  font-weight: bold;
  text-decoration: underline;
}

a:hover {
  background-color: #e577c61d;
  color: #5abdbd;
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.8rem;
}

/* Enlace discreto para ARG */
.enlace-discreto {
  text-decoration: none;
  cursor: default;
}

/* Contenedor del reproductor */
.custom-player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
}

.red-dot {
  width: 9px;
  height: 9px;
  background-color: #ff0000;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px #ff0000;
  animation: parpadeo 1.4s infinite ease-in-out;
}

@keyframes parpadeo {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* Botón estilo clásico */
.retro-btn {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px;
  cursor: pointer;
  width: 100%;
}

.retro-btn:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background: #a0a0a0;
}


/* --- REGLAS RESPONSIVAS (MÓVIL / TABLET) --- */

/* Tablet y móvil */
@media (max-width: 900px) {
  body {
    padding: 8px;
    background-size: 260px auto, auto;
  }

  /* Todo en una columna, el sitio primero */
  .layout-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-wrapper {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  /* Estampillas: fila horizontal debajo del sitio */
  .stamp-sidebar {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .stamp-sidebar img {
    width: 70px;
    height: auto;
  }

  /* Banners: fila horizontal al final */
  .banner-sidebar-right {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  .banner-sidebar-right img {
    flex: 0 0 auto;
    width: 150px;      
    max-width: 100%;   
    height: auto;
  }

 
  .banner-sidebar-right img:nth-child(2) {
    flex: 0 0 100%;
    width:auto;
    max-width: 280px;
    align-self: center;
  }
 
  .garfield-img {
    width: 80px;
    opacity: 0.6;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  /* Sidebar del sitio y contenido en columna */
  .layout-grid {
    flex-direction: column;
    gap: 10px;
  }

  .sidebar,
  .content-column {
    flex: 1 1 100%;
    width: 100%;
  }

  .main-content {
    max-height: 450px;
  }

  /* El iframe del sudoku no se desborda */
  .content-column iframe {
    max-width: 100%;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  body {
    font-size: 12pt;
    background-size: 180px auto, auto;
  }

  .header h1 {
    font-size: 1.2rem;
  }

  .hdecor-img {
    width: 60px;
  }

  .stamp-sidebar img {
    width: 56px;
  }

  .banner-sidebar-right img {
    width: 130px;
    max-width: 100%;
  }

  .banner-sidebar-right img:nth-child(1) {
    width: 240px;
    max-width: 100%;
  }

  .garfield-img {
    display: none; 
  }

  .post-mood {
    width: 40px;
  }

  .main-content {
    max-height: 380px;
  }
}