* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("Tartalom/eaurouge.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

header {
    background-color: #c00;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 2em;
    text-align: center;
}

a {
    color:blue;
}

a:visited {
    color: purple;
}

a:hover {
    color: red;
}

header .date {
    font-size: 0.9em;
}

nav {
    background-color: #333;
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    padding: 1em;
    text-decoration: none;
}

nav a:visited {
    color: white;
}

nav a:hover {
    background-color: #555;
}

main {
    padding: 2em;
    max-width: 1000px;
    margin: auto;
    background-color: white;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.card {
    background-color: #eee;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.card img {
    max-width: 100%;
    border-radius: 4px;
}

form label {
    display: block;
    margin-top: 1em;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.3em;
}

form input[type="submit"] {
    background-color: #c00;
    color: white;
    border: none;
    margin-top: 1em;
    cursor: pointer;
    padding: 0.7em 1.5em;
}

form input[type="submit"]:hover {
    background-color: #a00;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid black;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}

thead tr {
    background-color: #333333;
    color: white;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.flex-container.normal {
    flex-direction: row;
}

.flex-container.reverse {
    flex-direction: row-reverse;
}

.flex-container figure {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.flex-container figure img {
    max-width: 100%;
    height: auto;
}

.flex-container .text-block {
    flex: 2;
    min-width: 250px;
}

figure figcaption {
    text-align: center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em;
}

.form-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2em;
  max-width: 1000px;
  margin: auto;
  background-color: white;
  gap: 2em;
  flex-wrap: wrap;
}

.form-section {
  flex: 1 1 100%;
  background-color: #ffffff;
}

@media (min-width: 1500px) {
  .form-section {
    flex: 1 1 48%;
  }
}

.form-section h2 {
  margin-bottom: 1em;
  color: #333;
}

.form-section label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
  color: #222;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 100px;
}

.radio-group,
.checkbox-group {
  margin-top: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: normal;
}

.buttons {
  margin-top: 2em;
}

.buttons input[type="submit"],
.buttons input[type="reset"] {
  background-color: #c00;
  color: white;
  border: none;
  padding: 0.7em 1.5em;
  margin-right: 1em;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}

.buttons input[type="submit"]:hover,
.buttons input[type="reset"]:hover {
  background-color: #a00;
}