/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.5;
    color: #333; /* Default text color */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bold for headings */
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1em;
}

p {
    margin-bottom: 1em;
    font-weight: 400; /* Regular weight for paragraph text */
}

ul.content {
    list-style-type: none; /* Removes default bullet points */
    padding: 0; /* Removes default padding */
    background-color: #f2f2f2; /* Light background color for the list */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    max-width: 300px; /* Maximum width of the list */
    margin: 25px 0; /* Center the list */
}

ul.content li {
    padding: 10px 20px; /* Padding inside each list item */
    border-bottom: 1px solid #ddd; /* Line between items */
    font-size: 16px; /* Adjust font size as needed */
    color: #333; /* Font color */
}

ul.content li:last-child {
    border-bottom: none; /* Removes border from the last item */
}

html {
    padding: 0;
    overflow: hidden;
}

body {
    overflow: scroll;

    padding: 0 0 47px 0!important;
}

html, body {
    margin: 0;
    border: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Base styling for the header */
header.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 114px;
    padding: 0 20px; /* Add some padding on the left and right sides */
    background-color: #931a81; /* Updated background color for the header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow for depth */
}

/* Logo styling */
header.bottom img {
    max-height: 100%;  /* Ensures the logo doesn't exceed the header height */
    width: auto;      /* Maintain the logo's aspect ratio */
}

/* Logo styling */
header.bottom a img {
    max-height: 100%;  /* Ensures the logo doesn't exceed the header height */
    width: auto;      /* Maintain the logo's aspect ratio */
}

/* Logo styling */
.a-contents {
    display: contents;
}

/* Search form styling */
header.bottom form {
    display: flex;
    align-items: center; /* Align form elements vertically center */
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Search form */
/* Basic styling for the search container */
.search-container {
    display: inline-block;
    align-items: center;
    gap: 10px;  /* Spacing between children elements */
}
.search-row {
    display: inline-block;
    align-items: center;
    margin-right: 10px; /* Spacing between rows (i.e., between the search input and button) */
}

/* Styling for the search input */
form .text {
    padding: 10px;
    width: 425px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s; /* Smooth transition for focus effect */
}

form .long-text {
    padding: 10px;
    width: 850px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s; /* Smooth transition for focus effect */
}

form .text:focus {
    border-color: #931a81; /* Change border color when focused */
}

/* Styling for the select input */
form select.form-control {
    padding: 10px;
    width: 350px; /* or adjust as needed */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s; /* Smooth transition for focus effect */
}

form select:focus.form-control {
    border-color: #931a81; /* Change border color when focused */
}

/* Optionally style the dropdown options */
form select.form-control option {
    padding: 10px;
}

/* Styling for the checkbox */
form .checkbox-custom {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    line-height: 20px;
    font-size: 16px;
}

form .checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    height: 0;
    width: 0;
    left: 0;
    top: 0;
}

form .checkbox-custom span.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form .checkbox-custom input[type="checkbox"]:checked + span.checkmark {
    background-color: #931a81;
}

form .checkbox-custom span.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

form .checkbox-custom input[type="checkbox"]:checked + span.checkmark:after {
    display: block;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* url input with static part */
form .url-input-group {
    display: flex;
    align-items: center;
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ccc; /* Border to match input */
    border-radius: 4px;
}

form .url-prefix {
    padding: 13px;
    background-color: #e9ecef; /* Slightly darker grey background */
    border-right: 1px solid #ccc;
    font-family: monospace; /* Gives a typewriter-like appearance */
    color: #666;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.url-editable-part {
    flex: 1; /* Take up the remaining space */
    border: none;
    border-radius: 0 4px 4px 0; /* Rounded corners on the right side only */
    margin-left: -1px; /* Overlap the border between the span and the input */
}

.url-editable-part:focus {
    border-color: #931a81;
    box-shadow: none; /* Optional: removes default focus glow */
}

/* Styling for the submit button */
.button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #c068b3; /* Background color matching the focus state of the input */
    color: #ffffff; /* White text color */
    border: none;
    border-radius: 4px;
    cursor: pointer; /* Cursor changes to hand when hovering over the button */
    outline: none;
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.button:hover {
    background-color: #7a146c; /* Slightly darker shade for hover effect */
}

/* To hide the label as it's empty (remove this if you add text to the label later) */
label[for="frm-search-search"] {
    display: none;
}

/* Remove default list styling */
.fancy-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px; /* Space between items */
}

/* Style each list item */
.fancy-menu li {
    position: relative;
}

/* Style for the anchor elements */
.fancy-menu li a {
    padding: 12px 25px;
    font-size: 16px;
    text-decoration: none;
    color: #ffffff; /* White text */
    background-color: #c068b3; /* Background matching the theme color */
    border-radius: 4px;
    transition: background-color 0.3s; /* Smooth transition */
}

/* Hover effect for the anchor elements */
.fancy-menu li a:hover {
    background-color: #7a146c; /* Slightly darker on hover */
}

/* Content */
.content-container {
    display: flex;
    justify-content: center; /* Centers the main content */
    align-items: start; /* Top-aligns the content and ads */
    gap: 20px; /* Gap between the ad and the content */
}

.ad-unit {
    /* Width of the leaderboard ad, adjust based on your ad size */
    width: 220px; /* for example */
}

.ad-placeholder {
    /* Placeholder styling for ad, you can remove this when you have actual ads */
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content {
    width: 800px;
    padding: 20px 0; /* Some spacing on top and bottom */
}

.resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* This creates 4 equal columns */
    gap: 20px; /* Spacing between grid items */
}

.resource {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* A subtle shadow for separation */
    background-color: #f7f7f7;
    width: 250px;
}

.resource-detail {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* A subtle shadow for separation */
    background-color: #f7f7f7;
}

.resource-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resource-detail-image img {
    margin-bottom: 10px;
    border-radius: 0;
}

.resource-image img {
    width: 210px;
    margin-bottom: 10px;
    border-radius: 8px; /* Optional rounded corners for the image */
}

.resource-filename a {
    font-weight: bold;
    color: #2a2a2a;
    text-decoration: none;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: block;
}

.resource-filename a:hover {
    text-decoration: underline; /* Styling for hover effect on links */
}

.resource-description {
    margin-bottom: 10px; /* Spacing between description and tags */
    color: #666;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Spacing between tags */
    margin-top: 10px;
}

.resource-tag {
    background-color: #931a81;
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Styling for the full-width advertisement */
.advertisement {
    width: calc(100% - 40px); /* Full width minus padding */
    margin: 20px 0; /* Add some margin to separate it from the other content */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #ececec; /* Different background to stand out */
    text-align: center; /* Center the text inside the advertisement */
}

/* Styling for the full-width title with description */
.title-section {
    width: calc(100% - 40px); /* Full width minus padding */
    margin: 20px 0; /* Add some margin to separate it from the other content */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #d7d7d7; /* Different background to stand out */
}

.title-description {
    margin-top: 10px; /* Adds space above the description if it follows a title or another element */
    color: #555; /* Subdued text color for readability */
    font-size: 0.95em; /* Slightly smaller font size than the title for hierarchy */
    line-height: 1.4; /* Good line height for readability */
    max-width: 740px; /* Slightly less than the container width to maintain good line length for reading */
    margin-left: auto; /* These two margin properties will center the description within .title-section */
    margin-right: auto;
    text-align: justify; /* Justify the text for a clean look, or 'left' for a more traditional alignment */
}

/* forms */
.form-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input {
    padding-left: 20px; /* Spacing between label and input field */
}

.textarea {
    min-height: 250px;
}

/* Input and Textarea Styles */
input.text,
textarea {
    width: 100%;
    padding: 13px 15px;
/*    border: 1px solid #ccc; */
    border-radius: 4px;
    background-color: #fdfdfd;
    font-size: 16px;
    transition: border-color 0.3s;
}

input.text:focus,
textarea:focus {
    border-color: #0099cc;
    outline: none;
}

/* Form boundary */
.content-form {
/*    margin: 25px 80px; */
    padding: 40px;
    border: 1px solid #931a81;
    box-shadow: 3px 3px 3px #e4e4e4;
    border-radius: 5px;
    background-color: white;
}

.content-form input.text {
    width: 425px;
}

/* Label Styles */
.label {
    font-weight: bold;
    font-size: 16px;
    width: 250px;
}

/* Flash Message Styles */
.flash {
    border-radius: 5px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInFlash 0.5s forwards;
}

.flash.info {
    background-color: #0cd44d;
    color: white; /* White text */
}

.flash.error {
    background-color: #d40c48;
    color: white; /* White text */
}

.flash.warning {
    background-color: #d4a50c;
    color: white; /* White text */
}

/* Fade-in Animation */
@keyframes fadeInFlash {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* aside */
.content-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.left-panel {
    width: 200px; /* Nastavte šířku panelu podle potřeby */
    background-color: #f4f4f4;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.panel-content {
    /* Přidejte styly pro obsah panelu zde */
}

.tree {
    list-style: none; /* Odstranění odrážek u seznamu */
    padding-left: 0; /* Odstranění paddingu na levé straně */
}

.tree li {
    border-top: 1px solid #ccc;
    padding: 0;
    padding-left: 25px;
    list-style-type: none;
}

.tree li .page-title {
    display: inline-block;
    min-width: 80%;
}

p.text-danger {
    font-size: 0.675rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.nested {
    display: block;
    list-style: none; /* Odstraní odrážky */
    padding-left: 20px; /* Odsazení pro vizuální hierarchii */
}

.toggle-button {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    padding-right: 5px;
}

#content {
    flex-grow: 1;
    padding: 15px;
}

.ad-placeholder {
    /* Stylování pro reklamní placeholder */
    height: 600px; /* Nastavte výšku podle potřeby */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2em;
}


/* General Footer Styles */
footer {
    background-color: #2c3e50; /* Dark background for contrast */
    color: #bdc3c7; /* Light gray for readability */
    font-family: 'Arial', sans-serif; /* A clean font */
    padding: 20px 0;
    font-size: 16px;
    position: absolute;
    bottom: 0;
    width: -webkit-fill-available;
}

footer .inner {
    max-width: 1200px; /* Control the width of the content */
    margin: 0 auto; /* Centering the content */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    padding: 0 20px; /* Horizontal padding */
}

footer .brand {
    flex: 2;
    align-items: center;
}

footer .logo img {
    max-width: 100%;
    transition: opacity 0.3s;
}

footer .logo img:hover {
    opacity: 0.8;
}

footer .socials {
    margin-left: 20px;
}

footer .socials a {
    font-size: 24px;
    color: #ecf0f1;
    margin-right: 10px;
    transition: color 0.3s;
}

footer .socials a:hover {
    color: #3498db; /* Light blue on hover for facebook */
}

/* Navigation Styles */
footer nav {
    flex: 3;
}

footer nav > ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav ul ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav li {
    margin-bottom: 10px;
    margin-right: 30px;
}

footer nav li strong {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

footer nav li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

footer nav li a:hover {
    color: #3498db; /* Light blue on hover */
}

/* Footer Copyright */
footer > p {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive - to stack items on smaller screens */
@media (max-width: 992px) {
    footer .inner {
        flex-direction: column;
    }

    footer .brand {
        margin-bottom: 20px;
    }
}

ul.block li {
    display: block;
}

.copyright {
    text-align: center;
}

/* Login */

.login-form {
    border-radius: 8px;
}

.login-form:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-form a {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    background-color: #931a81;
    color: #fff;
    transition: background-color 0.3s ease;
}

.login-form a:hover {
    background-color: #7a146c
}

.login-form a:active {
    background-color: #9a1989;
}

/* Base styles for the form error list */
.form-errors {
    list-style-type: none; /* remove bullets */
    padding-left: 0; /* remove padding */
    margin-top: 15px; /* space above the error list */
    margin-bottom: 15px; /* space below the error list */
    border: 1px solid #ff6b6b; /* red border */
    background-color: #ffe5e5; /* light red background */
    border-radius: 4px; /* rounded corners */
    font-size: 0.9em; /* slightly smaller font */
}

/* Styles for individual error messages */
.form-errors .error {
    color: #e55050; /* red text */
    padding: 10px 15px; /* spacing inside each error */
    border-bottom: 1px solid #ff6b6b; /* red bottom border for separation */
}

/* Remove the border from the last error to keep it clean */
.form-errors .error:last-child {
    border-bottom: none;
}

.resource-control {
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.resource-control ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.resource-control li {
    margin-bottom: 10px;
}

.resource-control li:last-child {
    margin-bottom: 0;
}

.resource-control a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px; /* spacing between the icon and the text */
}

.resource-control a:hover {
    color: #9a1989; /* Change this to any desired hover color */
    text-decoration: underline;
}

/* User dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-right: 150px;
    color: white;
}

.user-unlogged {
    width:180px;
    height:20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: -120px; /* adjust as necessary */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

#content.not-found {
    background-image: url('/assets/404NotFound.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;  /* Adjust the height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;    /* Adjust the text color as needed */
    padding: 20px;
    text-align: center;
}

#content.not-found h1 {
    font-size: 3em; /* Adjust font size as needed */
    margin-bottom: 20px;
}

#content.not-found p {
    font-size: 1.2em; /* Adjust font size as needed */
    margin-bottom: 10px;
}

#content.not-found p small {
    font-size: 0.8em; /* Adjust font size as needed */
    display: block;
    margin-top: 10px;
}

.not-found-bg {
    background-color: rgba(62, 79, 91, 0.8)
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Pagination container */
.pagination {
    text-align: center; /* Center the pagination */
    padding: 10px 0; /* Add some padding */
    list-style-type: none; /* Remove default list styling */
    display: inline-block; /* Inline-block for the whole pagination */
}

/* Individual page items */
.pagination li {
    display: inline; /* Display page numbers in a line */
    margin: 0 5px; /* Add some space between page numbers */
}

/* Page links */
.pagination li a {
    text-decoration: none; /* Remove underline */
    color: #9a1989; /* Set link color */
    font-size: 16px; /* Set font size */
    padding: 5px 10px; /* Add padding for better clickability */
    border: 1px solid #ddd; /* Add border */
    border-radius: 5px; /* Round the corners */
    transition: background-color 0.3s, color 0.3s; /* Transition for hover effect */
}

/* Active page */
.pagination li.active a {
    color: #fff; /* White text for active link */
    background-color: #9a1989; /* Background color for active link */
    border-color: #931a81; /* Border color for active link */
}

/* Hover effect */
.pagination li a:hover {
    background-color: #7a146c; /* Slightly darker background on hover */
    color: #fff; /* White text on hover */
    text-decoration: none; /* No underline on hover */
}


.profile {
    text-align: center;
}

.profile h1 {
    color: #333;
    margin-bottom: 10px;
}

.profile p {
    color: #666;
    font-size: 16px;
}

.profile-info {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.profile-info strong {
    color: #333;
    font-weight: bold;
}

.profile-info br {
    margin-bottom: 10px;
}

/* Style for the container holding the list */
#content {
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Remove default list styling */
#content ul.nice {
    list-style-type: none;
    padding: 0;
}

/* Style each list item */
#content ul.nice li {
    margin: 10px 0;
    position: relative;
    padding-left: 30px; /* space for the arrow */
    line-height: 1.5;
}

/* Create custom arrows using pseudo-elements */
#content ul.nice li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: #931a81;
    clip-path: polygon(0% 0,0 100%, 100% 50%); /* arrow shape */
    transform: translateY(-50%);
}


/* Overlay Styling */
.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    color: black;
}

/* Form Styling */
#frm-gdprForm {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 15px;
}

/* Label and Input Styling */
.label, .input {
    margin-bottom: 5px;
}

/* Checkbox Label Styling */
#frm-gdprForm label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Checkbox Styling */
#frm-gdprForm input[type="checkbox"] {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: #fff;
    border: 2px solid #b0b0b0;
    font-size: 1px;
    height: 24px;
    width: 24px;
    margin: 10px 30px 10px 10px;
}

/* Submit Button Styling */
#frm-gdprForm .button {
    background-color: #b42da0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

#frm-gdprForm .button:hover {
    background-color: #931a81;
}
