/* "Barrabum CSS" 2025 per Rita Barrachina sota llicencia CC BY-SA 4.0. Paleta: https://lospec.com/palette-list/eggdealer6 i https://lospec.com/palette-list/shogun */

/* Variables */

:root {
  --bg: #e9d79d;
  --text: #47323b;
}

/* Caixeta i cos */

* {
  box-sizing: border-box;
}

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;
    }
}

/* Titol i navegacio espaiats i centrats */

header {text-align: center;}
header h1 {margin: 1rem;}
nav {margin: 1rem}

/* Capçaleres */

h2, h3 {margin-top: 3rem;}

/* Enllasos */

a:link, a:visited {
  color: var(--text);
  text-decoration: underline;  
}

a:hover, a:active {opacity: 90%;}

/* Forma de boto per l'enllas */

a.btn {
  text-decoration: none; 
  color: var(--bg);
  font-weight: bold;
  display: block;
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 5px;
}

/* Colorins pels enllasos-botons */

.btn.unu {background: #4c6a6a;} 

.btn.du {background: #5c4657;} 

.btn.tri {background: #b76450;} 

.btn.kvar {background: #735a55;} 

/* Taula */

table {
  width: 100%;
}

table, td {
  padding: 5px;
}

/* Imatges i videos responsius (adaptables a diferents pantalles) <https://www.w3schools.com/css/css_rwd_images.asp> i <http://www.w3schools.com/Css/css_rwd_videos.asp> */

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

.vertical {  
  width: 50%;
  height: auto;
}
  
/* Detalls */

details {
  padding: 0.75rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  color: var(--text);
}

summary {
  cursor: pointer;
}

details a:visited {
  color: var(--text);
  opacity: 85%;
}

details a:hover {
  color: var(--text);
  opacity: 60%;
}

details[open] {
  padding-bottom: 1em;
}

details[open] summary {
  margin-bottom: .5rem;

}

details[open]>*:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 610px) {
  details {
    border-radius: 0;
  }
}

/* Linia discontinua */

hr.dot {
  border-top: 4px dotted var(--text);
  border-bottom: none;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* Peu de pagina */

footer {
  font-size: 1.1rem;
  text-align: center;
} 
