/* General Styles */
body {
    background-color: whitesmoke;
    color: black;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
    font-size: 100%;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    margin-top: 0;
    padding: 150px 225px 50px 225px;
    text-align: justify;
}

footer {
    padding: 5px;
    text-align: center;
    background-color: #5c6784;
    color: whitesmoke;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1d263b;
    border-bottom: 1px solid #1d263b;
    color: whitesmoke;
    transition: all 0.3s ease;
    z-index: 1000;
}

header.shrink {
    padding: 5px 0;
    font-size: 0.75em;
}

header h1 {
    margin: 0;
    padding: 0 0 20px 0;
    font-size: 1.5em;
    color: whitesmoke;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: inherit;
    text-decoration: none;
}

.header-logo-container {
    position: absolute;
    top: 5px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-01, .header-logo-02, .header-logo-03 {
    transition: width 0.3s, height 0.3s;
}

.header-logo-01 {
    width: 100px;
    height: 100px;
}

.header-logo-02 {
    height: 60px;
}

.header-logo-03 {
    height: 40px;
    padding-left: 10px;
}

header.shrink .header-logo-01 {
    width: 75px;
    height: 75px;
}

header.shrink .header-logo-02 {
    height: 50px;
}

header.shrink .header-logo-03 {
    height: 30px;
}

/* Products List */
.products-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.products-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.products-list li i {
    margin-right: 10px;
    color: #3f577d;
}

/* Image Gallery Styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 10px 0;
}

.image-gallery img {
    width: calc(25% - 10px);
    height: auto;
}

/* Funding Gallery */
.funding-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.funding-gallery .gallery-image {
    margin: 5px;
    max-width: 300px;
    max-height: 150px;
}

/* Return to Top Button Styles */
#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #1d263b;
    color: whitesmoke;
    font-size: 1.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

#return-to-top.show {
    display: block;
}

/* Accessibility Toolbar Styles */
#accessibility-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: whitesmoke;
    color: #1d263b;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: width 0.3s, height 0.3s;
    z-index: 1000;
}

#toggle-accessibility-toolbar {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: whitesmoke;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#accessibility-toolbar-content {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    padding: 10px;
    background: #f3f5f6;
    color: #1d263b;
    border: 1px solid #1d263b;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#accessibility-toolbar.expanded {
    padding: 0px;
}

#accessibility-toolbar.expanded #accessibility-toolbar-content {
    display: block;
}

#accessibility-toolbar h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    text-align: center;
}

#accessibility-toolbar h3 i {
    margin-right: 5px;
}

#accessibility-toolbar .accessibility-toolbar-icon {
    font-size: 2em;
}

#accessibility-toolbar .accessibility-toolbar-button-icon {
    font-size: 0.9em;
    margin-right: 5px;
    color: #1d263b;
}

#accessibility-toolbar button {
    display: block;
    width: 100%;
    font-size: 0.9em;
    padding: 5px;
    margin: 5px 0;
    text-align: left;
    background: none;
    border: 1px solid #1d263b;
    color: #5c6784;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

#accessibility-toolbar button {
    transition: background 0.3s, color 0.3s;
}

#accessibility-toolbar .accessibility-toolbar-button-icon {
    transition: color 0.3s;
}

#accessibility-toolbar button:hover {
    background: #5c6784;
    color: whitesmoke;
}

#accessibility-toolbar button:hover .accessibility-toolbar-button-icon {
    color: whitesmoke;
}

/* Icon Styles */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    margin-right: 1px;
    background-color: #5c6784;
    color: whitesmoke;
    border-radius: 5px;
    box-sizing: border-box;
}

/* State Styles */
/* High Contrast Mode */
.high-contrast-mode body {
    background-color: black;
    color: white;
}

.high-contrast-mode a {
    color: white;
    text-decoration: none;
}

.high-contrast-mode main {
    background-color: black;
    color: white;
}

.high-contrast-mode footer {
    background-color: black;
    color: white;
    border-top: 1px solid white;
}

.high-contrast-mode header {
    background: black;
    border-bottom: 1px solid white;
    color: white;
}

.high-contrast-mode header h1 {
    color: white;
}

.high-contrast-mode header nav ul li a {
    color: white;
}

.high-contrast-mode .header-logo-container {
    background: black;
}

.high-contrast-mode .image-gallery img {
    background: black;
}

.high-contrast-mode #return-to-top {
    background: white;
    color: black;
}

.high-contrast-mode #accessibility-toolbar {
    background: black;
    color: white;
}

.high-contrast-mode #toggle-accessibility-toolbar {
    color: white;
}

.high-contrast-mode #accessibility-toolbar-content {
    background: black;
    color: white;
    border: 1px solid white;
}

.high-contrast-mode #accessibility-toolbar h3 {
    color: white;
}

.high-contrast-mode #accessibility-toolbar .accessibility-toolbar-button-icon {
    color: white;
}

.high-contrast-mode #accessibility-toolbar button {
    background: black;
    color: white;
    border: 1px solid white;
}

.high-contrast-mode #accessibility-toolbar button:hover {
    background: white;
    color: black;
}

.high-contrast-mode #accessibility-toolbar button:hover .accessibility-toolbar-button-icon {
    color: black;
}

.high-contrast-mode .header-icon {
    background-color: white;
    color: black;
}

.high-contrast-mode .heading-container {
    background-color: white;
    color: black;
}

.high-contrast-mode .heading-container h2,
.high-contrast-mode .heading-container .additional-text {
    color: black;
}

.high-contrast-mode .products-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.high-contrast-mode .products-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.high-contrast-mode .products-list li i {
    margin-right: 10px;
    color: #ffffff;
}

/* Blind Mode */
.blind-mode body {
    background-color: black;
    color: yellow;
}

.blind-mode a {
    color: yellow;
    text-decoration: none;
}

.blind-mode main {
    background-color: black;
    color: yellow;
}

.blind-mode footer {
    background-color: black;
    color: yellow;
    border-top: 1px solid yellow;
}

.blind-mode header {
    background: black;
    background-color: black;
    border-bottom: 1px solid yellow;
    color: black;
}

.blind-mode header h1 {
    color: yellow;
}

.blind-mode header nav ul li a {
    color: yellow;
}

.blind-mode .header-logo-container {
    background: black;
}

.blind-mode .image-gallery img {
    background: black;
}

.blind-mode #return-to-top {
    background: yellow;
    color: black;
}

.blind-mode #accessibility-toolbar {
    background: black;
    color: yellow;
}

.blind-mode #toggle-accessibility-toolbar {
    color: yellow;
}

.blind-mode #accessibility-toolbar-content {
    background: black;
    color: yellow;
    border: 1px solid yellow;
}

.blind-mode #accessibility-toolbar h3 {
    color: yellow;
}

.blind-mode #accessibility-toolbar .accessibility-toolbar-button-icon {
    color: yellow;
}

.blind-mode #accessibility-toolbar button {
    background: black;
    color: yellow;
    border: 1px solid yellow;
}

.blind-mode #accessibility-toolbar button:hover {
    background: yellow;
    color: black;
}

.blind-mode #accessibility-toolbar button:hover .accessibility-toolbar-button-icon {
    color: black;
}

.blind-mode .header-icon {
    background-color: yellow;
    color: black;
}

.blind-mode .heading-container {
    background-color: yellow;
    color: black;
}

.blind-mode .heading-container h2,
.blind-mode .heading-container .additional-text {
    color: black;
}

.blind-mode .products-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.blind-mode .products-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.blind-mode .products-list li i {
    margin-right: 10px;
    color: yellow;
}

/* Dyslexia Mode */
.dyslexia-mode {
    font-family: 'Open-Dyslexic', sans-serif;
    font-style: normal;
    font-weight: normal;
}

/* Underline Links */
.underline-links a {
    text-decoration: underline;
}

/* Utility Classes */
.controls {
    margin: 10px 0;
}

.controls button {
    margin-right: 5px;
}

/* Heading Container Styles */
.heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    background-color: #3f577d;
    box-sizing: border-box;
}

.heading-container h2 {
    margin: 0;
    font-size: 1.15em;
    color: whitesmoke;
}

.heading-container .additional-text {
    margin: 0;
    font-size: 1em;
    color: whitesmoke;
    text-align: right;
}

/* Section Styles */
#about-us,
#project,
#image-gallery,
#fairs,
#contact,
#social-networks,
#funding,
#eco-agriculture {
    padding: 0;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-nav .prev,
.lightbox-nav .next {
    cursor: pointer;
    color: white;
    font-size: 2em;
    -webkit-user-select: none;
    user-select : none;
    padding: 16px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    animation-name: fadeIn;
    animation-duration: 0.5s;
}
