body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column
}

.main-content {
    flex: 1
}

footer {
    color: var(--secondary-color);
    text-align: center;
    width: 100vw;
    margin-top: auto;
    position: sticky
}

#footer-text {
    font-size: .9rem
}

@media (max-width:600px) {
    #footer-text {
        font-size: .8rem
    }
}

#nav-menu-small-screen {
    display: none
}

#nav-dropdown-small-screen {
    display: none
}

#nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 1rem
}

#nav-menu li {
    display: inline-block
}

#nav-menu a {
    text-decoration: none
}

.menu-toggle {
    display: none
}

@media (max-width:520px) {
    #nav-dropdown-small-screen {
        display: block;
        width: 100%;
        font-size: 1rem;
    }

    #nav-menu-small-screen {
        display: none
    }

    #nav-menu {
        display: none
    }
}

@media (min-width:520px) and (max-width:1280px) {
    #nav-menu-small-screen {

        list-style: none;
        padding: 0;
        margin: 0;
        display: contents;
        gap: 1rem
    }

    #nav-menu {
        display: none
    }

    #nav-dropdown-small-screen {
        display: none
    }
}

.image-container {
    position: relative;
    text-align: center
}

.image-container img {
    width: 100%;
    height: auto
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.6rem;
    padding: 0 10px;
    white-space: nowrap;
    text-align: center;
    width: 100%
}

.line1 {
    display: inline-block;
    padding-right: 15%
}

.line2 {
    display: inline-block;
    padding-left: 15%
}

@media (max-width:1050px) {
    .overlay-text {
        font-size: 1.6rem
    }
}

@media (max-width:750px) {
    .overlay-text {
        font-size: 1.4rem
    }
}

@media (max-width:600px) {
    .overlay-text {
        font-size: 1.2rem
    }
}

@media (max-width:520px) {
    .overlay-text {
        font-size: 1.0rem
    }
}

@media (max-width:400px) {
    .overlay-text {
        font-size: .8rem
    }
}

#theme-toggle,
button[aria-label="Español"],
button[aria-label=Deutsch] {
    margin-right: 8px;
    margin-bottom: 8px
}

@media (max-width:600px) {

    #theme-toggle,
    button[aria-label="Español"],
    button[aria-label=Deutsch] {
        font-size: 1rem;
        margin-right: 8px;
        margin-bottom: 8px
    }
}

@media (max-width:300px) {
    .overlay-text {
        display: none
    }

    .image-container {
        display: none
    }
}

ul {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center
}

@media (max-width:600px) {
    ul {
        flex-direction: column
    }
}

ul.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0
}

ul.button-container li {
    display: inline-flex;
    flex-direction: row
}

@media (max-width:1280px) {
    ul.button-container {
        flex-direction: column
    }
}

button {
    background-color: transparent;
    border: 2px solid transparent;
    padding: 8px 12px;
    cursor: pointer
}

button.language-button.active {
    border-color: grey
}

button.theme-toggle {
    background-color: var(--secondary-color);
    border: none;
    padding: 8px 12px
}

.language-button img {
    width: 24px;
    /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
}

[data-theme="dark"] .language-button {
    background-color: rgba(255, 255, 255, 0.2);
    /* Light background in dark mode */
    border-radius: 5px;
    /* Optional: Round corners */
    padding: 5px 10px;
    /* Optional: Add spacing */
}

[data-theme="dark"] .language-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    /* Slightly lighter on hover */
}

[data-theme="dark"] .theme-toggle-button {
    background-color: rgba(255, 255, 255, 0.2);
    /* Light background in dark mode */
    border-radius: 5px;
    /* Optional: Round corners */
    padding: 5px 10px;
    /* Optional: Add spacing */
}

[data-theme="dark"] .theme-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    /* Slightly lighter on hover */
}

/* General style for headings */
h1,
h2,
h3 {
    font-weight: 400;
    /* Normal font weight */
}

h1 {
    font-size: 2.5rem;
    /* Around 40px (adjust as per your design needs) */
}

h2 {
    font-size: 2rem;
    /* Around 32px */
}

h3 {
    font-size: 1.5rem;
    /* Around 24px */
}

/* You can add media queries to adjust the font sizes for smaller screens */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        /* 35px for smaller screens */
    }

    h2 {
        font-size: 1.8rem;
        /* 28px */
    }

    h3 {
        font-size: 1.4rem;
        /* 22px */
    }
}

#toastContainer {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

.toast-success {
    background-color: rgb(2, 151, 100);
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.toast-error {
    background-color: rgb(217, 53, 38);
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.g-recaptcha {
    display: flex;
    justify-content: center; /* Centers horizontally */
    margin: 0 auto; /* Ensures it's centered in block elements */
}

@media (min-width: 1200px) { 
    body {
        zoom: 0.9; /* Works in most browsers */
    }
}
