/* -----------------------------
   BODY
----------------------------- */
body {
    min-height: 100dvh;
    color: var(--body-color);
    background: var(--body-bg);
}

.page-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* -----------------------------
   HEADER
----------------------------- */

.header-sticky {
    position: sticky;
    top: 0;
}

.site-header {
    padding-top: 6px;
    padding-bottom: 0px;
	background: var(--header-bg);
}

.site-header .navbar {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 48px;
    align-items: center;
}

.site-header .navbar-nav {
    margin-bottom: 0;
}

.navbar-nav .nav-link {
	font-weight: 500;
}

.site-logo {
    display: flex;
    align-items: center;
    transform: translateY(-5px);
}

.site-logo img {
	max-height: var(--header-logo-height);
	width: auto;
}


/* -----------------------------
   FOOTER
----------------------------- */
.site-footer {
    padding:6px;
	color: var(--footer-color);
	background: var(--footer-bg);
}

div.rope-repeat {
	background-image: url("/shared/img/rope_transparent_10.png");
	background-repeat: repeat-x
}

/* -----------------------------
   ADMIN BADGE
----------------------------- */
.badge {
    position: fixed;
    top: 50px;
    left: 10px;
	z-index: 1100;
}

/* -----------------------------
   COMMON STYLES
----------------------------- */
.app-card {
    border-radius: 16px;
}

/* -----------------------------
   LANGUAGE SWITCHER
----------------------------- */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 1100;
    background: #e1e3e5;
    padding: 4px 8px;
    border-radius: 8px;
}

/* Override */
.lang-switch.no-bg {
	background: transparent !important;
	padding: 0;
	border-radius: 0;
}

/* Links */
.lang-switch a {
    display: inline-flex;
}

/* Flags */
.lang-switch img {
    width: 24px;
    height: 24px;
    display: block;

    opacity: 0.6;
    transition: all 0.15s ease-in-out;
}

.lang-switch img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Active */
.lang-switch img.active {
    opacity: 1;
    border: 1px solid #0d6efd;
    border-radius: 4px;
}

/* -----------------------------
   FIXED POSITIONS
----------------------------- */

.lang-switch-fixed-right {
    position: fixed;
    top: 10px;
    right: 10px;
}

.lang-switch-fixed-left {
    position: fixed;
    top: 10px;
    left: 10px;
}

.lang-switch-fixed-center {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* -----------------------------
   INLINE POSITIONS
----------------------------- */

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

/* -----------------------------
   MOBILE
----------------------------- */

@media (max-width: 576px) {

    .lang-switch {
        padding: 3px 6px;
        gap: 4px;
    }

    .lang-switch img {
        width: 20px;
        height: 20px;
    }

}

.mobile-menu-icon {
	font-size: 28px;
	cursor: pointer;
	user-select: none;
	display: none;
}

@media (max-width: 991px) {
	.mobile-menu-icon {
		display: block;
		font-size: 26px;
		cursor: pointer;
		color: #444; /* lys ikon */
	}

	#mainNavbar {
		display: none;
		width: 100%;
	}

	#mainNavbar.show {
		display: block;
	}
}

@media (max-height: 500px) {

	#contactinfo {
		position: static !important;
	}

}


/* -----------------------------
   RESPONSIVE HEADER FIX
----------------------------- */

@media (max-width: 991px) {

    .site-header .mt-3 {
        margin-top: 0 !important;
    }

}
