:root {
	--primary-background-color: #ffffff;
	--background-img: url("../images/beach.jpg");
	/* Text, Buttons, Links */
	--primary-color: #38ADCA;
	--light-color: #ffffff;
	--font-size-base: 16px;
	--spacing-unit: 1rem;
}

body {
	font-family: 'Lato', sans-serif;
	text-align: center;
	background: var(--primary-background-color) var(--background-img);
	color: var(--primary-color);
	background-position: 0% 0%;
	background-size: cover;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100dvh;
	padding: 25px;
}

.opened .popoutLink {
	display: none;
}

.popout {
	height: 25px;
	width: auto;
	position: absolute;
	top: 15px;
	right: 15px;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

.install-btn {
	background: var(--primary-color);
	color: var(--light-color);
	font-size: 17px;
	padding: 10px 15px;
	border-radius: 10px;
	margin: 25px 0 0 0;
	border: none;
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
p {
	margin: 0;
	padding: 0;
}

#station-logo {
	width: 400px;
	height: auto;
	display: none;
}

.player-container {
	width: 100%;
	/* height: calc(100vh - 100px); */
	max-width: 400px;
	margin: 0 auto;
	padding: 25px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.album-art {
	width: 100%;
	height: 300px;
	background-size: cover;
	background-position: center;
}

.track-info {
	padding: 20px;
}

.track-title {
	font-size: 18px;
	font-weight: bold;
	margin: 10px 0;
}

.artist-name {
	font-size: 16px;
	color: #777;
}

.controls {
	position: relative;
}

.current-track #current-track-title {
	font-size: 25px;
	font-weight: bold;
	padding: 15px 0 10px;
}

.current-track #current-track-artist {
	font-size: 18px;
}

.current-track h4 {
	padding: 25px 0 10px;
	font-size: 20px;
}

.stream-links ul {
	list-style-type: none;
	padding: 10px 0 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 10px;
	vertical-align: middle;
}

.stream-links li svg {
	height: 30px;
	width: auto;
	vertical-align: middle;
	padding: 0 5px;
}

.play-button {
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.play-button:hover {
	background: #0056b3;
}

.station-info {
	margin-bottom: 10px;
}

.current-track img {
	max-width: 375px;
	max-height: 375px;
	width: 70vw;
	border-radius: 25px;
}

/* Cast Button */
/* Make the launcher visible and themed */
google-cast-launcher.cast-btn {
	width: 40px;
	height: 40px;
	display: inline-block;
	/* color variables the element understands */
	--disconnected-color: var(--light-color);
	--connected-color: var(--primary-color);
	--activating-color: var(--primary-color);
	/* optional hover */
	cursor: pointer;
	position: absolute;
	top: 25px;
	right: 25px;
}

/* Keep your control row aligned nicely */
#controls {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

/* Support Buttons */
.support {
	padding: 0 0 5px;
}

.support h3 {
	padding: 15px 0;
}

.support button {
	background: var(--primary-color);
	color: var(--light-color);
	font-size: 17px;
	padding: 10px 15px;
	border-radius: 10px;
	margin: 5px;
	border: none;
	cursor: pointer;
}

.support button svg {
	width: 17px;
	height: 17px;
	padding-right: 5px;
	vertical-align: middle;
}

.embed .paypalButton {
	display: none;
}

/* New Button CSS */
.player-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border: 0;
	background: var(--primary-color);
	color: var(--light-color);
	padding: .6rem .9rem;
	border-radius: .5rem;
	cursor: pointer;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.player-btn .icon {
	display: none;
}

.player-btn .icon-play {
	display: inline;
}

/* default: show play */
.player-btn.is-playing .icon-play {
	display: none;
}

/* when playing: hide play */
.player-btn.is-playing .icon-pause {
	display: inline;
}

/* when playing: show pause */

/* Screen-reader only helper */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.landscape {
	display: none;
}

.portrait {
	display: block;
}

@media only screen and (min-width: 850px) {
	.player-container {
		max-width: 1000px;
	}

	.controls {
		padding: 0;
	}

	.portrait {
		display: none;
	}

	.landscape {
		display: block;
	}

	.station-info {
		margin-bottom: 20px;
	}

	.columns {
		display: flex;
		gap: 25px;
		justify-content: space-between;
	}

	.columnLeft,
	.columnRight {
		width: 50%;
	}

	.columnRight {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-content: center;
	}

	.columnRight .support,
	.columnRight .stream-links {
		margin-top: 10px;
	}

	.current-track .columnLeft img {
		max-width: 100%;
		max-height: 90dvh;
		width: 100%;
	}

	.current-track #current-track-title {
		padding: 0 0 10px;
	}
}