/* Alapstílusok */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8; /* világos, természetes háttér */
    color: #2e3a2f; /* sötétzöldes szöveg */
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Táblázatok stílusa */
table {
    background-color: #ffffff;
}

/*
th, td {
    text-align: justify;
    padding: 12px 15px;
    width: 50%;
}
*/

th {
    background-color: #a3c9a8; /* világos zöld */
    color: #1e2f1e;
    font-weight: 600;
    border-bottom: 2px solid #7fa87f;
}

/*
td {

}
*/

.description_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(46, 58, 47, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.description_table th, .description_table td, .description_table tr {
    text-align: justify;
    padding: 12px 15px;
    width: 50%;
}


.description_table tbody td {
    border-bottom: 1px solid #d6e3d6;
}

#board5X6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 6 / 5));
  height: min(100vh - 40px, calc((100vw - 40px) * 5 / 6));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}


#board8X4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 4 / 8));
  height: min(100vh - 40px, calc((100vw - 40px) * 8 / 4));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board8X4 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board8X4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#board4X8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 8 / 4));
  height: min(100vh - 40px, calc((100vw - 40px) * 4 / 8));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board4X8 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board4X8 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#board5X8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 8 / 5));
  height: min(100vh - 40px, calc((100vw - 40px) * 5 / 8));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board5X8 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board5X8 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#board8X5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 5 / 8));
  height: min(100vh - 40px, calc((100vw - 40px) * 8 / 5));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board8X5 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board8X5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#board5X10 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 10 / 5));
  height: min(100vh - 40px, calc((100vw - 40px) * 5 / 10));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board5X10 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board5X10 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#board7X8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 8 / 7));
  height: min(100vh - 40px, calc((100vw - 40px) * 7 / 8));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board7X8 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board7X8 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#board6X9 {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 9 / 6));
  height: min(100vh - 40px, calc((100vw - 40px) * 6 / 9));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board6X9 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board6X9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#board6X10 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  width: min(100vw - 40px, calc((100vh - 40px) * 10 / 6));
  height: min(100vh - 40px, calc((100vw - 40px) * 6 / 10));
  margin: auto;
  place-content: center;
  align-items: center;
  justify-content: center;
}

#board6X10 div {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

#board6X10 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Sorok hover effekt */
/*
tbody tr:hover {
    background-color: #e6f0e6;
}
*/
/* Diagram konténer */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(46, 58, 47, 0.15);
    margin-bottom: 30px;
}

/* Címek */
h1, h2, h3 {
    color: #3a5a40;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Linkek */
a {
    color: #4a7c59;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2e4a31;
}

/* Gombok (ha vannak) */
button {
    background-color: #7fa87f;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5f7a5f;
}

img {
    width: 100%;
    height: 100%;
}
