:root {
	--primary: rgb(155, 199, 202);
	--secondary: rgb(126, 105, 184);
	--tertiary: rgb(103, 149, 153);
	--quaternary: rgb(238, 238, 238);
	--accent: rgb(155, 199, 202);
	--linkCol: rgb(126, 105, 184);
	--linkHover: rgb(99, 78, 156);

	--bgCol: rgb(126, 105, 184);
	--radius: 6px;
}

html, body { position: relative; width: 100%; height: 100%;  margin: 0; padding: 0; font-size:1em; background:var(--bgCol) url('ferns.png') no-repeat center bottom; background-size:contain; }

.stage { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: 0; padding: 5% 10%; width: 100%; height: 100%; box-sizing:border-box;  display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* .stage .debug { display:none!important; } */

.stage .home_top { display: flex; flex:2; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }
.stage .home_bottom { display: flex; flex:1; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }
.stage .home_top img { max-width:100%; }
.stage .instructions_top { display: flex; flex:3; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;box-sizing:border-box; padding:0 5%; }
.stage .instructions_bottom { display: flex; flex:1; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }
.stage .look_for_top { display: flex; flex:3; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;box-sizing:border-box; padding:0 5%; }
.stage .look_for_bottom { display: flex; flex:1; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }
.stage .clue_top { display: flex; flex:2; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;box-sizing:border-box; padding:0 5%; }
.stage .clue_bottom { display: flex; flex:1; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }
.stage .score_top { display: flex; flex:3; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;box-sizing:border-box; padding:0 5%; }
.stage .score_bottom { display: flex; flex:1; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing:border-box; padding:0 15%; }

.stage h1 { display:block; font-size:2.5em; margin-top:1em; text-align:center; color:var(--accent); font-family: 'Peralta', cursive; }
.stage h2 { display:block; font-size:2em; text-align:center; color:var(--accent); font-family: 'Peralta', cursive; margin:0; }
.stage p { font-size:1.5rem; color:#fff; font-family: 'Caveat Brush', cursive; text-align:center; }
.stage p strong { color:var(--accent); }
.stage ul.actions { list-style:none; margin:0; padding:0; width:100%; }
.stage ul.actions li { display:block; text-align:center; margin:15px 0; }
.stage ul.actions li button { display:inline-block; width:100%; padding:10px 20px; font-size:2em; border:2px solid var(--tertiary); border-radius:var(--radius); color:var(--tertiary); font-family: 'Caveat Brush', cursive; background:#fff; text-decoration:none; box-sizing:border-box; }
.stage ul.actions li button.eliminated { text-decoration: line-through; color:#999; background:#ccc; border:2px solid #999; }
.stage .clue_bottom ul.actions li button { font-size:1.5em; }
.stage .clue_bottom ul.actions li.skip button { color:#999; border:2px solid #999; }

.phrases {
  max-height: 100%; /* Set the maximum height of the phrases div */
  overflow-y: auto; /* Enable vertical scroll if content exceeds the height */
}

.stage ul.actions li button { font-size:1.5em; }
.stage ul.actions li button.reset { font-size:1.0em; color:#900; border:2px solid #900; display:none; }
.stage ul.actions li button.reset2 { font-size:1.0em; color:#900; border:2px solid #900; display:none; }

.stage .score_top p { font-size:2rem; }
.stage p.percentage { font-size:4rem; color:var(--accent); font-family: 'Peralta', cursive; margin-top:0; }
.stage .score_breakdown { list-style:none; width:100%; margin:0; padding:0; text-align:center; }
.stage .score_breakdown li { font-size:2rem; color:#fff; font-family: 'Caveat Brush', cursive; margin-top:10px; }
.stage .score_breakdown li strong { color:var(--accent); }

.look_for_block { width:100%; background:var(--tertiary); border-radius:var(--radius); margin-top:20px; padding:5%; }
.look_for_block img { max-width:75%; border-radius:var(--radius); }
.look_for_block p.animal { font-size:2rem; color:#fff; margin:0; }
.look_for_block p.text { font-size:1.0rem; margin:0; }
.look_for_block ul { color:#fff; font-family: 'Caveat Brush', cursive; }



.rotate_message { position: absolute; left: 0; right: 0; top: 0; bottom: 0;  margin: 0; padding: 0; width: 100%; height: 100%; box-sizing:border-box; background:var(--bgCol); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rotate_message .rotate_container { display: block; position:absolute; top:10px; left:10px; border-radius:12px; width: 200px; background:rgba(0,0,0,0.3); text-align:center; }
.rotate_message .rotate_container img { animation-name: rotate; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; transform-origin: center center; }
.rotate_message .rotate_container h2 { display:block; font-size:14px; text-align:center; color:#fff; font-family: 'Peralta', cursive; }

.home_map { display: block; border-radius:12px; width: 200px; background:rgba(0,0,0,0.3); text-align:center; margin-top:10px; }
.home_map img { animation-name: rotate; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; transform-origin: center center; }
.home_map h2 { display:block; font-size:14px; text-align:center; color:#fff; font-family: 'Peralta', cursive; padding-bottom:10px; margin-top:10px; }

p.phraseText { margin:0; }
p.phraseAnswer { margin:20px 0 5px 0; font-family: 'Peralta', cursive; color:var(--accent); }

.scoreForm { width:100%; text-align:center; }
.scoreForm h1 { display:block; font-size:2em; margin-top:1em; text-align:center; color:var(--accent); font-family: 'Peralta', cursive; }
.scoreForm label { display:block; width:100%; font-size:18px; text-transform:uppercase; letter-spacing:0.03em; font-weight:bold; color:#fff; margin-bottom:10px; font-family: 'Caveat Brush', cursive; }
.scoreForm input { display:block; width:100%; text-align:center; border:3px solid var(--primary); font-size:22px; padding:13px; border-radius:var(--radius); color:#fff; margin-bottom:20px; background:rgba(0,0,0,0.3); }

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgb(155, 199, 202, 0.5);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: rgb(155, 199, 202, 0.5);
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: rgb(155, 199, 202, 0.5);
}

@keyframes rotate {
	0% {
	  transform: rotate(-90deg);
	}
	50% {
	  transform: rotate(0deg);
	}
	88% {
	  transform: rotate(0deg);
	  animation-play-state: paused;
	}
	100% {
	  transform: rotate(-90deg);
	  animation-play-state: running;
	}
}

@media screen and (min-width: 600px) {
	.desktop_wrapper { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin:auto; width: 480px; height: 900px; max-width:100%; max-height:100%; border:1px solid #000;background:var(--bgCol) url('ferns.png') no-repeat center bottom; background-size:contain; box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px; }
}

@media screen and (orientation: landscape) {
	.desktop_wrapper { border:0; }
	.rotate_message { display: block; }
	.stage { display:none; }
}

@media screen and (orientation: portrait) {
	.rotate_message { display: none; }
	.stage { display:flex; }
}
