body {
  font-family: "Roboto", Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}
h1, h2 {
  text-align: center;
}

header, section, footer {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  background: #fff;
  margin-top: 10px;
  border-radius: 8px;
}

header {
  text-align: center;
  background-color: #cfe2ff;
}

h1, h2 {
  color: #0056b3;
}

img {
  max-width: 100%;
  border-radius: 4px;
}

iframe {
  width: 100%;
  height: 400px;
}

form label {
  display: block;
  margin: 10px 0 5px;
}

input[type="text"],
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

input[type="checkbox"] {
  margin-right: 5px;
}

button {
  padding: 10px 15px;
  background-color: #0056b3;
  color: white;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}

button:hover {
  background-color: #003f87;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 20px;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
  font-size: 1rem;
}

th {
  background-color: #f0f0f0;
  color: #333;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.gallery-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #333;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.palya-kep {
  flex: 1 1 300px;
  max-width: 350px;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.rules-form {
  background-image: url('image8.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  border-radius: 8px;
  color: white; 
}

.tabla-video-wrapper {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
}

.poszt-tabla {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #aaa;
}

.poszt-tabla th, .poszt-tabla td {
  border: 1px solid #aaa;
  padding: 12px;
  text-align: left;
}

.poszt-tabla th {
  background-color: #555;
  color: white;
}

.poszt-tabla .sotet {
  background-color: #f2f2f2;
}

.video-wrapper iframe {
  width: 100%;
  height: 200px; 
  border-radius: 6px;
}
.rules-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.rules-text {
  flex: 1 1 500px;
}

.rules-image {
  flex: 0 0 300px;
}

.rules-image img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  align-items: center;
  
}

.form-wrapper {
  margin-top: 30px;
}


.menu {
  text-align: center;
  margin: 10px 0 20px 0;
}

.menu a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: #e0f0ff;
}
.menu a.active {
  font-weight: bold;
  color: red; 
  text-decoration: underline;
}

@media (max-width: 700px) {
  .layout, .rules-layout {
    flex-direction: column;
  }
}