body {
    background-image: url('tartalom/kepek/hatterkep.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 100%;
}

a:link {
    color: orange;
    text-decoration: underline;
}


a:hover {
    text-decoration: underline;
    color: darkorange;
}

a:visited {
    color: red;
    text-decoration: underline;
}

h1 { 
    font-size: 2rem; 
}

small { 
    font-size: 0.875rem; 
}

header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    display: block;
    margin: 0 auto;
    width: 600px;
    max-width: 100%;
    height: auto;
    padding-top: 20px;
}

h1, h2 {
    text-align: center;
    color: #fff;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nav-list a.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: transparent;
}


main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.thumbnail {
    width: 700px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: 0.3s;
    display: block;
    margin: 20px auto;
}

.thumbnail:hover {
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

p, article {

    font-size: 1rem; 
    text-align: left;
    color: white;
    margin: 20px auto;
    max-width: 800px;
}

label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    display: inline-block;
    vertical-align: middle;
    margin: 0 15px 0 5px;
}

input[type="text"] {
    max-width: 400px;
}

textarea {
    max-width: 600px;
    resize: vertical;
}

.grade-table {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: rgba(70, 70, 70, 0.8);
    color: white;
}

.grade {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.built {
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    transition: 0.3s;
    max-width: 60%;
    height: auto;
}

.built:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px yellow;
}

.boxart {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    display: contents;
}

.gallery-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

video {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
}

form {
    max-width: 600px;
    margin: 2% auto;
    padding: 2%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

input[type="text"], textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
}

input[type="submit"], input[type="reset"] {
    padding: 10px 20px;
    margin: 10px 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
}

input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.menu_container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.size_button {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0.7;
}

.size_button:hover {
    transform: scale(1.05);
    opacity: 1;
}

.dropdown {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: #f1f1f1;
    padding: 10px;
    z-index: 1001;
    width: 120px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.size_option {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background-color: white;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
    border-radius: 3px;
}

.size_option:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        width: 90%;
    }
    
    .nav-list li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        width: 90%;
        text-align: center;
        margin: 0 auto;
    }

    input[type="text"], textarea {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .skip-link {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: fit-content;

    }
    header {
    position: relative;
    padding-top: 40px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        flex-wrap: nowrap;
    }
}

@media print {
    nav,
    .menu_container,
    video,
    .size_button,
    .dropdown,
    figcaption {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.2;
    }

    img {
        max-width: 50% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
    }

    table {
        width: 100% !important;
        border: 1px solid #000 !important;
    }

    th, td {
        border-color: #000 !important;
    }

    a {
        text-decoration: none !important;
        color: black !important;
    }

    a::after {
        content: "" !important;
    }

    .skip-link {
        display: none !important;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

#feedback-uzi {
    display: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 5px 10px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #000 !important;
  border-radius: 5px;
  font-size: 0.8rem;
  z-index: 9999;
  text-decoration: underline !important;
  font-weight: bold !important;
}

.menu_container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.high-contrast {
  background: black !important;
  color: #ff0 !important;
  text-transform: uppercase
}

.high-contrast h1,
.high-contrast h2,
.high-contrast p,
.high-contrast label,
.high-contrast figcaption,
.high-contrast li,
.high-contrast td,
.high-contrast th,
.high-contrast a,
.high-contrast article {
  color: #ff0 !important;
  text-shadow: 1px 1px 2px black;
  text-transform: uppercase;
}

footer p {
    text-align: center;
}

figcaption {
    text-align: center;
}

figcaption a {
    display: inline-block;
    margin: 10px 0;
}

article h3 {
    text-align: center;
}
