/***
	* CSS de l'application web Polygone Calculator
	* Auteur : Ghyslain Clement
	* date de début de conception 09 novembre 2023
	* date de mise à jour de ce fichier : 3 décembre 2023
	***/

html, body {
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	background-color: #c7c7c7;
}

body {
	width: 80%;
	margin: 0 auto;
	min-width: 750px;
	max-width: 1125px;
}

div {
	margin-left: auto;
	margin-right: auto;
}

header, footer {
	display:flex;
	background-color: #a9a9a9;
	height: 80px;
	position: absolute;
	width:100%;
	left:0px;
}

header {
	top:0px;
}

#header_container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 80%;
	max-width: 1125px;
	min-width: 750px;
}

.menu {
	width:150px;
	display:flex;
	flex-direction: row;
}

.menu#div_gauche_id {
	justify-content : start;
	margin-left:10px;
}

.menu#div_droite_id {
	justify-content : end;
	margin-right:10px;
}

.button {
	margin-left:10px;
	padding:15px;
	padding-left:0px;
}

.hidden_div {
	position: flex;
	justify-content: center;
	background-color: #a9a9a9;
}

h1 {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-block:0;
}

footer {
	position:absolute;
	bottom:0px;
}
main {
position: relative;
	max-width:1125px;
	min-width:750px;
	top:80px;
}

#form_div_id {
	border:solid black 1px;
	width:720px;
}

#form_div_id h3 {
	text-align:center;
	margin-block:0;
	color: rgb( 0 80 132 / 1);
	padding:5px;
}
/* || typography */

input[type='number']{
	width: 32px;
	text-align: right;
	padding-right: 3px;
	border-radius: 5px;
}

/*
td, th {
	font-family: 'Open Sans Condensed', sans-serif;
	font-size: 24px;
	text-align:center;
	vertical-align:center;
	margin:0px;
	}

th {
	background-color: #200f3b;
	color: #e2e2e2;
	padding:10px;
	padding-left:20px;
	padding-right:20px;
	border:solid black 1px;
	}

td {
	text-align:right;
	padding-right: 5px;
	border:solid black 1px;
	}

.vide {
	border:0px;
	}

.result {
	border-top: solid black 3px;
	}

.thleft {
	text-align:left;
	}
*/

h1 {
	font-size:3.1rem;
	color: #550000;
	color: #005084;
}
h2 {
	text-align:center;
	font-size:2rem;
}
h3 {
	font-size:1.8rem;
}
h4 {
	font-size:1.5rem;
}
h5 {
	font-size:1.2rem;
}
h6 {
	margin-block: 0;
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -20%);
	font-size:1.5rem;
	color: rgb( 0 80 132 / 1);
}
h6 :first-of-type {
	font-size:1.8rem;
}

#instructions {
	margin-bottom: 20px;
	line-height: 2em;
	z-index:999;
}

#polygon_container_id {
	width: 720px;
	height: 576px;
	position: relative;
	margin-bottom: 25px;
	margin-top: 25px;
}

svg {
	border: 1px solid #000;
/*	position: absolute;
	top: 0;
	left: 0; */
}

.position {
		border: 1px solid #000;
/*	display:flex;
	flex-wrap: wrap;*/

	display: grid;
/*  grid: 1fr 3fr; */
  grid-template: repeat(6, 1fr);
  	font-size: 90%;
	font-style:italic;
	vertical-align: -10%;
}

.position div {
	text-align: left;
	padding-left: 10px;
	padding-right: 10px;
}

#item1 {
	grid-area: 1 / 1 / 1 / 6;
}
#item19 {
	grid-area: 1 / 7 / 1 / 11;
}
#item20 {
	grid-area: 1 / 10 / 1 / 14;
}
#item2 {
	grid-area: 2 / 1 / 3 / 6;
}
#item3 {
	grid-area: 2 / 7 / 3 / 9;
}
#item4 {
	grid-area: 2 / 10 / 3 / 14;
}

#item5 {
	grid-area: 1 / 1;
}
#item6 {
	grid-area: 1 / 2;
}

#item7 {
	grid-area: 1 / 1;
}
#item8 {
	grid-area: 1 / 2;
}

#item9 {
	grid-area: 1 / 1;
}
#item10 {
	grid-area: 1 / 2;
}
#item11 {
	grid-area: 1 / 3;
}
#item12 {
	grid-area: 2 / 3;
}
#item16 {
	grid-area: 2 / 1 / 4 / 1;
}
#item17 {
	grid-area: 2 / 2 / 4 / 2;
}
#item18 {
	grid-area: 3 / 3;
}

#item13 {
	grid-area: 1 / 1;
}
#item14 {
	grid-area: 1 / 2;
}
#item15 {
	grid-area: 1 / 3;
}

.position input {
	vertical-align: middle;
}

#table-container {
	margin:20px auto;
	max-width:720px;
	
}

table {
	margin:0px;
	margin-top:5px;
	width:100%;
	max-width: 1200px;
	border: 1px solid #000;
	border-collapse:collapse;
}
	
td, th {
	padding:5px;
}
td {
	width:50px;
	border:solid black 1px;
	text-align:right;
}
/*	.centStyle {
		text-align:center;
	}
	.rightStyle {
		text-align:right;
	}*/
.titre {
	width:170px;
	margin:0px;
}
.titre1 {
	width:130px;
	margin:0px;
	border:0px;
}
.titre2 {
	width:60px;
	margin:0px;
	border:0px;
}
.result {
	border-top: solid black 2px;
}
/*
input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.number-input {
  border: 2px solid #ddd;
  display: inline-flex;
}

.number-input,
.number-input * {
  box-sizing: border-box;
}

.number-input button {
  outline:none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  margin: 0;
  position: relative;
}
*/

#remarque_id {
	color:#550000;
}
.quantity {
  position: relative;
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}
/*
input[type=number]
{
  -moz-appearance: textfield;
}

.quantity input {
  width: 45px;
  height: 42px;
  line-height: 1.65;
  float: left;
  display: block;
  padding: 0;
  margin: 0;
  padding-left: 20px;
  border: 1px solid #eee;
}

.quantity input:focus {
  outline: 0;
}

.quantity-nav {
  float: left;
  position: relative;
  height: 42px;
}

.quantity-button {
  position: relative;
  cursor: pointer;
  border-left: 1px solid #eee;
  width: 20px;
  text-align: center;
  color: #333;
  font-size: 13px;
  font-family: "Trebuchet MS", Helvetica, sans-serif !important;
  line-height: 1.7;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.quantity-button.quantity-up {
  position: absolute;
  height: 50%;
  top: 0;
  border-bottom: 1px solid #eee;
}

.quantity-button.quantity-down {
  position: absolute;
  bottom: -1px;
  height: 50%;
}
*/
div.position {
	line-height:1.5em;
	padding-block-start: 0.5em;
	padding-block-end: 0.5em;
	list-style-type: none;
}

div.position ul {
}

span.encours,
li.encours {
	color:#22aa22;
	font-style: italic;

}
span.pasfait,
li.pasfait {
	color:#dddddd;
	font-weight: bold;
}

@media screen and (max-width: 950px) {
	h1 {
		font-size:2.9em;
	}
}
@media screen and (max-width: 800px) {
	h1 {
		font-size:2.7em;
	}
}