:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  --dkClr: #0D0D35;
  --ltClr: #f1f1f1;
  --txtClr: #181818;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--dkClr);
  color: var(--ltClr);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  padding: 40px 20px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

main {
  flex: 1;
}


.infoUI {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}


/* main {
  flex: 1;
  display: flex;
} */

#gameCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  z-index: 1;
}

.gameUI {
  width: 100%;
  height: 100%;
  background-color: var(--dkClr);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2
}

.gameUI * {
  text-align: center;
  margin: 5px;
}


.gameLinks {
  width: 100%;
  background-color: var(--dkClr);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-flow: row wrap;
  gap: 20px;
}

/* .gameLinks a {
  display: inline-block;
  margin: 10px;
  padding: 10px;
  background-color: var(--txtClr);
  color: var(--ltClr);
  text-decoration: none;
  border-radius: 5px;
  font-size: 90px;

} */

#gameStartDiv {
  display: flex;
}

#gameOverDiv {
  display: none;
}

#gameStartButton,
#gameRestartButton {
  display: inline-block;
  width: 100px;
  height: 50px;
  background-color: var(--txtClr);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 20px;
  color: var(--ltClr);
}

#gameStartButton,
#gameRestartButton p {
  margin-top: 0;
}


#gameStartButton:hover,
#gameRestartButton:hover {
  background-color: var(--ltClr);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 20px;
  color: var(--txtClr);
  cursor: pointer;
}

.custom-tooltip {
  position: relative;
  text-decoration: none;
  color: #002a57;
  font-weight: bold;
  padding: 10px;
  border: 1px solid #002c5c;
  border-radius: 5px;
  font-size: 90px;
  transition: all 0.3s;
}

.custom-tooltip:hover {
  background-color: #1b068d;
  font-size: 95px;
  color: white;
}

/* Vytvoření tooltipu pomocí pseudo-elementu ::after */
.custom-tooltip::after {
  content: attr(data-text);
  /* Vezme text z atributu data-text */
  position: absolute;

  /* Pozicování: umístíme ho nad odkaz a vycentrujeme */
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);

  /* Vzhled tooltipu */
  background-color: #333333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  /* Zabrání zalamování textu */
  opacity: 0;
  /* Skrytý */
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  /* Aby tooltip nepřekážel myši */
  z-index: 10;
}

/* Malá šipka dolů (volitelné) */
.custom-tooltip::before {
  content: '';
  position: absolute;
  bottom: 110%;
  /* Těsně pod tooltipem */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

/* Zobrazení při najetí */
.custom-tooltip:hover::after,
.custom-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Efekt mírného posunu nahoru při zobrazení */
.custom-tooltip:hover::after {
  transform: translateX(-50%) translateY(-5px);
}


#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  padding: 15px 20px;
  display: none;
  /* Skryté, dokud JS nerozhodne jinak */
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  font-family: sans-serif;
  font-size: 14px;
}

#cookie-banner p {
  margin: 0;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-btn-accept {
  background-color: #4CAF50;
  color: white;
}

.cookie-btn-deny {
  background-color: #f44336;
  color: white;
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}