/* Global Layout */
html, body {
    height: 100%;
    margin: 0;
    background-color: var(--website-bg-color);
    color: var(--text-color);
    font-size: 100%;
    margin-bottom: 90px;
}

@media (max-width: 768px) {
    html {
        font-size: 90%; /* 14.4px */
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Responsive Font Size */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Focus Styles for Form Elements */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Nordic Viewpoint Styles */
.bg-nv,
.nv-logo {
    border-radius: 10px;
    background: var(--background-color);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.h1-nv {
    color: var(--label-color);
    font-size: 28px;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
}

.nv-mode {
    background-color: var(--website-bg-color);
}

.image-container {
    justify-content: center; /* Centers the content */
    text-align: center; /* Centers the inner content */
}

/* Form Container Styles */
.item-container {
    background-color: var(--form-container-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.item-container-body {
    padding: 3em;
}


/* Footer Styles */
footer.nv-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.footer-hide {
    transform: translateY(100%); /* Hides the footer */
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .image-container {
        justify-content: flex-start; /* Aligns to the start (left) */
        text-align: left; /* Aligns inner content to the left */
    }

    .h1-nv {
        color: var(--label-color);
        font-size: 22px;
        font-family: Montserrat, sans-serif;
        font-weight: bold;
    }

    .item-container {
        margin: 0 auto 2rem auto;
    }

    .item-container-body {
        padding: 1em;
    }
}

/* Footer Container Layout */
/*Max wdith och en rad*/
.nv-footer .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.footer-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/* Footer Button Styles */
footer .btn-outline-light {
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    transition: background-color 0.3s;
}

    footer .btn-outline-light:hover {
        background-color: #f5f5f5;
    }

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    transition: background-color 0.3s;
    border-radius: .25rem;
}

    .language-dropdown .dropdown-toggle {
        color: var(--footer-text-color);
        background-color: transparent;
        border: none;
        transition: background-color 0.3s, color 0.3s;
    }

    .language-dropdown .dropdown-menu {
        background-color: var(--footer-bg-color);
    }

        .language-dropdown .dropdown-menu a {
            color: var(--footer-text-color);
        }

    .language-dropdown .dropdown-toggle:hover {
        background-color: #f5f5f5;
    }

    .language-dropdown .dropdown-menu a {
        color: var(--footer-text-color);
    }

        .language-dropdown .dropdown-menu a:hover {
            background-color: var(--footer-bg-color);
            color: var(--text-hover-color);
        }

.item-container-sm {
    background-color: var(--form-container-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

/* Styling for h2 and p elements */
.item-container h2 {
    color: var(--label-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.item-container p {
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Styling for links */
.item-container a {
    color: var(--link-color);
    text-decoration: none;
}

    .item-container a:hover {
        text-decoration: underline;
    }

.header-section > hr {
    color: var(--line-color);
}

/* For Webkit browsers like Chrome and Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.header-section p {
    /*    font-weight: normal;*/
    color: #555;
    font-size: 16px;
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1400px; /* or whatever width you prefer */
    }
}