/*
 Theme Name:   Iditarod 2025
 Description:  Hello Elementor Child Theme
 Version:      1.0
 Template:     hello-elementor
*/

:root {
	--itc-content-width: 1200px;
	--itc-twocol-content-width: 800;
	--itc-twocol-sidebar-width: 400px;
	--itc-twocol-gap-size: 1em;
}

.itc-lockdown input[type=password] {
	width: auto;

}


/* Easy toggle switch */

/*
Markup example:
<label class="toggle-switch">
	<input type="checkbox" class="assignment-toggle" checked="checked">
	<span class="slider round"></span>
</label>
*/

 /* The switch - the box around the slider */


 .toggle-switch {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 20px;

	--default-bgcolor: #666;
	--checked-bgcolor: #2196F3;
	--disabled-bgcolor: #ccc;
}

/* Hide default HTML checkbox */
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.toggle-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--default-bgcolor);
	-webkit-transition: .4s;
	transition: .4s;
}

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

.toggle-switch input:checked + .slider {
	background-color: var(--checked-bgcolor);
}

.toggle-switch input:disabled + .slider {
	background-color: var(--disabled-bgcolor);
}

.toggle-switch input.processing + .slider {
	opacity: .5;
}


.toggle-switch input:focus + .slider {
	box-shadow: 0 0 1px var(--checked-bgcolor);
}

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

/* Rounded sliders */
.toggle-switch .slider.round {
	border-radius: 10px;
}

.toggle-switch .slider.round:before {
	border-radius: 50%;
}

/* Large styling of toggle */
.toggle-switch.toggle-switch-large {
	width: 60px;
	height: 34px;
}

.toggle-switch.toggle-switch-large .slider.round {
	border-radius: 34px;
}

.toggle-switch.toggle-switch-large .slider:before {
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
}

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

.twocol #content,
.racepage #content
{
	margin: 0 auto;
	padding: 1em 2em;

	display: flex;
	gap: var(--itc-twocol-gap-size);
}

#content > .page-content {
	width: 100%;
}

#content > .sidebar {
	width: var(--itc-twocol-sidebar-width);
}

@media screen and (max-width: 968px ) {
	.twocol #content {
		flex-wrap: wrap;
	}

	body .racecenter .itcv-video-thumbs .video {
		width: 100%;
	}

	.woocommerce {
		overflow: auto;
	}
	
	.twocol #content {
		overflow: auto;
	}
}


/* Countdown widget */

.elementor-widget-wp-widget-itccountdown_widget .elementor-widget-container {
	display: flex;
	border: solid 1px #aaa;
	padding: 10px;

}

.elementor-widget-wp-widget-itccountdown_widget .elementor-widget-container > * {
	flex: 1 1 auto;

}

table.itccountdown-container {
	width: unset;
	margin-block-end: unset;
	text-align: center;
	margin-top: 2px;
	padding-right: 10px;

	border: nome;
}

table.itccountdown-container td {
	border: none;
	background-color: transparent;
	padding: 5px;
	margin: 0;
	text-align: center;
}

table.itccountdown-container tbody > tr:nth-child(2n+1) > td {
	background-color: transparent;

}

.itccountdown-container .countdownslot {
	width: 34px;
	font-size: 24px;
	line-height: 1;
	text-align: center;
	margin: 0 auto;
}

.itccountdown-container .units {
	font-size: 10px;
	line-height: 1;
	text-align: center;
}

#sidebar-top .widget_itccountdown_widget {
	padding-top: 2px;
}

.itccountdown-label {
	display: inline-block;
	padding: 0 10px;
	font-size: 20px;
	font-weight: bold;
	color: #23557D;
	text-align: left;
}


#sidebar-left .widget_itccountdown_widget,
#sidebar-left2 .widget_itccountdown_widget {
	padding: 8px;
}

#sidebar-left .widget_itccountdown_widget .itccountdown-label,
#sidebar-left2 .widget_itccountdown_widget .itccountdown-label {
	font-size: 16px;
}

#sidebar-left .itccountdown-container .countdownslot,
#sidebar-left2 .itccountdown-container .countdownslot {
	font-size: 24px;
	width: 2em;
}


/*** Standings banner ads and related popup ***/

/* CTA in player */
#video_iditarod_cta {
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	text-align: center;
}

#video_iditarod_cta.jw-hidden {
	display: none;
}

#video_iditarod_cta img {
	max-width: 100%;
}

.video_popup_click {
	cursor: pointer;
}

.standings-banner {
	max-height: 100px;
	background-color: #fff !important;
}

@media print {
	.standings-banner {
		display: none;
	}

	.no-print {
		display: none !important;
	}
}

.video-banner-hide {
	position: absolute;
	right: 5px;
	top: 5px;
	display: block;
	width: 16px;
	height: 16px;
	background: url( 'images/icon-close.png' ) no-repeat;
	text-indent: -9999px;
}

.video-banner-row {
	position: relative;
}

.video-banner-header {
	background-color: #DDD;
	font-weight: bold;
	color: white;
	font-size: 16px;
	margin: -5px -5px 5px -5px;
	padding: 10px;
	text-align: left;
}

.video-banner-header a {
	color: white;
}

.video-banner-col {
	width: 50%;
	float: left;
	padding: 0 30px;
	box-sizing: border-box;
}

.video-banner-image {
	float: left;
	max-width: 50%;
	max-height: 100px;
	margin-right: 10px;
}

.video-banner-details {
	text-align: left;
	max-height: 100px;
	overflow: hidden;
}

.video-banner-title {
	font-weight: bold;
	font-size: 1.7em;
}


/* Container of all elements */
.popup-wrapper {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;

	text-align: center;
}

/* Container visibility toggle */
.popup-active {
	display: block;
}

/* Backdrop */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 10001;
	background-color: rgba( 0,0,0,0.8 );
}

/* Container for content area */
.popup-container {
	position: relative;
	z-index: 10002;
	box-sizing: border-box;
	margin: 50px auto 0;
	padding: 0;
	max-width: 90%;

	display: inline-block;
	text-align: left;
}

.popup-content {
	border-radius: 10px;
	padding: 10px;
	background-color: #fff;
	overflow: hidden;
}

.popup-close {
	position: absolute;
	top: -10px;
	right: -10px;

	display: block;
	width: 28px;
	height: 28px;
	line-height: 28px;
	border-radius: 50%;
	border: solid #888 1px;
	background-color: #ccc;
	color: #000;
	text-align: center;

}

a.popup-close:hover {
	text-decoration: none;
	background-color: #35A8DF;
}

#jb_popup_overlay {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	background-color: rgba( 0,0,0,0.8 );
}

#jb_popup_container {
	position: relative;
	margin: 50px auto;
	padding: 45px 20px 20px;
	max-width: 90%;
	width: 900px;

	background-color: #fff;
	border-radius: 10px;
	box-sizing: border-box;
}

#jb_popup_close {
	position: absolute;
	display: block;
	top: 10px;
	right: 10px;
	border-radius: 6px;
	padding: 5px;
	background-color: #327FA2;
	color: white;
	font-size: 14px;
}


/* Gallery style */

.gallery {
	margin: auto -6px;
	padding: 6px 0;
	line-height: 1;
	overflow-x: hidden;
}

.ie7 .gallery,
.ie8 .gallery {
	margin: auto;
}

.gallery .gallery-item {
	float: left;
	margin: 0;
	text-align: center;
	padding: 6px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.ie7 .gallery .gallery-item,
.ie8 .gallery .gallery-item {
	padding: 6px 0;
}

.gallery .gallery-caption,
.gallery .gallery-icon {
	margin: 0;
}

.gallery .gallery-caption {
	font-size: 13px;
	margin: 4px 0;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	width: 50%;
}

.gallery-columns-3 .gallery-item {
	width: 33.333%;
}

.ie8 .gallery-columns-3 .gallery-item,
.ie7 .gallery-columns-3 .gallery-item {
	width: 33%;
}

.gallery-columns-4 .gallery-item {
	width: 25%;
}

.gallery-columns-5 .gallery-item {
	width: 20%;
}

.gallery-columns-6 .gallery-item {
	width: 16.665%;
}

.gallery-columns-7 .gallery-item {
	width: 14.285%;
}

.gallery-columns-8 .gallery-item {
	width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	width: 11.111%;
}

.gallery img {
	max-width: 100%;
	height: auto;
	border: none;
	padding: 0;
}

.wp-caption-text {
	text-align: center;
}

/* Ad blocks */
.ad-wrapper {
	position: relative;
	height: 0;
	overflow: hidden;
	max-width: 99%;
}

.ad-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
