:root {
    --color_primary_default: rgba(46, 204, 113, 1);
    --color_primary_font: rgba(255, 255, 255, 1);
    --color_primary_black: rgba(0, 0, 0, 1);
    --color_primary_contrast_default: rgba(246, 250, 249, 1);
    --color_background_default: rgba(246, 250, 249, 1);
    --color_primary_light: rgba(46, 204, 113, 0.1);
}

@font-face {
    font-family: 'OpenSans';
    src: url('https://homepage.shyft-power.com/fonts/opensans/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('https://homepage.shyft-power.com/fonts/opensans/OpenSans-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('https://homepage.shyft-power.com/fonts/opensans/OpenSans-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


body {
    overflow-wrap: anywhere;
    /* Colors & Typography */
    color: #222;
    font-family: OpenSans;
    line-height: 1.5;

    /* The Layout "Magic" */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children horizontally */
    justify-content: center; /* Centers children vertically */
    min-height: 100vh;

    /* Constraints */
    max-width: 1200px;
    margin: 0 auto; /* 'auto' centers the body itself if the screen is wider than 1200px */
    padding: 1rem;
}

header {
    border-bottom: 1px solid #222;
    margin-bottom: 1rem;
    font-weight: bold;
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

div.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.sidebar {
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 999;
    padding: 10px;
    background-color: var(--color_primary_contrast_default);
    display: none;
    padding: 10px;
}

div.centered {
    text-align: center;
}


div.footer {
    display: flex;
    padding: 10px;
    gap: 10px;
}

div.logo {
    padding: 10px;
    background-color: #f0f0f0;
}

div.circle {
    width: 1.6em;
    height: 1.6em;

    border: 0.1em solid currentColor;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--color_primary_default);
}

.logoimage {
    margin-right: auto;
}

header a:visited {
    color: var(--color_primary_black);
}

header div {
    margin: 5px;
}

footer {
    border-top: 1px solid #222;
    margin-top: 1rem;
    width: 100%;
}

a {
    color: black;
    text-decoration: none;
}

h2 {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.25em;
}

h3 {
    color: var(--color_primary_default);
    margin: 0;
}

h4 {
    font-size: 24px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5em;

}

h5 {
    display: flex;
    justify-content: center;
    margin: 0.5em;
}

h6 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    margin: 0.5em;
}

.logoimage {
    width: 150px;
}

li.footer_menu_entry {
    list-style-type: none;
}

/** section **/
section {
    margin: 10px;
    padding-left: 10px;
}

/* Target every even-numbered section (2, 4, 6, etc.) */
section:nth-child(even) {
    background-color: var(--color_background_default);
}

/* Target every odd-numbered section (1, 3, 5, etc.) */
section:nth-child(odd) {
    background-color: #ffffff;
}

/** SECTION::action bar **/
section.action_bar {
    background: var(--color_primary_default);
    color: var(--color_primary_font);
    padding: 20px;
}

div.action_bar {
    display: flex;
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
}

div.action_bar_text {
    text-align: center;
}

div.cards_action,
div.action_bar_button {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
}

div.cards_action {
    padding: 1em;
}

img.action_bar {
    flex: 1;
    width: 10px;
    margin: 0.5em;
}

div.post_summary {
    font-weight: bold;
}

div.vbox {
    display: flex;
    align-items: center;
}

/** SECTION::columns **/
div.columns {
    display: flex;
}

h5.footer_menu {
    text-align: left;
    margin: 0em;
    margin-bottom: 1em;
    justify-content: normal;
}

div.two_column {
    flex: 1;
}

/** SECTION::cards **/
div.cards {
    display: flex;
    justify-content: flex-end;
}

div.card {
    flex: 1;
    margin: 5px;
    padding: 10px;
    background: var(--color_primary_light);
    display: flex;
    flex-direction: column;
}

div.card_footer {
    padding-top: 20px;
    margin-top: auto;
}

img {
    max-width: 100%;
    height: auto;
}

/** primary button **/
div.button_primary {
    background: var(--color_primary_default);
    width: fit-content;
    padding: 15px;
    border-radius: 8px;
}

a.button_primary {
    color: var(--color_primary_font);
}


/** secondary button **/
div.button_secondary {
    background: var(--color_primary_contrast_default);
    border: 1px solid;
    width: fit-content;
    border-color: var(--color_primary_default);
    padding: 15px;
    border-radius: 8px;
}

a.button_secondary {
    color: var(--color_primary_default);
}

.showOnMobile {
    display: none;
}


@media (max-width: 768px) {
    section {
        max-width: 100%;
        margin-left: 30px;
    }

    div.cards {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    h1 {
        font-size: 48px;
        max-width: 100%;
        padding-left: 40px;
    }

    h2 {
        font-size: 40px;
    }

    div.columns {
        flex-direction: column;
    }

    div.footer {
        flex-direction: column;
    }

    .hideOnMobile {
        display: none;
    }

    .showOnMobile {
        display: block;
    }

}

a.hideOnMobile, details.hideOnMobile {
    padding-right: 1em;
}

summary::-webkit-details-marker {
    display: none;
}

summary {
    list-style: none;
}

details {
    position: relative;
    display: inline-block; /* Keeps the toggle from taking up the whole row */
}

details ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.no-bullets {
    list-style-type: none;
}