/* CSS Document */

@font-face {
font-family: 'Playfair Display';
font-family: 'Lato';
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Lato', sans-serif;
  	color: black;
	text-align: center;
	background-color: #3cb9a9;
}

.send a:visited {
	color: red;
}

header {
	width: 100%;
	background-color: #ce4152;
	color: white;
	font-family: 'Lato';
	text-align: left;
	font-size: 30px;
	display: inline-block;
}
	header nav a {
		color: white;
	}

	header #left {
		float: left;
		width: 46.8%;
		padding: 0.8%;
		text-align: left;
	}
	
	header #right {
		float: right;
		width: 46.8%;
		padding: 0.8%;
		text-align: right;
		font-family:'Playfair Display';
		font-weight: 900;
		font-style: italic;
		color: white;
		margin: 0;
	}
	
	header nav {
		clear: both;
		display: inline-block;
		padding-bottom: 10px;
	}
	
		header nav .navItem {
			list-style: none;
			float: left;
			width: 120px;
			height: 120px;
			font-size: 0.7em;
			margin-left: 15px;
			-webkit-transition: background 0.3s linear;
			-moz-transition: background 0.3s linear;
			-ms-transition: background 0.3s linear;
			-o-transition: background 0.3s linear;
			transition: background 0.3s linear;
			text-align: center;
			padding: 10px;
			-webkit-border-radius: 10px;
			-moz-border-radius: 10px;
			border-radius: 10px;
		}
		
		header nav .navItem:hover {
			background: #d86775;
			cursor: pointer;
		}
		
		header #logOut {
			position: absolute;
			right: 20px;
			font-size: 14px;
		}
		
#banner {
	width: 100%;
	height:auto;
	margin-top: -5px;
	margin-bottom: -5px;
}

#middle {
	width: 90%;
	padding-left: 5%;
	padding-right: 5%;
	display: inline-block;
	background-color: white;
}
	
	#content {
		background: white;
		display: inline-block;
		width: 96%;
		margin-top: 1%;
		margin-left: auto;
		margin-right: auto;
		text-align: left;
		padding: 1%;
	}
	
	#content p, #content h1, #content h2, #content h3, #content ul, #content ul li a {
		color: black;
	}

	.left {
		float: left;
		margin-right: 150px;
	}
	
		.title {
		font-family:'Playfair Display';
			font-weight: 900;
			font-style: italic;
			color: black;
			font-size: 50px;
			text-align: center;
			margin: 0;
			margin-top: 15px;
		}

		
	#right {
		width: 50%;
		float: right;
	}

footer {
	width: 100%;
}

table {
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

table tr th {
	border-bottom: solid 1px grey;
}


/*GENERAL STYLES*/
a {
	color: black;
	text-decoration: underline;
}

nav a {
	text-decoration: none;
}

form {
  max-width: 450px;
  margin: 5% auto;
}

.formNoWidth {
	max-width: 100%;
}


.header {
  font-family:'Playfair Display';
  font-size: 35px;
  text-transform: uppercase;
  letter-spacing: 5px;
}


.description {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.3em;
  margin: -2px 0 45px;
}


.input {
  display: flex;
  align-items: center;
}


.button {
  height: 60px;
  font-size: 20px;
  width: 100%;
}

  
input {
  background: #FDFCFB;
  font-family: inherit;
  color: #999;
  letter-spacing: 1px;
  text-indent: 5%;
  border: 2px solid #3cb9a9;
  border-radius: 5px;
  margin-bottom: 10px;
}

.submitDiv {
  border: none;
  color: white;
  width: 40%;
  background: #ce4152;
  border-radius: 5px;
  transition: background .3s ease-in-out;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  line-height: 60px;
}

.submitDiv h2 {
  font-size: 30px;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}

.formSubmit {
	width: 100%;
}

.submitDiv:hover {
  background: #f0cb9f;
}
  

.submit:hover {
  background: #f0cb9f;
}
  

input:focus {
  outline: none;
  box-shadow: 0 0 2px #E86C8D;
}

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

input[type=number] {
    -moz-appearance:textfield;
}

.error {
	display: block;
	background: #ce4152;
	padding-top: 1%;
	padding-bottom: 1%;
}

input:required:invalid, input:focus:invalid {
    background-image: url(../adm/gfx/invalid.png);
    background-position: right center;
    background-repeat: no-repeat;
	border: 2px solid #ce4152;
  }
  input:required:valid {
    background-image: url(../adm/gfx/valid.png);
    background-position: right center;
    background-repeat: no-repeat;
  }
  
.radio {
	margin-bottom: 30px;
}

.radiobutton-label {  
  display: inline-block;  
  cursor: pointer;  
  position: relative;  
  padding-left: 25px;  
  margin-right: 15px;  
  font-size: 15px;  
}  

input[type="radio"] {
  display: none;
  margin: 10px;
}

.radiobutton-label:before {  
  content:"";
  display: inline-block;  
  width: 24px;      
  height: 24px;  
  margin-right: 10px;  
  position: absolute;  
  left: 0;  
  bottom: 1px;
}  

input[type=radio] + label:before {  
  background: url('https://www.csscheckbox.com/checkboxes/vlad.png') 2px 4px no-repeat;
}  

input[type=radio]:checked + label:before {  
  background: url('https://www.csscheckbox.com/checkboxes/vlad.png') 2px -18px no-repeat;
}  

/*MEDIA STYLES */
/* ----------------------------
         < 1900 Desktop 
   ---------------------------- */
	
	@media screen and (max-width: 1900px) {
		header {
			font-size: 30px;
		}
		
		.button {
			font-size: 30px;
		}
	}
	
	
/* ----------------------------
         < 1440 Desktop 
   ---------------------------- */
	
	@media screen and (max-width: 1440px) {
		header {
			font-size: 25px;
			
			.button {
			font-size: 30px;
		}
	}
	
	/* -----------------------------------
    < 1220 Desktop / Landscape Tablet
   ----------------------------------- */
	
	@media screen and (max-width: 1220px) {
		header {
			font-size: 20px;
		}
		
		.button {
			font-size: 30px;
		}
	}
	
	/* ----------------------------
       Portrait Tablet 
   ---------------------------- */
	
	@media screen and (max-width: 980px) {
		header {
			font-size: 20px;
		}
		
		.button {
			font-size: 30px;
		}
	}
	
	/* -------------------------------------
     Portrait Tablet < 740 (Nexus 7ish)
   ------------------------------------- */

	@media screen and (max-width: 740px) {
		header {
			font-size: 15px;
		}
		.submitDiv h2 {
			font-size: 20px;
			line-height: 25px;
			padding: 5px;
		}
		
		.button {
			font-size: 20px;
		}

	}
	
	/* ----------------------------
           Smartphones 
   ---------------------------- */

	@media screen and (max-width: 500px) {
		header {
			font-size: 12px;
		}
		.title {
			font-size: 18px;
		}
		
		.submitDiv h2 {
			font-size: 15px;
			line-height: 20px;
			padding: 5px;
		}

		.button {
			font-size: 20px;
		}
		
	}
	



	}





/*Tabell*/
	#table {
		display: table;
	 	
	 	width: 100%; 
	 	background: #fff;
	 	margin: 0;
	 	box-sizing: border-box;

	 }

	 .caption {
	 	display: block;
	 	width: 100%;
	 	background: #64e0ef;
	 	height: 55px;
	 	padding-left: 10px;
	 	color: #fff;
	 	font-size: 20px;
	 	line-height: 55px;
	 	text-shadow: 1px 1px 1px rgba(0,0,0,.3);
	 	box-sizing: border-box;
	 }


	 .header-row {
	 	background: #8b8b8b;
	 	color: #fff;

	 }

	.row {
		display: table-row;
	}

	.cell {
		display: table-cell;
		
		padding: 6px; 
		border-bottom: 1px solid #e5e5e5;
		text-align: right;
	}

	.primary {
		text-align: left;
	}

	

	@media only screen and (max-width: 760px)  {
		#table {
			display: block;
			margin: 44px 0 0 0;
		}

		.caption {
			position: fixed;
			top: 0;
			text-align: center;
			height: 44px;
			line-height: 44px;
			z-index: 5;
			border-bottom: 2px solid #999;
		}

		.row { 
			position: relative;
			display: block;
			border-bottom: 1px solid #ccc; 

		}

		.header-row {
			display: none;
		}
		
		.cell { 
			display: block;

			border: none;
			position: relative;
			height: 45px;
			line-height: 45px;
			text-align: left;
		}

		.primary:after {
			content: "";
			display: block;
			position: absolute;
			right:20px;
			top:18px;
			z-index: 2;
			width: 0; 
			height: 0; 
			border-top: 10px solid transparent;
			border-bottom: 10px solid transparent; 
			border-right:10px solid #ccc;

		}

		.cell:nth-of-type(n+2) { 
			display: none; 
		}


		input[type="radio"],
		input[type="checkbox"] {
			display: block;
			position: absolute;
			z-index: 1;
			width: 99%;
			height: 100%;
			opacity: 0;
		}
    
    input[type="radio"]:checked,
		input[type="checkbox"]:checked {
		  z-index: -1;
		}

		input[type="radio"]:checked ~ .cell,
		input[type="checkbox"]:checked ~ .cell {
			display: block;

			border-bottom: 1px solid #eee; 
		}

		input[type="radio"]:checked ~ .cell:nth-of-type(n+2),
		input[type="checkbox"]:checked ~ .cell:nth-of-type(n+2) {
			
			background: #e0e0e0;
		}

		input[type="radio"]:checked ~ .cell:nth-of-type(n+2):before,
		input[type="checkbox"]:checked ~ .cell:nth-of-type(n+2):before {
			content: attr(data-label);

			display: inline-block;
			width: 60px;
			background: #999;
			border-radius: 10px;
			height: 20px;
			margin-right: 10px;
			font-size: 12px;
			line-height: 20px;
			text-align: center;
			color: white;

		}

		input[type="radio"]:checked ~ .primary,
		input[type="checkbox"]:checked ~ .primary  {
			border-bottom: 2px solid #999;
		}

		input[type="radio"]:checked ~ .primary:after,
		input[type="checkbox"]:checked ~ .primary:after {
	 		position: absolute;
			right:18px;
			top:22px;
			border-right: 10px solid transparent;
			border-left: 10px solid transparent; 
			border-top:10px solid #ccc;
			z-index: 2;
		}
	}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

.align-right {
	text-align: right;
}
.align-left {
	text-align: left;
}




#invoice #middle {
	text-align: left;
}

#invoice #middle table {
	text-align: left;
	margin-left: 0;
	width: 100%;
}


#invoice #middle #h {
	width: 100%;
	clear: both;
	display: inline-block;
	margin-bottom: 100px;
}

	#invoice #middle #h #left-side {
		width: 50%;
		float: left;
	}
	
	#invoice #middle #h #right-side {
		width: 40%;
		float: right;
	}
	#invoice #detalis {
		width: 100%;
		float: left;
	}