.navbar {
    background-color: #D2C199;
    font-weight: bolder;
}
.dropdown-menu{

    background-color: #ECE5D4;
    a {
        color: black;
    }

}
.dropdown-menu .dropdown-divider {
    margin: 0.15rem 0;
    border-top-color: #D2C199;
}
.navbar input[type="search"] {

    background-color : #ECE5D4; 
  
}
.competition-status.rateinfo{
    background-color: #D2C199; 
    color: black;
    

}
.secondary-color {
    color: #d1ac55;
}
.btn-secondary {
    background-color: #d1ac55;
    border-color: #d1ac55;
    color: black;
    font-weight: bold;
}
.btn-secondary:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    background-color: #d1ac55;
}
.btn-primary {
    background-color: #d1ac55;
    border-color: #d1ac55;
    color: black;
    font-weight: bold;
}

.btn-primary:disabled {
    background-color: #c7bda7;
    border-color: #c7bda7;
    color: black;
    font-weight: regular;
}
.btn-primary:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    background-color: #d49910;
}
.btn-outline-secondary {
    border-color: #d1ac55;
    font-weight: bold;
    color: black;
}
.btn-sm {
    line-height: 1;
    
}
.navbar input[type="search"] {
    Border: solid rgba(209, 172, 85,0.50) !important;
    font-weight: bold;
} 
#welcome-popup-lesshelp{
    color: #D2C199;
    font-weight: bold;
}
/*inputs, textareas, select, etc. */
.form-control:focus {
    border-color: rgba(209, 172, 85,0.8);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(209, 172, 85,0.6);
    outline: 0 none;
  }
 
  /*to align with parent modal*/ 
.popover {
    max-width: 550px ;
    width: 85% ;
}
/*scrollable popover body on small screens (iphone SE/Galaxy S8), or popup will not show*/
@media only screen and (max-height: 741px){

    .popover-body  { 
        /* height: 420px; */
        min-height: auto;
        max-height: 60vh;
        overflow: auto;
        white-space:pre-wrap;
    }
}

.badge-secondary {
    background-color: #d1ac55;
    /* color: black; */
    font-size: medium;
    font-weight: bold;
    margin-bottom: 0.4rem;
}
.beer-class-header{
    font-size: 2.5rem;
    font-weight: 300;

}
.beer-number {

}

.beer-name {
}

.beer-style {
    font-family: arial;
    font-style: italic;
    font-size: 80%;
}

.gold {
    color: gold;
}

.grey {
    color: grey;
}

/* Ensure d-none works on rating fieldsets */
.rating.d-none {
    display: none !important;
}

.rating > input {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rating > label {
    float: left;
    width: 1.2em;
    padding: 0 .2em; 
    overflow: hidden;
    white-space: nowrap; 
    font-size: 160%; 
    line-height: 1.2;
    color: gold;
    visibility: hidden;
}

.rating > label:before {
    visibility: visible;
    content: '\2605';
    font-family: "Font Awesome 5 Free";
    display: inline-block; /*fa 5*/
    padding-right: 3px;
    vertical-align: middle;
    font-weight: 900;
    margin-top: 0.25rem;
}

.rating > label.rating-clear-button:before {
    visibility: visible;
    content: '\f05e';
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    padding-right: 3px;
    margin-top: 0.25rem; /*mt-1*/
    vertical-align: middle;
    font-weight: 900;
    color: black;
}

.rating > input:checked ~ label {
    color: grey;
}

.rating > input:checked + label {
    color: gold;
}

/*drank checkbox, as a rotating glass*/

.drank  input[type='checkbox'] {
    display:none;
}
 .drank   input[type='checkbox']+ label:before {
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    content: "\f4e3"; /*fas fa-wine-glass-alt*/
	font-size:1.5rem;
	cursor:pointer;
    font-weight: 600;
    color: #d1d1d2;
    
 
 }
 .drank  input[type='checkbox']:checked + label:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f5ce"; /*fas fa-wine-glass*/
	font-size:1.5rem;
	cursor:pointer;
    font-weight: 900;
    color: #FFD43B;
    
 }

.rotate{
    -moz-transition: all 0.35s linear;
    -webkit-transition: all 0.35s linear;
    transition: all 0.35s linear;
}

.rotate.down{
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}



/*loading spinner overlay*/
.cssload-container {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
}

.cssload-speeding-wheel {
    content: "";
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 63px;
    height: 63px;
    margin: 0 auto;
    border: 4px solid rgb(210, 193, 153);
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: cssload-spin 500ms infinite linear;
    -o-animation: cssload-spin 500ms infinite linear;
    -ms-animation: cssload-spin 500ms infinite linear;
    -webkit-animation: cssload-spin 500ms infinite linear;
    -moz-animation: cssload-spin 500ms infinite linear;
}

@keyframes cssload-spin {
    100% {
        transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes cssload-spin {
    100% {
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-ms-keyframes cssload-spin {
    100% {
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes cssload-spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes cssload-spin {
    100% {
        -moz-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.modal .content {
    overflow:auto;
    max-height:calc(100vh - 125px);
  }




  .card-header {
    background-color: #D2C199;
    font-weight: bold;
    color: black;
  }

/* ============ BAYESIAN RATING STYLES ============ */

/* Slider section container */
.vote-slider-section {
    padding: 8px 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.vote-slider-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.vote-slider-value {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

.vote-slider-container {
    padding: 0 4px;
}

.slider-wrapper {
    position: relative;
}

.slider-track-container {
    position: relative;
    padding: 8px 0;
}

.slider-labels {
    position: relative;
    height: 20px;
    margin-top: 0;
}

.slider-label {
    position: absolute;
    font-size: 0.85rem;
    color: #666;
}

/* Position "1" label at the 10% mark, accounting for thumb offset
   Thumb is ~24px wide, so thumb center at value 1 is at: 12px + 10% * (100% - 24px) ≈ 10% + 10px */
.slider-label-min {
    left: calc(10% + 10px);
    transform: translateX(-50%);
}

/* Position "10" label at the right end, offset by half thumb width */
.slider-label-max {
    right: 12px;
    transform: translateX(50%);
}

/* Main slider input styling */
.vote-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #FFD43B 0%, #FFD43B var(--value-percentage, 0%), #dbdbdb var(--value-percentage, 0%), #dbdbdb 100%);
    outline: none;
    margin: 0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Webkit (Chrome, Safari, Edge) thumb */
.vote-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #494949;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vote-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.vote-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    background: #333;
}

/* Firefox thumb */
.vote-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #494949;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vote-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.vote-slider::-moz-range-thumb:active {
    transform: scale(1.1);
    background: #333;
}

/* Firefox track */
.vote-slider::-moz-range-track {
    height: 6px;
    background: #dbdbdb;
    border-radius: 3px;
}

/* Current rating display in header */
#popup-current-rating-display {
    font-size: 0.95rem;
    padding: 2px 6px;
    background-color: #f5f5f5;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 1.2rem;
}

/* Bayesian mode footer styling */
#beer-popup-footer-bayesian {
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsive adjustments for slider */
@media only screen and (max-width: 576px) {
    .vote-slider-section {
        padding: 4px 0;
    }

    .vote-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .vote-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .slider-labels {
        margin-top: 4px;
    }

    /* Adjust label positions for larger thumb (28px) */
    .slider-label-min {
        left: calc(10% + 12px);
    }

    .slider-label-max {
        right: 14px;
    }
}

/* Touch-friendly on mobile */
@media (pointer: coarse) {
    .vote-slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .vote-slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }

    .slider-track-container {
        padding: 12px 0;
    }

    /* Adjust label positions for larger touch thumb (32px) */
    .slider-label-min {
        left: calc(10% + 14px);
    }

    .slider-label-max {
        right: 16px;
    }
}

/* Beer list rating/drank display container */
.rating-drank-container {
    display: inline-flex;
    float: right;
    flex-direction: row-reverse;
}

.rating-drank-container.bayesian-mode {
    flex-direction: row; /* Bayesian: drank appears to the right of rating */
    align-items: center;
    gap: 8px;
}

.rating-drank-container.bayesian-mode [id^="drank-display-"] {
    min-width: 1.2em; /* Reserve space even when empty */
    text-align: center;
    margin-top: 0 !important; /* Override inline style for proper vertical centering */
}

/* ============ END BAYESIAN STYLES ============ */

/* Recept checkbox styling */
.recept-toggle input[type="checkbox"] {
    accent-color: #d1ac55;
}

/* Om du använder en anpassad checkbox */
.recept-toggle .form-check-input:checked {
    background-color: #d1ac55;
    border-color: #d1ac55;
}

.recept-toggle .form-check-input:focus {
    border-color: #d1ac55;
    box-shadow: 0 0 0 0.2rem rgba(209, 172, 85, 0.25);
}

/* Recept expanderbar sektion */
.recept-toggle {
    cursor: pointer;
    font-weight: normal;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.recept-toggle .arrow {
    color: #d1ac55;
    transition: transform 0.3s;
    font-size: 0.9em;
}

.recept-content {
    display: none;
    margin-top: 10px;
    margin-bottom: 1rem;
    padding: 15px;
    border: 2px solid #d1ac55;
    border-radius: 8px;
    background-color: #fffef8;
    font-size: 0.72em;
}

.recept-content .form-group {
    margin-bottom: 0.5rem; /* Halverat från Bootstrap default 1rem */
}

.recept-content .form-group label {
    font-size: 1em;
    margin-bottom: 0.25rem; /* Halverat från Bootstrap default 0.5rem */
}

.recept-content .form-control-plaintext {
    font-size: 1em;
    padding-top: 0; /* Tar bort extra padding */
    padding-bottom: 0;
    margin-bottom: 0;
}

.recept-content table {
    font-size: 1em;
    margin-bottom: 0.25rem; /* Minskat avstånd efter tabeller */
}

.recept-content th,
.recept-content td {
    font-size: 1em;
}