ul.primary {
	position: relative;
	width: 100%;
	color: black;
	font-size: 0.8em;
	letter-spacing: -1px;
}

ul.primary li {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 30px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	transition: opacity 0.6s, background 0.1s;
	display: inline-block;
}

ul.primary li.subheader {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.9em;
}

ul.primary li.subheader div.child-2 {
	padding-left: 5px;
}

ul.primary li.top:hover, ul.primary li.top:nth-child(even):hover {
	background: lightblue;
}

ul.primary li.calcd {
	animation: shake 0.5s;
	animation-iteration-count: 1;
	background: lightblue !important;
}

ul.primary li.hide {
	display: none;
}

ul.primary li:nth-child(even) {
	background: rgb(253, 184, 39);
}

ul.primary li ul.secondary li {
	background: transparent;
}

ul.primary li div.child-1 {
	position: relative;
	float: left;
	width: 30%;
	min-width: 90px;
	display: inline-block;
}

ul.primary li div.child-1 div:nth-child(1) {
	font-weight: bold;
	top: 5px;
	position: relative;
}

ul.primary li div.child-1 div:nth-child(2) {
	font-size: 0.8em;
	top: 5px;
	position: relative;
}

ul.primary li div.child-2 {
	float: right;
	width: 65%;
	display: inline-block;
}

div.credits {
	position: absolute;
	width: 4%;
	top: 5px;
	right: 0px;
	text-align: right;
	min-width: 15px;
	height: 100%;
}

ul.secondary {
	position: relative;
	width: 94%;
	min-width: 120px;	
}

ul.secondary li:not(:last-child) {
	border-bottom: 1px solid black;
}

ul.secondary li div {
	clear: both;
}

ul.secondary li div:nth-child(1) {
	position: relative;
	font-weight: bold;
		width: 80px;
}

ul.secondary li div:nth-child(2) {
	font-size: 0.8em;
}

/*
ul.secondary li div {
	display: flex;
	flex-direction: column;
}

ul.secondary li div:nth-child(1) {
	font-weight: bold;
}

ul.secondary li div:nth-child(2) {
	font-size: 0.7em;
}
*/

ul.secondary li.output-A:before { content: 'AND'; }
ul.secondary li.output-O:before { content: 'OR'; }
ul.secondary li.output-A:before ,
ul.secondary li.output-O:before {
	display: block;
	position: absolute;
	left: 30px;
	top: -7.5px;
	background-color: black;
	color: white;
	padding-left: 5px;
	padding-right: 5px;
	z-index: 99;
	font-size: 12px;
	height: 14px;
}

@media screen and (min-width: 500px) {
	ul.secondary li div.title {
	}
}

@media screen and (min-width: 777px) {
	ul.primary li div.child-1 {
		width: 42%;
	}
	ul.primary li div.child-2 {
		width: 55%;
	}

	ul.primary li div.child-1 div:nth-child(1) ,
	ul.primary li div.child-1 div:nth-child(2) {
		display: inline-block;	
		font-size: 0.9em;
	}

	ul.primary li div.child-1 div:nth-child(1) {
		width: 80px;
	}

	ul.secondary li div,
	ul.secondary li div:nth-child(2) {
		display: inline-block;	
		font-size: 0.9em;
	}
}

@keyframes shake {
  0% { transform: translate(1px, 1px), rotate(0deg); }
  10% { transform: translate(-1px, -2px), rotate(-1deg); }
  20% { transform: translate(-3px, 0px), rotate(1deg); }
  30% { transform: translate(3px, 2px), rotate(0deg); }
  40% { transform: translate(1px, -1px), rotate(1deg); }
  50% { transform: translate(-1px, 2px), rotate(-1deg); }
  60% { transform: translate(-3px, 1px), rotate(0deg); }
  70% { transform: translate(3px, 1px), rotate(-1deg); }
  80% { transform: translate(-1px, -1px), rotate(1deg); }
  90% { transform: translate(1px, 2px), rotate(0deg); }
  100% { transform: translate(1px, -2px), rotate(-1deg); }
}

