/* verde2, "Papaya!" on its button, the 2004 skin drawn as rings on a lime ground (fondo_verde2.gif, 1024 by 672):
   a window for the posts, a panel for the guestbook and one for its form, and two columns of menus below them.
   Its values, from index.php, conf/configuracion_general.php, conf/cabecera_verde2.txt, especial.php and
   conf/body_verde2.furia:
     $color_de_fondo   #B9CB63  the ground, under fondo_verde2.gif (once, top left)
     the panels        #B7C550, especial.php's ground for verde2's window; fondo_iframe_verde2.gif in the posts'
                       window, fondo_guestbook_verde2.gif behind the entries, fondo_menu_verde2.gif in the menus,
                       fondo_textarea_verde2.gif in the message, each with its light edge
     $color_de_input   #B9CB63  the fields and the posts' strips
     $bordercolor      #D6D991  every panel's, strip's and field's border, light
     $color_de_fuente  white, $tamanyo_de_fuente 10px, Verdana; the posts' bands #424242; text justified
     links             #666666, teal and underlined on hover ($color_de_puntero); the menus' links white
     the columns       149px at 680px and 831px, 290px down; superior_verde2.gif (10px, rounded) over each,
                       inferior_verde2.gif (10px) under each, the boxes 3px apart
     the posts         an iframe 480 by 345 at 88px, 175px; each post three bordered strips 1px apart (a 13px band,
                       the box, a 5px foot), 426px wide
     the guestbook     an iframe 139 by 150 at 649px, 69px; its form at 859px, 69px; botoncito_verde2.gif, a light
                       ENVIAR, the button
     $ancho1           300px, the rule over a post's foot
   The header names its pictures _verde2; the dump keeps them as _papaya, the names used here (fondo_verde21.gif in
   the dump is the same picture as fondo_papaya.gif). Over clasico's markup the window and the two panels keep their
   places, the posts and the entries scroll inside them; the search, the sections, the calendar, the history and the
   bookmarks run down the first column, the skins fill the second. The drawn PAPAYA! is the site's name. All of it
   from 64em, where the 1024px scene fits; one column below, darker text on the lime, which a phone can read. */

:root { color-scheme: light; }

*, ::before, ::after { box-sizing: border-box; }

/* the body and the frame */
body {
  margin: 0;
  padding: 16px 16px 19px;
  background: #B9CB63;
  color: #222222;
  font: 13px/1.2 Verdana, Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: #4a5313; text-decoration: none; }
a:hover, a:focus-visible { color: teal; text-decoration: underline; }

input, textarea, button { font: inherit; color: inherit; }
input, textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1px 2px;
  border: 1px solid #D6D991;
  border-radius: 0;
  background: #B9CB63;
  font-size: 16px;
}
textarea { height: 6em; resize: vertical; }
button {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #D6D991;
  border-radius: 0;
  background: #BDCC6B;
  font-weight: bold;
  letter-spacing: .3em;
  text-transform: uppercase;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: progress; }

/* the header: the scene's drawn PAPAYA! stands for the site's name, which stays in the link */
body > header { margin: 0 0 12px; }
body > header h1 { margin: 0 0 8px; }
body > header h1 a {
  display: block;
  width: 280px;
  max-width: 100%;
  height: 32px;
  background: url(/skins/clasico/img/verde2/fondo_papaya.gif) -140px -133px no-repeat;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
/* the search: a box like the others, its word the first line, the field and its button under it */
body > header form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 4px; padding: 2px 5px; }
body > header label { grid-column: 1 / -1; font-weight: bold; }
body > header button { width: 141px; }

/* the boxes: the menus' green in a light border */
body > header form, body > nav, aside section, body > main {
  margin: 0 0 10px;
  border: 1px solid #D6D991;
  background: #B7C550;
}

/* the sections */
body > nav ul { margin: 0; padding: 2px 5px; list-style: none; }

/* the posts: in the window, each a band, a box and a foot, three bordered strips 1px apart */
body > main { padding: 12px 7px 0; }
main article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  row-gap: 1px;
  margin: 0 0 13px;
}
main article::before {
  content: "";
  grid-area: 2 / 1 / 4 / -1;
  border: 1px solid #D6D991;
  background: #B9CB63;
}
.meta, main article > h2 { background: #B9CB63; }
.meta {
  grid-area: 1 / 1;
  margin: 0;
  padding: 1px 0 1px 10px;
  border: 1px solid #D6D991;
  border-right: 0;
  color: #424242;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
}
.meta a { color: #424242; }
main article > h2 {
  grid-area: 1 / 2;
  margin: 0;
  padding: 1px 10px;
  border: 1px solid #D6D991;
  border-left: 0;
  color: #424242;
  font-size: 11px;
  font-weight: normal;
  line-height: 13px;
  text-align: center;
}
.contenido {
  grid-area: 2 / 1 / 3 / -1;
  padding: 4px 7px 3px;
  text-align: justify;
}
.contenido img, .contenido video { max-width: 100%; height: auto; }
.contenido iframe, .contenido embed, .contenido object { max-width: 100%; }
.contenido pre { overflow-x: auto; }
.enlace {
  grid-area: 3 / 1 / 4 / -1;
  margin: 0;
  padding: 7px 9px 9px;
  background: linear-gradient(currentColor, currentColor) 10px 0 / calc(100% - 20px) 1px no-repeat;
  font-weight: bold;
}
.enlace a { color: inherit; }
main article::after {
  grid-area: 4 / 1 / 5 / -1;
  content: "...";
  content: "..." / "";
  padding: 0 0 0 18px;
  border: 1px solid #D6D991;
  background: #B9CB63;
  line-height: 12px;
}
.no-encontrado h2 { grid-column: 1 / -1; border-left: 1px solid #D6D991; font-size: 13px; }

main > h2 { margin: 0 0 12px; font-size: inherit; }
.paginas { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 13px; padding: 3px 8px; border: 1px solid #D6D991; }
.paginas a { color: inherit; font-weight: bold; }

/* the sidebar: the columns' boxes, each title its first line */
aside section { padding: 2px 5px; }
aside h2 { margin: 0 0 2px; font-size: inherit; }
aside ul { margin: 0; padding: 0; list-style: none; }

.calendario table { width: 100%; border-collapse: collapse; text-align: center; }
.calendario caption { margin-bottom: 2px; }
.calendario th { font-weight: normal; }
.calendario td a { font-weight: bold; }

.historico li > a:first-child { font-weight: bold; }

.firmas li { margin: 0 0 6px; }
.firmas p { margin: 0; }
.quien .by { font-weight: bold; }

.firmar { margin-top: 8px; }
.firmar label { display: block; margin: 0 0 2px; font-size: 11px; }
.firmar button { margin-top: 2px; }
.status:empty { display: none; }
.status { margin: 0; padding: 2px; }

/* the honeypot: out of sight and out of reach */
.tarro { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the skin picker: the 2004 Skins box, the second column, the skins of then as their buttons */
aside .pieles { padding: 2px; }
.pieles h2 { margin: 0 0 2px 3px; }
.skins { margin: 0; padding: 0; list-style: none; }
.skins li { margin: 0 0 2px; }
.skins a { padding-left: 3px; }
.skins a[href="?skin=creativo"], .skins a[href="?skin=rojo"], .skins a[href="?skin=verde"],
.skins a[href="?skin=azul"], .skins a[href="?skin=prof"], .skins a[href="?skin=v21"],
.skins a[href="?skin=industrial"], .skins a[href="?skin=verde2"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  background: 0 0 no-repeat;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
.skins a[href="?skin=creativo"] { background-image: url(/skins/clasico/img/botones/creativo.gif); }
.skins a[href="?skin=rojo"] { background-image: url(/skins/clasico/img/botones/rojo.gif); }
.skins a[href="?skin=verde"] { background-image: url(/skins/clasico/img/botones/verde.gif); }
.skins a[href="?skin=azul"] { background-image: url(/skins/clasico/img/botones/azul.gif); }
.skins a[href="?skin=prof"] { background-image: url(/skins/clasico/img/botones/prof.gif); }
.skins a[href="?skin=v21"] { background-image: url(/skins/clasico/img/botones/v21.gif); }
.skins a[href="?skin=industrial"] { background-image: url(/skins/clasico/img/botones/industrial.gif); }
.skins a[href="?skin=verde2"] { background-image: url(/skins/clasico/img/botones/verde2.gif); }
.skins a[href="?skin=linuxero"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 2px solid #FF6600;
  background: white;
  color: #FF6600;
  font: bold 9px/13px Helvetica, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.skins a[href="?skin=pixel"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 1px solid black;
  background: linear-gradient(#4F4F4F, #4F4F4F) 50% 50% / 60px 11px no-repeat, repeating-linear-gradient(-45deg, #F5D547 0 6px, #3C3C3C 6px 12px);
  color: white;
  font: bold 9px/15px Verdana, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

/* the 2004 scene: the window and the panels where body_verde2.furia put them, the columns at 680px and 831px;
   white text, 10px Verdana, 9px in the bands and the fields */
@media (min-width: 64em) {
  body {
    position: relative;
    min-width: 1024px;
    min-height: 672px;
    padding: 290px 0 19px 680px;
    background: url(/skins/clasico/img/verde2/fondo_papaya.gif) 0 0 no-repeat #B9CB63;
    color: white;
    font-size: 10px;
  }
  a { color: #666666; }
  body > nav a, aside a { color: white; }
  input, textarea { height: 17px; font-size: 9px; }
  textarea { height: 50px; background: #B9CB63 url(/skins/clasico/img/verde2/fondo_textarea_papaya.gif) 0 0 no-repeat; }
  button { min-height: 0; height: 21px; }

  /* the first column: the search, the sections, the calendar, the history and the bookmarks, 3px apart, between
     the two rounded ends */
  body > header, body > nav, aside section { width: 149px; margin: 0 0 3px; }
  body > header { padding-top: 10px; background: url(/skins/clasico/img/verde2/superior_papaya.gif) 0 0 no-repeat; }
  body > header h1 { position: absolute; top: 145px; left: 282px; margin: 0; }
  body > header h1 a { width: 92px; height: 18px; background: none; }
  body > header form { grid-template-columns: minmax(0, 1fr); margin: 0; }
  body > header button { width: 100%; }
  body > nav, aside section { background: #B7C550 url(/skins/clasico/img/verde2/fondo_menu_papaya.gif) 0 0 no-repeat; }
  /* the rounded ends hang outside the boxes, as their cells stood above and below the bordered menus */
  aside > section:nth-last-child(1 of :not(.libro, .pieles)) { position: relative; margin-bottom: 13px; }
  aside > section:nth-last-child(1 of :not(.libro, .pieles))::after, aside .pieles::before, aside .pieles::after {
    content: "";
    position: absolute;
    left: -1px;
    width: 149px;
    height: 10px;
  }
  aside > section:nth-last-child(1 of :not(.libro, .pieles))::after, aside .pieles::after {
    top: calc(100% + 1px);
    background: url(/skins/clasico/img/verde2/inferior_papaya.gif) 0 0 no-repeat;
  }
  aside .pieles::before { bottom: calc(100% + 1px); background: url(/skins/clasico/img/verde2/superior_papaya.gif) 0 0 no-repeat; }

  /* the second column: the skins, between the same ends */
  aside .pieles { position: absolute; top: 300px; left: 831px; width: 149px; margin: 0; }

  /* the window: the posts scroll inside it, on its own panel */
  body > main {
    position: absolute;
    top: 175px;
    left: 88px;
    width: 482px;
    height: 347px;
    margin: 0;
    padding: 13px 0 0 21px;
    background: #B7C550 url(/skins/clasico/img/verde2/fondo_iframe_papaya.gif) 0 0 no-repeat;
    overflow: auto;
  }
  main article { width: 428px; }
  .meta, main article > h2 { font-size: 9px; line-height: 11px; }

  /* the panels: the entries scroll on theirs, the form fills the other */
  aside .libro {
    position: absolute;
    top: 69px;
    left: 649px;
    width: 141px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .libro h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .firmas {
    height: 152px;
    padding: 1px 0;
    border: 1px solid #D6D991;
    background: #B7C550 url(/skins/clasico/img/verde2/fondo_guestbook_papaya.gif) 0 0 no-repeat;
    overflow: auto;
  }
  .libro .firmar { position: absolute; top: 0; left: 210px; width: 141px; margin: 0; }
  .firmar label { margin: 0; font-size: 9px; }
  .firmar label + label { margin-top: 2px; }
}
