html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html{
  font-size: 16px;
  font-family: Arial, sans-serif;
}

body {
  background-image: url("kepek/bg5.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #272822;
  display: flex;
  flex-direction: column;

  font-size: 1rem;
}

h1{
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  background-color: rgb(255, 87, 177);
  color: black;
  padding: 10px;
  border-radius: 8px;
}

h2{
  font-size: 2rem;
  color: rgb(255, 87, 177);
  font-style: italic;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

p{
  font-size: 1rem;
}

img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1rem auto;
}

img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.img-fixed {
    width: 300px;
}

.sajat-navbar {
    background-color:  rgb(165, 80, 165);
}

.sajat-navbar .nav-link,
.sajat-navbar .navbar-brand {
    color: white;
}

.navbar-brand {
  font-variant: small-caps;
  font-weight: 700;
}

video {
  display: block;
  margin: 50px auto;
  }

.video-sanyi {
    width: 600px;
}

.navbar .active-page {
  background-color: rgb(255, 87, 177);
  border-radius: 0.5rem;
}

#doboz {
  background-color: #f9f9f9;
  max-width: 1300px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid black;
  box-shadow: 5px 5px 10px black;
}


aside {
  background-color: lightskyblue;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
  font-family: sans-serif;
}

aside h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.4rem;
}

aside p {
  color: #555;
  line-height: 1.5;
}

aside a {
  display: inline-block;
  margin-top: 1rem;
  background-color: rgb(165, 80, 165);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

aside a:hover {
  background-color: rgb(132, 47, 132);
}

footer {
    background-color: #e9dce5;
    color: #444;
    padding: 20px;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 50px;
    border-top: 2px solid #d3b8c6;
}


.tartalomra_ugras {
    position: fixed;
    left: -100%;
    top: 0;
    z-index: 1000;
    background-color: #ffc107;
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    transition: left 0.2s ease-in-out;
}

.tartalomra_ugras:focus {
    left: 10px;
}




#eredmeny {
  width: 1200px;
  max-width: 1200px;
  margin: 30px 0;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid black;
  box-shadow: 5px 5px 10px black;
  box-sizing: border-box;
}

#eredmeny img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

#eredmeny p {
  word-wrap: break-word;
  text-align: center;
  font-family: Arial, sans-serif;
}

legend {
  color: rgb(255, 87, 177);
  font-style: italic;
  font-weight: normal;
}

input[type="submit"] {
  background-color: rgb(165, 80, 165);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

input[type="submit"]:hover {
  background-color: rgb(147, 71, 147);
}

details {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

thead {
  background-color: #efefef;
}

tr:last-child td {
  border-bottom: none;
}


.text-box {
  background-color: #ffb3c6;
  border: 2px solid #ff79a6;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(244, 167, 185, 0.3);
  max-width: 100%;
  margin-top: 0px;
  margin-bottom: 80px;
  
  
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 200px;   
}

.text-box, .text-box p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #4a4a4a;
  font-size: 1.15em !important;
}

a {
  color: blue;
  text-decoration: underline;
}

a:visited {
  color: purple;
}

body.high-contrast {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 1.25em !important;
  font-family: Arial, sans-serif !important;
  line-height: 1.8;
}

body.high-contrast p,
body.high-contrast span,
body.high-contrast li,
body.high-contrast td,
body.high-contrast th {
  font-size: 1.25em !important;
  color: #000 !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {
  color: #000 !important;
  font-size: 2em !important;
}

body.high-contrast a {
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: bold;
}

body.high-contrast button,
body.high-contrast input[type="submit"],
body.high-contrast .btn {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  font-size: 1.25em !important;
  padding: 10px 20px;
  cursor: pointer;
}

body.high-contrast .text-box,
body.high-contrast aside,
body.high-contrast #doboz,
body.high-contrast #eredmeny {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  font-size: 1.25em !important;
}

body.high-contrast header,
body.high-contrast footer,
body.high-contrast nav,
body.high-contrast .navbar {
  background-color: #fff !important;
  color: #000 !important;
  border-top: 2px solid #000 !important;
  border-bottom: 2px solid #000 !important;
}

body.high-contrast table,
body.high-contrast th,
body.high-contrast td {
  border: 2px solid #000 !important;
  background-color: #fff !important;
  color: #000 !important;
}

body.high-contrast img {
  filter: brightness(1.2) contrast(1.1);
}

body.high-contrast *,
body.high-contrast *::before,
body.high-contrast *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

body.high-contrast .text-box {
  font-size: 1.8em !important;
  font-weight: bold;
}

body.high-contrast h1 {
  background-color: #fff !important;
  color: #000 !important;
  font-size: 2em !important;
  padding: 0.5em;
  border: 2px solid #000;
  border-radius: 8px;
}

body.high-contrast legend {
  color: #000 !important;
  font-weight: bold;
  font-size: 1.2em;
}

#toggle-accessibility {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#toggle-accessibility:hover {
  background-color: #eee;
}

body.high-contrast #toggle-accessibility {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}