* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-image: url("/assets/images/backsea.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

#container {
  max-width: 820px;
  margin: 0 auto;
  background-color: #feba9e;
  border: 3px double #7D4315;
  box-shadow: 5px 5px 0px #FA008A;
  padding: 15px;
}

header {
  background-image: url("/assets/images/nyan.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; 
  color: #FFD31A;
  padding: 20px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  border: 2px solid #000;
  margin-bottom: 20px;
}

/* FILA HORIZONTAL PARA TÍTULO + IMAGEN AL LADO */
header .header-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* TAMAÑO Y AJUSTE DE LA IMAGEN/ICONO */
header .icono {
  width: 20%;
  object-fit: contain;
  margin: 0;
}

header p {
  font-size: 12px;
  margin-top: 5px;
  font-style: italic;
  color: #ffff00;
}

.wrapper {
  display: flex;
  gap: 15px;
}

main {
  flex: 2;
}

article {
  border: 1px solid #7D4315;
  background-color: #FFA199 ;
  margin-bottom: 20px;
  padding: 12px;
}

article h2 {
  font-size: 30px;
  background-color: #FA008A;
  color: #fff;
  padding: 4px 8px;
  border-bottom: 1px solid #7D4315;
  margin-bottom: 10px;
}

article .date {
  font-size: 11px;
  color: #666666;
  margin-bottom: 10px;
  display: block;
}

article .content {
  font-size: 20px;
  line-height: 1.5;
}

article .footer-post {
  margin-top: 10px;
  font-size: 11px;
  border-top: 1px dashed #999;
  padding-top: 5px;
}

aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.widget {
  border: 2px inset #7D4315;
  background-color: #FFA199;
  padding: 10px;
  font-size: 12px;
}

.widget h3 {
  font-size: 13px;
  background-color: #FA008A;
  color: #ffffff;
  padding: 3px 6px;
  margin-bottom: 8px;
  text-align: center;
}

.retro-btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
}
.retro-btn:active {
  border-style: inset;
}

.retro-input, .retro-select {
  width: 100%;
  font-family: inherit;
  font-size: 11px;
  border: 2px inset #fff;
  background: #fff;
  padding: 2px;
  margin-bottom: 5px;
}

.music-player {
  background: #000;
  color: #00ff00;
  font-family: monospace;
  padding: 8px 5px;
  text-align: center;
  border: 1px solid #888;
}

.shoutbox {
  height: 100px;
  border: 1px solid #888;
  background: #fff;
  overflow-y: scroll;
  padding: 4px;
  font-size: 10px;
  margin-bottom: 6px;
}
.shoutbox-msg {
  margin-bottom: 4px;
  border-bottom: 1px dotted #ccc;
}

ul.retro-list {
  list-style-type: square;
  padding-left: 20px;
}

ul.retro-list li {
  margin-bottom: 4px;
}

footer {
  border-top: 2px solid #000;
  margin-top: 15px;
  padding-top: 10px;
  text-align: center;
  font-size: 11px;
}

.counter {
  border: 1px solid #000;
  background-color: #000;
  color: #ff0000;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  padding: 2px 6px;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .wrapper {
    flex-direction: column;
  }
}