:root {
  --primary-bg-color: #f4f7f9;
  --primary-font-color: #444444;
  --primary-highlight-color: #000;
}
html {
  height: 100%;
}
body {
  font-size: 14px;
  min-height: 100dvh;
  background-color: var(--primary-bg-color);
  color: var(--primary-font-color);
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a:link,a:active,a:visited,a:hover {
  color: inherit;
  margin: 0 !important;
  text-decoration: none;
}
.secondary_content {
  background-color: var(--secondary-bg-color);
  color: var(--secondary-font-color);
}

.flex-container {
  list-style: none;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  flex-flow: row wrap;
  -webkit-flex-flow: row wrap;
  justify-content: space-around;
}

/* https://github.com/pablojim/highcharts-ng/issues/398 */
.flex-container {
  > div {
    width: 100%;
  }
}

.flex-item {
  flex: 1 1 0px;
/*
  text-align: center;
*/
}
.flex-set {
  gap: 1em;
  padding: 0em 1em;
  margin: 0 1em;
}

.rounded {
  border-radius: 14px;
  -moz-border-radius: 14px;
  -webkit-border-radius: 14px;
}

.sub_tag_container{
	display: inline-block;
	background-color:#eee;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
	padding: 0.4em;
	font-size:1.2em;
}
.sub_tag{
	display: inline-block;
  font-size: 1em;
  vertical-align: middle;
	color: #444;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
	padding:0.2em 0.7em;
	text-align: center;
}
.sub_tag.active {
	background-color: #fff;
}

.tag {
	background-color: #fff;
	font-size:1.2em;
	margin:0.5em;
	color: #444;
	display: inline-block;
	min-width:70px;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
	padding:0.2em 0.7em;
}
.tag_good {
	display: inline-block;
	width:60px;
	background-color: #d9534fcc;
	color: #444;
  border-radius: 6px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
	padding:0.2em 0.7em;
}
.tag_better {
	display: inline-block;
	width:60px;
	background-color: #E5A54Bcc;
	color: #444;
  border-radius: 6px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
	padding:0.2em 0.7em;
}
.tag_best{
	display: inline-block;
	width:60px;
	background-color: #4BBF73cc;
	color: #444;
  border-radius: 6px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
	padding:0.2em 0.7em;
}
/* begin slider switches */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--secondary-highlight-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-highlight-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* end slider switches */
/* set equal height and width on element */
.circle-text {
	background-color: var(--secondary-bg-color);
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
  margin: 5px 20px;
  display: flex;
  color: #fff;
}

.logo_large{
  content: var(--secondary-logo-large);
  max-height:50px;
  max-width:200px;
  vertical-align:middle;
}

.logo_small{
  content: var(--secondary-logo-small);
  max-height:30px;
  max-width:100px;
}


.full_page_div {
	display:grid;
	grid-template-columns:  1fr minmax(0,4fr);
 }

/* forms */
.form_field {
}


.form_field .label{
  display:block;
  font-size:1.0em;
  margin-bottom:0.4em;
}

.form_field input, .form_field textarea, .form_field select{
	background-color:#fff;
  width:100%;
  margin-bottom:1em;
  display: block;
  padding:1em;
/*
  padding:0.5rem;
  -moz-box-sizing: content-box;
  -webkit-box-sizing:content-box;
  box-sizing:content-box;
  height: 36px;
*/
  -moz-box-sizing: border-box;
  -webkit-box-sizing:border-box;
  box-sizing:border-box;
  border-radius: 4px;
  border: 1px solid #dbdbdb;
  font-family: inherit;
  font-size: 0.9em;
}
.required, .required_when_visible {
    background-image: -webkit-linear-gradient(left, rgba(255, 0, 0, 1) 0px, rgba(255, 255, 255, 0.02) 2px);
/*
    background-image: -moz-linear-gradient(left, rgba(255, 0, 0, 1) 0%, rgba(255, 255, 255, 0.02) 2%);
    background-image: linear-gradient(left, rgba(255, 0, 0, 1) 0%, rgba(255, 255, 255, 0.02) 2%);
*/
}

.button_edit_container {
	height:53px; /* needed for not(.enabled) transition */
  display: grid;
  grid-template-columns: auto min-content;
}
/* button_handle */
.button_handle {
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 1em 0em;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  font-size: 1.2em;
	color: var(--secondary-highlight-color);
  white-space: nowrap;
}

.clickable{
  cursor: pointer;
}
/*
.collapsible {
  padding-left:1.5em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.2s ease-out;
  font-size: inherit;
}
*/

/* hide */
.collapsible:not(.enabled) {
    font-size: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
    /* fade out, then shrink */
    transition: opacity .25s,
                font-size .5s .25s,
                margin .5s .25s,
                padding .5s .25s;
}
.collapsible:not(.enabled) .button_edit_container{
  transition: height 1s;
  height: 0;
}
/* reveal */
.collapsible.enabled {
  padding-left:1.5em;
    /* unshrink, then fade in */
    transition: font-size .25s,
                margin .25s,
                padding .25s,
                opacity .5s .25s;
}

/* menu */
.arrow {
	float: left;
  margin-top: 8px;
  border: solid var(--secondary-font-color);
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 2px;
  transition: transform 0.2s;
  transform: rotate(135deg);
  -webkit-transform: rotate(-45deg);
}
.active .arrow {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
.active .indicator{
	display:none;
}
.menu .edit{
	visibility:hidden;
	padding: 0.6em 0em 0.6em 2em;
	position:relative;
	align-content:center;
}
.menu .active .edit {
	visibility:visible;
}
.popup_div {
	position:absolute;
	z-index:1;
	bottom:45px;
	right:0;
	padding:1em;
	gap:1em;
	text-align:right;
	background-color: #bbbbbbe0;
	display: flex;
  flex-direction: column;
}
/*
.menu {
  font-size: 14px;
}
*/
.menu .header {
  font-size: 1.5em;
  margin-top: 0.5em;
}
.menu .button_handle .label {
  padding: 0 1em;
}
.menu .active .label {
  color: var(--secondary-highlight-color);
}
.menu .content {
  cursor: pointer;
}
/* to get scroll bars on menu content */
.menu {
  display: block;
  overflow: auto;
  min-height: 100dvh;
	max-height: 100dvh;
}

/* positional */
.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
}
.action_button{
	position:fixed;
	bottom:20px;
	right:20px;
	cursor:pointer;
}

/* modal */
.modal {
/*
    display:block;
    visibility:hidden;
*/
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 1.5em;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  max-width:calc(100% - 80px);
  max-height:calc(100vh - 5em);
  position: relative;
	overflow-y:auto;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  /*   border: 1px solid #888; */
  width: 300px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}
@-webkit-keyframes animateside {
    from {right:-300px; opacity:0}
    to {right:0; opacity:1}
} 
  
@keyframes animateside {
    from {right:-300px; opacity:0}
    to {right:0; opacity:1}
} 


/* The side navigation menu */
.modal-content-side {
  height: 100%;
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
	overflow:auto;
  -webkit-animation-name: animateside;
  -webkit-animation-duration: 0.4s;
  animation-name: animateside;
  animation-duration: 0.4s;
}
table.table_divider{
	border-collapse: collapse;
}
table.table_divider td {
	padding: 15px;
}
/*
table.table_divider:not(table.table_divider_options) tr:not(:first-child) td {
	border-top: 1px solid #eee;
}
table.table_divider.table_divider_options tr:nth-child(4n){
	border-top: 1px solid #eee;
}
*/

table.table_divider tbody tr:not(:first-child) {
	border-top: 1px solid #eee;
}

.table_comparison {
  border-collapse: collapse;
  text-align:center;
  margin: auto;
	font-size: clamp(8px, 3vw, 14px);
}
.table_comparison tr {
	height:5em;
	vertical-align:middle;
}
.table_comparison thead th {
	padding: 15px;
	vertical-align:bottom;
}
	
.table_comparison th:first-child,
.table_comparison td:first-child {
	background-color:#fff;
  text-align:left;
  position: sticky;
  left:0px;
}
.table_comparison tr:not(:first-child) td:nth-child(1){
	background-color:#fff;
}
.table_comparison.table_comparison_regions tbody tr:first-child,
.table_comparison.table_comparison_regions tbody tr:first-child td:first-child {
  padding: 2px !important;
  font-size:1em;
  font-weight:600;
  background: #fbfbfb;
	border-top: 1px solid #eee;
  white-space: nowrap;
}
.table_comparison.table_comparison_regions tbody.hide tr:not(:first-child):not(:last-child),
.table_comparison.table_comparison_regions tbody.hide tr:not(:first-child):not(:last-child) td {
    border: 0;
    font-size: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
    /* fade out, then shrink */
    transition: border .25s,
                opacity .25s,
                font-size .5s .25s,
                margin .5s .25s,
                padding .5s .25s;
}
table#details_table tbody:not(.hide) tr:not(:first-child):not(:last-child),
table#details_table tbody:not(.hide) tr:not(:first-child):not(:last-child) td {
    /* unshrink, then fade in */
    transition: border .25s,
                font-size .25s,
                margin .25s,
                padding .25s,
                opacity .5s .25s;
}
/*
table#options_table tr:nth-child(1) {
	vertical-align:bottom;
}
*/
/*
table#options_table tr:nth-child(even){
	font-size:0.7em;
	color:#888;
}
*/

/* item specific */
.title_bar {
	font-size:1.2em;
  padding: 0 1em;
  background-color: white;
  display: flex;
  gap: 1em;
  height: 70px;
  -webkit-box-shadow: 0 0 2rem #29304226;
  -moz-box-shadow: 0 0 2rem #29304226;
  box-shadow: 0 0 2rem #29304226;
}
#search {
	background-color: var(--primary-bg-color);
	border: none;
	padding: 0 2em 0 1em;
	line-height: 2em;
	border-radius: 12px;
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
}
#search_results{
	border: 1px solid #aaa; 
	background-color: var(--primary-bg-color);
	visibility:hidden;
	position: absolute;
	top: 50px;
  z-index: 1;
	padding:1em;
	margin:1em;
  border-radius: 6px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  -webkit-box-shadow: 0 0 1rem #29304226;
  -moz-box-shadow: 0 0 1rem #29304226;
  box-shadow: 0 0 1rem #29304226;
}

/* media queries */

@media (min-width: 1300px) {
  .small_only {
    display: none !important;
    visibility: hidden !important;
  }
	#search_results{ width: 600px; }
}
@media (max-width: 700px) {
  .medium_only {
    display: none !important;
    visibility: hidden !important;
  }
  .flex-item-100 {
		flex-basis: 100%;
	}
}
@media (max-width: 1600px) {
  .flex-item-50 {
    flex-basis: calc(50% - 50px) !important;
  }
}
@media (max-width: 1300px) {
  .full_page_div {
		grid-template-columns: minmax(0, 1fr);
  }
	.table_comparison_regions tbody tr:first-child {
    height:2em;
  }
  .large_only {
    display: none !important;
    visibility: hidden !important;
  }
	#search_results{ 
		width: 80vw;
		margin: 0 auto;
  	left: 50%;
  	left: 50%;
  	transform: translate(-50%, 0); 
	}
}
