/* Serveur personnel sur Raspberry Pi CSS 16.01.2025 AB */

/* General ---------------------------------------------------------------------------------------- */
html, body {
	margin: 0;
	padding: 0;
	outline: 0;
	height: 100%;
}
body {
	text-align: center;
	background: linear-gradient(to bottom, #001, #009);
	background-repeat: no-repeat;
	background-color: #009;
	font-family: Tahoma, Arial, Verdana, sans-serif;
	font-size: 1em;
	color: black;
}
input[type=submit] {
	font-size: 1em;
}
header, section, footer {
	margin: auto;
	width: 80%;
	min-width: 1100px;
}
img {
	border: none;
}
a {
	text-decoration: none;
}
button, input {
	font-size: 100%;
}

td.fitwidth {
	width: 1px;
	white-space: nowrap;
} 

/* Header ----------------------------------------------------------------------------------------- */
header {
	height: 20px;
	margin-top: 10px;
	background: linear-gradient(to bottom, #0030, white);
}


/* Footer ---------------------------------------------------------------------------------------- */
footer {
	height: 20px;
	margin-bottom: 10px;
	background: linear-gradient(to bottom, white, #00C0);
}
footer p {
	margin: 0;
	font-size: 0.6em;
	color: black;
	padding-top: 3px;
}

/* Natels ------------------------------------------------------------------------------------------ */
@media screen and (max-width: 1100px){
	html {
		font-size: 150%;
	}
	header, section, footer {
		min-width: unset;
		width: 100%;
	}
}

/* Main ------------------------------------------------------------------------------------------- */
section {
	background-color: white;
	padding-bottom: 20px;
	padding-top: 20px;
	min-height: 150px;
}
h1{
	font-size: 150%;
	margin-top: 0em;
	margin-bottom: 1em;
	font-weight: bold;
	color: black;
	background-color: #E0E0E0;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	padding: 3px;
}
h2 {
	color: white;
	font-size: 120%;
	font-weight: bold;
	text-transform: uppercase;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	background-color: gray;
	margin-top: 1em;
	margin-bottom: 0.5em;
	padding: 2px;
}
h3 {
	color: black;
	font-size: unset;
	text-transform: unset;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	background-color: #E0E0E0;
}
h4 {
	font-size: 100%;
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: 0.5em;
}
div.links form {
	margin-top: 4em;
}
b input {
	font-weight: bold;
}

/* index.php / Homepage --------------------------------------------------------------------------- */
section.homepage input{
	width: 8em;
	margin: 0.25em;
}
@media screen and (max-width: 1100px){
	section.homepage div.links {
		font-size: 150%;
	}
}

/* voyage.php / Tracking --------------------------------------------------------------------------- */
section.voyage div.leafletMap {
	width: 95%;
	height: 75vh;
	margin: auto;
}
section.leaflet-control-layers-list {
	margin: unset;
	padding: unset;
	min-width: unset;
	min-height: unset;
	width: unset;
}
@media screen and (max-width: 1100px){
	section.voyage {
		font-size: 150%;
	}
	section.voyage div.leafletMap {
		width: 100%;
	}
}

/* upload.php / Formulaire d'upload -------------------------------------------------------------------- */
section.upload input[type=submit] {
	display: block;
	margin: auto;
	margin-top: 1em;
	margin-bottom: 1em;
}

/* gallery.php / Galerie photo -------------------------------------------------------------------- */
section.gallery p.key{
	display: inline-block;
	margin: 0 2em 0 0;
}
section.gallery form {
	display: inline-block;
}
section.gallery h3 {
	margin-top: 2em;
}

/* past.php / Log d'événements passés ------------------------------------------------------------ */
section.past form {
	margin-left: 2em;
	margin-bottom: 1em;
}
section.past form select,
section.past form input{
	margin-left: .5em;
	margin-right: 1.5em;
	font: inherit;
}
section.past h3{
	margin-top: 4em;
	margin-bottom: 2em;
}
section.past table {
	margin: auto;
	margin-bottom: 40px;
	border-collapse: collapse;
	background-color: white;
}
section.past thead tr{
	background-color: lightgray;
}
section.past table,
section.past th,
section.past td {
	border: 1px solid black;
	padding: 3px;
}
section.past form.addEssence input {
	width: 8em;
}
section.past form.addEssence input[type=number] {
	width: 4em;
}
@media screen and (max-width: 1100px){
	section.past form {
		margin-left: 0;
		margin-right: 0;
		font-size: 200%;
	}
	section.past form select,
	section.past form input{
		margin-left: 0;
		margin-right: 0;
	}
	section.past form input{
		width: 80%;
	}
	section.past form label {
		display: block;
		margin-top: .5em;
	}
	section.past form input[type=date]{
		width: 7em;
	}
}

/* sensors.php / Senseurs de température/humidité --------------------------------------------- */
section.temp div.links {
	margin: 1em;
}
section.temp form.links select {
	margin: 0ex 2ex;
}
section.temp form.links {
	margin: 1em;
	display: inline;
}
section.temp span.aktuell {
	display: inline-block;
	margin: 1em;
}
section.temp span.exterieur {
	border: 1px solid;
	background: lightgray;
}
section.temp span.cold b {
	color: #254DFF;
}
section.temp span.hot b {
	color: #d40000;
}
section.temp button.standard {
	font-weight: bold;
}
section.temp button.debug {
	color: gray;
}
@media screen and (max-width: 1100px){
	section.temp span.aktuell {
		font-size: 140%;
		margin: .3em;
	}
}


/* power.php / Mesure de puissance électrique via prise myStrom ----------------------------------- */
section.power {
	text-align: center;
}
section.power p.links a {
	padding: 0ex 2ex;
}
section.power p.links span {
	padding: 0ex 2ex;
}
section.power p.links span.current {
	text-decoration: underline;
}
section.power p.links {
	margin-top: 3em;
}
section.power form.links select {
	margin: 0ex 2ex;
}
section.power form.links {
	margin-top: 2em;
	margin-bottom: 1em;
}

/* menu.php / Menu  ------------------------------------------------------------------------------- */
section.menu {
	max-width: 100%;
}
section.menu p.titre {
	font-family: Brush Script MT, URW Chancery L, cursive;
	font-size: 300%;
	margin-bottom: 50px;
	margin-top: 20px;
}
section.menu table {
	margin: auto;
	margin-bottom: 40px;
	border-collapse: collapse;
	background-color: white;
}
section.menu table,
section.menu th,
section.menu td {
	border: 1px solid black;
	padding: 5px;
}
section.menu th {
	cursor: pointer;
}
section.menu tr.add{
	color: Green;
}
section.menu tr.remove{
	color: FireBrick;
}
section.menu th.headBlanc {
	background-color: lightyellow;
	padding: 5px;
	cursor: auto;
}
section.menu th.headRouge {
	background-color: darkred;
	color: white;
	padding: 5px;
	cursor: auto;
}
section.menu td span.no,
section.menu td span.no a
{
	color: gray;
}
section.menu input,
section.menu button,
section.menu select {
	font-size: 90%;
}
section.menu form.donateurs {
	margin-top: 20px;
}
section.menu form.plusMinus {
	padding: 0;
	display: inline;
}
section.menu form.plusMinus input {
	padding: 0;
	border: none;
	width: 1em;
}
section.menu td form input[type=text] {
	min-width: 3em;
}
section.menu form.addWine{
	margin-left: 2em;
	margin-bottom: 1em;
}
section.menu form.addWine label,
section.menu form.addWine input{
	display: block;
	width: 5em;
}
section.menu form.addWine table,
section.menu form.addWine th,
section.menu form.addWine td {
	border: none;
	text-align:left;
	margin-bottom: 0;
}
section.menu form.boutons {
	padding: 2px;
	display: inline;
}
section.menu form.boutons input {
	margin-top: 2em;
}
section.menu form.boutons input.adminButton {
	margin-left: 3em;
	color: gray;
}
section.menu form.boutons input.stockButton {
	margin-right: 3em;
}
@media screen and (max-width: 1100px){
	section.menu form {
		font-size: 120%;
	}
}
