@import url('https://fonts.googleapis.com/css2?family=Karla&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

html {
	font-family: 'Karla', sans-serif;
}

h2 {
	font-family: 'Roboto', sans-serif;
}

body {
	margin: 0px;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-x: hidden;
}

header {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

header div {
	margin: 1rem 2rem;
}

nav {
	white-space: nowrap;
	padding: 1rem 0px;
	display: flex;
	flex-direction: column;
	justify-content:flex-start;
	background-color: aquamarine;
}

nav div {
	position: sticky;
	top: 1rem;
}

nav div #checkbox-container {
	margin: 0px 1rem;
	display: flex;
	flex-direction: column;
	align-items: left;
	
}

nav div div {
	padding-right: 1rem;
	
}

nav div div h2 {
	text-align: center;
	
}

#content {
	display: flex;
	flex-direction: row;
	width: 100%;
}

section {
	width: 100%;
}

#left, #right {
	margin: 2rem 2rem;
	width: fit-content;
}

#text {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

#display-parameters {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

#left-par {
	/*margin-right: 1rem;*/
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#results-form input {
	background-color: lightgray;
}

#display-parameters form:nth-of-type(1) {
	margin-bottom: 1rem;
}

.button, #calc-title, #page-title {
	display: flex;
	justify-content: center;
}

legend {
	font-weight: bold;
	font-style: italic;
}

.button {
	margin-top: 2rem;
	margin-bottom: 2rem;
}





form  { display: table;      }
label { display: table-cell; }
input { display: table-cell; }

.plot {
	padding-right: 20px;
}



@media all and (max-width: 1220px) {
	#text, #display-parameters {
		display:flex;
		flex-wrap: wrap;
		flex-direction: column;
		align-items: center;
	}

	#content {
		flex-direction: column;
	}

	nav div #checkbox-container {
		flex-direction: unset;
		flex-wrap: wrap;
	}

	nav div {
		position: unset;
	}

	header {
		flex-direction: column;
		justify-content: unset;
		align-items: center;
	}
	
}


/* Custom CSS form */

input[type=text]
 { 
	background-color:white;
	border:solid 1px #E0E0E0;
	font-size:15px;
	color: black;
	-moz-border-radius:0px;
	-webkit-border-radius:0px;
	border-radius:0px;
	padding-top:5px;
	padding-bottom:5px;
	padding-left:10px;
	padding-right:10px;
	width:100%;
	font-family: 'Roboto', sans-serif;
	box-sizing:border-box;
}




 
/* the input fields on focus */ 
 input[type=text]:focus { 
	border-color:#2986cc;
	outline: none;
}


span.value { 
	margin-left: 0;
}
/* the field labels */ 
 label {
	font-size:15px;
	color:#757575;
	font-weight:normal;
	padding-top:5px;
	padding-bottom:5px;
	float:none;
	text-align:left;
	width:auto;
	display:block;
}
/* the submit button */ 
 button {

	margin:0;
	background-color:#2ca4bf;
	border:solid 1px #2ca4bf;
	font-size:16px;
	color:white;
	font-weight:normal;
	padding-top:10px;
	padding-bottom:10px;
	padding-right:30px;
	padding-left:30px;
	-moz-border-radius:0px;
	-webkit-border-radius:0px;
	border-radius:0px;
	width:10rem;
}
/* the submit button hover */ 
 button:hover {
	background-color:#1988a1;
	border-color:#1988a1;
	color:white;
}

/* hide the regular checkbox */
input[type=checkbox] {
    opacity: 0;
    position: absolute;
}

/* style the unchecked checkbox */
input+label:before {
    content: '';
    background:white;
    border: 1px solid#c7c7c7 ;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    padding: 0px;
    margin-right: 10px;
    text-align: center;
    font-size: 15px;
    line-height: normal;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
/* style the checked checkbox */
input:checked+label:before {
    content: "\2713";
    background:#2ca4bf;
    color:white;
    border-color:#2ca4bf;
}
