html, body{ height:100%; }
:root {
	--hand-border: url("https://www.Byrdseed.TV/wp-content/themes/btv3/images/border.png") fill 16 10 14 14 stretch stretch;
    --red-border: url("https://www.Byrdseed.TV/wp-content/themes/btv3/images/border-red.png") fill 16 10 14 14 stretch stretch;
    --hill-left: url('../images/hill-left.png');
    --hill-right: url('../images/hill-right.png');
    --bs-red: #b20000;
    --bs-body-link: #b20000;
    --cream: hsl(41, 80%, 97%);
    --black: hsl(0,15%,15%);
    --dark-red: rgb(83, 2, 15);
    --off-white: hsl(0,30%,99%);
    --dark-cream: hsl(41, 80%, 93%);
    --darker-cream: hsl(41, 80%, 85%);
    --bg-color: var(--cream);
    --text-color-body: #333;
    --title-color: var(--dark-red);
}

@font-face {
	font-family: 'kassidythin';
	src: url('https://www.Byrdseed.TV/wp-content/themes/btv3/fonts/kassidy-thin-webfont.woff2') format('woff2'),
		 url('https://www.Byrdseed.TV/wp-content/themes/btv3/fonts/kassidy-thin-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

.f-hand-thin{
	font-family: 'kassidythin', var(--fonts) !important;
}

/* worksheet in-description links  */
.ws-description a {
    color: var(--bs-red);
    text-decoration: underline;
    transition: all 180ms ease-out;
}
.ws-description a:hover,
.ws-description a:visited,
.ws-description a:active,
.ws-description a:focus {
    color: var(--dark-red);
}

.box-shadow-main {
    box-shadow: -5px 5px 0 var(--dark-cream);
}

.border-radius-default {
    border-radius: 10px;
}

.border-radius-top {
    border-radius: 10px 10px 0 0;
}

body{
    background-color: var(--bg-color);
    font-family: 'museo-1', sans-serif;
    position: relative;
    transition: background-color 180ms ease-out;
}

/* Background hill images */
body::before,
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    width: 300px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: -1;
    pointer-events: none;
}

body::before {
    left: 0;
    width: 432px;
    height: 206px;
    background-image: var(--hill-left);
}

body::after {
    right: 0;
    width: 322px;
    height: 160px;
    background-image: var(--hill-right);
}

body[data-theme="october"] {
    --bs-red: #e25a28;
    --bs-body-link: #e25a28;
    --slider-color: #e25a28;
    --dark-cream: #e0e0e0;
    --darker-cream: #e0e0e0;
    --dark-red: var(--bs-red);
    --bg-color: #333333;
    --text-color-body: #e0e0e0;
    --title-color: #d9e59e;
}

body[data-theme="october"]::before {
    background-image: url('../images/halloween/hill-left.png?v=2');
}

body[data-theme="october"]::after {
    background-image: url('../images/halloween/hill-right.png');    
    height: 315px;
    width: 299px;
}

body[data-theme="dark"] {
    --bs-red: #ECEFEF;
    --bs-body-link: #531714;
    --slider-color: #95655e;
    --dark-cream: #cecece;
    --darker-cream: #1a1a1a;
    --dark-red: #95655e;
    --bg-color: #531714;
    --text-color-body: #e0e0e0;
    --title-color: #ffffff;
}

body[data-theme="dark"]::before {
    background-image: url('../images/dark/hill-dark-left.png');
}

body[data-theme="dark"]::after {
    background-image: url('../images/dark/hill-dark-right.png');    
    height: 315px;
    width: 299px;
}

/* Logo styling */
.btv-logo {
    background-image: url('../images/btv-logo-simple-sharing.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body[data-theme="october"] .btv-logo {
    background-image: url('../images/halloween/btv-logo-simple-sharing.png');
}

body[data-theme="dark"] .btv-logo {
    background-image: url('../images/dark/logo.png');
}

.text-color-body {
    color: var(--text-color-body);
}

.hover-text-main-color:hover{
    color: var(--bs-red);
}

.border {
	border-image: var(--hand-border);
    border-width: 4px !important;
    border-style: solid;
    border-color: transparent;
}

.hover-red-border:hover{
    border-image: var(--red-border);
}

/* hacky rounded thumbnails */
.wistia_responsive_wrapper span div div{ border-radius: 4px !important; } 

.resource-icon {
    width: 16px;
    margin-top: 5px;
}
.text-title{
    color: var(--title-color);
}
.text-dark-red {
    color: var(--dark-red);
}

/* Sticky footer for "Shared by" credit */
footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Tab styling */
label.tabs {
    display: inline-block;
    margin: 0 4px -8px 0;
    padding: 6px 14px;
    text-align: center;
    color: #876;
    background: linear-gradient(rgba(255,255,255,.8) 50%,var(--darker-cream) 100%);
    z-index: 1;
    position: relative;
}

.z-2{
    z-index: 2;
}

.hover-scale{
    transition: transform 180ms ease-out
}

.hover-scale:hover{
    transform: scale(1.02);    
}

label.tabs:hover {
    color: #666;
    cursor: pointer;
    background: var(--off-white);
}

input:checked + label.tabs {
    color: black;
    border-bottom: none;
    background: var(--off-white);
    margin-bottom: -4px;
}

input.tab_button {
    display: none;
}

.first_tab {
    margin-left: 8px !important;
}

/* Ensure video containers are properly sized */
.wistia_responsive_wrapper {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.wistia_embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Google Slides embed styling */
.google-slides-wrapper {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.google-slides-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#story-starter h3{
    font-size:1.5rem;
    font-weight:normal;
}
#story-starter table{
    width:100%;
max-width:960px;
}
#story-starter td{
    padding:5px 12px;
    font-size:1.3rem;
}
#story-starter .starter_instructions{
font-size:1.4rem;
}
#story-starter .starter_refresh{
margin-top:3.5em;
text-align:right;
color:gray;
font-size:1rem;
}					


/* Theme Toggle */
.theme-toggle-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 8px 12px;
	border-radius: 24px;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
}

body[data-theme="dark"] .theme-toggle-container,
body[data-theme="october"] .theme-toggle-container {
	background-color: rgba(42, 42, 42, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #dbd4c3;
	transition: .4s;
	border-radius: 24px;
}
.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}
input:checked + .slider {
	background-color: var(--slider-color);
}
input:checked + .slider:before {
	transform: translateX(26px);
}
/* End Theme Toggle */