@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic);

/* hovedopstilling */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Open Sans';
    max-width: 1920px;
    margin: 0 auto;
    background-color: #e2e1e1d5;
}
img {
    max-width: 100%;
}
.page-footer,
.mere,
.sidbar-head {
    background-color: #222222;
}
.page-wapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}
.page-content {
    display: flex;
    flex: 1;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}
.page-main {
    flex: 1;
    min-height: 500px;
    padding: 20px;
}



/* Header og menu */
.header {
    z-index: 500;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0px;
    transition: 0.3s;
}
.navigantion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: 0.5s;
}
.menu li a {
    list-style-type: none;
    text-decoration: none;
    display: block;
    padding: 20px 25px;
    font-size: 18px;
    line-height: 1;
    transition: 0.3s;
}

/* logo */
.logo a {
    display: block;
}
.logo a img {
    margin-left: 20px;
    display: block;
    width: 100px;
}

/* icon */
.icon {
    display: flex;
    align-items: center;
}
.icon img {
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    width: 45px;
}

/* toggle og hover effekt */
.hamburger,
.toggle-menu {
    display: none;
}
.menu li a:hover {
    background-color: black;
    color: white;
    transition: ease-in-out 1s;
}
.a-coler {
    color: black;
}
.home {
    color: white;
    background-color: #f30b0b;
}
.toggle-menu {
    position: absolute;
    width: 30px;
    height: 100%;
}



/* Hero baggrundsbillede og animation til Hero */
.hero {
    position: relative;
    background-image: url(img/hero.jpg);
    background-size: cover;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: hero 1s 1s forwards;
}
.hero img {
    opacity: 0;
    transform: translateX(-50%);
    animation: herologo 0.5s 2s forwards;
}



/* hovedmenu gird, og tilpasning til indhold */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.box {
    background-color: #ffff;
    margin-bottom: 20px;
    box-shadow: 1px 1px 5px lightgray;
}
.box-head {
    background-color: #f30b0b;
    color: white;
    padding: 10px;
}
.box-head p {
    margin-left: 24px;
}
.box-title:before {
    content: " ";
    background-image: url(img/card-suits-spades.png);
    position: absolute;
    padding: 10px;
}
.box-img img {
    object-fit: cover;
}

/* Læs mere knap */
.box-text,
.mere-text {
    padding: 20px;
}
.mere {
    color: #FFFFFF;
    width: 100px;
    cursor: pointer;
    padding: 5px;
    text-align: center;
}




/* sidbar grid */
.grid-sidbar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}
.sidbar {
    max-width: 300px;
    padding: 20px;
}
.sidbar-head {
    color: white;
    padding: 10px;
}
.sidbar-title::before {
    content: "";
    background-image: url(img/card-suits-hearts.png);
    position: absolute;
    padding: 10px;
}
.sidbar-head p {
    margin-left: 30px;
}

/* Nyhedsbrev */
.Tilmeld {
    color: #FFFFFF;
    max-width: 250;
    background-color: red;
    cursor: pointer;
    padding: 5px;
    text-align: center;
}
.search-container {
    margin-bottom: 10px;
}
.search-container input[type=text] {
    font-size: 15px;
    width: 250px;
    margin-left: 20px;
}

/* Eventkalender */
.data-grid {
    display: grid;
    grid-template-columns: 30% 1fr;
}
.data-text,
.data {
    padding: 10px;
}
.data-grid:nth-child(even) {
    background-color: #dddddd;
}



/* footer grid layout */
.page-footer {
    min-height: 100px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.footer-grid h1 {
    font-size: 20px;
    color: red;
    padding: 5px;
    margin-top: 20px;
}
.footer-grid p {
    white-space: pre-line;
    font-size: 15px;
    padding: 5px;
}



/* animation til Hero */
@keyframes hero {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* animation til Hero logo */
@keyframes herologo {
    0% {
        opacity: 0;
        transform: translateX(-50%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Media Quarry, menu responsive optimation og Header order/hovedmenu*/
@media screen and (max-width: 960px) {
    
    /* responsive menu efter max-width: 960px */
    .hamburger {
        display: block;
    }
    .menu {
        justify-content: start;
        flex-direction: column;
        align-items: start;
        position: absolute;
        background-color: black;
        top: 50px;
        right: 0;
        width: 100%;
        height: 700px;
        pointer-events: none;
        transform: none;
        transition: none;
        transform: translateX(100%);
    }
    .menu li a:hover {
        background-color: white;
        color: black;
        transition: ease-in-out 1s;
    }
    .toggle-menu:checked+.menu {
        transform: translateX(0);
        pointer-events: auto;
    }
    .home {
        background-color: #f30b0b;
    }
    .menu li {
        width: 100%;
    }
    .menu li a {
        color: white;
    }

    /* Header order efter max-width: 960px og ned */
    .logo {
        order: 1;
    }
    .menu-wrapper {
        order: 3;
    }
    .icon {
        order: 2;
    }

    /* responsive tilpasning til hovedmenu */
    .grid {
        grid-template-columns: 1fr;
    }
    .box-img img {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-content: start;
    }
    .page-footer {
        justify-content: start;
        padding: 10px;
    }
}



/* Media Quarry, Sidebar tilpasning til max-width: 768px */
@media screen and (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }
    .sidbar {
        max-width: 730px;
    }
    .search-container input[type=text] {
        width: 680px;
    }
}