/* styles.css */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-top: 56px;
    /* Adjust for fixed navbar height */
}

/* ============================================
   ANIMATED EXTERNAL LINKS WITH ICONS
   Kun for links i kerneteksten (ikke navbar/logo)
   ============================================ */

/* Base styling for external links (http/https) - kun i content/article området */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link),
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link),
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link),
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link) {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5px 8px;
    margin: 0 2px;
    border-radius: 0;
    background-color: #d3d3d3;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(211, 211, 211, 0.15);
}

/* External link icon - appears after text */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link)::after,
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link)::after,
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link)::after,
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link)::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.4em;
    margin-right: 0.3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transform: translateX(-2px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    vertical-align: middle;
}

/* Hover effects for external links */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover,
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover,
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover,
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover {
    color: #ffffff;
    background-color: #b0b0b0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(211, 211, 211, 0.35);
}

/* Icon animation on hover - superflot animation */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after {
    opacity: 1;
    transform: translateX(4px) scale(1.15) rotate(15deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

/* Active/focus state */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):focus,
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):focus,
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):focus,
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):focus {
    outline: 2px solid #d3d3d3;
    outline-offset: 2px;
    border-radius: 0;
}

/* Links in tables - adjust styling */
.content table a[href^="http://"]:not(.effectLinksTable),
.content table a[href^="https://"]:not(.effectLinksTable),
article table a[href^="http://"]:not(.effectLinksTable),
article table a[href^="https://"]:not(.effectLinksTable) {
    color: #ffffff;
    background-color: #d3d3d3;
    font-weight: 500;
    padding: 0 8px;
    line-height: 1.2;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(211, 211, 211, 0.15);
}

.content table a[href^="http://"]:not(.effectLinksTable):hover,
.content table a[href^="https://"]:not(.effectLinksTable):hover,
article table a[href^="http://"]:not(.effectLinksTable):hover,
article table a[href^="https://"]:not(.effectLinksTable):hover {
    color: #ffffff;
    background-color: #b0b0b0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(211, 211, 211, 0.35);
}

/* Links in info boxes - external links */
.content .info-box a[href^="http://"],
.content .info-box a[href^="https://"],
.content .example-box a[href^="http://"],
.content .example-box a[href^="https://"],
article .info-box a[href^="http://"],
article .info-box a[href^="https://"],
article .example-box a[href^="http://"],
article .example-box a[href^="https://"] {
    color: #ffffff;
    background-color: #d3d3d3;
    font-weight: 500;
    padding: 0 8px;
    line-height: 1.2;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(211, 211, 211, 0.15);
}

.content .info-box a[href^="http://"]:hover,
.content .info-box a[href^="https://"]:hover,
.content .example-box a[href^="http://"]:hover,
.content .example-box a[href^="https://"]:hover,
article .info-box a[href^="http://"]:hover,
article .info-box a[href^="https://"]:hover,
article .example-box a[href^="http://"]:hover,
article .example-box a[href^="https://"]:hover {
    color: #ffffff;
    background-color: #b0b0b0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(211, 211, 211, 0.35);
}

/* Links in info boxes - internal links (same styling as external) */
.content .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]),
.content .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]),
article .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]),
article .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5px 8px;
    margin: 0 2px;
    border-radius: 0;
    background-color: #d3d3d3;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(211, 211, 211, 0.15);
}

/* Internal link icon in info boxes */
.content .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after,
.content .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after,
article .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after,
article .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.4em;
    margin-right: 0.3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transform: translateX(-2px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    vertical-align: middle;
}

.content .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover,
.content .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover,
article .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover,
article .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover {
    color: #ffffff;
    background-color: #b0b0b0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(211, 211, 211, 0.35);
}

.content .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after,
.content .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after,
article .info-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after,
article .example-box a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after {
    opacity: 1;
    transform: translateX(4px) scale(1.15) rotate(15deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    animation: linkPulse 1.2s ease-in-out infinite;
}

/* Smooth pulse animation for link icon - superflot animation */
@keyframes linkPulse {

    0%,
    100% {
        transform: translateX(4px) scale(1.15) rotate(15deg);
    }

    50% {
        transform: translateX(6px) scale(1.25) rotate(20deg);
    }
}

/* Superflot pulse animation on hover for extra attention */
.content a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
.content a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
article a[href^="http://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after,
article a[href^="https://"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover::after {
    animation: linkPulse 1.2s ease-in-out infinite;
}

/* ============================================
   INTERNAL LINKS - SAME STYLING AS EXTERNAL LINKS
   ============================================ */

/* Base styling for internal links (not http/https, not anchor, not mailto) - kun i content/article området */
.content a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]),
article a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5px 8px;
    margin: 0 2px;
    border-radius: 0;
    background-color: #d3d3d3;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(211, 211, 211, 0.15);
}

/* Internal link icon - appears after text */
.content a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after,
article a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"])::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.4em;
    margin-right: 0.3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transform: translateX(-2px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    vertical-align: middle;
}

/* Hover effects for internal links */
.content a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover,
article a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover {
    color: #ffffff;
    background-color: #b0b0b0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(211, 211, 211, 0.35);
}

/* Icon animation on hover for internal links */
.content a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after,
article a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after {
    opacity: 1;
    transform: translateX(4px) scale(1.15) rotate(15deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

/* Pulse animation on hover for internal links */
.content a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after,
article a:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):not(.scroll-indicator):not(.book-card a):not([href^="http"]):not([href^="https"]):not([href^="#"]):not([href^="mailto:"]):hover::after {
    animation: linkPulse 1.2s ease-in-out infinite;
}

/* Anchor links (hash links) - subtle hover */
a[href^="#"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link) {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

a[href^="#"]:not(.navbar-brand):not(.nav-link):not(.dropdown-item):not(.effectLinks):not(.effectLinksTable):not(.styled-cta-link):hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.transparent-navbar {
    background-color: rgba(248, 249, 250, 0.8);
    /* Light grey with transparency */
}

.content {
    transition: margin-left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    margin-left: 0;
    /* Default to no margin */
}

.pl-0 {
    padding-left: 0 !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.pl-5 {
    padding-left: 1.5rem !important;
}

.pl-7 {
    padding-left: 2rem !important;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: grey;
    border-color: grey;
}

.btn-primary:hover {
    background-color: darkgrey;
    border-color: darkgrey;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show>.nav-link {
    color: grey;
}

.navbar-light .navbar-nav .nav-link {
    color: grey;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: darkgrey;
}

.dropdown-menu {
    background-color: rgba(223, 223, 223, 0.95);
    border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: grey;
    color: white;
}

.content {
    margin-left: 200px;
    /* Same as #page-menu width */
    padding-top: 40px;
    /* Increased padding-top for more space */
}

.navbar-nav .nav-item {
    margin-left: 40px;
}

/* Ensure the navbar doesn't overflow */
.navbar-nav {
    flex-wrap: nowrap;
}

/* Adjust scroll position for headings to account for fixed navbar */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    font-family: 'Open Sans', sans-serif;
    /* Ensure consistent font family */
    font-weight: 100 !important;
    /* Match body font weight */
    font-style: italic;
    /* Restore italic */
    scroll-margin-top: 70px;
    /* Adjust this value as needed */
}

/* styles.css */

/* ... existing styles ... */

/* Increase right padding of the content container */
.content-container {
    padding-right: 50px;
    /* Increase this value as needed */
}

/* Increase right padding on larger screens */
@media (min-width: 1200px) {
    .content-container {
        padding-right: 150px;
    }
}

@media (min-width: 1400px) {
    .content-container {
        padding-right: 200px;
    }
}

@media (min-width: 1600px) {
    .content-container {
        padding-right: 250px;
    }
}

.navbar-nav .nav-link .bi {
    font-size: 1.6em;
    /* Increase font size by 60% */
    vertical-align: middle;
    /* Adjust vertical alignment if necessary */
}

/* Increase the size of the page TOC icon (#menu-icon) */
#menu-icon .bi {
    font-size: 1.6em;
    /* Increase font size by 60% */
    vertical-align: middle;
    /* Adjust vertical alignment if necessary */
}

/* Increase the width of #page-menu on larger screens */
@media (min-width: 992px) {
    #page-menu {
        width: 380px;
        /* New width (200px + 60%) */
    }

    /* Adjust the left margin of .content to match the new #page-menu width */
    .content {
        margin-left: 380px;
        /* Same as #page-menu width */
    }
}

table {
    font-size: 0.8em;
    /* Adjust the value as needed */
}

.effectLinks {
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    color: white;
    background: #d3d3d3;
    padding: 15px 20px;
    width: 100%;
    transition: background 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    margin-bottom: 0;
}

.effectLinks::after {
    content: attr(data-replace);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 15px 20px;
    transform-origin: 100% 50%;
    transform: translate3d(200%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
    color: white;
    background: rgba(21, 23, 26, 1);
    opacity: 0;
    display: flex;
    align-items: center;
}

.effectLinks:hover::after {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.effectLinks:hover {
    background: rgba(21, 23, 26, 1);
    color: white;
}

.effectLinks span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.effectLinks:hover span {
    transform: translate3d(-200%, 0, 0);
}

/* Container for quiz links */
.quiz-container {
    padding: 30px 20px;
    margin: 20px 0;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Ensure quiz-container doesn't inherit info-box styling even if nested */
.info-box .quiz-container,
.quiz-container {
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.info-box .quiz-container:hover,
.quiz-container:hover {
    transform: none !important;
    box-shadow: none !important;
}

.quiz-container br {
    display: block;
    margin: 10px 0;
    content: "";
}

.effectLinksTable {
    overflow: hidden;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: rgb(57, 56, 56);
    /* Changed from white to black */
    background: none;
    /* Removed background color */
    padding: 0px;
    width: 100%;
}

.effectLinksTable::after {
    content: attr(data-replace);
    position: absolute;
    left: 0;
    padding-left: 10px;
    transform-origin: 100% 50%;
    transform: translate3d(200%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
    /* added opacity transition */
    color: black;
    background: none;
    opacity: 0;
    /* added this line */
}

.effectLinksTable:hover::after {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    /* added this line */
}

.effectLinksTable:hover {
    background: none;
    /* Removed background color */
    /* color: rgb(43, 150, 226) */
    color: white;
}

.effectLinksTable::after {
    content: attr(data-replace);
    transform-origin: 100% 50%;
    transform: translate3d(200%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.effectLinksTable:hover::after {
    transform: translate3d(0, 0, 0);
    /* color: rgb(43, 150, 226) */
    color: white;
}

.effectLinksTable span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.effectLinksTable:hover span {
    transform: translate3d(-200%, 0, 0);
}

kbd23 {
    font-style: italic;
    font-family: inherit;
    /* This makes the <kbd> tag inherit the body's font */
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 4px 8px;
    color: #333;
}

kbd {
    background-color: #f0f0f0;
    border: 1px solid #bbb;
    border-radius: 0;
    padding: 4px 8px;
    font-family: "Courier New", monospace;
    color: #333;
}

.no-rounded-corners {
    border-radius: 0 !important;
}

.no-rounded-corners .card-body {
    border-radius: 0 !important;
}

.no-rounded-corners img {
    border-radius: 0 !important;
}

.info-box {
    background-color: #ffffff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 !important;
    /* No rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover */
}

.info-box:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    /* Enhanced shadow on hover */
}

.chart-container {
    position: relative;
    height: 50vh;
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

.example-box {
    background-color: #f8f9fa;
    border-left: 4px solid #b3b3b3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 !important;
    /* No rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover */
}

.example-box:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
}

/* Style for negative examples in tables - svag rød */
.bad-example td {
    background-color: rgba(248, 215, 218, 0.3);
    /* Svag rød baggrund */
    color: inherit;
    /* Behold normal tekstfarve */
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}

.table th,
.table td {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

/* Custom styles for square corners on cards */
.card,
.card-body {
    border-radius: 0 !important;
    /* Override default Bootstrap/MDB styles */
}

.table,
.table th,
.table td {
    border-radius: 0 !important;
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin: 20px 0;
    /* Match info-box margin */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.book-cover-wrapper video,
.book-cover-wrapper img {
    width: 100%;
    object-fit: cover;
    max-height: 600px;
    background-color: white;
    /* Hide Safari's default video controls and poster */
    -webkit-appearance: none;
    appearance: none;
}

/* Hide Safari's default video controls when src is empty */
.book-cover-wrapper video::-webkit-media-controls {
    display: none !important;
}

.book-cover-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
}

.book-cover-wrapper video::-webkit-media-controls-panel {
    display: none !important;
}

/* Ensure video doesn't show poster or default UI in Safari */
.book-cover-wrapper video:not([src]),
.book-cover-wrapper video[src=""] {
    background-color: white !important;
    opacity: 0;
    pointer-events: none;
}

.cover-text-overlay {
    font-family: 'IBM Plex Mono', monospace;
    /* IBM Plex Mono font */
    position: absolute;
    font-size: 4rem;
    font-weight: 400;
    /* Regular font weight for better readability */
    color: #d3d3d3;
    /* Light grey color (same as link color) */
    text-shadow: none;
    /* Remove text shadow */
    font-style: normal;
    /* No italics */
    z-index: 2;
    opacity: 0;
    transform: translateY(0);
    /* Keep it vertically centered */
    transition: all 0.6s ease;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

.animate-cover-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: currentColor;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Left-aligned TOC sidebar */
#left-aligned-sidebar {
    position: fixed;
    top: 56px;
    /* Adjust for navbar height */
    left: -300px;
    /* Start off-screen */
    width: 300px;
    height: calc(100% - 56px);
    background-color: rgba(248, 249, 250, 0.95);
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1029;
    /* Below navbar (1030) */
}

#left-aligned-sidebar.open {
    left: 0;
}

.content.sidebar-open {
    margin-left: 300px;
}


#left-aligned-sidebar h4 {
    margin-top: 0;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

#left-aligned-sidebar ul {
    list-style: none;
    padding: 0;
}

#left-aligned-sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    /* Lighter font weight */
    transition: font-weight 0.2s ease;
}

#left-aligned-sidebar ul li a:hover,
#left-aligned-sidebar ul li a:focus {
    font-weight: 700;
    /* Bolder on hover/focus */
}

/* Sidebar Toggle Button */
#sidebar-toggle-button {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1032;
    background: transparent;
    /* Default to transparent */
    color: white;
    border: 2px solid transparent;
    /* Default to transparent border */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 0;
    /* Reset line-height for centering */
    display: flex;
    /* Use flexbox for centering */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#sidebar-toggle-button:hover,
#sidebar-toggle-button:focus,
#sidebar-toggle-button:active {
    /* Add focus for keyboard navigation and active for clicks */
    background: #d3d3d3;
    /* Light grey on hover/focus/active */
    border: 2px solid #d3d3d3;
    /* Light grey border on hover/focus/active */
    transform: translateY(-50%) scale(1.1);
    outline: none;
    /* Remove blue outline on focus */
}

/* Default state for the button when not hovered or focused */
#sidebar-toggle-button:not(:hover):not(:focus) {
    background: #868e96;
    /* Modern grey */
    border: 2px solid #868e96;
    /* Modern grey border */
}

#sidebar-toggle-button.open {
    left: 320px;
    /* Move button with sidebar */
}


#sidebar-toggle-button .icon-open,
#sidebar-toggle-button .icon-close {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#sidebar-toggle-button .icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

#sidebar-toggle-button.open .icon-open {
    transform: scale(0);
    opacity: 0;
}

#sidebar-toggle-button.open .icon-close {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}


/* CRITICAL FIX: Prevent wrapping of legal symbols and numbers in badges */
.content table td a[href],
article table td a[href],
.info-box a[href],
.example-box a[href],
.legal-term-link {
    /* Added a class just in case we need it later */
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    padding: 1px 6px !important;
    /* Tighter padding */
    border-radius: 0 !important;
    /* SQUARE corners as requested */
    line-height: 1.2 !important;
    /* Fixed line height for better fit */
    font-size: 0.85em !important;
    /* Smaller font inside the box */
    vertical-align: middle;
}

.content table th {
    white-space: nowrap;
}

/* Override Bootstrap and other framework rounded corners for all containers */
.alert,
.alert-info,
.alert-success,
.alert-warning,
.alert-danger,
.card,
.card-body,
.modal-content,
.dropdown-menu,
.btn,
.badge,
.container,
.container-fluid {
    border-radius: 0 !important;
}

/* ============================================
   THEME TOGGLE BUTTON - ANIMATED ICON
   ============================================ */
#theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-icon-sun.active,
.theme-icon-moon.active {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Sun icon styling */
.theme-icon-sun {
    color: #f59e0b;
}

/* Moon icon styling */
.theme-icon-moon {
    color: #e0e0e0;
}

/* Animation for theme switch */
@keyframes themeRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ============================================
   VIMEO VIDEO EMBED
   ============================================ */
.vimeo-embed {
    padding: 56.25% 0 0 0;
    position: relative;
    width: 100%;
    margin: 1.5rem 0 2rem;
}

.vimeo-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================ */

#theme-toggle:active .theme-icon-wrapper {
    animation: themeRotate 0.6s ease;
}