/* Maybe shrink Intro form when submitted, also shrink and move when split evenly is pressed? always keep on page tho -then generate forms - 
then generate divs after hiding others
WORK ON STYLING NOW, INTEGRATE WITH DISPLAY STATES
*/
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}
/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}
/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}
/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}
/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}
/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}
/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}
/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}
/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}
/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}
/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}
/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}
/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}
/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}
/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}
/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}
/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}
/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}
html, body{
	font-family: 'Raleway', 'sans-serif';
	box-sizing:border-box; 
	color:#06070B;
	font-size:14px;

	background-color:rgba(22,132,76,.8);
}
@media(min-width:510px){
html, body{
		font-size:16px;
}
	}
body{
	box-sizing:border-box;
	margin:0;
	padding:0;
	width:100%;
	min-height:100%;

}
.wrapper{
	width:95%;
	margin:0 auto;

}
@media(min-width:510px){
.wrapper{
	width:90%;
	margin:0 auto

}
	}
input[type=number], input[type=text]{
	width:125px;
	height:25px;
	border-radius:5px;
	background-color: #70A3C1;
	border:1px solid #49484c;
	color:black;
	font-family:'Times New Roman';
}
input[type=number]:focus, input[type=text]:focus{
	outline:none;
	background-color:rgba(135,176,242,.8);
}
input::placeholder{
	color:black;

}
.intro{
	
	font-size:1.1rem;


}
@media(min-width:700px){
.intro{
		font-size:1.3rem


}
	}
.intro__header{
		width:100%;
		height:125px;
		text-align:center;
	}
.intro__icon{
		width:10%;
		display:inline-block;
		margin-bottom:-5px;
	}
@media(min-width:700px){
.intro__icon{
			width:10%;
			margin-bottom:-12px
	}
	}
@media(min-width:900px){
.intro__icon{
			max-width:78px;
			max-height:78px
	}
	}
.intro h1{
		display:inline-block;
		text-align:center;

	}
.intro p{
		line-height:1.25;
	}
.intro__form{
		text-align:center;
		width:80%;
		margin:0 auto;
		font-size:1.2rem;
		margin-bottom:5px;
		flex-basis:100%;
	}
.intro__form .person-amount{
			margin-bottom:-10px;
		}
@media(min-width:700px){
.intro__form{
			width:50%;
			font-size:1.2rem;
			flex-basis:50%
	}
	}
@media(min-width:900px){
.intro__form{
			font-size:1.3rem
	}
	}
.intro__form--split-evenly-form{
			display:none;
		}
.intro__form-container{
		display:flex;
		flex-wrap:wrap;
		justify-content:center;
		align-items:baseline;
		margin-bottom:30px;
	}
.btn{
	padding:5px;
	box-shadow:black 1px 1px 1px;
	background-color:white;
}
.btn--large{
		font-size:1.1rem;
	}
@media(min-width:900px){
.btn--large{
			font-size:1.4rem
	}
	}
.btn__clicked{
	box-shadow:none;
	}
.btn:hover{
	font-weight:600;
	background-color:rgba(0,135,255,.7);
	border:1px solid rgb(0,135,255);
}
#split-evenly{
	padding:3px;
	font-size:1.1rem;
	
}
#clear-fields{
	display:block;
	margin:auto;
	margin-top:-5px;
}
#submit-forms{
	font-size:1.5rem;
}
.person-forms{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	margin-bottom:5px;
}
.person-forms .person{
		font-size:1.4rem;
		text-align:center;
		margin:5px;
		padding:5px;
		flex-basis:100%;
	}
@media(min-width:700px){
.person-forms .person{
			flex-basis:45%
	}
	}
@media(min-width:900px){
.person-forms .person{
			flex-basis:30%
	}
	}
.person-forms .person__border{
			border:3px solid #06070B;
			width:60%;
			margin:5px auto;
			padding-top:10px;
			padding-bottom:10px;
			background-color:#C2C8CB;
			background-color:rgba(255,231,223, .7);
		}
@media(min-width:700px){
.person-forms .person__border{
				padding:10px
		}
	}
.person-forms input[type=text], .person-forms input[type=number]{
		width:100px;
	}
@media(min-width:510px){
.person-forms input[type=text], .person-forms input[type=number]{
			width:125px
	}
	}
@media(min-width:700px){
.person-forms input[type=text], .person-forms input[type=number]{
			width:150px
	}
	}
.person-forms .btn{
		margin-top:5px;
	}
.shared-tax-tip{
	border:3px solid #06070B;



}
@media(min-width:900px){
.shared-tax-tip{
		margin-left:10%;
		margin-right:10%



}
	}
.shared-tax-tip__shared-items--title{
			width:50%;
			text-align:center;
			margin:0 auto;
			border-bottom:3px dotted #06070B;
			margin-bottom:8px;
			display:block;
		}
.shared-tax-tip__shared-items--container{
			width:100%;
			margin:0 auto;
			text-align:center;
			display:flex;
			flex-wrap:wrap;
			justify-content:center;
			margin-bottom:5px;
		}
.shared-tax-tip .shared-item{
		flex-basis:100%;
		margin-bottom:10px;
		font-size:1.1rem;
	}
@media(min-width:700px){
.shared-tax-tip .shared-item{
			font-size:1.3rem;
			flex-basis:50%
	}
	}
@media(min-width:700px){
.shared-tax-tip .shared-item{
			flex-basis:30%
	}
	}
.shared-tax-tip .btn{
		display:block;
		margin:0 auto;
		margin-bottom:10px;
	}
.shared-tax-tip__tax-box{
		text-align:center;
		font-size:1.2rem;
	}
.shared-tax-tip__tax-box--title{
			width:25%;
			text-align:center;
			margin:0 auto;
			border-bottom:3px dotted #06070B;
			margin-bottom:8px;
		}
.shared-tax-tip__tax-box--container{
			display:flex;
			flex-wrap:wrap;
			justify-content:center;
		}
.shared-tax-tip__tax-box .tax-input{
			margin:5px;
		}
.shared-tax-tip__tip--title{
			width:25%;
			text-align:center;
			margin:0 auto;
			border-bottom:3px dotted #06070B;
			margin-bottom:8px;
		}
.shared-tax-tip__tip fieldset{
			border:none;
			padding:0;
		}
.shared-tax-tip__tip ul{
			margin:0;
			text-align:center;
			margin-bottom:10px;
			padding:0;
		}
.shared-tax-tip__tip li{
		font-size:1.2rem;
		list-style:none;
		display:inline-block;
		text-align:center;
		margin:5px;
		margin-left:0;
		}
.footer{
	text-align:center;
	font-size:1.1rem;


}
@media(min-width:700px){
.footer{
		font-size:1.3rem


}
	}
@media(min-width:900px){
.footer{
		font-size:1.5rem


}
	}
.footer__row{
		display:flex;
		justify-content:space-around;
		align-items:center;
	}
.footer img{
		width:30px;
	}
@media(min-width:700px){
.footer img{
			width:40px
	}
	}
.display-state{
	text-align:center;
	font-size:1.2rem;

}
.display-state .container{
		display:flex;
		flex-wrap:wrap;
		justify-content:center;
	}
.display-state .person-box{
		margin:30px;
		padding:20px;
		border:1px solid #06070B;
		flex-basis:100%;
		background-color:rgba(255,231,223, .7);
	}
@media(min-width:700px){
.display-state .person-box{
			flex-basis:20%
	}
	}
.display-state .person-box__tip-subtotal{
			width:70%;
			margin:0 auto;
			border-bottom:1px dashed #06070B;
		}
.display-state .grand-totals{
		background-color:rgba(255,231,223, .7);
		flex-basis:100%;
		border:1px solid #06070B;
		margin-left:5%;
		margin-right:5%;
	}
@media(min-width:700px){
.display-state .grand-totals{
			margin-left:10%;
			margin-right:10%
	}
	}
.display-state .grand-totals__tip-total{
			width:50%;
			margin:0 auto;
			border-bottom:1px dashed #06070B;
		}
.split-evenly-state{
	text-align:center;
}
.split-evenly-state .person-box__se{
		border:3px solid #06070B;
		margin-left:5px;
		margin-right:5px;
		padding:10px;
		margin-bottom:10px;
		background-color:rgba(255,231,223, .7);
	}
.split-evenly-state .person-box__se--main-heading{
			
		}
.split-evenly-state .person-box__se--container{
		display:flex;
		flex-wrap:wrap;
		justify-content:center;
		}
.sticky-header{
	position:fixed;
	display:flex;
	justify-content:space-between;
	top:0%;
	background-color:mistyrose;
	align-items:center;
	height:auto;
	-webkit-transform: translate3d(0,0,0);
	-webkit-backface-visibility: hidden;
}
.sticky-header .left{
		flex-basis:50%;
		text-align:left;
		font-size:.9rem;
		margin-left:20px;
	}
.sticky-header .left img{
			width:45px;
			max-width:50px;
			margin-top:-5px;

		}
@media(min-width:700px){
	}
@media(min-width:900px){
	}
@media(min-width:700px){
.sticky-header .left h1{
				margin-bottom:-10px
		}
	}
.sticky-header #clear-fields{
	display:inline-block;
	margin-top:0;
	margin-bottom:0;
	flex-basis:50%;
	margin-right:20px;
	
	}
.sticky-header + .intro-text{
	position:relative;
}
.error{
	text-align:center;
	background-color:#D46A6A;
	color:white;
	font-weight:600;
	font-size:1.3rem;
	padding:30px;
	border:3px dashed black;

}
/* wrap tax box after certain width, consider same with forms
color!*/