/* ==========================================================================
   SILODISPLAY FAMILY GROUP
   ========================================================================== */
@font-face {
    font-family: 'SiloDisplay'; /* MATCHES class selectors below */
    src: url('/static/fonts/SiloDisplay-Regular.woff2') format('woff2');
    font-weight: 400; /* Use standard numbers for consistency */
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ABCDIATYPE FAMILY GROUP
   ========================================================================== */
@font-face {
    font-family: 'ABCDiatype'; /* MATCHES class selectors below */
    src: url('/static/fonts/ABCDiatype-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-Bold.woff2') format('woff2'); /* FIXED: Changed trailing comma to a semicolon */
    font-weight: 700; /* FIXED: Changed from 800 to 700 to match your 'strong' style mapping below */
    font-style: normal; /* FIXED: 'bold' is not a valid font-style. Valid values are normal, italic, oblique */
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-BoldItalic.woff2') format('woff2');
    font-weight: 700; /* FIXED: Changed from 800 to 700 to keep consistency with bold weights */
    font-style: italic;
    font-display: swap;
}


.note-editable,
.custom-description-box {
    font-family: 'SiloDisplay', -apple-system, sans-serif;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Ensure any nested elements inherit the correct font-family chosen by the dropdown */
.note-editable *,
.custom-description-box * {
    font-family: inherit;
}

/* ==========================================================================
   1. GLOBAL/DESKTOP STYLES
   ========================================================================== */

/* FIXED: Explicitly force bold tags to use font-weight 700 so the browser
   can pull your ABCDiatype-Bold.woff2 file instantly */
.note-editable strong,
.note-editable b,
.custom-description-box strong,
.custom-description-box b {
    font-weight: 700 !important;
}


/* ==========================================================================
   2. MOBILE VIEWPORT OVERRIDES (Screens under 767px wide)
   ========================================================================== */
@media screen and (max-width: 767px) {

  /* Forces the header text and the QR code to stack vertically so they don't clip horizontally */
  .qr-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Adds clean spacing between the text and the code box */
  .qr-container h3 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  /* Ensures the base64 generated QR image fits cleanly on small phone displays */
  .qr-container img {
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

} /* End of mobile media query */

.tittel {
    color: #FFF;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 70px;
    font-style: normal;
    font-weight: 400;
    line-height: 90%;
    margin: 30px;
    text-align: left;
    padding: 0 !important;
    
}

/* Mobile screens */
@media (max-width: 768px) {
    .tittel {
        font-size: 63px;
        line-height: 0.9; /* Økt litt fra 0.85 så ikke bokstavene krasjer når linjen deles */
        /*max-width: 90%;*/
        margin-top: 30px;
        margin-bottom: 30px;
        margin-left: 30px;
        margin-right: 30px;
        display: inline-block;
        padding: 0 !important;
        
        /* Tvinger tekstbryting */
        white-space: normal; 
        word-break: break-word; /* Sørger for at lange ord deles om nødvendig */
        overflow-wrap: break-word; 
    }
   .stembutton {
    	display: flex; /* CHANGED: Forces the button to respect parent block widths */
    	width: 100%;
}

}

.photo {
    /*margin-right: 30px;
    margin-left: 30px;*/
}

h2.header1 {
    color: #ffffff;
    font-family: 'ABCDiatype', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    white-space: normal;       /* Autorise le retour à la ligne */
    word-spacing: normal;       /* Force chaque mot sur une nouvelle ligne */    
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
}


h5.header2 {
    color: #ffffff;
    font-family: 'ABCDiatype', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 8px;
}

h6.Kunstnernavn {
    color: #000;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    /*margin-left: 30px;*/
    /*margin-right:30px;*/
    margin-top: 30px;
    margin-bottom:30px;
}

li.Kunstnernavn {
    color: #000;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


p.info {
    font-family: 'ABCDiatype', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    display: block;
    text-align: left;
    width: calc(100% - 60px);
    margin-left: 0;   /* REMOVED 5px to ensure perfect alignment with the image left edge */
    margin-right: 0;  /* REMOVED 16px so the text can use the full width of the image container */
    margin-bottom: 25px; /* Prevents unwanted bottom spacing before the button zone */
}


.stembutton {
    display: flex; /* CHANGED: Forces the button to respect parent block widths */
    width: 100%;
    box-sizing: border-box; /* Ensures borders/paddings don't bloat the width */
    height: 44px;
    /*padding: 10px 20px;*/
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    background: #000 !important;
    color: #FFF !important;
    text-align: center;
    border: none;
    font-family: 'ABCDiatype', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

}

