body {
    margin: 1em;
    background-color: white;
    color: black;
    font-family: Arial,sans-serif;
}
img {
    border-width: 0;
}
.navheader {
    text-align: center;
}
dialog {
	color: black;
	border: 1px solid black;
}
dialog::backdrop {
	background-color: #0b0b0b;
	opacity: 0.8;
}
.precedent {
    float: left;
    width: 40%;
    text-align: left;
}
.sommaire {
    float: left;
    width: 20%;
    text-align: center;
}
.suivant {
    float: right;
    width: 40%;
    text-align: right;
}
h1, h2 {
    text-align: center;
}
h2.subtitle {
    font-weight: normal;
    font-style: italic;
}
.titlepage {
    clear: both;
}
h3 > span + span {
    font-weight: normal;
    font-size: 90%;
}
a {
    text-decoration: none;
}
pnx-viewer {
	display: inline-block;
	height: 100%;
	width: 100%;
}
#credits a {
    text-decoration: underline;
}
.cartographie {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    border-width: 0;
    background: transparent url(images/browser.png) no-repeat;
    text-indent: -9999px;
}
.panoramax {
    width: 38px;
    height: 32px;
    margin-left: 4px;
    border-width: 0;
    background: transparent url(images/panoramax32.png) no-repeat;
    text-indent: -9999px;
}

#carte-popup {
    background-color: inherit;
    text-align: center;
    border-radius: 5px;
    height: 420px;
    width: 480px;
    margin: auto;
    padding: 0.5%;
}
#carte-conteneur {
    background-color: white;
    text-align: center;
    border: 1px solid black;
    height: 93%;
    width: 98%;
    margin: auto;
}
#fermer-carte {
	position: absolute;
	left: 20px;
	top: 15px;
	z-index: 10;
}
#contribution {
	background-color: white;
	padding: 1em;
	text-align: center;
}
.informaltable table {
    width: 70%;
    border-collapse: collapse;
}
.informaltable td {
    padding: 0.1em 0.2em;
}
.informaltable table, .informaltable th, .informaltable td {
    border: 1px solid black;
}
.informaltable thead tr {
    background-color: #dbf1db;
}
.informaltable tbody tr:nth-child(even) {
    color: inherit;
    background-color: #e6e6fb;
}
.informaltable thead th.col10 {
    width: 10%;
}
.informaltable thead th.col35 {
    width: 35%;
}
.informaltable tbody td[property=geo] {
    font-size: 70%;
}
a.xref {
  font-size: 70%;
}

@media only screen and (min-width: 400px) {
	#panoramax {
		height: 600px;
		width: 70%;
	}
}

@media only screen and (max-width: 400px) {
    body {
        margin: 3px;
        padding: 0;
    }
    h1 {
        font-size: 120%;
    }
    .informaltable table {
        font-size: 90%;
        width: 100%;
    }
    .informaltable thead tr th:nth-child(6n+2), .informaltable thead tr th:nth-child(6n+5), .informaltable thead tr th:nth-child(6n), .informaltable tbody tr td:nth-child(6n+2), .informaltable tbody tr td:nth-child(6n+5), .informaltable tbody tr td:nth-child(6n) {
        display: none;
    }
	dl.toc a {
		line-height: 1.6em;
	}
	#panoramax {
		height: 600px;
		width: 100%;
	}
}

@media only screen and (prefers-color-scheme: dark) {
    body {
		background-color: #222222;
		color: white;
    }
	a {
		color: #b0e0ff;
	}
	a:active {
		color: #ffd000;
	}
	dialog {
		border-color: white;
		color: white;
	}
	.informaltable thead tr {
		background-color: #264f26;
	}
	.informaltable tbody tr:nth-child(even) {
		background-color: #484856;
	}
    .maplibregl-ctrl-attrib-inner {
        color: black;
    }
	#carte-popup, #panoramax, #contribution {
		background-color: #222222;
	}
}
