/*
Theme Name: Balders Mailer – Old Scroll Theme
Description: Jordfarget, papiraktig tema inspirert av gammel visdom og nordisk stil.
Version: 1.0
Author: Tilpasset for Balder
*/

@charset "utf-8";

/* =============== Base Styling =============== */

html, body {
    
    margin: 0;
    padding: 0;
}

body {
    font-size: 17px;
    font-family: 'Georgia', serif;
    background: #40506a;
    background-attachment: fixed;
    line-height: 1.7;
    padding: 0;
    margin: 0;
}

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

.main {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* =============== Structure =============== */

.lfm_outerdiv {
    display: flex;
    width: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Begrens hovedinnholdet til maks 1200px og sentrer */


.lfm_footer {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    background-color: #3a2b1c;
    color: #f1e9d4;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* =============== Logo =============== */

.lfm_menu_logo {
    max-height: 40px;
    margin: 0.6rem 1.4rem 0.4rem 1.4rem;
}

/* =============== Topbar =============== */

.lfm_topbar {
    background: #7b5e3e;
    color: #fff7e0;
    margin-bottom: 20px;
    padding: 10px 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* =============== Sidebar =============== */

.lfm_slidebar {
    min-width: 225px;
    max-width: 225px;
    width: 225px;
    height: 100vh;
    overflow: hidden;
    background: url('images/sidebar_1.jpeg') no-repeat top center;
    background-size: 100% 825px;
    background-repeat: no-repeat;
    background-position: top center;
    color: #fdfbf6;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}



@media (min-width: 890px) {
    .lfm_slidebar {
        margin-left: 0;
    }
    .lfm_slidebar.toggled {
        margin-left: -225px;
    }
}

@media (max-width: 889px) {
    .lfm_slidebar {
        margin-left: -225px;
    }
    .lfm_slidebar.toggled {
        margin-left: 0;
    }
}

.lfm_slidebar_toggleswitch {
    cursor: pointer;
    font-size: 24px;
    color: #f0e6d2;
    padding-right: 10px;
}

.lfm_slidebar_toggleswitch:hover {
    color: #d8b372;
}

/* Sidebar menu items */

.lfm_slidebar_mainmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lfm_slidebar_mainmenu li > a {
    color: #fdfbf6;
    background: rgba(107, 79, 53, 0.45); /* transparent */
    text-decoration: none;
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #3a2c20;
    transition: background 0.2s ease;
}

.lfm_slidebar_mainmenu li > a.active,
.lfm_slidebar_mainmenu li > a:hover {
    background: rgba(183, 142, 94, 0.85); /* lett gjennomsiktig */
    color: #fffbe6;
}

/* =============== Footer =============== */

.lfm_footer {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    background-color: #3a2b1c;
    color: #f1e9d4;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* =============== Buttons =============== */

.buttonlink {
    background-color: #8a6733;
    border-radius: 6px;
    border: 1px solid #5b4422;
    color: #fff9e1;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 12px;
    margin: 4px 2px;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.buttonlink:hover {
    background-color: #b88c4a;
    color: #ffffff;
}

/* =============== Info Bars =============== */

.infobar {
    width: 100%;
    padding: 15px;
    color: #fff;
    background-color: #826644;
}

.infobar h2 {
    color: #fffde6;
    font-family: Georgia, serif;
}

/* =============== Profile Pictures =============== */

.profilepic_small {
    width: 40px;
    height: 40px;
}

.profilepic_med {
    width: 75px;
    height: 75px;
}

.profilepic_large {
    width: 200px;
    height: 200px;
}

/* =============== Typography Styles =============== */

.lfm_title {
    font-size: 32px;
    color: #3b2e1f;
    font-family: 'Georgia', serif;
    margin-bottom: 10px;
}

.lfm_descr, .lfm_descr_bold {
    font-size: 17px;
    color: #2f2618;
    font-family: 'Georgia', serif;
}

.lfm_descr_bold {
    font-weight: bold;
}

/* =============== Utility =============== */

.vcenter {
    display: flex;
    align-items: center;
}

.far, .fas {
    margin-right: 4px;
}

.feedicon {
    color: #b78e5e;
    font-size: 20px;
    margin-right: 5px;
}

.content {
    background-color: #eae4d3;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin: 0;
    width: 100%;
    max-width: none;
    flex: 1 1 0;
}

/* Om container-fluid også har bakgrunn, kan du prøve: */

.container-fluid {
  background-color: transparent !important; /* for å fjerne evt. bakgrunn */
}



.lfm_header {
      .header-container {
	  position: relative;
	  width: 100%;
	  height: 250px;
	  background: url('images/backgroundgradient.png') no-repeat center center;
	  background-size: 100% 250px; /* Strek bildet i bredden, fast høyde */
	  overflow: hidden;
	  position: relative;
	  
}

.header-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
  z-index: 1;

  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
	
	
.header-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  transform: translateX(-25%);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right,
    #0a2844 0%,       /* ← ny gradientfarge */
    transparent 15%, 
    transparent 85%, 
    #0a2844 100%);    /* ← ny gradientfarge */
}




background: linear-gradient(to right,
    #e0d6c3 0%, 
    transparent 20%, 
    transparent 80%, 
    #e0d6c3 100%);
}


.lfm_footer_bg {
    background-image: url('images/backgroundgradient.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fffbe6; /* hvis teksten skal synes godt */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4); /* gjør teksten lesbar over bildet */
    position: relative;
}


