body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "VT323", monospace;
  font-size: 24px;
  text-transform: uppercase;
  background: white;
}

#container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 30px;
}

.tile {
  width: 300px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.photo {
  width: 98%;
  height: 98%;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
}

.word {
  text-align: center;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 90%;
  padding: 5px 0;
  border-radius: 3px;
}

.hovered .photo {
  animation: shake 0.3s;
}

.clicked .photo {
  animation: zoom 1s;
  z-index: 1000;
}

@keyframes shake {
  20% { transform: translate(-1px, -2px) rotate(-1deg); }
  40% { transform: translate(-3px, 0px) rotate(1deg); }
  60% { transform: translate(3px, 2px) rotate(0deg); }
  80% { transform: translate(1px, -1px) rotate(1deg); }
  100% { transform: translate(-1px, 2px) rotate(-1deg); }
}

@keyframes zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

#scores {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(255, 255, 255, 0.5);
  pointer-events: none;
}

#cost {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 48px;
  color: black;
}

#gauges {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
}

.gauge {
  padding: 20px;
  text-align: center;
  width: 200px;
}

#reset {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#reset-button {
  color: black;
  text-align: center;
  cursor: pointer;
  padding: 3px 5px;
}

#reset-button:hover {
  background: rgba(0, 0, 0, 0.2);
}

#reset-button:active {
  background: #6a06ed;
}

#banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  height: 80%;
  width: 80%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
}

#banner-content {
  width: 70%;
  height: 60%;
  text-align: center;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* #banner-content p {
  margin: 0.5em 0;
} */

#buttons {
  display: flex;
  margin: auto;
}

#ok-button {
  background-color: #6a06ed;
  margin: 0 10px;
  cursor: pointer;
  padding: 3px 5px;
}

#cancel-button {
  background-color: grey; 
  margin: 0 10px;
  cursor: pointer;
  padding: 3px 5px;
}