/*
	* custom css
*/

/* 
	* bootstrap css additions and changes
*/

/*
	* dark mode customisation
*/

[data-bs-theme="dark"] {
	--bs-body-bg: #2c363e;
}

/* navbar dropdown align left + no margin to loose hover */
.nav-item.dropdown > .dropdown-menu  {
	right: auto;
	left: 0;
	margin-top: 0px;
}

/* navbar hover auto open */
@media (min-width: 992px) {
	.nav-item.dropdown:hover > .dropdown-menu  {
		display: block;
		right: auto;
		left: 0;
		margin-top: 0px;
   }
}


/* custom aspect ratio */
.ratio-9x16 {
	--bs-aspect-ratio: 177.7777777778%;
}

/*the container must be positioned relative:*/
.autocomplete {
	position: relative;
	display: inline-block;
}

#main_search {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.autocomplete-items {
	position: absolute;
	border: 1px solid #d4d4d4;
	border-bottom: none;
	border-top: none;
	z-index: 99;
	/*position the autocomplete items to be the same width as the container:*/
	top: 100%;
	left: 0;
	right: 0;
	/* enable scrolling */
	height: auto;
	max-height: 90vh;
	overflow-x: hidden;
}


.autocomplete-items div {
	padding: 10px;
	cursor: pointer;
	background-color: #fff; 
	/*background-color: var(--bs-body-bg);*/
	border-bottom: 1px solid #d4d4d4; 
}


/*when hovering an item:*/
.autocomplete-items div:hover {
	background-color: #e9e9e9; 
}


/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
	background-color: DodgerBlue !important; 
	color: #ffffff; 
}

.pollchart {
	position: relative;
	height: 150px;
}

/* table toolbar imput group buttons */
.inline-inputgroup {
	width: auto !important;
	float: right;
}

.icon-link {
	align-items: unset;
}

.dropdown-scrollable {
   height: auto;
   max-height: 250px;
   overflow-x: hidden;
}

/* make bootstrap-table adhere to bootstrap text color */
.bootstrap-table tbody td, .bootstrap-table thead th {
   color: var(--bs-body-color);
}

/* make table detail + column static size */
.bootstrap-table .fixed-table-container .table thead th.detail {
	width: 30px;
	min-width: 30px;
}

.bootstrap-table .fixed-table-toolbar .bs-bars {
	margin-top: 5px;
	margin-bottom: 3px;
}

.bootstrap-table .fixed-table-toolbar .search {
	margin-top: 5px;
	margin-bottom: 3px;
}

.rank_column {
	width: 60px;
	min-width: 60px;
}

.shooter_profile_column {
	width: 30px;
	min-width: 30px;
}

.social_column {
	width: 20px;
}

.gun_column {
	display: flex;
	min-width: fit-content;
}

.table_gun_image {
	min-width: 100px;
	min-height: 1px;
	max-width: fit-content;
	/* margin-left: auto; */
	margin-right: auto;
}
.table_gun_text {
	min-width: 100px;
	min-height: 1px;
	max-width: fit-content; 
	margin-right: auto;
}
.table_sponsor_image_div {
	display: flex; 
	min-width: fit-content; 
	/*  align-items: center; */
	justify-content: center;
}

.card_image {
	overflow: hidden;
}

.profile-row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

.profile-column {
	width: 49%;
	min-width: 300px;
	display: flex;
	margin-bottom: 10px;
}


.profile_image_container {
	position: relative;	
	width: fit-content;
	margin: 0 auto;
}

.profile-image {
	max-height: 350px;
	object-fit: contain;
}

.image_placeholder {
	aspect-ratio: 1 / 1;
	background-size: contain;
	background-position: center center;
	background-color:#CCCCCC;
	background-repeat:no-repeat;
	text-align: center;
	/* box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.1); */
	display: grid;
}

}

.profile-video {
	max-height: 300px;
	object-fit: contain;
}


.profile-sponsor-image-div {
	display: flex;
	min-width: fit-content;
	align-items: center;
	justify-content: center;
}

.profile-sponsor-image {
	object-fit: contain;
	max-height: 100px;
	max-width: 200px;
	aspect-ratio: auto;
}

.profle-rating-chart-div {
	position: relative;
	width: 100%;
	min-height: 350px;
}

.statistics-col {
	object-fit: contain;
	min-width: fit-content;
}
.statistics-chart-div {
	position: relative;
	width: 98%;
	min-width: 260px;
}
.statistics-chart-div-wide {
	position: relative;
	width: 98%;
	min-width: 260px;
	min-height: 400px;
}
.statistics-chart-div-top10 {
	position: relative;
	width: 98%;
	min-width: 260px;
	min-height: 300px;
}

.img-maxh-100 {
	max-height: 100%;
}

.img-maxh-90 {
	max-height: 90%;
}

.image_zoom_icon {
   font-size: 1rem;
   position: absolute;
   top: 6px;
   right: 4px;
}
.image_zoom_icon_shooterprofile {
   font-size: 1rem;
   position: absolute;
   top: 45px;
   right: 4px;
}

.carousel-margin {
	margin-top: 2rem !important
}

.gun_image_container {
	position: relative;	
	width: fit-content;
	margin: 0 auto;
}

.gun-image {
	object-fit: contain;
	width: 250px;
	height: max-content;
	aspect-ratio: auto;
}
.gun-image-description {
	margin-left: 20px;
	margin-right: 20px;
}

.gun-image-table {
	object-fit: contain;
	/* height: 100px; */
	/* width: max-content; */
	aspect-ratio: auto;
	max-width: 100px;
}
.table-sponsor-image {
	object-fit: contain;
	max-height: 100px;
	max-width: 130px;
	aspect-ratio: auto;
}


.col-profile-fixed {
	width: 3.5em;
	height: 100%;
}
.col-profile-images {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.vericalsocial-big {
	min-width: 40px;
	float: left;
	font-size: 1.2em;
	letter-spacing: 1px;
	text-align: center;
}

.vertical-big {
	min-width: 40px;
	float: left;
	font-size: 1.7em;
	writing-mode: vertical-lr;
	text-orientation: upright;
	-webkit-text-orientation: upright;
	letter-spacing: 1px;
}

.vertical-small {
	min-width: 45px;
	font-size: 0.75em;
	writing-mode: vertical-lr;
	text-orientation: upright;
	-webkit-text-orientation: upright;
	display: flex;
	align-items: center; 
}

.vertical-social {
	padding-top: 3px;
	padding-left: 4px;
	min-width: 45px;
	font-size: 1.25em;
	writing-mode: vertical-lr;
	text-orientation: upright;
	-webkit-text-orientation: upright;
	display: flex;
	align-items: center; 
}

.upload_input {
	width: 0px;
	height: 0px;
	overflow: hidden;
}

.big_icons {
	font-size: 1.5em;
}

.mt-6 {
	margin-top: 4rem !important;
}

.pt-6 {
	padding-top: 4rem !important;
}

.fs-1-5 {
	font-size: calc(1.375rem + 0.1vw) !important;
}

.accordion {
	--bs-accordion-btn-color: var(--bs-gray-900);
	--bs-accordion-btn-bg: var(--bs-gray-100);
	--bs-accordion-active-color: var(--bs-gray-900);
	--bs-accordion-active-bg: var(--bs-gray-400);
}

/* carousel indicator */
.carousel-info-indicators {
	position: unset;
	margin-top: 0px !important;
}
.carousel-info-lead {
	font-size: 1.25rem;
	font-weight: 300;
}

.carousel-control-next-shooterprofileimages, .carousel-control-prev-shooterprofileimages {
	align-items: start !important;
	height: 40px !important;
	padding-top: 10px;
	padding-bottom: 10px;
}
.carousel-shooterprofileimages-indicators {
	bottom: unset;
	opacity: .4;
	margin-top: 25px;
}

[data-bs-theme=dark] .carousel-otw,
[data-bs-theme=dark].carousel-otw {
	background-color: #bbbbbb;
}

[data-bs-theme=dark] .carousel a.carousel_link,
[data-bs-theme=dark] .carousel a.carousel_link, [data-bs-theme=dark].carousel a.carousel_link,
[data-bs-theme=dark].carousel a.carousel_link {
	color: #0d6efd;
}


[data-bs-theme="light"] .carousel .carousel-control-prev-icon,
[data-bs-theme="light"] .carousel .carousel-control-next-icon,
[data-bs-theme="light"].carousel .carousel-control-prev-icon,
[data-bs-theme="light"].carousel .carousel-control-next-icon {
	filter: none;
}

[data-bs-theme=dark] .carousel .carousel-control-prev-icon,
[data-bs-theme=dark] .carousel .carousel-control-next-icon, [data-bs-theme=dark].carousel .carousel-control-prev-icon,
[data-bs-theme=dark].carousel .carousel-control-next-icon {
	filter: invert(30) grayscale(100);
}

[data-bs-theme="light"] .carousel .carousel-indicators,
[data-bs-theme="light"] .carousel .carousel-indicators,
[data-bs-theme="light"].carousel .carousel-indicators,
[data-bs-theme="light"].carousel .carousel-indicators {
	filter: none;
}

[data-bs-theme=dark] .carousel .carousel-indicators,
[data-bs-theme=dark] .carousel .carousel-indicators, [data-bs-theme=dark].carousel .carousel-indicators,
[data-bs-theme=dark].carousel .carousel-indicators {
	filter: invert(30) grayscale(100);
}

[data-bs-theme=dark] .accordion .accordion-button::after,
[data-bs-theme=dark] .accordion .accordion-button::after, [data-bs-theme=dark].carousel .accordion-button::after,
[data-bs-theme=dark].accordion .accordion-button::after {
	filter: invert(30) grayscale(100);
}


[data-bs-theme=dark] .modal .btn-close,
[data-bs-theme=dark] .modal .btn-close, [data-bs-theme=dark].modal .btn-close,
[data-bs-theme=dark].modal .btn-close {
	filter: invert(100);
}

[data-bs-theme=dark] .modal .modal-header,
[data-bs-theme=dark] .modal .modal-header, [data-bs-theme=dark].modal .modal-header,
[data-bs-theme=dark].modal .modal-header {
	background-color: #666666;
}

[data-bs-theme=dark] .modal .modal-footer,
[data-bs-theme=dark] .modal .modal-footer, [data-bs-theme=dark].modal .modal-footer,
[data-bs-theme=dark].modal .modal-footer {
	background-color: #666666;
}

[data-bs-theme=dark] .table_loading,
[data-bs-theme=dark].table_loading {
	background-color: #2c363e;;
}


.table_loading {
	width: 100%;
	height: 100%;
	text-align: center;
	padding-top: 0.8em;
	padding-bottom: 0.8em;
}


.carousel-profileimages-indicators {
	bottom: unset;
	opacity: .4;
}
.carousel-control-next-profileimages, .carousel-control-prev-profileimages {
	align-items: start !important;
	height: 248px !important;
}

.carousel-control-next-icon-profileimages, .carousel-control-prev-icon-profileimages {
	width: 1.5rem;
	height: 1.5rem;
}	

.carousel-otw {
	min-height: 300px;
	background-color: #eeeeee;
}
.carousel-control-next-otw, .carousel-control-prev-otw {
	width: 5%;
}
.carousel-control-next-icon-otw, .carousel-control-prev-icon-otw {
	width: 4rem;
	height: 4rem;
}
.carousel-otw-indicators {
	bottom: -20px;
	margin-bottom: unset;
	opacity: .4;
}

.carousel-otw-lead {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 1.0rem;
}

.carousel-otw-gun {
	height: 30vh;
	min-height: 100%;
	object-fit: contain;
}
.carousel-otw-image-gun {
	max-height: 243px;
}
.gun_image_container_otw {
	position: relative;
	width: fit-content;
	margin: 0 auto;
}
.match_image_container_otw {
	position: relative;
	width: fit-content;
	margin: 0 auto;
}
.general_image_container {
	position: relative;
	width: fit-content;
}

.carousel-otw-lead-match {
	font-size: 1.3rem;
	font-weight: 300;
	margin-bottom: 0px;;
}
.carousel-otw-image-match {
	max-height: 260px;
}



/* navbar globe icon */
.navbar-globe-icon {
	font-size: 1.5rem;
	color: white;
	padding-right: 1rem;
}

/* site footer */
.site-footer {
	margin-top: 3rem;
	min-height: 3rem;
}

/* site footer */
.site-footer-content {
	color: rgba(255, 255, 255, 0.55);
	margin: 1rem;
	text-align: center;
}

/* medal colors */
.medal-presidents {
	color: #d4af37;
}
.medal-gold {
	color: #FFD700;
}
.medal-silver {
	color: #C0C0C0;
}
.medal-bronze {
	color: #CD7F32;
}

/* profile image upload */
.image_preview {
	aspect-ratio: 1 / 1;
	background-size: contain;
	background-position: center center;
	background-color:#CCCCCC;
	background-repeat:no-repeat;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	text-align: center;
	box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.1);
	display: grid;
	/* place-items: center; */
}

.image_preview_icon {
	color: #888888;
	font-size: 2em;
	padding-top: 70px;
}
.image_preview_col {
	min-width: 160px;
}
.image_placeholder_icon {
	color: #888888;
	font-size: 3em;
	display: flex;
	justify-content: center;
	align-items: center;
}
.image_placeholder_icon_small {
	color: #888888;
	font-size: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn-image_upload {
	display: block;
	border-radius: 0px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	/* margin-top:-6px; */
}

.nowrap {
	white-space: nowrap;
}


.fs-bigger {
   font-size: 1.05rem;
}

/*
	* custom modal header and footer
*/
.modal-header {
	background-color: #cfcfcf;
}
.modal-footer {
	background-color: #cfcfcf;
}

/*
	* site maintainance mode
*/
.site_maintenance {
	text-align: center;
}
.icon_huge {
	font-size: 15em;
}
