:root {
    /*--font-color: #222322;
    --nav-color: #e9755a;
    --nav-font-color: #f9f9f9;
    --dark-nav-color: #131b35;*/
	--bg-color: #1d4333;
	--bg-color: #e3dcd0;
	--nav-color: #1b3e2f;
	--nav-font-color: #ccd6d2;

	--dark-nav-color: #173037;
	--dark-bg-color: #1d3c44;
}

#navIcon {
    color: var(--nav-font-color);
}

#landing {
	position: relative;
    height: calc(80vh - 52px);
    /*border-left: 1rem solid tan;
    border-right: 1rem solid tan;*/
	background-size: cover;
    background-position: center;
}

.video-container {
	background-color: rgb(4 46 42 / 70%);
    box-shadow: 0 0 10px 5px rgb(4 46 42 / 70%);
}

#video {
	border-bottom: 0.5rem solid #042e2a;
}

.video-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: 0.375rem 0.5rem ;
	color: rgb(255 255 255 / 85%);
    text-transform: uppercase;
}

.video-title h1 {
	font-weight: 500;
	font-size: 0.75rem;
}

#bgButtons {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 2rem;
}

#bgButtons button {
	cursor: pointer;
	opacity: 0.7;
	border: none;
	background: none;
}

#bgButtons button:hover {
	opacity: 1;
}

#bgButtons svg {
	fill: #fff;
}

#prevBgButton svg {
	transform: rotate(180deg);
}

#videoUnderline {
    height: 1px;
    width: 100%;
    margin-top: 2rem;
    background-color: #08534c;
}

#mainContainer {
    width: 100%;
	max-width: 800px;
	margin: 2rem auto;
    padding: 0 1rem;
}

#aboutContainer {
    display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
    margin: 3rem auto 2rem;
}

#aboutContainer h2 {
	margin-bottom: 0.675rem;
}

#aboutLeftColumn {
    flex: 1;
    padding-bottom: 3rem;
    background-color: #1f4736;
}

#aboutRightColumn {
    flex: 1;
    padding-bottom: 3rem;
}

#aboutLeftColumn h2 {
    padding: 3rem 2rem 0 1rem;
    font-size: 3rem;
    color: #fff;
    text-align: right;
}

#aboutText {
    max-width: 450px;
    padding: 3rem 1rem 0 2rem;
    color: #f1eae1;
}

#aboutText h3 {
    margin: 1.5rem 0 0.75rem 0;
}

#aboutText a {
    display: block;
    margin-bottom: 0.25rem;
    color: #e5d479;
    text-decoration: none;
}

#playlist {
	margin-bottom: 0.675rem;
    line-height: 1.25rem;
}

#playlist a {
	display: block;
	width: fit-content;
    margin-top: 0.75rem;
	color: #006f40;
}

footer {
    color: var(--nav-font-color);
}

/* FISHING GAME */
#gameContainer {
	position: relative;
	width: calc(100% + 2rem);
	margin-top: 1rem;
	aspect-ratio: 5/3;
	overflow: hidden;
	user-select: none;
	font-family: 'Roboto Mono';
    transform: translateX(-1rem);
	border-top: 0.75rem solid #efebe9;
	border-bottom: 0.75rem solid #efebe9;
	background-color: #59c3db;
}

.game-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	padding: 0.25rem 0.5rem 0.5rem;
	color: #fff;
	border: 1px solid #2b5f6b;
	background-color: #3e8899;
	transform: translate(-50%, -50%);
}

#gameContainer button {
	font-family: 'Roboto Mono';
}

#gameStartButton {
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 0.5rem 1rem ;
	cursor: pointer;
	border: none;
	color: #28535d;
	background-color: #efebe9;
	transform: translate(-50%, -50%);
}

#gameStartButton::before {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	width: calc(100% + 6px);
	height: calc(100% + 6px);
	border: 1px solid #efebe9;
	transition: box-shadow 0.2s ease;
}

#gameStartButton:hover {
	box-shadow: 0 0 12px 4px rgb(239 235 233 / 70%);
}

#gameStartButton:hover::before {
	box-shadow: 0 0 12px 4px rgb(239 235 233 / 80%);
}

#gameStartButton:active {
	background-color: rgb(239 235 233 / 95%);
}

#gameOverDialog {
	width: 280px;
	color: #fff;
	font-size: 0.75rem;
	text-align: center;
}

#gameOverText {
	font-size: 1rem;
}

#gameOverStats {
	margin: 0.25rem 0 0.75rem 0;
}

#gameOverStats h3 {
	margin-top: 0.25rem;
}

#gameOverStartButton, #gameStatsCloseButton {
	padding: 0.25rem 0.75rem ;
	cursor: pointer;
	border: none;
	color: #28535d;
	font-size: 0.75rem;
	background-color: #efebe9;
}

#gameStats h3 {
	margin-top: 0.375rem;
}

#gameStatsCloseButton {
	display: block;
	margin: 0.5rem auto 0 auto;
}

.fish-caught-stats {
	display: grid;
	gap: 0.25rem 1rem;
	grid-template-columns: repeat(6, auto);
	justify-content: center;
}

.fish-caught-stats div {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-column: span 2;
}
.fish-caught-stats div:nth-child(4) {
	grid-column: span 3;
	justify-content: flex-end;
}
.fish-caught-stats div:nth-child(5) {
	grid-column: span 3;
	justify-content: flex-start;
}

.fish-caught-stats img {
	margin-right: 0.25rem;
}

#gameScores {
	position: absolute;
	top: 0.25rem;
	left: 0.375rem;
	font-weight: 500;
	font-size: 0.675rem;
	color: #000;
}

#gameHighScoreContainer, #gameScoreContainer {
	font-family: "Roboto Mono";
}

#gameScoreContainer {
	display: none;
}

#gameLives, #gameStatsButton {
	position: absolute;
	top: 0.5rem;
	right: 0.375rem;
	display: flex;
	justify-content: flex-end;
	gap: 5%;
	width: 10%;
}

#gameLives img {
	width: 33.33%;
	height: auto;
}

#gameStatsButton {
	align-items: center;
	justify-content: center;
	width: auto;
	font-weight: 500;
    font-size: 0.675rem;
	cursor: pointer;
	border: none;
	background: none;
}

#gameStatsButton svg {
	height: 10px;
	margin-left: 1px;
	fill: none;
	stroke: #000;
	stroke-width: 2px;
}

.fish, .bomb, #fishingLine {
	position: absolute;
}

.fish {
	width: 8.1%;
	height: auto;
	/*aspect-ratio: 31/12;
	background-size: cover;*/
}

/*.fish.common {
	background: url('/res/img/radios/zelda/fish_green.png') no-repeat center center;
}
.fish.rare {
	background: url('/res/img/radios/zelda/fish_blue.png') no-repeat center center;
}
.fish.epic {
	background: url('/res/img/radios/zelda/fish_purple.png') no-repeat center center;
}
.fish.legendary {
	background: url('/res/img/radios/zelda/fish_rainbow.png') no-repeat center center;
}*/

.bomb {
	width: 4%;
	height: auto;
}

#fishingLine {
	width: 4%;
	left: 50%;
	transform: translateX(-50%);
}

#fishingLine {
	display: none;
	flex-direction: column;
}

#fishingLine div {
	flex-grow: 1;
	width: 7%;
	margin: 0 auto;
	background-color: #000;
}

#fishingLine img {
	width: 100%;
	height: auto;
}

.explosion {
	position: absolute;
	width: 8%;
	aspect-ratio: 1;
	pointer-events: none;
	background-size: 16.6%;
	background: url('/res/img/radios/zelda/explosion.png');
	animation: explosion 0.45s forwards;
}

@keyframes explosion {
	0% {
		background-position: left center;
	}
	16.5% {
		background-position: left center;
	}
	16.6% {
		background-position: 19%;
	}
	33.1% {
		background-position: 19%;
	}
	33.2% {
		background-position: 38.5%;
	}
	49.7% {
		background-position: 38.5%;
	}
	49.8% {
		background-position: 57.5%;
	}
	65.9% {
		background-position: 57.5%;
	}
	66% {
		background-position: 77%;
	}
	82.1% {
		background-position: 77%;
	}
	82.2% {
		background-position: 96% center;
	}
	100% {
		background-position: 96% center;
	}
}

@media (min-width: 600px) {
    #landing {
		height: calc(100vh - 52px);
        padding: 1rem;
		background-size: cover;
    	background-position: center;
    }
    
    .video-container {
        padding: 2rem 2rem 0.75rem 2rem;
        margin: 0 auto;
    }

    .video-container {
        width: 80%;
        max-width: 900px;
    }

	#video {
		border: 0.5rem solid rgb(4 46 42 / 70%);
	}

    .video-title {
        padding: 0.75rem 0 0 0;
    }

	.video-title h1 {
		font-size: 1rem;
	}

	#bgButtons svg {
		height: 48px;
	}

	#gameContainer {
		border: 0.75rem solid #efebe9;
	}

	.game-dialog {
		padding: 0.75rem;
	}

	#gameScores {
		position: absolute;
		top: 0.75rem;
		left: 1rem;
		font-size: 0.875rem;
	}

	#gameLives, #gameStatsButton {
		top: 1rem;
		right: 1rem;
	}

	#gameStatsButton {
		font-size: 0.875rem;
	}

	#gameStatsButton svg {
		height: 13px;
	}

	#gameOverText {
		font-size: 1.25rem;
	}

	#aboutContainer {
		grid-template-columns: 3fr 2fr;
	}
}

.dark #landing {
    background-color: #090b1b;
}

.dark .video-container {
    background-color: rgb(0 0 0 / 60%);
	box-shadow: 0 0 10px 5px rgb(0 0 0 / 60%)
}

.dark #video {
	border-color: rgb(0 0 0 /60%);
}

.dark #gameContainer {
	border-color: #183239;
}

.dark #playlist a {
	color: #dac79b;
}