/* Basic Reset */
body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    display: flex;
    justify-content: center; /* Ensures everything is centered */
}

/* Center the entire page */
#page-container {
    width: 100%;
    max-width: 1100px; /* Adjust width for desktop */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content inside */
}

/* Header and Footer Styling */
#header, #footer {
    width: 100%;
    max-width: 1100px; /* Ensures it stays aligned with the content */
    text-align: center;
}

#header {
    background: #fff;
    /*  padding:0 2px;
      margin:0 2px;*/
}

#footer {
    margin-bottom: 20px;
}

/* Grid Layout for Main Content & Sidebar */
#content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content takes more space */
    gap: 20px;
    width: 100%;
    max-width: 1100px; /* Keeps everything aligned */
    background: white;
    padding: 0px;
}

#main-content {
    background: #fff;
    padding: 4px;
}

#sidebar {
    position: relative;
    background: #f8f8f8;
    padding: 4px;
}

/* Ad positioned outside the content container */
#right-space {
    position: absolute;
    left: calc(100% + 10px); /* Moves the ad just outside the sidebar */
    top: 0px; /* Moves the ad lower */
    width: 300px;
    display: block;
}

/* Responsive Mobile Layout */
@media (max-width: 640px) {

    #content-wrapper {
        grid-template-columns: 1fr; /* Stack elements */
    }

    #sidebar {
        order: 2; /* Moves below main content */
    }

    #right-space {
        display: none; /* Hide ad on mobile */
    }
}

/* HEADER */

/* MENU */
/* General Menu Styling */
.menu {
    background: #f8f8f8; /* Super light gray */
    border: 1px solid #ddd; /* Light gray border */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    padding: 10px;
    width: 200px; /* Fixed width */
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 50px; /* Adjust position based on header */
    left: 10px;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Make menu visible when active */
.menu.active {
    display: flex !important;
}

/* Menu Items */
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    padding: 8px 0;
}

.menu ul li a {
    text-decoration: none;
    color: #333; /* Dark gray for contrast */
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.menu ul li a:hover {
    background: #ddd;
}

/* Menu Toggle Button (Now Only as Wide as the Icon) */
.menu-toggle {
    background: #a30403; /* Red */
    color: white;
    border: none;
    padding: 12px; /* Makes it square */
    margin: 3px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    text-align: center;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    width: auto; /* Auto-size based on icon */
}

/* Toggle Button Hover Effect */
.menu-toggle:hover {
    background: #870302; /* Slightly darker red */
}

/* Center the Icon in the Button */
.menu-toggle i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

/* Responsive Adjustment (Optional) */
@media (max-width: 640px) {
    .menu {
        width: 100%; /* Full width on mobile */
        left: 0;
    }
}

/* End of MENU */


#headerMobile {
    position: relative;
    display: flex; /* establish flex container */
    flex-direction: row; /* default value; can be omitted */
    flex-wrap: nowrap; /* default value; can be omitted */
    justify-content: space-between; /* switched from default (flex-start, see below) */
    height: 48px;
}

#headerImageMobile {
    height: 48px;
    margin: 0px;
}

@media (min-width: 400px) {
    #headerImageMobile img {
        height: 48px;
        width: 153px;
        margin: 0px 0px 0px 0px;
        padding: 0px;
    }
}

@media (max-width: 400px) {
    #headerImageMobile img {
        height: 32px;
        width: 102px;
        margin: 10px 0px 0px 0px;
        padding: 0px;
    }
}

@media (max-width: 640px) {
    #headlineMobile {
        display: inline-flex;
        font-size: 15px;
        font-family: 'Dancing Script';
        color: #d71921;
        vertical-align: top;
        height: 48px;
        padding: 6px 2px 2px 10px;
        margin: 0px;
        width: 110px;
    }
}

@media (min-width: 640px) {
    #headlineMobile {
        display: inline-flex;
        font-size: 28px;
        font-family: 'Dancing Script';
        color: #d71921;
        vertical-align: top;
        height: 48px;
        padding: 6px 2px 2px 10px;
        margin: 0px;
    }
}

.headerMenuLine {
    border-color: #c7c8ca;
    border-width: 1px 0px 0px 0px;
    border-style: solid;
    margin: 0px 7px 0px 7px;
    height: 1px;
}

#socialIcons {
    height: 40px;
}

#socialIcons img {
    width: 40px;
    margin: 0px 8px 0px 8px;
}

#socialIconsFooter img {
    width: 40px;
    margin: 5px;
}

.socialIconsTeaser img {
    width: 25px;
    padding: 0px 5px;
    vertical-align: middle;
}

.sidebarWideTop {
    margin-top: 7px;
    margin-bottom: 2px;
    padding: 5px 0px 5px 0px;
    background-color: #f1b6b8;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-variant: small-caps;
    font-size: 16px;
    width: 100%;
    text-indent: 10px;
}

.sidebarWideTopLink, .sidebarWideTop a {
    color: black;
    font-weight: normal;
}

.sidebarWideTop h2, .sidebarWideTop h3 {
    margin-top: 0px;
    margin-bottom: 0px;
}

.sidebarWideContent {
    border-color: #c7c8ca;
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    padding-bottom: 8px;
    background-color: white;
    width: 100%;
    border-color: #c7c8ca;
}

.sidebarWideContentText {
    max-width: 300px;
}

.sidebarWideContentText a {
    color: black;
    font-weight: normal;
}

.sidebarWideAvatar {
    margin-right: 10px;
}

.sidebarWideAvatar {
    float: left;
    margin-right: 10px;
}

.contentImage {
    float: right;
    margin-left: 5px;
}

img.mainImage {
    width: 100%;
    height: auto;
}

.floatRightTop {
    padding: 0px;
    margin: 0px 0px 0px 0px;
    width: 100%;
    font-size: 14px;
    min-height: 320px;
}

@media (min-width: 640px) {
    .floatRightTop {
        float: right;
        margin: 0px 0px 8px 8px;
        width: 330px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
    text-align: center;
}

#foot {
    position: relative;
    width: 100%;
    background-color: #f1b6b8;
    margin: 0px 0px 3px 0px;
    padding: 8px;
    text-align: center;
}

#foot p, #footerMenu {
    margin: 0px 0px 3px 0px;
    padding: 4px 0px 0px 0px;
    font-size: 13px;
    color: black;
}

.footText {
    position: relative;
    padding: 6px 20px 4px 10px;
    color: black;
}

#foot p a, .footText a, #footerMenu a {
    color: black;
}

/* Common */
.clearLeft {
    clear: left;
}

.clearRight {
    clear: right;
}

.clearBoth {
    clear: both;
}

.marginLeft0 {
    margin-left: 0px;
}

.marginRight0 {
    margin-right: 0px;
}

.overflowAuto {
    overflow: auto;
}

/* List */
.listItem {
    border-color: #c7c8ca;
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    padding-bottom: 2px;
}

.listItemImage {
    float: left;
    width: 150px;
    height: 150px;
}

.listItemDescription {
    max-width: 470px;
    min-width: 150px;
    padding: 0px 10px 0px 10px;
    max-height: 150px;
    overflow: auto;
}

/* grid list */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px; /* Adjust spacing */
    justify-items: center;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px; /* Optional: rounded corners */
}

.grid-item a {
    display: block;
    margin-top: 8px;
    text-decoration: none;
    color: #a30403; /* Your red color */
    font-weight: bold;
}

.grid-item a:hover {
    text-decoration: underline;
}

/* image list */

.clearAfter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px; /* Adjust spacing */
    justify-items: left;
}

.stepContentImageWrap {
    text-align: left;
}

.stepContentImageWrap img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px; /* Optional: rounded corners */
    margin-left: -5px;
}

/* Oven settings (div float right) */
#ovenSettingsInfo {
    float: right;
    margin: 0 20px 0 20px;
}

/* Pink box */
.pinkBox {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8d9da;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

div .pinkBox input[type=text], div .pinkBox input[type=number], div .pinkBox select {
    font-size: 18px;
}

.pinkLightBox {
    background-color: #FCF0F1;
}

.start-menu-grid-container {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    column-gap: 1%;
}

.start-menu-grid-item {
    position: relative;
    background: white;
    text-align: center;
    padding-top: 3px;
}

.start-menu-grid-item img {
    min-height: 100px;
    max-height: 216px;
    min-width: 100px;
    max-width: 216px;
    width: 100%;
}

.image-text-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: white;
    padding: 2px 6px;
}

.image-text-overlay a {
    font-weight: normal;
}

/* Blog */
.blogEntryContent img {
    width: 100%;
    max-width: 600px;
}

/* Author info */
#authorInfo {
    padding: 10px;
    border-radius: 8px;
    background-color: #ecebeb;
    margin-top: 20px;
}

/* Ads */
.adMpu {
    height: 250px;
    width: 300px;
}

@media ( min-width: 640px ) {

    #topBanner {
        margin: 0px auto 0px auto;
        max-width: 980px;
        min-height: 300px;
    }

    .adDesktopBottom {
        max-width: 980px;
        min-height: 300px;
    }

    #topBannerMobile {
        display: none;
    }
}

@media ( max-width: 640px) {

    #headerDesktop {
        display: none;
    }

    #topBanner {
        display: none;
    }

    .adDesktopBottom {
        display: none;
    }

    #topBannerMobile {
        padding: 0;
        margin: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 320px;
        max-width: 640px;
    }

    .adMobile {
        width: 320px;
        height: 320px;
        overflow: hidden;
    }

    .adMobileExtended {
        width: 320px;
        height: 320px;
        overflow: hidden;
    }

    .adSidebar {
        height: 320px;
        overflow: hidden;
    }

    .adMobileTop {
        margin: 10px 0px 10px 0px;
        overflow-x: hidden;
    }

    .adMobileBottom {
        clear: both;
        margin: 10px 0px 10px 0px;
        height: 320px;
        overflow: hidden;
    }

    .adContentMid {
        margin: 10px 0px 10px 0px;
        height: 320px;
        overflow: hidden;
        max-width: 100%;
    }

    .adContentMid2 {
        margin: 10px 0px 10px 0px;
        height: 320px;
        overflow: hidden;
        max-width: 100%;
    }

    .ad-container {
        width: calc(100vw - 8px); /* Subtract padding 2x4px from .main-content to fit the viewport */
        max-width: 320px; /* Maximum ad width */
        height: 320px; /* Maximum ad height */
        margin: 0 auto;
        padding: 0px; /* Padding to maintain spacing */
        box-sizing: border-box; /* Include padding in width calculation */
        display: flex;
        justify-content: center;
        align-items: center; /* Center smaller ads vertically */
        overflow: hidden;
        background-color: #f9f9f9;
    }

    .ad-container > * {
        max-width: 100%; /* Prevents overflow */
        max-height: 100%; /* Maintains aspect ratio */
    }

    .ad-move-left {
        margin-left: -12px;
    }
}

/* END ads */

/* PrimeFaces */
@media ( min-width: 640px) {
    .ui-carousel {
        width: 100% !important;
        max-width: 640px; /* Förhindra att den växer utanför sin förälder */
    }
}

@media ( max-width: 640px) {
    .ui-carousel {
        width: 100% !important;
        max-width: 310px;
    }
}

.ui-carousel-items {
    width: 100% !important; /* Tvinga carousel-items att inte vara bredare */
}

.ui-carousel-container {
    width: 100% !important;
}

.ui-carousel-content {
    width: 100% !important;
}

