body {
  background: #ffddee;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  margin: 0;
  text-align: center;
  overflow: hidden;
}

html,
body {
  height: 100%;
}
.github {
	position: absolute;
	display: block;
	bottom: 0;
	right: 0;
	z-index: 111;
	font-size: 2vmin;
}
p {
  font-size: 22px;
  margin: 0;
  padding: 1em 0 0 0;
}
.trophy {
	position:fixed;
	display:none;
	top: 50%;
	height: 30vmax;
	left: 50%;
	margin-left:-15vmax;
	margin-top:-20vmax;
	z-index: 10000;
	box-shadow: 10px 10px 50px 50px rgba(50,0,0,0.2);
}
.instructions {
	position: relative;
	z-index: 10000;
	padding: 25px 25px;
}
.coj-btn {
  align-items: center;
  background-color: #ffeef8;
  border: 1px solid transparent;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.5rem;
  height: 40px;
  justify-content: center;
  margin: 4px 5px;
  outline: 0;
  padding: 0;
  text-align: center;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: middle;
  width: calc(16.66667% - 10px);
}

.coj-btn:focus {
  background-color: #b3cdff;
}

.spinning {
  animation: 2s spin infinite;
}

.hidden {
  display: none;
}
.ghost {
  opacity: 0.5;
}

svg .face {
  fill: white;
}

.smile,
.frown {
  display: none;
}

.ducks .smile,
.ducks .frown {
  display: inline;
  stroke: none;
  fill: orange;
}

.mouth {
  stroke: black;
}

.red .face {
  fill: red;
}

.blue .face {
  fill: #8888ff;
}

.yellow .face {
  fill: yellow;
}

.purple .face {
  fill: #aa66ff;
}

@keyframes spin {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(1em, -1em) rotate(360deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.bouncing {
  animation: bounce 2s infinite;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-50px);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-5px);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}

h1 {
  font-size: 2em;
  font-variant: small-caps;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  color: white;
  margin: 0;
  cursor: pointer;
}

.back,
.forward {
  font-size: 25px;
  position: fixed;
  top: 0;
  width: 25px;
  cursor: pointer;
}

.back {
  left: 0;
}

.forward {
  right: 0;
}

.level-display {
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  background: #ffeef8;
  padding: 5px;
  margin: 0;
  text-align: center;
  display: none;
}

.number-bar {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: none;
}

.number-bar .desc {
  display: none;
}

li {
  padding: 10px 5px;
  list-style: none;
  cursor: pointer;
  margin: 7px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  background: #ffeef8;
}

ul {
  margin: 0;
  padding: 0;
  float:left;
}

svg {
  height: 14vmax;
  width: 14vmax;
}
#logo {
  max-width: 100%
}
.splash {
	top: 50%;
	left: 50%;
	z-index: 100;
	position: fixed;
	transform: translate(-50%, -50%) scale(10);
}
@keyframes example {
  from {transform: translate(-50%, -50%) scale(5);}
  to {transform: translate(-50%, -50%) scale(10);}
}
.topics {
  display: flex;
}
.topics ul {
  flex: 1;
}
.yay {
  animation-name: example;
  animation-duration: 2s;
}

@media (min-width: 768px) {
  .coj-btn {
    height: 60px;
    width: 60px;
  }

  .number-bar .desc {
    display: block;
    font-size: 14px;
    opacity: 0.7;
    padding-top: 0.25rem;
  }
}

/*some vmax/vh elements get crazy at hi-res, cap their size.*/
@media screen and (min-width: 1024px) {
  svg {
    height: 160px;
    width: 140px;
  }
}

#forkongithub a {
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: arial, sans-serif;
  text-align: center;
  font-weight: bold;
  padding: 5px 40px;
  font-size: 1rem;
  line-height: 2rem;
  position: relative;
  transition: 0.5s;
}
#forkongithub a:hover {
  background: #c11;
  color: #fff;
}
#forkongithub a::before,
#forkongithub a::after {
  content: '';
  width: 100%;
  display: block;
  position: absolute;
  top: 1px;
  left: 0;
  height: 1px;
  background: #fff;
}
#forkongithub a::after {
  bottom: 1px;
  top: auto;
}
@media screen and (min-width: 800px) {
  #forkongithub {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    width: 200px;
    overflow: hidden;
    height: 200px;
    z-index: 9999;
  }
  #forkongithub a {
    width: 200px;
    position: absolute;
    top: 60px;
    right: -60px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
  }
}

ellipse.face {
  stroke: #ff88dd;
}
.circle ellipse.face {
  stroke: lightgreen;
  stroke-width: 10px;
}

body { background: linear-gradient(145deg,#fff0f8,#f9d9ed); color: #3b2440; }
h1 { color: #7e285c; text-shadow: none; padding: .5rem 2rem .2rem; }
h1 small { font-size: .45em; font-variant: normal; color: #a35587; display: block; letter-spacing: .13em; text-transform: uppercase; }
.back,.forward { z-index: 2; top: .5rem; width: 2rem; }
.clue { cursor: pointer; font-weight: 700; margin: .5rem auto; max-width: 50rem; padding: .5rem 1rem; }
.clue:focus-visible, .topics li:focus-visible { outline: 3px solid #682c8b; }
.topics li:hover, .coj-btn:hover { background: #fff; transform: translateY(-1px); }
.topics { max-height: 68vh; overflow-y: auto; max-width: 960px; margin: auto; gap: .7rem; }
.topics ul { min-width: 155px; }
.instructions { max-width: 960px; margin: auto; padding-top: 8px; }
.splash { display: none; }
.whiskers line { stroke: black; }
.ears polyline { stroke: none; fill: #ff88dd; }
@media (max-width: 640px) {
  body { overflow-y: auto; }
  .topics { flex-wrap: wrap; max-height: none; padding-bottom: 2rem; }
  .topics ul { min-width: 43%; }
  .github { position: relative; font-size: .8rem; margin-top: 1rem; }
  svg { height: 18vw; width: 18vw; }
  .number-bar { background: #f9d9edeb; bottom: 0; padding: .35rem; }
  .coj-btn { width: 15vw; height: 42px; margin: 2px; }
  .clue { font-size: 1.1rem; }
}

.playfield { display:flex; justify-content:center; align-content:center; align-items:center; flex-wrap:wrap; gap:.2rem; width:min(94vw,850px); min-height:calc(100vh - 300px); margin:auto; }
.playfield svg { flex:none; }
@media(max-width:640px){.playfield{min-height:calc(100vh - 260px);}}
