:root {
    --mainColor: rgb(176, 18, 18);
    --mainColorTrans: rgba(176, 18, 18, 0.9);
    --accent1: rgb(204, 92, 92);
    --foregroundLight: rgb(240, 240, 240);
    --foreground: rgb(31, 31, 31);
    --background: rgb(240, 240, 240);
    --accent2: rgb(85, 85, 85);
    --darkGrey: rgb(68, 68, 68);
    --lightGrey: rgb(221, 221, 221);
}

@font-face {
    font-family: MainFont;
    src: url(../assets/fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: Headline;
    src: url(../assets/fonts/Newsreader-VariableFont_opsz\,wght);
}

@font-face {
    font-family: Accent;
    src: url(../assets/fonts/LoveYaLikeASister-Regular.ttf);
}

@font-face {
    font-family: Title;
    src: url(../assets/fonts/Cinzel-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: MainFont, sans-serif;
    background: var(--lightGrey);
    color: var(--foreground);
    font-size: 16px;
}

a {
    color: var(--foreground);
    text-decoration: none;
}

a:visited {
    color: var(--foreground);
    text-decoration: none;
}

a:active {
    color: var(--foreground);
    text-decoration: none;
}

#layout_wrapper {
    display: grid;
    grid-template-areas:
        "header"
        "content"
        "footer";
    grid-template-rows: max-content auto max-content;
    grid-template-columns: 100%;
    width: min(100vw, 1000px);
    margin: auto;
    position: relative;
    background: var(--background);
}

#layout_header {
    grid-area: header;
    display: flex;
    background: var(--mainColorTrans);
    backdrop-filter: blur(30px);
    width: 100%;
    position: sticky;
    top: 0;
    box-shadow: 0px 10px 10px 5px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

#layout_content {
    grid-area: content;
    font-size: clamp(14px, 2vw, 4vw);
    padding: 40px;
}

#layout_content h1 {
    font-size: 2rem;
    color: var(--mainColor);
    margin: 20px 0 20px 0;
    font-family: Headline, serif;
    font-weight: normal;
}

#layout_content h2 {
    font-size: 1.5rem;
    color: var(--mainColor);
    margin: 20px 0 10px 0;
    font-family: Headline, serif;
    font-weight: normal;
}

#layout_content h3 {
    font-size: 1.25rem;
    color: var(--accent2);
    margin: 20px 0 10px 0;
    font-family: Headline, serif;
    font-weight: normal;
}

#layout_content h4 {
    font-size: 1.25rem;
    color: var(--accent2);
    margin: 20px 0 10px 0;
    font-family: Headline, serif;
    font-weight: normal;
}

#layout_content p {
    font-size: 1rem;
    text-align: leading;
    line-height: 2rem;
}

#layout_content i {
    font-size: 1rem;
    line-height: 1.5rem;
}

#layout_content b {
    font-size: 1rem;
    line-height: 1.5rem;
}

#layout_footer {
    grid-area: footer;
    background: var(--darkGrey);
    border-top: 5px solid var(--mainColor);
    padding-bottom: 80px;
}

.wrapperFooter {
    display: flex;
    margin: 20px 40px;
    gap: 10px;
}

.footerButtonTop {
    border: 1px solid var(--foregroundLight);
    border-radius: 10px;
    padding: 10px 20px;
    background: transparent;
    outline: none;
    color: var(--foregroundLight);
    font-size: 1.125rem;
}

.footerButtonTop:hover {
    cursor: pointer;
}

.wrapperFooter p {
    color: var(--foregroundLight);
    margin-left: auto;
    font-size: 1rem;
}

#layout_content li {
    font-size: 1rem;
    line-height: 1.5rem;
    text-decoration: none;
    margin: 0 0 10px 30px;
}

#layout_content ul {
    font-size: 1rem;
    line-height: 1.5rem;
}

.headerHeadline {
    color: var(--foregroundLight);
    text-align: center;
    width: 100%;
    margin: 20px 30px 10px 0px;
    font-family: Title, serif;
}

.headerHeadline h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.headerHeadline img {
    width: 2rem;
    margin-right: 20px;
    margin-left: 20px;
    position: relative;
    top: 0px;
}

.buttonMenu {
    border: none;
    outline: none;
    background: transparent;
    height: 100%;
    margin: 0 0 0 10px;
}

#layout_menu {
    position: fixed;
    top: 0;
    height: 100vh;
    width: min(max(90%, 300px), 900px);
    background: rgba(240, 240, 240, 0.7);
    backdrop-filter: blur(30px);
    box-shadow: 10px 0px 20px 5px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 999;
    transition: width 0.2s;
    display: flex;
    overflow: hidden;
}

#layout_menu.hidden {
    width: 0;
    box-shadow: none;
}

.menuHeader {
    display: flex;
    margin: 20px 0 20px 0;
}

.menuHeaderHeadline {
    font-size: 2rem;
    margin: 0 0 0 10px;
    font-family: Headline, serif;
}

.menuHeaderButton {
    margin-left: auto;
    margin-right: 10px;
}


.menuHeaderButton button {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.25rem;
    color: var(--foreground);
}

.menuHeaderButton button .icon {
    color: var(--foregroundLight);
}

.menuContent {
    margin: 10px 0 0 0;
}

.menuContent ul {
    list-style: none;
}

.menuContent li {
    margin: 30px 0 0 0;
}

.menuContent li a {
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--foreground);
    display: block;
    padding: 10px 0 10px 30px;
    transition: 0.2s;
}

.menuContent li a:hover {
    background: var(--mainColor);
    color: var(--foregroundLight);
}

.customContentDates {
    display: flex;
    flex-direction: column;
    margin: 20px 0 20px 0;
    gap: 40px;
}

.customContentDateLine {
    display: flex;
    flex-direction: row;
    width: 100%;
    display: grid;
    grid-template-areas:
        "icon icon"
        "date link"
        "location link";
    grid-template-rows: 100px max-content;
    grid-template-columns: auto min-content;
    border-radius: 10px;
    border: 1px solid var(--darkGrey);
    background: var(--lightGrey)
}

.customContentDateLineIcon {
    grid-area: icon;
    background: var(--mainColor);
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.customContentDateLineIcon img {
    object-fit: cover;
    width: 100%;
    height: 100px;
    max-width: 100%;
    max-height: 100px;
  object-position: 50% 40%;
}

.customContentDateLineDate {
    grid-area: date;
    margin: 10px;
    background: transparent;
    color: var(--mainColor);
    font-size: 1rem;
    flex: 1;
    background-image: url("../assets/icons/icon-calendar.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px;
    padding-left: 29px;
}

.customContentDateLineLocation {
    grid-area: location;
    margin: 10px;
    background: transparent;
    font-size: 1rem;
    background-image: url("../assets/icons/icon-location.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px;
    padding-left: 29px;
}

.customContentDateLineText {
    padding: 10px;
    background: transparent;
    font-size: 1rem;
    flex: 2;
}

.customContentDateLineInfo {
    grid-area: link;
    margin: auto;
}

.customContentDateLineInfo button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    background: var(--mainColor);
    color: var(--foregroundLight);
    border: none;
    outline: none;
    margin: 0 10px 0 0;
}

.customContentDateLineInfo button:hover {
    cursor: pointer;
    background: var(--accent1);
}

.item-content {
    margin: 0 0 80px 0;
}

#layout_content h1.customHeadline,
#layout_content h2.customHeadline,
#layout_content h3.customHeadline,
#layout_content h4.customHeadline {
    font-family: Accent;
    color: var(--accent2);
}

#layout_content h2.customHeadline {
    font-size: 2rem;
    margin: 30px 0 10px 0;
}

@media only screen and (max-width: 1000px) {

    body,
    html {
        font-size: 32px;
    }

    .customContentDateLineText {
        flex: 1;
    }

    .buttonMenu img {
        width: 64px;
        height: 64px;
    }

    .menuHeaderButton button img {
        width: 64px;
        height: 64px;
    }

    .menuHeaderButton button {
        font-size: 1.5rem;
    }

    .menuContent li a {
        font-size: 1.5rem;
    }

    .customContentDateLine {
        grid-template-rows: 100px max-content;
    }

    .customContentDateLineIcon img {
        height: 100px;
        max-height: 100px;
    }

    .customContentDateLineLocation,
    .customContentDateLineDate {
        background-size: 32px;
        padding-left: 37px;
    }

    #layout_content h2.customHeadline {
        font-size: 2rem;
        margin: 50px 0 50px 0;
    }
}