/**
* CSS
* 
* @version 2.0
* @author Vaska 
*
* There are also some obscure rules in base.css
*/

body {
	font-size: 16px;
	font-family: "Cormorant Garamond", serif;
	background: #fff;
	color: #000;
	line-height: 1.4em;
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

/* link scheme */
/* you can customize links further down the page too */
a:link { text-decoration: none;  }
a:visited { text-decoration: none;  }
a:hover { text-decoration: none; }
a:active { text-decoration: none;  }
a img { border: none; }
audio:focus { outline: none; }

/* index ocupa tota l'amplada, alçada segons contingut */
#index {
	width: 100%;
	background: #fff;
	padding: 27px 9px 25px 27px;
	box-sizing: border-box;
	white-space: nowrap;       /* FORÇA una sola línia */
	overflow-x: auto;          /* Scroll horitzontal si fa falta */
}

/* exhibit ocupa la resta de l'alçada */
#exhibit {
	flex-grow: 1;
	width: 100%;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 27px 9px 25px 27px;
	box-sizing: border-box;
	text-align: center;
}

/* assegura que el text dins exhibit no sigui excessivament ample */
#exhibit p, code, blockquote {
	max-width: 800px;
	margin: 0 auto 1em auto;
}

/* links dins exhibit */
#exhibit a:link { font-style: bold; color: #000; } /*font-style: italic;*/
#exhibit a:visited { color: #000; }
#exhibit a:hover { font-style: italic; color: #000; } 
#exhibit a:active { color: #000; } 

/* links dins index */
#index a:link {  color: #000; } /*font-style: italic;*/
#index a:visited { color: #000; } 
#index a:hover { font-style: italic; color: #000; } 
#index a:active { font-style: italic; color: #000; } 

/* elimina marges entre index i exhibit */
#index, #exhibit {
	margin: 0;
}

/* general styles */
small { font-size: 9px; }
code { font-family: monospace; }
blockquote { padding-left: 9px; }

/* headings */
h1 { font-size: 16px; margin-bottom: 1em; font-weight: bold; }
h2 { font-size: 16px; margin-bottom: 1em; font-weight: bold; }
h3 { font-size: 16px; margin-bottom: 1em; }
h4 { font-size: 16px; margin-bottom: 1em; }

/* paragraph width */
#index p { margin-bottom: 1em; }

/* highlighter style */
.highlight { background: #ccff00; color: #000; }

/* styling the index */
#index ul { list-style: none; margin: 0; }

/* IMPORTANT: canviar display per posar en línia */
#index ul.section,
#index ul.subsection,
#index ul#all_tags {
	display: inline-flex;
	padding: 0;
	margin: 0 10px 0 0;
	list-style: none;
}

#index ul.section li,
#index ul.subsection li,
#index ul#all_tags li {
	display: inline-block;
	white-space: nowrap;
	margin-right: 10px;
}

/* styles for the section titles */
#index ul.section span.section_title, 
#index ul.section span.section_title a,
#index ul.section span.subsection_title,
#index ul.section span.subsection_title a {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;  /* pots ajustar aquest ample */
	display: inline-block;
	vertical-align: middle;
}

/* active section title */
#index span.active_section_title,
#index span.active_section_title a { 
  font-weight: bold;
}

/* active exhibit title parts */
li.active a:link, li a.active, li.active a:hover, li a.active, li.active a:active, li a.active, 
li.active a:visited, li a.active, li span.active, #index ul.section li.active a:link, 
#index ul.section li.active a:hover, #index ul.section li.active a:active, #index ul.section li.active a:visited
{ font-weight: normal; color: #00f; }

/* additional #index options */
#index ul li .password a { }

/* the "new" indicator */
#index ul li sup.new_exhibit { color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; }
#index ul li sup.new_exhibit:before { content: "New"; color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; }

/* links styles just for h1 title of site (your name/logo) */
#index h1 a { font-weight: normal; text-decoration: none; color: #000; }

/* container padding eliminada, ara gestionada a index i exhibit */
.container {
	padding: 0;
	margin: 0;
}
