body {
    background-image: url('aquarium.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: serif;
    font-size: 17px;
}

.panel {
    border: 1px solid #6f8ed6;
    box-shadow: 0 4px 12px rgba(0, 0, 80, 0.6);
    border-radius: 20px;
    background: #1f4f8ae2;
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.35em;
}

#app {
    width: 85%;
    height: 80vh;
    margin-top: 1.6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    overflow:auto;
    padding:0.5em;
}

#header {
    width: 97%;
    height: auto;
    min-height: 10vh;
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}


#otherbuttons{
  gap: 10px;
}

.frutiger-aero-button {
   overflow: hidden;
  --hue: 230;
  --sat: 0.55;
  --glow-intensity: 0.25;

  --fg: #e3f0ff;
  --bg: #2a5ea3;
  --bg-dark: #163a6b;

  background:
    radial-gradient(
      farthest-corner at bottom center,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    linear-gradient(to bottom, var(--bg), var(--bg-dark));

  border: 1px solid #3b6fbf;
  border-radius: 9999px;

  box-shadow:
    0 4px 10px rgba(0, 0, 60, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  color: #ffffff;
}

.frutiger-aero-button:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(1px);
}


.frutiger-aero-button.small {
  padding: 0.5em 1.5em;
  font-size: 0.975rem;
}

.frutiger-aero-button.medium {
  padding: 0.75em 2em;
  font-size: 1rem;
}

.frutiger-aero-button.large {
  padding: 0.9em 2.5em;
  font-size: 1.13rem;
}



#nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

h1 {
  color: #d6eeff;
  font-size: 1.7rem;
  text-align: center;
}

.aero-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(160, 210, 255, 0.6);
  border-radius: 10px;
  color: #ffffff;
  padding: 0.6em 1em;
  font-family: inherit;
  font-size: 1.1rem;
  width: 100%;
  outline: none;

  box-shadow:
    0 0 4px rgba(120, 190, 255, 0.6),
    inset 0 0 4px rgba(255,255,255,0.3);
}

.aero-input::placeholder {
  color: rgba(200,220,255,0.5);
}

.aero-input:focus {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(160, 210, 255, 0.7);
  box-shadow:
    0 0 12px rgba(120, 190, 255, 0.6),
    0 0 24px rgba(120, 190, 255, 0.4),
    inset 0 0 6px rgba(255,255,255,0.4);
}
.aero-input.small {
  font-size: 0.9rem;
  padding: 0.5em 0.8em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  width: 100%;
  max-width: 340px;
  align-items: center;
}

.link-text { color: #ffffff; }
.link-text a { color: #ffffff; }

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  max-width: 640px;
}

.balicek-karta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.4em;
  gap: 1em;
  flex-wrap: wrap;
}

.balicek-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.balicek-info strong { font-size: 1.05rem; color: #ffffff; }
.balicek-info span   { font-size: 0.82rem; color: #ffffff; }

.balicek-akce {
  display: flex;
  gap: 0.5em;
}

.empty-text { color: #ffffff; font-style: italic; }

.editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  width: 100%;
  max-width: 640px;
}

.editor-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.jazyk-row, .karta-radek {
  display: flex;
  align-items: center;
  gap: 0.7em;

}

.arrow { color: #ffffff; font-size: 1.1rem; flex-shrink: 0; }

.karty-list {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  max-height: 38vh;
  overflow-y: auto;
  padding: 0.8em;
  border-radius:15px;
  margin-right: -65px;
}

.editor-footer {
  display: flex;
  gap: 0.8em;
  justify-content: center;
  flex-wrap: wrap;
}

.hra-header {
  display: flex;
  gap: 1.5em;
  align-items: center;
  font-size: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1em;
  padding: 0.8em;
  border: 1px solid #6f8ed6;
  box-shadow: 0 4px 12px rgba(0, 0, 80, 0.6);
  border-radius: 20px;
  background: #1f4f8ae2;
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}


.hra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.9em;
  width: 100%;
  max-width: 720px;
}

.karta {
  height: 80px;
  perspective: 600px;
  cursor: pointer;
}

.karta-vnitrni {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  border-radius: 12px;
}

.karta.otocena .karta-vnitrni,
.karta.sparovana .karta-vnitrni {
  transform: rotateY(180deg);
}

.karta-predni, .karta-zadni {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.karta-predni {
  background: linear-gradient(to bottom, #2a5ea3, #163a6b);
  border: 1px solid #3b6fbf;
  box-shadow: 0 4px 10px rgba(0,0,60,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  font-size: 1.5rem;
}

.karta-zadni {
  background: linear-gradient(to bottom, #3268b8, #1a4a80);
  border: 1px solid #5590e0;
  box-shadow: 0 4px 10px rgba(0,0,60,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: rotateY(180deg);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.4em;
}

.karta.sparovana .karta-zadni {
  background: linear-gradient(to bottom, #1e7a4a, #0d4a2a);
  border-color: #3aaa6a;
  box-shadow: 0 0 12px rgba(40,180,90,0.4);
}

.vysledky-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  text-align: center;
}

.vysledky-stats {
  display: flex;
  gap: 2em;
  padding: 1em 2.5em;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 0.2em; }
.stat-label  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-hodnota { font-size: 2rem; font-weight: 800;  }

.vysledky-akce { display: flex; gap: 1em; flex-wrap: wrap; justify-content: center; }

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
   margin: 7px 6px;
  background: transparent;
  box-shadow: none;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #6db3f2,
    #1e69de
  );
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.6),
    0 0 6px rgba(0,150,255,0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #9fd8ff,
    #3a8dff
  );
}
