/* main.css + extra stílus összevonva */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}

h1, h2 {
    color: #1a1a40;
    margin-top: 20px;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: left;
}

ul, li {
    text-align: left;
}

.header {
    background-color: #1a1a40;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 10px;
}

.header img {
    border-radius: 8px;
    margin-right: 15px;
}

.header h2 {
    margin: 0;
    font-weight: bold;
    font-size: 2rem;
}

.logo {
    height: 80px;
    width: auto;
}


.navbar {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background-color: #333366;
    padding: 10px 0;
    border-radius: 8px;
    flex-wrap: wrap;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #5555aa;
}

.content {
    padding: 1rem;
    margin-bottom: 0;
}

.content h1, .content p {
    margin-bottom: 10px;
}

.content a {
    color: #333;
}

.content a:visited {
    color: rgb(144, 144, 144);
}

.caption {
    color: aliceblue;
}

video, img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

img {
    max-width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #1a1a40;
    color: white;
}

.table-wrapper {
    background-image: url("../media/universe.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.table-wrapper table {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    color: white;
}

.table-wrapper th,
.table-wrapper td {
    padding: 0.5rem;
    border: 1px solid white;
}

.controls {
    margin-top: 20px;
    text-align: left;
    display: inline-block;
}

button {
    padding: 5px 10px;
    font-size: 1rem;
    margin-left: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    outline: 2px solid #ffcc00;
}

footer {
    background-color: #1a1a40;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0px;
    font-size: 1rem;
    color: white;
    width: 100%;
}


.footer address {
    font-size: 0rem;
    margin: 0;
    text-align: center;
}

footer a {
    color: aliceblue;
}

footer a:visited {
    color: rgb(144, 144, 144);
}

label {
    margin-top: 15px;
}

.sendform {
    text-align: right;
}

.indexlink {
    text-decoration: none;
    color: aliceblue;
}

div {
    padding: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .header, .navbar, .row {
        flex-direction: column;
        align-items: center;
    }

    .col-4, .col-6, .col-8, .col-9 {
        width: 100%;
        margin-bottom: 20px;
    }
}

.skip-link {
    position: absolute;
    top: -80px; /* Elrejti a képernyőről */
    left: 10px;
    background-color: #000;
    color: #fff;
    padding: 10px;
    z-index: 1000;
  }
  
  .skip-link:focus {
    top: 10px; /* Láthatóvá válik, amikor fókuszba kerül */
  }

  button {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    background-color: #5555aa;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  button:focus {
    outline: none;
  }
  
  /* Nagy kontrasztú mód */
  body.high-contrast {
    background-color: #000;
    color: #fff;
    background-image: none;
  }
  
  body.high-contrast a {
    color: #ff0; /* Sárga linkek */
  }
  
  body.high-contrast h1, body.high-contrast h2, body.high-contrast h3 {
    font-size: 2em;
    text-transform: uppercase;
    color: aliceblue;
  }

  body.high-contrast .table-wrapper{
    background-image: none;
  }

  body.high-contrast img {
    display: none;
  }
  
  body.high-contrast button {
    background-color: #ff0;
    color: #000;
  }
  
  body.high-contrast .skip-link {
    background-color: #fff;
    color: #000;
  }