/*
Theme Name: Custom Theme
Theme URI: http://example.com/custom-theme
Author: Dit Navn
Author URI: http://example.com
Description: Et simpelt custom theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-header, custom-menu, featured-images
Text Domain: custom-theme
*/

/* Grundlæggende styling */
body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    height: 100px;
    background-color: <?php echo get_theme_mod('header_background_color', '#000000'); ?>;
    color: <?php echo get_theme_mod('header_text_color', '#ffffff'); ?>;
    padding: 0 20px;
    position: fixed;
    width: calc(100% - 40px); /* Samme margin som indhold */
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Gør plads til både logo og menu */
    align-items: center;
    margin: 0 20px; /* Tilføj margin for at matche indhold */
}

.overlay-logo {
    position: relative;
    z-index: 1100; /* Sørg for at den er over headeren */
}

.overlay-logo img {
    height: 80px; /* Juster højden efter behov */
    width: auto;  /* Bevar proportionerne */
}

header nav {
    flex: 1; /* Fyld resten af pladsen */
    display: flex;
    justify-content: center; /* Centrerer menuen */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    text-decoration: none;
    font-family: 'Quicksand', sans-serif; /* Brug den valgte Google Font */
    font-size: 1.2em;
    color: <?php echo get_theme_mod('header_text_color', '#ffffff'); ?>;
}

.main-content {
    margin-top: 120px; /* For at undgå overlap med fixed header */
    padding: 0 20px; /* Tilføj samme margin som header og footer */
    padding-bottom: 300px; /* Øg padding for at skabe mere plads */
}

.fullscreen-image {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fullscreen-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fullscreen-image img.active {
    opacity: 1;
}

.fullscreen-image h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-align: center; /* Centrer h1 */
}

footer {
    text-align: center;
    padding: 20px;
    position: relative; /* Skift fra fixed til relative */
    height: 100px; /* Angiv en passende højde */
    width: calc(100% - 40px); /* Samme margin som indhold */
    bottom: 0;
    left: 0;
    clear: both; /* Sørg for, at footeren ikke overlapper andet indhold */
    margin: 20px; /* Tilføj margin for at matche header og indhold */
}

footer nav {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

footer nav ul li {
    margin: 0 10px;
}

footer nav a {
    text-decoration: none;
    font-family: 'Quicksand', sans-serif; /* Brug den valgte Google Font */
    font-size: 1em;
}
