html {
    font-size: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f7fa;
    color: #311b92;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #7e57c2;
}

header h1 {
    color: #4a148c;
    margin-bottom: 5px;
}

header img.header-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

nav {
    text-align: center;
    margin-bottom: 30px;
    background-color: transparent;
    padding: 10px 0;
}

nav a {
    background-color: #673ab7;
    color: #ffffff;
    text-decoration: none !important;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 0 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
}

nav a:hover, nav a.active {
    background-color: #4a148c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: underline;
}

a:not(nav a) {
    color: #5e35b1;
    text-decoration: underline;
}

a:not(nav a):visited {
    color: #4527a0;
}

a:not(nav a):hover {
    color: #311b92;
}

aside ul li a:visited {
    color: #880e4f;
}

h2 {
    color: #4a148c;
    border-bottom: 1px dashed #b39ddb;
    padding-bottom: 8px;
    margin-top: 30px;
}

h3 {
    color: #512da8;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.cat-profile, .daily-section, .submission-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fefefe;
    border-left: 4px solid #7e57c2;
    border-radius: 0 5px 5px 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #545454;
}

form {
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a148c;
}

form input[type="text"],
form input[type="email"],
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fdfdfd;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form input[type="file"] {
    padding: 5px;
}

form button {
    background-color: #673ab7;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #4a148c;
}

.cat-profile {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.cat-profile:last-child {
    border-bottom: none;
}

.cat-profile h3 {
    margin-top: 0;
}

.cat-profile p {
    flex-grow: 1;
}

.cat-table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.cat-table th, .cat-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.cat-table th {
    background-color: #ede7f6;
    color: #4a148c;
    padding: 12px 8px;
}

.cat-table tr:nth-child(even) {
    background-color: #f3e5f5;
}

.cat-table tr:hover {
    background-color: #e1bee7;
}

.cat-table caption {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    color: #4a148c;
    font-size: 1.1em;
    text-align: center;
}

details {
    margin: 20px 0;
    padding: 10px;
    background-color: #f3e5f5;
    border-radius: 5px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    color: #5e35b1;
}

summary:hover {
    color: #311b92;
}

details[open] summary {
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.radio-group, .checkbox-group {
    margin: 10px 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.radio-group label, .checkbox-group label {
    margin-left: 5px;
    font-weight: normal;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 5px;
    background: #7e57c2;
    color: white;
    padding: 10px;
    z-index: 1000;
    border: 2px solid #4a148c;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 5px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    width: 100%;
}

video.responsive-video {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 800px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.center-content figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #512da8;
}

.photo-with-background {
    background-image: url('Kép5.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
    position: relative;
    border-radius: 5px;
}

.photo-with-background img {
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    max-width: 80%;
}

.photo-with-background figcaption {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: inline-block;
    font-size: 0.9em;
}

.center-aside {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f3e5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.center-aside p {
    text-align: left;
}

.accessibility-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.accessibility-controls button {
    background-color: #673ab7;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accessibility-controls button:hover {
    background-color: #4a148c;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.accessibility-controls button:focus {
    outline: 2px solid #5e35b1;
    outline-offset: 2px;
}

.cat-profiles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.cat-profiles-container img
{
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 600px) and (max-width: 800px) {
    .cat-profiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .cat-profiles-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.two-column-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.two-column-section > div {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

@media (min-width: 600px) {
    .two-column-section {
         grid-template-columns: repeat(2, 1fr);
    }
    .cat-table {
        width: 80%;
    }
     .radio-group, .checkbox-group {
         gap: 15px 25px;
     }
}

@media (min-width: 768px) {
     html {
         font-size: 106.25%;
     }
     .cat-table {
        width: 60%;
    }
}

@media (max-width: 599px) {
    .container {
        padding: 15px 20px;
    }
     h1 { font-size: 1.8em; }
     h2 { font-size: 1.4em; }
     h3 { font-size: 1.1em; }

    .cat-profiles-container img {
        margin: 0 auto 15px auto;
        max-width: 80%;
    }

    .radio-group, .checkbox-group {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
    }
    .two-column-section > div {
        width: 100%;
    }
}

@media print {
    body {
        background-color: white;
        color: black;
        font-family: serif;
        font-size: 10pt;
        line-height: 1.4;
    }
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    header,
    nav,
    aside,
    .accessibility-controls,
    video,
    button,
    form button,
    .skip-to-content {
        display: none !important;
    }
    img, .responsive-image, header img.header-image {
        max-width: 200px !important;
        height: auto !important;
        page-break-inside: avoid;
        display: block;
        margin: 10px 0;
    }
    a {
        color: black !important;
        text-decoration: none !important;
    }
    a[href^="http"]::after, a[href^="www"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-style: italic;
    }
    table.cat-table {
        width: 100% !important;
        font-size: 9pt;
    }
     table.cat-table th, table.cat-table td {
         border: 1px solid #666;
         padding: 4px;
     }
     table.cat-table caption {
         color: black !important;
         font-size: 1.1em;
     }
     details {
         border: none;
         padding: 0;
         margin: 10px 0;
     }
     details summary {
         display: none;
     }
     details > *:not(summary) {
         display: block !important;
     }
    footer {
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid black;
        text-align: center;
        font-size: 0.8em;
        color: #333;
    }
}