body {
  font-family: "Poppins", sans-serif;
  background-color: #e9f5ec;
  color: #1b5e20;
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  background-color: #1b5e20;
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
  height: 80px;
}

h1 {
  margin: 10px 0 0;
}

main {
  padding: 20px;
}

button {
  background-color: #2b8a3e;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #256f33;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 🔥 přesně 5 karet v řádku */
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
  padding-bottom: 120px; /* 🔥 místo pro footer */
}
@media (max-width: 1100px) {
  .vote-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .vote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .vote-grid { grid-template-columns: 1fr; }
}

.vote-card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-card:hover {
  transform: scale(1.05);
}

.contestant-img {
  width: 100%;
  height: 150px;
  object-fit: cover; /* obrázek se přizpůsobí kartě */
  border-radius: 10px;
  margin-bottom: 10px;
}

.vote-card h3 {
  margin: 5px 0;
}

footer {
  background-color: #1b5e20;
  color: white;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.hidden {
  display: none;
}

body {
  background-image: url('tile.png'); /* cesta k tvému obrázku */
  background-repeat: repeat;
  background-position: top left;
  background-color: #ffffff; /* fallback barva */
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  color: #333;
  border-radius: 15px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 90%;
  animation: pop 0.2s ease;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.modal-buttons button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.modal-buttons button:hover {
  background-color: #0056b3;
}

#cancelVote {
  background-color: #ccc;
}

#cancelVote:hover {
  background-color: #999;
}

/* --- Classes grid --- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.class-card {
  background: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.class-card h4 {
  margin-bottom: 10px;
}

.vote-card button {
  margin-top: 5px;
  width: 100%;
}

@media (max-width: 600px) {
  body {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
  }

  body::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }
}
header {
  position: relative; /* důležité pro umístění tlačítka */
}

.logout-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(0,0,0,0.35);
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.videoBtn {
  background: #555;
}

.videoBtn:hover {
  background: #333;
}

table {
  margin: 30px auto;
  border-collapse: collapse;
  width: 80%;
  background: white;
}

th, td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #1b5e20;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.category-bar{
  display:flex;
  gap:10px;
  justify-content:center;
  margin: 10px 0 20px;
}
.catBtn{
  padding:10px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
}
.catBtn.active{
  outline: 3px solid rgba(0,0,0,0.15);
}
.category-hint {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
  color: #2e5e2e;
}

.category-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.how-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.how-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.how-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.how-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.how-btn:hover {
  transform: scale(1.08);

  .left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.top-bar {
  background: #1b5e20;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.center {
  text-align: center;
}

.right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.plan-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.plan-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}



