/* Reset og grundlæggende styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font definitions for Mari font family */
@font-face {
    font-family: 'Mari';
    src: url('../assets/Mari.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mari';
    src: url('../assets/Mari_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Mari';
    src: url('../assets/Mari_Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Mari';
    src: url('../assets/Mari_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Mari';
    src: url('../assets/Mari_Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Background container med billede */
.background-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./Images/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.4);
    z-index: -1;
}

/* Content container over det blurred billede */
.content-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
    overflow-y: auto;
    padding: 40px 20px;
}

/* Introduktionssektion */
.intro-section {
    max-width: 900px;
    width: 100%;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
}

.intro-text {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
    margin-top: 20px;
}

/* Fixed audio player på forsiden */
.fixed-audio-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(184, 191, 196, 0.6);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(184, 191, 196, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Minimeret tilstand */
.fixed-audio-box.minimized {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 10px;
    padding: 10px 20px;
    border-radius: 30px;
}

/* Minimer/maksimer knap */
.minimize-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s ease;
    z-index: 10;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Minimeret indhold */
.minimized-content {
    display: none;
}

.fixed-audio-box.minimized .minimized-content {
    display: block;
    width: 100%;
}

.fixed-audio-box.minimized .fixed-audio-title,
.fixed-audio-box.minimized .audio-controls-wrapper,
.fixed-audio-box.minimized .audio-toggle-btn {
    display: none;
}

.minimized-left {
    float: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.minimized-right {
    float: right;
}

.fixed-audio-box.minimized .minimize-btn {
    position: static;
    float: right;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin: 0;
}

.minimized-status-icon {
    font-size: 1.3rem;
}

.minimized-status-text {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Clearfix for floats */
.fixed-audio-box.minimized::after {
    content: "";
    display: table;
    clear: both;
}

.fixed-audio-box:not(.dragging):hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(184, 191, 196, 0.5);
}

.fixed-audio-box:not(.minimized) {
    cursor: grab;
}

.fixed-audio-box.dragging {
    transition: none !important;
    cursor: grabbing !important;
}

.fixed-audio-title {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.skip-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.skip-btn:active {
    transform: scale(0.95);
}

.fixed-audio-player {
    width: 100%;
    height: 40px;
    outline: none;
    border-radius: 8px;
    flex-grow: 1;
}

.fixed-audio-player::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

/* Pulserende animation når audio spiller */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(184, 191, 196, 0.4);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(154, 163, 170, 0.6);
        border-color: rgba(154, 163, 170, 0.8);
    }
}

.fixed-audio-box.playing {
    animation: pulse 2s ease-in-out infinite;
    background: rgba(168, 181, 189, 0.7);
}

/* Topics liste */
.topics-list {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Topic item (klikbare emner) */
.topic-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.topic-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.topic-item:active {
    transform: translateX(5px);
}

.topic-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Touch-venlig styling */
@media (hover: none) {
    .topic-item:hover {
        transform: none;
    }
    
    .topic-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 1);
    }
}

/* Topic number */
.topic-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3498db;
    min-width: 35px;
    text-align: center;
    flex-shrink: 0;
}

/* Topic ikon */
.topic-icon {
    flex-shrink: 0;
}

.topic-icon img {
    width: 39px;
    height: 39px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.topic-item:hover .topic-icon img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Topic tekst */
.topic-text {
    font-size: 1.34rem;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
    text-align: left;
}

/* Popup styling */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000;
}

/* Popup image */
.popup-image {
    text-align: center;
    margin-bottom: 20px;
}

.image-placeholder {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    border: 2px dashed #ccc;
}

/* Magazine-style image layout */
.popup-image-full {
    float: left;
    width: 45%;
    max-width: 500px;
    margin: 0 30px 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.popup-image-full::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    background: rgba(200, 200, 200, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.popup-image-full:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.popup-image-full:hover::after {
    transform: scale(1.1);
}

.popup-image-full img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Popup title */
.popup-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

/* Popup text */
.popup-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    clear: none;
    overflow: hidden; /* Contains floated image */
}

/* Fancy kasser kun for ul (opsummeringer) */
.popup-text ul li {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    list-style: none;
}

.popup-text ul li:nth-child(odd) {
    background-color: #f8f9fa;
}

.popup-text ul li:nth-child(even) {
    background-color: #e9ecef;
}

.popup-text ul li:last-child {
    margin-bottom: 0;
}

/* Almindelige nummererede bullets for ol */
.popup-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.popup-text ol li {
    margin-bottom: 10px;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    list-style: decimal;
}

/* Carousel navigation */
.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.nav-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Read aloud button */
.read-aloud-btn {
    display: inline-block;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 0 auto;
    text-align: center;
    width: 60px;
    height: 60px;
    line-height: 40px;
}

.read-aloud-btn:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}


/* Audio toggle knap */
.audio-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.audio-toggle-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.audio-toggle-btn:active {
    transform: translateY(0);
}

.audio-toggle-btn.disabled {
    background: #a24c3c;
}

.audio-toggle-btn.disabled:hover {
    background: #86392b;
}

.audio-toggle-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.audio-toggle-text {
    font-family: 'Mari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive design */
/* Tablets og små bærbare */
@media (max-width: 1024px) {
    .content-container {
        padding: 30px 15px;
    }
    
    .intro-section {
        padding: 25px;
    }
    
    .intro-text {
        font-size: 1.05rem;
    }
    
    .topic-item {
        padding: 12.6px;
        gap: 12.6px;
    }
    
    .topic-number {
        font-size: 1.26rem;
        min-width: 31.5px;
    }
    
    .topic-icon img {
        width: 34px;
        height: 34px;
    }
    
    .topic-text {
        font-size: 1.23rem;
    }
    
    .popup-content {
        width: 90%;
        max-width: 800px;
        padding: 25px;
    }
}

/* Tablets i portrait mode */
@media (max-width: 768px) {
    .content-container {
        padding: 20px 10px;
        padding-bottom: 160px; /* Plads til fixed audio box */
    }
    
    .intro-section {
        padding: 20px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .topic-item {
        padding: 10.5px;
        gap: 10.5px;
    }
    
    .topic-number {
        font-size: 1.05rem;
        min-width: 28px;
    }
    
    .topic-icon img {
        width: 29px;
        height: 29px;
    }
    
    .topic-text {
        font-size: 1.12rem;
    }
    
    .fixed-audio-box {
        width: 280px;
        padding: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .fixed-audio-box.minimized {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        padding: 10px 15px;
    }
    
    .fixed-audio-title {
        font-size: 1rem;
    }
    
    .fixed-audio-player {
        height: 35px;
    }
    
    .skip-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .popup-content {
        margin: 10% auto;
        width: 90%;
        padding: 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-text {
        font-size: 1rem;
    }
    
    .popup-image-full {
        width: 40%;
        margin: 0 20px 15px 0;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .audio-toggle-btn {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}

/* Store telefoner */
@media (max-width: 600px) {
    .content-container {
        padding: 15px 10px;
        padding-bottom: 190px;
    }
    
    .intro-section {
        padding: 15px;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .topic-item {
        padding: 8.4px;
        gap: 8.4px;
    }
    
    .topic-number {
        font-size: 0.91rem;
        min-width: 24.5px;
    }
    
    .topic-icon img {
        width: 24.5px;
        height: 24.5px;
    }
    
    .topic-text {
        font-size: 1.06rem;
    }
    
    .fixed-audio-box {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .fixed-audio-box.minimized {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .minimized-left {
        font-size: 0.9rem;
    }
    
    .minimize-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
    
    .fixed-audio-box.minimized .minimize-btn {
        width: 28px;
        height: 28px;
    }
    
    .fixed-audio-title {
        font-size: 0.95rem;
    }
    
    .popup-content {
        margin: 3% auto;
        width: 95%;
        padding: 15px;
        max-height: calc(100vh - 215px);
    }
    
    .popup-image-full {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    .lightbox-image {
        max-width: 98%;
        max-height: 92vh;
    }
}

/* Små telefoner */
@media (max-width: 480px) {
    .content-container {
        padding: 10px 5px;
        padding-bottom: 155px;
    }
    
    .intro-section {
        padding: 12px;
    }
    
    .intro-text {
        font-size: 0.9rem;
    }
    
    .topic-item {
        padding: 7px;
        gap: 7px;
    }
    
    .topic-number {
        font-size: 0.84rem;
        min-width: 21px;
    }
    
    .topic-icon img {
        width: 19.6px;
        height: 19.6px;
    }
    
    .topic-text {
        font-size: 0.96rem;
    }
    
    .fixed-audio-box {
        padding: 12px;
    }
    
    .fixed-audio-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .fixed-audio-player {
        height: 32px;
    }
    
    .skip-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .audio-controls-wrapper {
        gap: 6px;
    }
    
    .popup-content {
        margin: 2% auto;
        width: 95%;
        padding: 15px;
        max-height: calc(100vh - 165px);
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    .popup-image-full {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 12px 0;
    }
    
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .carousel-navigation {
        gap: 10px;
        margin: 15px 0;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .page-indicator {
        font-size: 0.9rem;
    }
    
    .audio-toggle-btn {
        font-size: 0.9rem;
        padding: 7px 14px;
    }
    
    .audio-toggle-icon {
        font-size: 1.1rem;
    }
}

/* Meget små telefoner */
@media (max-width: 360px) {
    .intro-text {
        font-size: 0.85rem;
    }
    
    .topic-item {
        padding: 5.6px;
        gap: 5.6px;
    }
    
    .topic-number {
        font-size: 0.77rem;
        min-width: 19.6px;
    }
    
    .topic-icon img {
        width: 17.5px;
        height: 17.5px;
    }
    
    .topic-text {
        font-size: 0.9rem;
    }
    
    .popup-content {
        padding: 12px;
        max-height: calc(100vh - 165px);
    }
    
    .popup-title {
        font-size: 1.1rem;
    }
    
    .popup-text {
        font-size: 0.85rem;
    }
}

/* Bevar eksisterende border-radius på navigation knapper */
.nav-btn {
    border-radius: 50%;
}

/* Store skærme */
@media (min-width: 1600px) {
    .content-container {
        padding: 50px 40px;
    }
    
    .intro-section {
        max-width: 1100px;
        padding: 40px;
    }
    
    .intro-text {
        font-size: 1.2rem;
    }
    
    .topics-list {
        max-width: 1100px;
    }
    
    .topic-item {
        padding: 17.5px;
        gap: 17.5px;
    }
    
    .topic-number {
        font-size: 1.54rem;
        min-width: 42px;
    }
    
    .topic-icon img {
        width: 44px;
        height: 44px;
    }
    
    .topic-text {
        font-size: 1.46rem;
    }
    
    .popup-content {
        max-width: 1000px;
    }
}

/* Landscape orientering på tablets */
@media (max-height: 600px) and (orientation: landscape) {
    .content-container {
        padding: 15px 10px;
    }
    
    .intro-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .topic-item {
        padding: 8.4px;
    }
    
    .topic-number {
        font-size: 0.91rem;
    }
    
    .topic-icon img {
        width: 24.5px;
        height: 24.5px;
    }
    
    .topic-text {
        font-size: 1.06rem;
    }
    
    .popup-content {
        margin: 2% auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .popup-image-full {
        width: 35%;
        margin: 0 15px 12px 0;
    }
}

/* Landscape orientering på telefoner */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        overflow: auto;
    }
    
    .background-container {
        height: auto;
        min-height: 100vh;
    }
    
    .content-container {
        padding: 10px;
    }
    
    .intro-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .intro-text {
        font-size: 0.85rem;
    }
    
    .topic-item {
        padding: 5.6px;
        gap: 5.6px;
    }
    
    .topic-number {
        font-size: 0.77rem;
        min-width: 19.6px;
    }
    
    .topic-icon img {
        width: 19.6px;
        height: 19.6px;
    }
    
    .topic-text {
        font-size: 0.96rem;
    }
    
    .popup-content {
        margin: 1% auto;
        max-height: 98vh;
        overflow-y: auto;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-image-full {
        width: 35%;
        margin: 0 12px 10px 0;
    }
    
    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}