@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

img {
  max-width: 90px;
  height: 90px;
}

body {
  margin: 0;
  text-align: center;
  background: #402e43;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: block;
  color: white;
}

img {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

body {
  font-size: 0;
}

h1,
p,
input,
button {
  font-size: 16px;
}

h1 {
  margin: 8px 0;
}

input,
button {
  margin: 6px;
}

p {
  margin: 6px 0;
}

#barraSfondo1,
#barraSfondo2,
#barraSfondo3 {
  display: inline-block;
  width: 301px;
  height: 26px;
  background-color: gray;
  margin: 6px 0;
  vertical-align: middle;
  box-sizing: border-box;
  font-size: 14px;
  color: #000;
}

#barraSfondo1 > div,
#barraSfondo2 > div,
#barraSfondo3 > div {
  height: 26px;
  line-height: 26px;
  font-size: 17px;
  padding-left: 6px;
  box-sizing: border-box;
}

#barraTempo {
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

#barraEnergia {
  min-width: 6px;
  color: black;
  background-color: orange;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

#barraVita {
  color: white;
  background-color: green;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px;
  box-sizing: border-box;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

#hud .hud-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#hud .hud-label {
  font-size: 20px;
  margin-right: 8px;
  color: white;
  min-width: 70px;
  text-align: right;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

#hud .hud-value {
  font-size: 16px;
  color: yellow;
}

#gameField {
  display: inline-block;
  text-align: left;
  font-size: 0;
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
  padding: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 100px 100px rgba(0, 0, 0, 0.45);
}

#gameField img {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  width: 7%;
  height: 7%;
}

#gameField img {
  display: inline-block;
  vertical-align: top;
}

#gameWrapper {
  display: inline-block;
  position: relative;
  margin-top: 100px;
  margin-left: 150px;
}

#titolo {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
  display: block;
  margin: -70px 0 8px 0;
  text-align: center;
  color: white;
  font-size: 100px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1500;
}

.notification {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 20rem;
  height: 23rem;
  background: #29292c;
  border-radius: 1rem;
  overflow: hidden;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff);
  --color: #32a6ff;
}

.notification:before {
  position: absolute;
  content: "";
  inset: 0.0625rem;
  border-radius: 0.9375rem;
  background: #18181b;
  z-index: 2;
}

.notification:after {
  position: absolute;
  content: "";
  width: 0.25rem;
  inset: 0.65rem auto 0.65rem 0.5rem;
  border-radius: 0.125rem;
  background: var(--gradient);
  transition: transform 300ms ease;
  z-index: 4;
}

.notification:hover:after {
  transform: translateX(0.15rem);
}

.notititle {
  color: var(--color);
  padding: 0.65rem 0.25rem 0.4rem 1.25rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 300ms ease;
  z-index: 5;
}

.notification:hover .notititle {
  transform: translateX(0.15rem);
}

.notibody {
  color: #99999d;
  padding: 0 1.25rem;
  transition: transform 300ms ease;
  z-index: 5;
}

.notification:hover .notibody {
  transform: translateX(0.25rem);
}

.notiglow,
.notiborderglow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle closest-side at center,
    white,
    transparent
  );
  opacity: 0;
  transition: opacity 300ms ease;
}

.notiglow {
  z-index: 3;
}

.notiborderglow {
  z-index: 1;
}

.notification:hover .notiglow {
  opacity: 0.1;
}

.notification:hover .notiborderglow {
  opacity: 0.1;
}

.note {
  color: var(--color);
  position: fixed;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.9rem;
  width: 75%;
}

#gameOverOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

#gameOverOverlay img {
  max-width: 95%;
  max-height: 95%;
  width: 900px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 20px;
}

#gameOverOverlay button {
  padding: 15px 30px;
  font-size: 300px;
  background-color: #ff6b6b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

#gameOverOverlay button:hover {
  background-color: #ff5252;
  font-weight: 400;
  font-style: normal;
  display: block;
  margin: -70px 0 8px 0;
  text-align: center;
  color: white;
  font-size: 100px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1500;
}

#gameField img {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  width: 7%;
  height: 7%;
}

#gameField img {
  display: inline-block;
  vertical-align: top;
}

.notification {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 20rem;
  height: 36rem;
  background: #29292c;
  border-radius: 1rem;
  overflow: hidden;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff);
  --color: #32a6ff;
}

.notification:before {
  position: absolute;
  content: "";
  inset: 0.0625rem;
  border-radius: 0.9375rem;
  background: #18181b;
  z-index: 2;
}

.notification:after {
  position: absolute;
  content: "";
  width: 0.25rem;
  inset: 0.65rem auto 0.65rem 0.5rem;
  border-radius: 0.125rem;
  background: var(--gradient);
  transition: transform 300ms ease;
  z-index: 4;
}

.notification:hover:after {
  transform: translateX(0.15rem);
}

.notititle {
  color: var(--color);
  padding: 0.65rem 0.25rem 0.3rem 1.25rem;
  font-weight: 500;
  font-size: 1.5rem;
  transition: transform 300ms ease;
  z-index: 5;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

.notification:hover .notititle {
  transform: translateX(0.15rem);
}

.notibody {
  color: #99999d;
  padding: 0rem 1.4rem;
  font-size: 1.2rem;
  transition: transform 300ms ease;
  z-index: 5;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;

}

.notification:hover .notibody {
  transform: translateX(0.25rem);
}

.notiglow,
.notiborderglow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle closest-side at center,
    white,
    transparent
  );
  opacity: 0;
  transition: opacity 300ms ease;
}

.notiglow {
  z-index: 3;
}

.notiborderglow {
  z-index: 1;
}

.notification:hover .notiglow {
  opacity: 0.1;
}

.notification:hover .notiborderglow {
  opacity: 0.1;
}

.note {
  color: var(--color);
  position: fixed;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.9rem;
  width: 75%;
}

#gameOverOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

#gameOverOverlay img {
  max-width: 95%;
  max-height: 95%;
  width: 900px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 20px;
}

#gameOverOverlay button {
  padding: 15px 30px;
  font-size: 24px;
  background-color: #ff6b6b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 200ms ease;
  outline: none;
  margin: 0;
}

#gameOverOverlay button:hover {
  background-color: #ff5252;
}
