html, body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

html[dir="LTR"] #languageMenu {
  right: 1em;
}

html[dir="RTL"] #languageMenu {
  left: 1em;
}

#header {
  position: absolute;
  top: 1em;
  left: 20%;
  right: 20%;
  width: 60%;
  text-align: center;
}

#banner {
  padding: 1em;
}

#subtitle {
  font-style: italic;
}

a {
  outline: none;
  text-decoration: none;
}

.top_menu{
  position: absolute;
  top: 1em;
}

#resetMenu {
  bottom: 0;
  position: absolute;
  left: 0;
  right: 0;

  display: flex;                 /* arrange children horizontally */
  justify-content: space-between; /* push first left, last right */
  align-items: flex-end;          /* align them at the bottom */
  line-height: 1.2;
  margin: 1em;      
  padding: 0 8px;                 /* optional: add breathing room */
}

#leftBottom {
  margin: 0; /* reset margin so flex handles spacing */
  display: flex;
}

#miyagi {
  text-align: right;
}

#miyagi a {
  display: inline-block;
  background-color: #B6E78C;
  padding: 6px 10px;
  border-radius: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;       /* remove underline just in case */
}

#miyagi a:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

#miyagi img {
  height: 36px;
  vertical-align: middle;
}

#miyagi a:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

#clearDataPara, #leaveCompModePara {
  margin: 0.5em;
  visibility: hidden;
}

#clearData, #leaveCompMode {
  font-size: medium;
  margin: 0px 0px;
  padding: 5px 10px;
}

#path {
  stroke: #ccc;
  stroke-width: 1;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: dash .7s linear forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.iconBack {
  fill: #fff;
}

.iconBorder {
  stroke: #aaa;
  stroke-width: 5;
  fill: rgba(0, 0, 0, .1);
}

a:focus > .iconBorder,
a:hover > .iconBorder {
  fill: rgba(255, 255, 255, .1);
}

a:focus > text,
a:hover > text {
  fill: #666;
}

.icon {
  animation: pop .5s cubic-bezier(.5,.5,.5,1.5) forwards;
  visibility: hidden;
}

.icon text {
  text-anchor: middle;
  font-size: 18pt;
}

#icon-puzzle {
  animation-delay: .0s;
}

#icon-maze {
  animation-delay: .1s;
}

#icon-bird {
  animation-delay: .2s;
}

#icon-turtle {
  animation-delay: .3s;
}

#icon-movie {
  animation-delay: .4s;
}

#icon-music {
  animation-delay: .5s;
}

#icon-pond-tutor {
  animation-delay: .6s;
}

#icon-pond-duck {
  animation-delay: .7s;
}

#back-puzzle {
  animation-delay: .3s;
}

#back-maze {
  animation-delay: .4s;
}

#back-bird {
  animation-delay: .5s;
}

#back-turtle {
  animation-delay: .6s;
}

#back-movie {
  animation-delay: .7s;
}

#back-music {
  animation-delay: .8s;
}

#back-pond-tutor {
  animation-delay: .9s;
}

#back-pond-duck {
  animation-delay: 1.0s;
}

@keyframes pop {
  from {
    transform: translate(150px, 50px) scale(0);
  }
  to {
    transform: translate(0, 0) scale(1);
    visibility: visible;
  }
}

.gaugeBack {
  stroke: #aaa;
  stroke-width: 6;
  fill: none;
  animation: pop .1s linear forwards;
  visibility: hidden;
}

.gaugeFront {
  stroke: #0b0;
  stroke-width: 8;
  fill: none;
}

#loginForm>header {
  font-size: larger;
  margin-bottom: 20px;
}
#loginForm>* {
  margin-top: 1em;
  margin-left: 1em;
  margin-right: 1em;
}

#loginFormDialog {
  margin-bottom: 20px;
}
#loginFormDialog label {
  display: block;
  margin: 8px 20px 4px;
  font-weight: bold;
}
#loginFormDialog input {
  width: 92%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin-left: 20px;
}
