:root {
	--color-beige: #d5c8a9;
	--scale: 1;
	font-size: calc(1em * var(--scale));
}

@media (max-width: 1000px) {
	:root {
		--scale: 1.5;
	}
}

html, body {
	height:100%;
}

body {
	margin:0;
	background-color: #051e27;
	background-image: linear-gradient(90deg, transparent, #389ffb, transparent);
	font-family: EB Garamond;
	font-weight: 420;
}

h1 {
	font-family: TychoElegy;
}

h2, h3, h4, h5, h6 {
	font-family: FransiscoBriosa;
}

a {
    text-decoration: none;
    color: darkred;
}

p {
    margin-top: 0;
}

.flex {
	display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
	flex-direction: column;
}

.header {
    text-align: center;
    color: darkred;
    margin: 0 auto;
    background: url(/assets/cover4-blur.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 85%;
}

.header h1 {
    margin: 0;
    padding: 0.5em;
	font-size: 4em;
}

.subheader {
	display: flex;
	flex-direction: column;
    background-image: url(/assets/parchmentbg.png);
    background-color: var(--color-beige);
    margin: 0 auto;
    width: 85%;
    min-height: 100%;
    border-image-source: url(/assets/flowerborder1.png);
    border-image-repeat: repeat;
    border-image-slice: 140 0 0 0 fill;
    border-image-width: 70px 0 0 0;
    padding-top: 70px;
}

.subheader > div {
    margin-left: 2em;
    margin-right: 2em;
}

.subheader h1 {
    margin-left: 1em;
    margin-bottom: 0;
}

.info-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0.5em 0 0.3em;
    border-top: 2px solid darkred;
    border-bottom: 2px solid darkred;
}

.info-menu a {
    font-size: 1.8em;
    font-family: 'FransiscoBriosa';
    font-weight: 600;
}

.maincharacters, .characters {
    font-size: 1.1em;
}

.maincharacters {
	display: flex;
	flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-evenly;
}

.characters {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

/*.characters p {
    display: inherit;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: baseline;
    margin: 0;
}*/

.list-item {
	display: flex;
    padding: 1vw;
    flex: 1 1;
    max-width: 45%;
}

.characters .list-item {
	flex: 1 1 45%;
}

.maincharacters .list-item {
    align-items: center;
	flex-direction: column;
}

.characters .list-item-image {
    max-width: fit-content;
    margin: 0 1em 0 0;
}

.maincharacters .list-item-image {
	max-width: unset;
}

.list-item-image img {
    max-width: 300px;
	max-height: 200px;
	box-sizing: content-box;
	border: 2px solid darkred;
}

.characters .list-item-image img {
    max-width: 200px;
    max-height: 300px;
}

.maincharacters .list-item-image img {
    max-height: 500px;
}

.maincharacters .list-item-text {
    text-align: center;
}

span.name {
    font-family: FransiscoBriosa;
    font-weight: 600;
    font-size: 1.5em;
    text-wrap-mode: nowrap;
}

img.image-small {
    cursor: zoom-in;
}

span.language-header {
    font-weight: 600;
	font-family: FransiscoLlana;
}

.world-info summary {
    font-family: FransiscoBriosa;
    font-size: 1.7em;
    font-weight: 700;
}

.world-info details {
    margin: 0.75em 0;
}

.world-info-summary {
    margin: 0.5em 0;
}

.history-summary h2 {
	margin-bottom: 0.25em;
}

.world-info h3 {
    margin: 1em 0 0.25em;
}

details.meta-info {
    background: #FF000020;
    padding: 0.2em 0.5em;
	margin-right: 50%;
}

details.meta-info summary {
    font-size: 1em;
    font-family: EB Garamond;
	font-weight: 600;
	font-variant: small-caps;
}

details.meta-info div {
    margin-left: 1em;
}

details.meta-info p {
    margin-bottom: 0.5em;
}

.world-info h1 {
    margin-bottom: 0;
}

div#map-link {
    margin: 0 0 1em;
}

#map-link a {
    font-size: 1.5em;
}

div.modal-body {
    margin: 1.5em;
}

@media (max-width:1000px) {
	.header, .subheader {
		width: 100%;
	}
}