/*** Barebones Overrides ***/
.grid-container {
	text-align: left;
	padding: 20px 0 20px 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Barlow", sans-serif;
	font-weight: bold;
}

button, input[type="submit"], input[type="reset"], input[type="button"]
	{
	height: unset;
	line-height: unset;
	box-sizing: unset;
}

td > input,select {
	margin-bottom: 0;
}

th:first-child, td:first-child {
	padding: 12px 15px;
}

th:last-child, td:last-child {
	padding: 12px 15px;
}

.grid-container input[type="submit"], input[type="reset"], input[type="button"]
	{
	height: 38px;
	line-height: 38px;
	box-sizing: border-box;
}

/*** Tagify Overrides ***/

.tagify {
	border-radius: 4px;
}

.tagify[readonly]:not(.tagify--mix) {
	border: none;
}

.tagify[readonly]:not(.tagify--mix) .tagify__tag {
    cursor: pointer;
}

.tagify[readonly]:not(.tagify--mix) .tagify__tag > div::before {
	background: var(--tag-bg);
}
.tagify[readonly]:not(.tagify--mix) .tagify__tag:hover > div::before {
    background: var(--tag-hover);
}

/*** HTML Elements ***/
@media ( min-width : 600px) {
	body {
		width: 100vw;
	}
}

ul {
	list-style: disc inside;
}

textarea {
	resize: none;
}

figure {
	display: inline-block;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
}

figcaption {
	padding: 2px;
	font-size: 65%;
	text-align: center;
}

/*** Shading ***/
.shaded {
	background-color: var(--code-background);
}

/*** Page Elements ***/

.pill {
	padding: .4rem .8rem;
	margin: .2rem .2rem .2rem .8rem;
	font-size: 60%;
	white-space: nowrap;
	background: var(--code-background);
	border: 1px solid var(--border-color-softer);
	border-radius: 12px;
}

.header {
	text-align: left;
}

.subhead {
	color: #aaaaaa;
	text-transform: uppercase;
	font-weight: bold;
}

.copyright {
	font-size: 0.9rem;
	font-style: italic;
	text-align: right;
}

.buttonbar {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 11px;
}

.button.fa-button {
	padding: 0px 10px;
}

a.fa-button {
	color: var(--text-color-softer);
}

a.fa-button:hover, a.fa-button:focus {
	color: var(--text-color-normal);
}

a .fas {
	vertical-align: middle;
	height: 26px;
}

.avatar {
	vertical-align: middle;
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

.thumbnail {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 5px;
	margin: 5px 5px 10px 5px;
	width: 50px;
	height: 50px;
	vertical-align: middle;
}

.multilinetext {
	min-height: 150px;
}

.file-btn {
	position: relative;
}

.file-btn input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

/*** Grid ***/
@media ( min-width : 600px) {
	.grid-container.threequarters {
		grid-template-columns: 3fr 1fr;
	}
	.header {
		margin-top: 10rem;
	}
}

@media ( min-width : 600px) {
    .grid-container.revthreequarters {
        grid-template-columns: 2fr 3fr;
    }
    .header {
        margin-top: 10rem;
    }
}

.grid-container.forcehalves {
	grid-template-columns: repeat(2, 1fr);
}

/*** Image Menus ***/
.menu-btn {
	width: 64px;
	height: 64px;
	padding: 8px;
	border-radius: 3px;
	display: inline-block;
}

.menu-btn:link, .menu-btn:visited, .menu-btn:hover, .menu-btn:active,
	.menu-btn:focus {
	text-decoration: none;
	color: inherit;
}

.menu-btn.selected {
	box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px
		4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
		rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
	color: var(--accent-color-hover);
	font-weight: bold;
}

.grid-container.imagemenu {
	grid-template-columns: repeat(3, 1fr);
}

@media ( min-width : 600px) {
	.grid-container.imagemenu {
		grid-template-columns: repeat(7, 1fr);
	}
}

/*** Full-Page Video ***/
.bgrVideoContainer {
	width: 100%;
	margin: 0 0;
	min-width: 100%;
	min-height: 100%;
	right: 0;
	bottom: 0;
}

#bgrVideo {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover
}

.videoOverlayCenter {
	position: fixed;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.5);
	color: #f1f1f1;
	margin: 0 0;
	padding: 3% 5%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

@media ( min-width : 600px) {
	.videoOverlayCenter {
		min-width: 600px
	}
}

.videoOverlayBottom {
	position: fixed;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #f1f1f1;
	width: 100%;
	padding: 20px;
}

/*** Croppie ***/
@media ( min-width : 600px) {
	.croppie-border {
		width: 300px;
		padding: 30px 30px 0px 30px;
		border: 1px solid var(--border-color-softer);
		border-radius: 4px;
	}
}

.croppie-border progress[value] {
	width: 146px;
}

.croppie-border input {
	margin-bottom: 0;
}

.croppie-container .upload-preview-wrap, .croppie-container.ready .upload-msg,
	.croppie-border progress[value] {
	display: none;
}

.croppie-container.ready .upload-preview-wrap {
	display: block;
}

.upload-preview-wrap {
	width: 300px;
	height: 300px;
	margin: 0px 0px 52px 0px;
}

.upload-msg {
	text-align: center;
	height: 200px;
	line-height: 200px;
	padding: 50px;
	font-size: 22px;
	color: #aaa;
	width: 200px;
	height: 200px;
	margin: 0px 0px 50px 0px;
	border: 1px solid #aaa;
}

/*** Alert message box ***/
.alert {
	padding: 20px;
	color: white;
	margin-bottom: 15px;
	opacity: 1;
	transition: opacity 0.6s;
}

.alert p, ul, ol {
	margin-top: 0;
	margin-bottom: 0;
}

.alert.error {
	background-color: #f44336;
}

.alert.warning {
	background-color: #ff9800;
}

.alert.info {
	background-color: #4CAF50;
}

.alertbtn {
	margin-left: 15px;
	color: white;
	font-weight: bold;
	float: right;
	font-size: 22px;
	line-height: 20px;
	cursor: pointer;
	transition: 0.3s;
}

.alertbtn:hover {
	color: black;
}

/*** Button Group ***/
.btn-group button {
	padding: 5px 12px; /* Some padding */
	cursor: pointer; /* Pointer/hand icon */
	float: left; /* Float the buttons side by side */
	border-radius: 0;
}

.btn-group button:first-child {
	border-radius: 4px 0 0 4px;	 	
}

.btn-group button:last-child {
	border-radius: 0 4px 4px 0;	 	
}

.btn-group button:not(:last-child) {
	border-right: none; /* Prevent double borders */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
	content: "";
	clear: both;
	display: table;
}

/*** Tabs ***/
.tab {
	overflow: hidden;
	background-color: #f1f1f1;
}

.tab button {
	background-color: inherit;
	margin-bottom: 0;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
	border-radius: 0;
}

.tab button:hover {
	background-color: #ddd;
}

.tab button.active {
	background-color: #ccc;
}

.tabcontent {
	display: none;
	animation: fadeEffect 1s;
}

@keyframes fadeEffect {
	from { opacity: 0; }
	to { opacity: 1; }
}

/*** NavBar ***/
.main {
	margin-top: 30px;
}

.navbar {
	overflow: hidden;
	background-color: #333;
	position: fixed;
	top: 0;
	width: 100%;
 	z-index: 1000;
 	box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.navbar a {
	float: left;
	display: block;
	color: #f2f2f2;
	text-align: center;
	padding: 10px 16px;
	text-decoration: none;
	transition: all 0.3s ease; 
	line-height: 28px;	
}

.navbar a:hover {
	background: #ddd;
	color: black;
}

.navbar a.active {
	background-color: #046DAA;
	color: white;
}

.navbar a.imgicon {
	padding: 8px 10px;
	line-height: 13px;	
}

.navbar img {
	width: 32px;
	height: 32px;
}

.navbar .navIcon {
	display: none;
}

.navbar form {
	margin-bottom: 0px;
}

.navbar .search-container {
	float: right;
	line-height: 13px;	
}

.navbar .search-container input[type=text] {
	border: none;
	height: 32px;
	margin-top: 8px;
	margin-bottom: 0px;
	border-radius: 4px 0 0 4px;
}

.navbar .search-container button {
	border: none;
	height: 20px;
	float: right;
	padding: 6px 10px;
	margin-top: 8px;
	margin-right: 16px;
	margin-bottom: 0px; 
	background: #ddd;
	font-size: 17px;
	cursor: pointer;
	border-radius: 0 4px 4px 0;
}

.navbar.search-container button:hover {
	background: #ccc;
}

@media screen and (max-width: 600px) {
	.navbar .search-container {
		float: none;
	}
	
	.navbar a:not(:first-child), .navbar .search-container {
		display: none;
	}
	
	.navbar a.navIcon  {
		float: right;
		display: block;
	}
	
	.navbar input[type=text], .navbar .search-container button {
		float: none;
		display: block;
		text-align: left;
		margin: 0;
		padding: 14px;	
		width: 100%;
	}
	
	.navbar input[type=text] {
		border: 1px solid #ccc;
	}
	
	.navbar.responsive {
		position: relative;
	}
	
	.navbar.responsive a.navIcon {
		position: absolute;
		right: 0;
		top: 0;
	}
	
	.navbar.responsive a, .navbar.responsive .search-container {
		float: none;
		display: block;
		text-align: left;
	}
}

/*** Gallery ***/

.splide__slide img, .splide__slide__container img {
    width : 100%;
    height: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.splide {
    border: 1px solid var(--border-color-softer);	
}

/*** Ratings ***/

.ratesum-container {
	margin: 0 auto;
	background-color: #EFEFEF;
	padding: 4px;
}

.ratesum-inner {
	padding: 1em;
	background-color: #F8F8F8;
	overflow: hidden;
	position: relative;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.ratesum-rating {
	float: left;
	width: 45%;
	margin-right: 5%;
	text-align: center;
}

.ratesum-rating-num {
	color: #333333;
	font-size: 72px;
	font-weight: 100;
	line-height: 1em;
}

.ratesum-rating-stars {
	font-size: 20px;
	color: #E3E3E3;
	margin-bottom: .5em;
}

.ratesum-rating-stars .active {
	color: #737373;
}

.ratesum-rating-users {
	font-size: 14px;
}

.ratesum-histo {
	float: left;
	width: 50%;
	font-size: 13px;
}

.ratesum-histo-star {
	float: left;
	padding: 3px;
}

.ratesum-histo-rate {
	width: 100%;
	display: block;
	clear: both;
}

.ratesum-bar-block {
	margin-left: 5px;
	color: black;
	display: block;
	float: left;
	width: 75%;
	position: relative;
}

.ratesum-bar {
	padding: 4px;
	display: block;
}

#bar-five {
	width: 0;
	background-color: #9FC05A;
}

#bar-four {
	width: 0;
	background-color: #ADD633;
}

#bar-three {
	width: 0;
	background-color: #FFD834;
}

#bar-two {
	width: 0;
	background-color: #FFB234;
}

#bar-one {
	width: 0;
	background-color: #FF8B5A;
}

/*** Favorite Button ***/

.custom-fa input[type="checkbox"] {
	position: absolute;
	left: -999px;
}

.custom-fa input[type="checkbox"]:focus + span {
	/* color: #46c0ef; */
}

.custom-fa label {
	cursor: pointer;
}

.custom-fa label input[type="checkbox"] + span:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	content: "";
	color: grey;
	display: inline-block;
	font-style: normal;
	font-size: 1.4em;
	text-align: center;
	letter-spacing: 6px;
}

.custom-fa label input[type="checkbox"]:checked + span:before {
    font-weight: 900;
	color: red;
}

.custom-fa label input[type="checkbox"]:indeterminate + span:before {
    color: blue;
}
