body {
  margin: 0;
  overflow-y: auto; /* Zmieniono z hidden na auto */
  display: flex;
  flex-direction: column;
  height: 100vh; /* Cała wysokość widoku przeglądarki */
}

/* Sekcja wypełniająca cały ekran */
.tenis-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center; /* Wyśrodkowanie elementów w pionie */
  padding: 40px 20px;
  background-color: #f9f9f9;
  margin: 0; /* Usuń margines */
  flex: 1; /* Zajmij całą dostępną przestrzeń */
  box-sizing: border-box; /* Uwzględnij padding w wysokości */
  min-height: 100%; /* Zmieniono z height na min-height */
}

.tenis-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  height: 500px; /* Stała wysokość kart */
  padding: 20px;
  text-align: center;
  display: flex; /* Flexbox wewnątrz kart */
  flex-direction: column; /* Układ w kolumnie */
  justify-content: space-between; /* Rozmieszczenie elementów z odstępami */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tenis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tenis-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tenis-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.tenis-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.tenis-form {
  margin-top: auto; /* Wypycha formularz na dół karty */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tenis-form input[type="email"] {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.tenis-form button {
  padding: 10px 20px;
  background-color: var(--logo2, #2e8bff);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tenis-form button:hover {
  background-color: var(--logo3, #307fa2);
}

.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: auto;
  z-index: 1000 !important;
  visibility: hidden;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  padding-right: 5px;
}

.custom-modal.visible {
  visibility: visible;
}

.modal-tennis-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}



.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.modal-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.close {
  position: absolute;
  top: -22px;
  right: 0px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
}

