/* Propuesta de CSS para la web de Estraperlo 2025 */

* {
  box-sizing: border-box;
}

:root {
  --bg: #14213d;
  --text: #eae2b7;
  --link: #fcbf49;
  --visited: #d5c6e0; 
  --active: #ffdb58;
  --linio: 2px dotted var(--text);
}	


@font-face {
  font-family: Arkhip; /* set name */
  src: url(/font/Arkhip_font.ttf); /* url of the font */
}

/* <https://www.w3schools.com/accessibility/accessibility_skip_links.php> */

.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
}

/* <view-source:https://bestmotherfucking.website/> */	

body {
  margin: 0 auto;
  max-width: 40em;
  padding: 0 .62em;
  font: 1.4em/1.62 sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

@media print {
  body {
    max-width: none;
    }
}

h1,h2,h3 {
  font-family: Arkhip;
  line-height: 1;	
  margin-bottom: 0;
}

h1 {
  font-size: 1.8em;
}

h2 {
  margin-top: 1.5em; 	
}

h3 {
  margin-top: 2em;
}

/* https://www.w3schools.com/html/html_links_colors.asp */

a:link {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:hover {
  opacity: 0.8;
}

a:active {
  color: var(--active);
}

/* https://www.w3schools.com/css/css_rwd_images.asp */

img {
  width: 100%;
  height: auto;
}

/* <https://www.w3schools.com/howto/howto_css_responsive_header.asp> */

.header {
  overflow: hidden;
  padding: 15px 0;
  border-bottom: var(--linio);
  margin-bottom: 2em;
}

.header a {
  float: left;
  text-align: center;
  padding: 0.4em 0.6em;
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
  margin-right: 0.75em;
  font-weight: bold;
}

.header a:hover, .header a.active {
  background-color: var(--text);
  color: var(--bg);
}

.header a.logo {
  vertical-align: middle;
  display: inline-block;
}

.header a.logo:hover {
  background-color: var(--bg);
}

.header img {
  width: 100%;
  height: 88px;
}

.header-right {
  float: right; 
  line-height: 2rem; 
  margin-top: 1.8rem;
}

@media screen and (max-width: 590px) {
  .header a, .header a.logo {
    float: none;
    display: block;
    text-align: center;
    margin: 0;
    border-radius: 0;
  }
  
  .header-right {
    float: none;
  }
}

.s {
  font-size: 0.8em;
}

footer {
  text-align: center;	
  border-top: var(--linio);
  margin-top: 2em;
}
