/* === RESET A ZÁKLAD === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Garamond', serif;
  background-color: #1d1a14; /* kámen a stín */
  color: #e0d6b9; /* pergamenový text */
  line-height: 1.6;
}

/* === TYPOGRAFIE === */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 0.6em;
  line-height: 1.3;
  color: #d8b064; /* mosaz/zlato */
}

h1 {
  font-size: clamp(1.6rem, 1.5rem + 1vw, 2.4rem);
}

h2 {
  font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.9rem);
}

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.55rem);
}

h4 {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.3rem);
}

p, ul, ol {
  margin-bottom: 1.2em;
}

/* === ODKAZY === */
a {
  color: #cfa956; /* teplý bronzový odstín */
  text-decoration: none;
  transition: color 0.2s ease;
}

/* === JAZYKOVÝ PŘEPÍNAČ (ARVALOM STYL) ===================== */
/* Obal pro zarovnání jazykového výběru na střed */
.jazykovy-vyber-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.jazykovy-vyber {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Tlačítko každého jazyka */
.jazyk-btn {
  background: #3a2f1b;          /* tmavý voskový tón */
  border: 1px solid #9a7a43;    /* bronzová linka */
  color: #f3e6c1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* Zvýraznění při hoveru */
.jazyk-btn:hover {
  background: #b88a3f;
  color: #1d1407;
  transform: translateY(-2px);
}

/* Aktivní jazyk */
.jazyk-btn.active {
  background: #d2a849;          /* zlatá */
  border-color: #e6c77a;
  color: #1a1206;
  cursor: default;
}

/* Ikony vlajek */
.jazyk-ikona {
  width: 30px;
  height: 20px;
  object-fit: cover;
}


a:hover {
  color: #f3e3b0;
  text-decoration: underline;
}

/* === HORNÍ LIŠTA === */
.top-bar {
  background: #2c261f;
  padding: 12px 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.user-status {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.logout {
  color: #cf5e5e;
  font-weight: 600;
}

/* === LOGIN FORMULÁŘ === */
.login-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.login-form input {
  padding: 6px 14px;
  background: #3a2e23;
  border: 1px solid #82653d;
  border-radius: 5px;
  color: #f5e6c5;
}

.login-form button {
  padding: 6px 16px;
  background: linear-gradient(to right, #a4783e, #d6b066);
  border: 1px solid #c2a569;
  border-radius: 6px;
  color: #1d1407;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-form button:hover {
  background: #b5853a;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  
  padding: 0 12px;
  border: 1px solid #c2a569;
  color: #c2a569;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle; /* ← Tohle zarovná tlačítko mezi ostatními */
}




.btn-register:hover {
  background: #c2a569;
  color: #1c150b;
}

/* === HLAVNÍ OBSAH === */
#game-container {
  background: #29251a;
  padding: 10px 10px;
  min-height: 70vh;
  border-top: 2px solid #443722;
}

/* === HLÁŠKY === */
.alert-message {
  max-width: 600px;
  margin: 20px auto;
  padding: 14px 22px;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.95rem;
}

.alert-message.success {
  background: #1f2d1f;
  border: 1px solid #90cb7b;
  color: #dcf9c6;
}

.alert-message.error {
  background: #3a1d1d;
  border: 1px solid #e26b6b;
  color: #ffc9c9;
}

/* === TLAČÍTKA ZPĚT – VŽDY NA STŘED === */
.admin-back-link,
.back-home {
  display: block;
  
  width: fit-content;
  padding: 6px 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  /* Pokud máš víc tlačítek pod sebou, můžeš upravit mezery tady */
  font-size: 1rem;
  font-weight: 500;
  background: #47371f;
  border: 1px solid #9a7b47;
  border-radius: 6px;
  color: #f1e6ca;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}


.back-home:hover,
.admin-back-link:hover {
  background-color: #b88a3f;
  border-color: #e6c78a;
  color: #1b1206;
}

/* === PATIČKA === */
.footer-bar {
  background: #2c261f;
  color: #b8b09a;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

.lang-mobile-btn,
.lang-mobile-menu {
  display: none;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #131314;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #e3e3e3;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 250px;
  max-width: 400px;
  min-width: min-content;
  border-color: #8e918f;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #13131461;
  border-color: #8e918f1f;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #e3e3e31f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: white;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: white;
  opacity: 8%;
}


@media (max-width: 768px) {

#game-container {
  background: #29251a;
  padding: 5px 5px;
}
  .login-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 90%;
    margin: 0 auto;
  }

  .login-form input,
  .login-form button,
  .btn-register {
    padding: 4px 8px;
    width: 100%;
    margin: 2px 0;
  }
  
  /* Ikony vlajek */
.jazyk-ikona {
  width: 36px;
  height: 24px;
}
.jazykovy-vyber {
    display: none;
  }
  .lang-mobile-btn { display: inline-flex; }
  .jazykovy-vyber { 
    display: none;
    position: absolute;
    left: 50%;
    top: 54px;
    transform: translateX(-50%);
    flex-direction: column;
    background: #201c14;
    border: 1px solid #9a7a43;
    border-radius: 12px;
    box-shadow: 0 8px 32px #000b;
    padding: 12px 0;
    z-index: 200;
    min-width: 170px;
  }
  .jazykovy-vyber.open {
    display: flex;
  }
  .jazykovy-vyber .jazyk-btn {
    border: none;
    background: none;
    width: 100%;
    border-radius: 0;
    justify-content: flex-start;
    font-size: 18px;
    margin: 2px 0;
    padding: 8px 16px;
  }

 
  .lang-mobile-btn:active,
  .lang-mobile-btn:hover {
    background: #b88a3f;
    border-color: #e6c77a;
    color: #1d1407;
  }

.lang-mobile-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #3a2f1b;
    border: 1px solid #9a7a43;
    border-radius: 50%;
    margin-left: 10px;      /* nebo větší podle chuti */
    align-self: center;
    position: relative;
    top: 2px;               /* doladí výšku k textu */
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    /* ostatní styly */
  }

.user-status {
    justify-content: space-between;
  }
  .lang-mobile-btn {
    margin-left: auto;
    margin-right: 0;
  }
  
}
