﻿body #nav ul li a {
    padding-top: 0em;
    padding-bottom: 0em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: left;
    font-size: 0.9em;
    background: #222629;
    line-height: 0.7em;
}

body #nav ul li.level1 a {
    padding-left: 0.3em;
    font-weight: 500;
}

    body #nav ul li.level1 a span:before {
        display: none;
    }

body #nav ul li a span:before {
    position: unset;
}

body div#header {
    text-align: left;
}

#logo h2 {
    color: #fff;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1em;
    padding-top: 0.5em;
}

#logo h2,
#logo h1 {
    position: relative;
    padding-left: 60px;
}

#logo a {
    text-decoration: none;
}

#nav ul li a span {
    padding-right: 0em !important;
    line-height: 1.75em;
}

#recipe {
    /*padding-left: 3em;*/
    text-align: left;
}

    #recipe p {
        margin-bottom: 0;
        min-height: 1em;
    }

.RecipeImageContainer {
    float: right;
    max-width: 50%;
    margin-left: 1em;
    margin-bottom: 1em;
}

.RecipeImage {
    max-width: 100%;
}

.imageFooter {
    width: 100%;
    display: block;
}

.listImage .imageFooter {
    line-height: 1em;
    margin-bottom: -3em;
}

.listImage .StarRating-Wrapper {
    display: block;
    float: right;
}

.listImage header {
    padding-top: 2.5em;
}

.RecipeImageContainer div {
    display: inline-block;
}

div.socialButtons {
    float: right;
    display: inline-block;
}

.imageFooter .StarRating-OuterWrapper {
    float: right;
}

.RecipeImageContainer .imageFooter .StarRating-OuterWrapper {
    float: left;
    display: block;
}

#starRatingContainer {
    float: left;
    display: block;
}

div.StarRating-OuterWrapper div.StarRating-InnerWrapper div {
    display: block;
}

.imageContainer.StarRating-Wrapper {
    position: absolute;
    right: 0px;
    /*top:-1.2em;*/
    float: right;
    margin-left: 0.2em;
    pointer-events: none;
}

    .imageContainer .StarRating-Wrapper label {
        font-size: 0.6em;
    }

.starRatingDisclamer {
    float: left;
    position: absolute;
    text-align: left;
}

.ReadOnlyReason {
    float: left;
}

    .starRatingDisclamer p,
    .ReadOnlyReason p {
        margin: 0;
        font-size: 0.5em;
    }

.voteCount {
    float: left;
    margin-top: -0.3em;
}

.socialButtons span {
    vertical-align: top !important;
}

#socialFooter .socialButtons {
    margin-right: 1em;
}

div#main > section#socialFooter {
    padding: 0em 0;
    box-shadow: none;
}

.StarRating-Disabled {
    pointer-events: none;
}

.RecipeComments {
    margin-top: 2em;
    text-align: left;
}

    .RecipeComments p {
        font-size: 0.8em;
        margin-bottom: 0;
    }

    .RecipeComments ul {
        list-style: none;
        margin-top: 0.5em;
        padding-left: 0;
    }

    .RecipeComments li {
        padding-left: 0;
        margin-bottom: 0.5em;
    }

    .RecipeComments .StarRating-Wrapper {
        padding-left: 0.5em;
    }

    .RecipeComments div,
    .RecipeComments h3 {
        display: inline-block;
    }

    .RecipeComments h3 {
        margin-right: 1em;
    }

    .RecipeComments div.CommentRegistered {
        float: right;
    }

    .RecipeComments h4 {
        font-weight: 500;
    }

@media screen and (min-width: 961px) and (max-width: 1320px) {
    #logo h2, h1 {
        padding-left: 0px;
    }

    #logo .image {
        display: none;
    }

    body #nav ul li a {
        padding-left: 1.5em;
    }
}

/*.imageContainer {
    width: 100%;
    height: 100%;
}*/

@media (min-width: 768px) and (max-width: 991px) {
    .col-6-mobile {
        min-width: 32%;
    }
}

@media screen and (max-width: 767px) {
    .col-6-mobile {
        min-width: 48%;
    }
}

@media print {
    #header,
    #headerToggle {
        visibility: hidden;
        display: none;
    }

    #main {
        margin-left: 0;
        width: 100%;
    }
    .noprint,
    button {
        display:none !important;
    }
}

div#main > section {
    padding: 1em 0;
}

#header #nav a:hover {
    color: #fff;
}

#banner {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #222629 url("images/overlay.png");
    box-shadow: inset -0.25em 0 0.25em 0 rgba(0, 0, 0, 0.1);
    height: 3.5em;
    z-index: 10;
    padding-top: 0.5em;
    padding-left: 0.5em;
}

    #banner h1,
    #banner h2 {
        color: white;
        display: inline;
    }

    #banner h1 {
        font-size: 1.5em;
        font-weight: 400;
    }

    #banner h2 {
        font-size: 0.8em;
    }

    #banner img {
        vertical-align: middle;
        margin-top: -0.2em;
    }

    #banner #search {
        float: right;
        font-size: 1em;
        padding-right: 0.5em;
    }

div#header {
    top: 3.5em;
    bottom: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    height: unset;
}

div#headerToggle {
    top: 3.5em;
}

a,
a:visited,
a:active,
a:hover {
    text-decoration: none;
    border-bottom: none;
}

/*a:hover {
    color: #5493ff;
    text-decoration: underline;
    border: none;
}*/

#titleWrapper {
    display: inline-block;
}

@media screen and (max-width: 500px) {
    #banner h1 {
        font-size: 1em;
    }

    #banner h2 {
        display: none;
    }

    #banner img {
        margin-top: 0;
    }
}

.search-box {
    position: absolute;
    bottom: 0;
    width: 80%;
    height: 100%;
    max-height: 0;
    transform: translateY(100%);
    transition: all 0.3s;
    right: 0;
    max-width: 20em;
}

    .search-box .search-input {
        width: 100%;
        height: 100%;
        padding: 0 1em;
        border: 0;
        background-color: transparent;
        opacity: 0;
        color: #222629;
    }

.show .search-box {
    max-height: 40px;
}

.show .search-input {
    opacity: 1;
}

.logon {
    padding-left: 0.5em;
    position: relative;
}

    .logon div {
        position: absolute;
    }

#CreateSliderList form input {
    width: 10em;
    display: inline;
    padding: 0;
}

#SliderList ul {
    list-style: none;
}

input.NormalAppearance,
select.NormalAppearance {
    -webkit-appearance: revert;
    width: revert;
}

#main > section div.leftForm input {
    width: revert;
    text-align: left;
}

#SliderList .row h2 {
    display: none;
}

#SliderList h4 {
    text-align: left;
}

/*#recipeListSlider{
    padding-top:1em;
}*/

#recipeListSlider .carousel-inner,
#recipeListSlider .row {
    margin-top: 0;
}

#recipeListSlider div {
    padding-top: 0;
}

#recipeListEdit {
    text-align: left;
    float: left;
    margin-left: 4em;
}

    #recipeListEdit .listImage {
        max-height: 10em;
        max-width: 10em;
        overflow: hidden;
    }

div.center {
    margin: 0 auto;
}

#featured #featuredOverview .featuredImage {
    max-height: 15em;
    max-width: 15em;
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    #featured #featuredOverview .featuredImage {
        max-height: 10em;
        max-width: 10em;
        font-size: 0.75em;
    }
}

#featured th {
    color: unset;
    background: unset;
    font-weight: bold;
}

#featured td {
    padding-top: 0;
    padding-bottom: 0;
}

input.form-check-input {
    -moz-appearance: auto;
    -webkit-appearance: auto;
    -ms-appearance: auto;
    appearance: auto;
    transform: scale(2);
    position: relative;
    margin-left: 0;
    margin-right: 1.25rem;
}

.RecipeBox {
    height: 40em;
}

div.translationCheck {
    position: absolute;
    bottom: 0.5rem;
}

div.bbeditor {
    position: relative;
}

.bbeditor div.toolbar {
    position: absolute;
    top: -35px;
    width: 100%;
    text-align: right;
}

.horizontal * {
    display: inline-block;
}

.bottom {
    position: sticky;
}

th.leftCol,
td.leftCol {
    text-align: left;
}

.adminList {
    font-size: 0.9em;
}

.RecipeHidden,
.RecipeHidden header {
    background-color: lightgray;
}

section#adminCommentList li {
    list-style: none;
}

section#adminCommentList,
section#adminCommentList .commentAuthor {
    text-align: left;
}

    section#adminCommentList .actionButtons {
        text-align: right;
    }

table.adminList {
    width: 100%;
}

section#adminCommentList .StarRating {
    float: right;
}

@media screen and (max-width: 700px) {
    div#RecipeList div.row table.adminList {
        font-size: 1em;
    }

    table.adminList .mobileHide {
        display: none;
    }

    table.adminList {
        margin-left: 1em;
    }
}

.hidden {
    display: none;
}

.collapsible {
}

.card .active,
.card .collapsible:hover {
    background-color: #555;
}

.collapseContent.collapsed {
    display: none;
}

.fancy-checkbox input[type="checkbox"],
.fancy-checkbox .checked {
    display: none;
}

    .fancy-checkbox input[type="checkbox"]:checked ~ .checked {
        display: inline-block;
    }

    .fancy-checkbox input[type="checkbox"]:checked ~ .unchecked {
        display: none;
    }

.card-header i.fas:before {
    content: "\f107"; /* angle-down */
}

.card-header.collapsed i.fas:before {
    content: "\f106"; /* angle-up */
}

/*Banner begin*/
#bannerContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FFEDC8;
}

#bannerImg {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

    #bannerImg a {
        white-space: nowrap; /* prevents inline wrapping just in case */
    }

    #bannerImg img {
        max-height: 150px;
        object-fit: contain;
    }

#bannerText {
    color: black;
}

    #bannerText h3 {
        font-weight: bold;
        margin: 0 0 0.25em;
        font-size: 1.2em;
        line-height: 1.1;
    }

    #bannerText p {
        margin: 0;
        font-size: 0.9em;
        line-height: 1.25;
    }

.bannerChild {
    float: left;
    padding: 10px 5px 0px 20px;
}

#bannerContainer .bannerChild {
    float: none;
    padding: 8px 10px;
}

@media screen and (max-width: 767px) {
    #bannerImg img {
        max-height: 90px;
        max-width: 80px;
        object-fit: contain;
    }

    #bannerText {
        font-size: 0.9em;
    }

        #bannerText p {
            line-height: 1.2;
        }

    #bannerContainer {
        padding: 6px 10px;
    }
}
/*Banner end*/

#recipe.book p {
    margin-bottom: 1em;
}

/* ===== FIX HORIZONTAL OVERFLOW ON MOBILE ===== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Reset transform leftovers */
#main {
    transform: none !important;
    max-width: 100vw;
}

    /* Prevent stretched sections */
    #main > section {
        max-width: 100vw;
        overflow-x: hidden;
    }

/* Ensure containers do not exceed viewport */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Force rows to fit screen */
.row {
    max-width: 100%;
}

/* --- Banner layout improvements --- */
/* (merged into the Banner block above to avoid duplication) */



/* --- FORCE BANNER TO BE FIXED --- */
#banner {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
}

/* --- Push page content below the fixed banner --- */
body {
    padding-top: 3.5em; /* same height as your banner */
}

/* --- Move the left-side #header menu down as well --- */
#header {
    top: 3.5em !important;
}

