/*------------------------------------------------------Alapbeállítások----------------------------------------------------------------------------------*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  
  body {
	font-family: Arial, sans-serif;
	background-color: #cf76025e;
	display: flex;
	justify-content: center;
	position: relative;
	padding: 0 100px;
  }

  /*-----------------------------------------------------Tartalom konténer------------------------------------------------------------------------*/
  .container {
	max-width: 900px;
	background-color: rgba(146, 130, 7, 0.288);
	padding: 20px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
  
  }


  main, section, .content-section {
  	text-align: left;
  }

  h1, h2, h3 {
  	font-family: 'Georgia', serif;
  }
  
  /*----------------------------------------------------------Fejléc----------------------------------------------------------------------*/
  header {
	text-align: center;
	margin-bottom: 20px;
  }
  
  .header-title {
	font-size: 3em;
	color: white;
	margin-bottom: 10px;
	padding: 20px;
	background-image: url("../media/HATTERKEP1.png");
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  
   }
  
  /*----------------------------------------------------------Navigáció---------------------------------------------------------------------*/
  nav {
	background-color: #503402;
	padding: 0.5rem 1rem;
	border-radius: 8px;
  }

  nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 0;
	margin-bottom: 5px;
	margin-top: 5px;
  }
  
  nav ul li a {
	text-decoration: none;
	color: #ffffff;
	font-weight: bold;
	padding: 5px 10px;
	border: 1px solid transparent;
  }
  
  nav ul li a.active,
  nav ul li a:hover {
	border: 1px solid #ffffff;
	border-radius: 5px;
  }

  /*------------------------------------------------Navigációs menü – kivétel--------------------------------------------------------------------------------*/
	nav a {
	text-decoration: none;
	color: white;
	padding: 0.5em;
  }
  
  nav a:hover,
  nav a.active {
	text-decoration: underline;
  }

  /*--------------------------------------------------------Általános linkek-----------------------------------------------------------------------*/
  .content-section a:link {
	color: #0066cc;
	text-decoration: underline;
  }
  
  .content-section a:visited {
	color: #735470;
	text-decoration: underline;
  }
  
  .content-section a:hover {
	color: #004999;
  }
  
  /*--------------------------------------------------------Tartalmi részek--------------------------------------------------------------------*/
  .content-section {
	margin-bottom: 30px;
  }
  
  .content-section h2 {
	font-size: 1.5em;
	margin-bottom: 10px;
	color: #222;
	text-align: left;
  }
  
  .content-section p {
	margin-bottom: 10px;
	line-height: 1.6;
	color: #333;
	text-align: left;
  }
  
  /*--------------------------------------------------------Videó---------------------------------------------------------------*/
  /*
  .video-section {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
  }
	*/
	.video-section {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 2em 0;
	  }
  /*
  video {
	max-width: 100%;
	border: 2px solid #ccc;
	border-radius: 5px;
  }
	*/
	.video-section video {
		max-width: 100%;
		height: auto;
		border: 2px solid #503402;
		border-radius: 8px;
	}

	.video-section figcaption {
		margin-top: 0.5em;
		font-size: 0.95em;
		text-align: center;
		color: #333;
	}


.video-section details {
  margin-top: 1em;
  padding: 1em;
  background-color: #f3e2c7;
  border: 2px solid #503402;
  border-radius: 8px;
  width: 90%;
  font-size: 0.95em;
  color: #333;
}

.video-section summary {
  cursor: pointer;
  font-weight: bold;
  color: #503402;
  padding: 0.5em;
  border-bottom: 1px dashed #503402;
  list-style: none; 
  position: relative;
}


.video-section summary::before {
  content: '▶';
  position: absolute;
  left: -1.5em;
  transition: transform 0.3s ease;
}


.video-section details[open] summary::before {
  transform: rotate(90deg);
}


.video-section details p {
  margin-bottom: 0.5em;
  line-height: 1.4;
}
  
  /*-------------------------------------------------------Lábléc------------------------------------------------------------ */
  footer {
	text-align: center;
	padding: 20px;
	font-size: 0.9em;
	color: #333;
	/*border-top: 1px solid #ccc;*/
  }
  
  footer a:link {
	color: #333;
	text-decoration: underline;
  }

  footer a:visited {
	color: #735470;
	text-decoration: underline;
  }

  footer a:hover {
	text-decoration: underline;
  }


  .table-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
  }

  hr {
	border: 1px solid #503402;
  }
  
  .character-table {
	border-collapse: collapse;
	width: 100%;
	max-width: 600px;
	background-color:  #cca562;

  }
  
  .character-table th {
	border: 5px solid #794d00;
	background-color:  #503402;
	color: white;
	padding: 10px;
	font-size: 1.2em;
  }
  
  .character-table td {
	border: 5px solid #794d00;
	padding: 10px;
	vertical-align: top;
	color: #333;
  }

  .character-table caption {
	caption-side: top;
	text-align: left;
	margin-bottom: 10px;
	font-weight: bold;
	font-size: 1.2em;
	background-color: #50330279;
	color: white;
	padding: 10px;
	border-radius: 5px;
  }
  
  .character-table caption details summary {
	cursor: pointer;
	font-weight: bold;
  }
  
  .character-table caption details[open] summary {
	margin-bottom: 5px;
  }
  
  .character-table caption details p {
	margin: 5px 0 0 15px;
	font-weight: normal;
	font-size: 0.95em;
	color: white;
  }
  
  .image-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
  }
  /*
  .image-column img {
	width: 120px;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
  }
	*/
	.image-column img {
		width: 30%;
		min-width: 100px;
		max-width: 140px;
		border-radius: 8px;
		object-fit: cover;
	  }
  
  @media (max-width: 768px) {
  .table-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .image-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .image-column img {
    width: 100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .table-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .image-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }

  .image-column img {
    width: 25%;
    max-width: 120px;
    min-width: 80px;
  }
}
/*--------------------------------------------------ŰRLAP------------------------------------------------------------------*/
  .form-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem;
	background-color: #f3c89a;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .form-container label,
  .form-container p {
	font-weight: bold;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	display: block;
  }
  
  .form-container input[type="text"] {
	width: 75%;
	padding: 0.5rem;
	border: 3px solid #ccc;
	border-radius: 6px;
	margin-top: 0.3rem;
  }
  .form-container textarea {
	width: 100%;
	padding: 0.5rem;
	border: 3px solid #ccc;
	border-radius: 6px;
	margin-top: 0.3rem;
  }
  
  .form-container input[type="radio"] {
	margin-right: 0.5rem;
  }
  .form-container input[type="checkbox"] {
	margin-top: 0.5rem;
  }
  
  .form-container input[type="submit"],
  .form-container input[type="reset"] {
	margin-top: 1.5rem;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	background-color: #503402;
	color: white;
  }
  
  .form-container input[type="reset"] {
	background-color: #888;
	margin-left: 0.5rem;
  }
  
  .form-container input[type="submit"]:hover,
  .form-container input[type="reset"]:hover {
	opacity: 0.9;
  }

  /*------------------------------------------------FELSOROLÁS-------------------------------------------------*/

.left-list {
  list-style-type: disc;
  padding-left: 2em;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .left-list {
    padding-left: 1.5em;
  }
}

/*------------------------------------------------JAVASCRIPT Gomb------------------------------------------------------*/
.font-size-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 1rem 0;
}

.font-size-controls button {
  padding: 0.4em 0.7em;
  font-size: 1em;
  border: 1px solid #503402;
  background-color: #f3c89a;
  color: #503402;
  border-radius: 5px;
  cursor: pointer;
}

.font-size-controls button:hover {
  background-color: #e0aa74;
}

/*---------------------------------------------------ÁTUGRÓ---------------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/*--------------------------------------------------------------------VAKSI MÓD----------------------------------------------------------------*/

.high-contrast {
  background-color: #000 !important;
  color: #ffff00 !important;
  font-size: 120% !important;
}

.high-contrast .container {
  background-color: #000 !important;
  color: #ffff00 !important;
}

.high-contrast p,
.high-contrast h1,
.high-contrast h3,
.high-contrast li,
.high-contrast td,
.high-contrast th,
.high-contrast figcaption,
.high-contrast label,
.high-contrast legend {
  color: #ffff00 !important;
  background: transparent !important;
}

.high-contrast h2 {
  color: #ff6600 !important;
  text-decoration: underline;
}

.high-contrast a {
  color: #00ffff !important;
  text-decoration: underline;
}

.high-contrast a:hover,
.high-contrast a:focus {
  color: #00ffff !important;
}

.high-contrast nav,
.high-contrast footer {
  background-color: #111 !important;
  color: #ffff00 !important;
}

.high-contrast button {
  background-color: #222 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

.high-contrast input,
.high-contrast textarea {
  background-color: #000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

.high-contrast table.character-table {
  background-color: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.high-contrast .character-table th,
.high-contrast .character-table td {
  background-color: #000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

.high-contrast .character-table caption {
  background-color: #111 !important;
  color: #00ffff !important;
  border: none !important;
}

.high-contrast .character-table caption details summary {
  color: #00ffff !important;
}

.high-contrast .character-table caption details p {
  color: #ffff00 !important;
}

.high-contrast .form-container {
	background-color: #000;
}

.high-contrast .video-section summary {
	color: #00ffff !important;
	border: none !important;
}

.high-contrast .video-section details {
	background-color: #000;
}

/*-------------------------------------------------------Nomtatáshoz-------------------------------------------------------*/
@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0;
  }

  header,
  nav,
  footer,
  hr,
  .video-section,
  .font-size-controls,
  .skip-link {
    display: none !important;
  }

  .container {
    max-width: 100%;
    box-shadow: none;
    background: none !important;
    padding: 0;
  }

  .content-section,
  .form-container,
  .character-table,
  .left-list {
    color: black !important;
    background: none !important;
    box-shadow: none !important;
  }

  .image-column img {
    width: 80px !important;
    max-width: none !important;
    height: auto;
  }

  .character-table,
  .character-table th,
  .character-table td {
    border: 1px solid black !important;
    color: black !important;
    background: none !important;
  }

  .character-table caption {
    background: none !important;
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }

}

@media screen and (max-width: 480px) {
  body {
    padding: 0 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .header-title {
    font-size: 2em;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li {
    text-align: center;
  }

  .font-size-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .font-size-controls button {
    width: 100%;
  }

  .video-section video {
    width: 100%;
    max-width: 100%;
  }

  .image-column {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .image-column img {
    width: 45%;
    max-width: none;
  }

  .character-table {
    font-size: 0.85em;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
  }

  .content-section h2 {
    font-size: 1.2em;
  }

  .content-section p,
  .left-list li {
    font-size: 1em;
    line-height: 1.5;
  }

  .form-container input[type="text"],
  .form-container textarea {
    width: 100%;
  }

  .form-container input[type="submit"],
  .form-container input[type="reset"] {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media screen and (min-width: 1024px) {
  .form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
  }

  .form-container input[type="text"],
  .form-container textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem;
  }

  .form-container input[type="submit"],
  .form-container input[type="reset"] {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    width: auto;
  }

  .form-container p,
  .form-container label {
    font-size: 1.1rem;
  }
}