@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  overflow:hidden;
  background:#78c8e8;
  font-family:"DotGothic16", monospace;
  touch-action:manipulation;
}

button,
#pressStart,
#resultTitle,
#resultItems{
  font-family:"DotGothic16", monospace;
}

.hidden{
  display:none !important;
}

.screen{
  width:100vw;
  height:100vh;
}

#gameContainer{
  position:relative;
  width:100vw;
  height:100vh;
}

canvas{
  width:100%;
  height:100%;
  display:block;
  image-rendering:pixelated;
}

/* TITLE */

#titleScreen{
  position:absolute;
  inset:0;
  z-index:10;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  padding-top:26px;

  background:#78c8e8;
}

#titleImage{
  width:min(430px,92vw);

  image-rendering:pixelated;

  user-select:none;
  -webkit-user-drag:none;
}

#titleRule{
  margin-top:12px;

  color:white;

  font-size:20px;

  text-shadow:2px 2px #004060;

  text-align:center;
}

#pressStart{
  margin-top:18px;

  font-size:28px;

  color:white;

  letter-spacing:2px;

  text-shadow:3px 3px #004060;

  animation:blink 1s steps(1) infinite;
}

@keyframes blink{
  50%{
    opacity:0;
  }
}

/* RESULT */

#resultScreen{
  position:absolute;
  inset:0;

  z-index:12;

  display:flex;
  flex-direction:column;
  align-items:center;

  padding:14px 12px 14px;

  background:#78c8e8;
}

#resultTitle{
  font-size:30px;

  margin-bottom:2px;

  color:white;

  text-shadow:3px 3px #004060;
}

#resultItems{
  width:100%;

  display:grid;

  grid-template-columns:
    repeat(2, minmax(110px, 1fr));

  gap:6px;

  justify-items:center;
  align-content:start;

  color:white;

  font-size:19px;

  text-shadow:2px 2px #004060;

  text-align:center;

  overflow:hidden;
}

.resultHeading,
.resultComment{
  grid-column:1 / -1;
  text-align:center;
}

.resultHeading{
  font-size:24px;
  margin:0;
}

.resultComment{
  font-size:17px;
  margin:0 0 2px;
}

.resultRow{
  width:min(43vw, 160px);

  min-height:122px;

  padding:4px;

  border:3px solid #102030;

  background:rgba(255,255,255,0.18);

  box-shadow:3px 3px 0 #004060;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:2px;
}

.resultIcon{
  width:92px;
  height:92px;

  object-fit:contain;

  image-rendering:pixelated;
}

#shareButton,
#retryButton,
#homeButton{
  width:min(82vw, 320px);

  margin-top:5px;

  padding:10px 16px;

  border:4px solid #102030;

  background:white;

  color:#102030;

  font-size:21px;

  font-weight:bold;

  box-shadow:4px 4px 0 #102030;
}

#shareButton:active,
#retryButton:active,
#homeButton:active{
  transform:translate(4px,4px);
  box-shadow:none;
}

/* GAME BUTTONS */

#fishButton{
  position:absolute;

  left:50%;
  bottom:13%;

  transform:translateX(-50%);

  width:min(82vw,320px);
  height:72px;

  border:4px solid #102030;

  background:#fff000;

  color:#102030;

  font-size:30px;

  font-weight:bold;

  box-shadow:4px 4px 0 #102030;

  z-index:5;
}

#fishButton:active{
  transform:translateX(-50%) translate(4px,4px);
  box-shadow:none;
}

#exitButton{
  position:absolute;

  top:16px;
  right:16px;

  border:3px solid #102030;

  background:white;

  color:#102030;

  font-size:16px;

  padding:8px 10px;

  z-index:6;
}

#exitButton:active{
  transform:translate(2px,2px);
}