* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100dvh;
    background-color: #001f3f;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    padding: 20px;
}

body.home-page {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.siteTitle {
    font-size: 36pt;
    height: 82px;
}

.response-container {
    display: flex;
    gap: 20px;
    border: silver 2px solid;
    border-radius: 32px;
    padding: 20px;
    margin-top: 30px;
}

.response-heading {
    position: relative;
    display: flex;
}

.response-vote-buttons {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.response-heading-text {
    display: inline-block;
    width: auto;
    color: navy;
    font-weight: bold;
    border-bottom: slateblue 2px solid;
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.response-copy-button {
    position: absolute;
    top: 0;
    right: 0;
}

.response-reason-button {
    position: absolute;
    top: 0;
    right: 60px;
}

.response-spec-button {
    position: absolute;
    top: 0;
    right: 120px;
}

.response-text-container {
    padding: 20px;
    font-size: 14pt;
    width: 70%;
    border: lightsteelblue 2px solid;
    border-radius: 32px;
}

.variation-container {
    padding: 20px;
    font-size: 14pt;
    border: lightsteelblue 2px solid;
    border-radius: 32px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.variation-reason {
    font-size: 12pt;
    color: cornflowerblue;
    border: blue 1px solid;
    padding: 10px;
    margin: 10px;
}

.response-text {
    font-size: 14pt;
    position: relative;
    display: inline-block;
}


.response-option-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 40%;
}

.response-option {
    color: black;
    background-color: lightsteelblue;
    padding: 10px;
    border-radius: 16px;
    font-size: 16pt;
    width: 100%;
    display: flex;

    transition: background-color 0.3s, transform 0.2s;
}

.response-option.disabled {
    background-color: darkgrey;
}

.response-option:hover {
    background-color: royalblue;
    transform: translateY(-2px);
}

.response-option:active {
    background-color: steelblue;
}

.response-option.disabled:hover,
.response-option.disabled:active {
    background-color: darkgrey;
    transform: none;
}

.response-icon {
    display: flex;
    height: 30px;
    width: 30px;
    margin-right: 10px;
    padding-top: 3px;
}

.response-description {
    display: flex;
    height: 30px;
    align-items: center;
}

#notice-container {
    padding-top: 25px;
    justify-content: center;
    opacity: 1;
}

.notice-banner {
    display: flex;
    width: 900px;
    min-width: 900px;
    background-color: #DDEEFF;
    border: #8888CC 2px solid;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.notice-text-bold {
    width: 860px;
    font-weight: bold;
    font-size: 14pt;
    margin-bottom: 10px;
}

#help-container {
    justify-content: center;
    opacity: 1;
}

.help-button-container {
    width: 50px;
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    right: 70px;
    z-index: 2;
}

.help-icon {
    display: inline-block;
    padding: 5px;
}

.response-container.hidden {
    display: none;
}

.help-banner {
    display: flex;
    width: 900px;
    min-width: 900px;
    background-color: lightyellow;
    border: goldenrod 2px solid;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}


.help-text p {
    width: 860px;
    font-size: 14pt;
    margin-bottom: 2px;
}

.container,
.home-container,
.admin-container,
.form-container,
.login-container {
    position: relative;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

.home-container {
    max-width: 1200px;
    min-width: 940px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: scroll;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    align-items: center;
}

.label-row {
    margin-bottom: 0;
    margin-top: 5px;
}


textarea.styled-input {
    display: block;
    margin: 0;
}


[class*="col-"] {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.col-1 {
    grid-column: span 1;
}

/*justify-items: end; /* Aligns the button to the right */
/*align-items: flex-end; /* Aligns the button to the bottom */
.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

.page-heading {
    text-align: left;
}

.float-right {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.float-right {
    right: 40px;
    display: flex;
    gap: 10px;
}

.admin-container {
    max-width: 1200px;
    min-width: 940px;
}

.form-container {
    max-width: 800px;
}

.login-container {
    max-width: 400px;
}


h1,
h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333333;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

p,
a,
button,
label {
    font-size: 16px;
    color: #333333;
}

.subtitle-maroon {
    font-size: 14pt;
    color: maroon;
    padding-bottom: 20px;
    font-weight: bold;
}

.subtitle-green {
    font-size: 14pt;
    color: green;
    padding-bottom: 20px;
    font-weight: bold;
}

.shared-recipe-container {
    padding: 20px;
    font-size: 16pt;
    border: green 2px solid;
    border-radius: 32px;
    padding-bottom: 0px;
    margin-bottom: 20px;
}

.private-recipe-container {
    padding: 20px;
    font-size: 16pt;
    border: maroon 2px solid;
    border-radius: 32px;
    padding-bottom: 0px;
    margin-bottom: 20px;
}

.private-comment-button,
.shared-comment-button,
.chatgpt-button {
    margin-top: 10px;
}

.comment-button,
.delete-button {
    margin-top: 10px;
}

.shared-recipe {
    font-size: 12pt;
}

.private-recipe {
    font-size: 12pt;
}

.form-group {
    margin-bottom: 20px;
}


.toggle-container {
    margin-bottom: 20px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    admin-select: none;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.toggle-switch::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-label input:checked+.toggle-switch {
    background-color: #007BFF;
}

.toggle-label input:checked+.toggle-switch::before {
    transform: translateX(26px);
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.variation-details-container {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.variation-reason {
    width: 90%;
    display: flex;
    align-items: flex-start;
}

.variation-accept-container {
    width: 10%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    padding-top: auto;
}

.btn-low {
    width: 50px;
    margin-top: 10px;
}


.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 50px;
    font-family: inherit;
    font-weight: 500;
}

.btn-primary {
    background-color: #007BFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-danger:active {
    background-color: #CC0000;
}

.btn-danger {
    background-color: #880000;
    color: white;
}

.btn-danger:hover {
    background-color: #AA0000;
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: #004080;
}

.btn-mini {
    width: 50px;
    flex: 0;
}

.btn-nano {
    width: 35px;
    height: 35px;
    flex: 0;
}

.btn-transparent {
    background-color: transparent;
}

.btn-neutral {
    background-color: #6c757d;
    color: white;
}

.btn-neutral:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-neutral:active {
    background-color: #4e555b;
}

.btn-subtle {
    background-color: gold;
    color: black;
}

.response-option-help-icon {
    color: black;
    background-color: lightsteelblue;
}

.btn-subtle:hover {
    background-color: goldenrod;
    transform: translateY(-2px);
}

.btn-subtle:active {
    background-color: darkgoldenrod;
}

.btn-small {
    width: 50px;
    flex: 0;
    padding: 6px 12px;
    font-size: 14px;
    min-height: 30px;
    border-radius: 4px;
}

.btn-xs {
    flex: 0;
    height: 25px;
    width: 25px;
}

.checkbox-container {
    padding-top: 10px;
    padding-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-label {
    margin-left: 10px;
    color: #AAAAAA;
}

input[type="checkbox"]:checked+label {
    color: blue;
    text-shadow: 0 0 5px #ffff00,
        /* Inner glow */
        0 0 10px #ffff44,
        /* Mid glow */
        0 0 20px #ffff88;
    /* Outer glow */

}

.ingredients-label {
    font-weight: bold;
    color: #666666;
    overflow: visible;
    white-space: nowrap;
}

a {
    color: #007BFF;
    text-decoration: none;
    display: inline-block;
}

a:hover {
    text-decoration: underline;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 10pt;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.admin-table th {
    background-color: #f2f2f2;
    color: #333333;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.admin-table tr:hover {
    background-color: #f1f1f1;
}

.recipe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12pt;
}

.recipe-table th,
.recipe-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.recipe-table th {
    background-color: #f2f2f2;
    color: #333333;
}

.recipe-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.recipe-table tr:hover {
    background-color: #f1f1f1;
}

.thin-column {
    width: 70px;
}

.no-right-border {
    border-right: none !important;
}

.no-left-border {
    border-left: none !important;
}

.medium-column {
    width: 20%;
}

.wide-column {
    width: 60%;
}


.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 16px;
    color: white;
}

.badge-yes {
    background-color: #28a745;
}

.badge-no {
    background-color: #dc3545;
}


#output {
    margin-top: 20px;
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    background-color: #f9f9f9;
    overflow: auto;
}


.form-container .name-container,
.form-container .email-admin-container {
    display: flex;
    gap: 20px;
}

.form-container .name-container {
    margin-top: 20px;
}

.form-container .name-container input,
.form-container .email-admin-container input[type="email"] {
    flex: 1;
}

.name-container,
.email-admin-container {
    padding-bottom: 20px;
}

.form-container .email-admin-container .toggle-container {
    margin-bottom: 0;
}


.form-container a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo {
    text-align: center;
    width: 100%;
    padding-top: 50px;
}

.page-heading {
    position: relative;
    display: inline-block;
    width: 250px;
}

.title-adjacent {
    position: absolute;
    top: 45px;
    left: 300px;
    border-left: darkgrey 1px solid;
    padding-left: 10px;
    height: 63px;
}

.welcome {
    position: absolute;
    right: 40px;
    top: 100px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 50px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 600px;
    position: relative;
    border-radius: 8px;
    font-size: 18px;
    overflow-x: hidden;
    overflow-y: scroll;
}

#modal-output {
    margin-bottom: 20px;
    overflow: auto;
    color: #333333;
    text-align: left;
}

input[type="text"],
input[type="password"],
input[type="email"],
.styled-input {
    font-size: 14pt;
    border-radius: 10px;
    padding: 10px;
    height: 50px;
    border: 2px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    background-color: white;

}

textarea {
    font-size: 10pt;
    border-radius: 10px;
    padding: 10px;
    height: 300px;
    border: 2px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    resize: none;
}

.topic-container {
    position: relative;
    display: inline-block;
}

.submit-button {
    padding-top: 20px;
}

#topic {
    width: 100%;
    min-height: 66px;
    max-height: 132px;
    resize: vertical;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 8px;
    vertical-align: top;
    font-family: inherit;
}

.home-content {
    position: relative;
}

.choice-container {
    display: flex;
    flex-direction: column;
    /*height: 50vh; 
    justify-content: center;  */
    width: 100%;
}


.choice-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

select.styled-input,
input.styled-input {
    margin-top: 0;
    padding: 10px;
}

input.styled-input {
    height: 44px;
}

select.styled-input {

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.scroll-indicator {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.visible {
    display: block;
}

.scroll-indicator.hidden {
    opacity: 0;
}

#choice-container.hidden {
    display: none;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
}

.loader-container.hidden {
    display: none;
}

.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}

.loader {
    color: navy;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5em;
}

@keyframes bblFadInOut {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em
    }

    40% {
        box-shadow: 0 2.5em 0 0
    }
}

#start-again-container.hidden {
    display: none;
}

#start-again-container {
    display: flex;
}

#start-again-container .half {
    width: 50%;
}

#start-again-container .left {
    text-align: left;
}

#start-again-container .right {
    text-align: right;
}

#copyToggleCheckbox {
    margin-left: 0.5em;
    vertical-align: middle;
}

a.hidden {
    display: none;
}

div.hidden {
    display: none;
}

button.hidden {
    display: none;
}

.original-header {
    width: 100%;
    text-align: right;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.original-header-help {
    text-align: right;
    font-size: 12pt;
    font-weight: bold;
    height: 34px;
    background-color: white;
    color: black;
    display: inline-block;
    border: 1px solid silver
}

.original-prompt-container {
    font-size: 10pt;
    color: grey;
}

.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    min-width: 500px;
    max-width: 500px;
    transform: translateX(-50%);
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    z-index: 1;
}


.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.speech-bubble-visible {
    visibility: visible;
    opacity: 1;
}

ul.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.comments-list li {
    display: grid;
    grid-template-columns: 40px 4fr 2fr 2fr 1fr;
    align-items: center;
    gap: 10px;
}

ul.comments-list li::before {
    content: 'chat_bubble';
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    color: #007BFF;
    display: block;
    text-align: center;
}

ul.comments-list li {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0px;
    padding-right: 0px;
    border-bottom: 1px solid #ddd;
}

ul.comments-list li span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-text,
.omment-actions,
.comment-author,
.comment-date {
    text-align: left;
    /* Align the comment text */
    font-size: 10pt;
}

/* ========== base ========== */
.copy-toggle-switch {
    position: relative;
    display: inline-block;
    font-family: system-ui, sans-serif;
    line-height: 1;
    padding-top: 10px;

}

.copy-toggle-switch input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* ========== track ========== */
.copy-toggle-switch-label {
    --track: lightsteelblue;
    --knob: royalblue;
    position: relative;
    /* new – lets the knob fill it */
    display: flex;
    cursor: pointer;
    user-select: none;
    background: var(--track);
    border-radius: 9999px;
    overflow: hidden;
    /* no padding here – the inner grid supplies the spacing */
    transition: background .25s;
}

/* ========== text grid ========== */
.copy-toggle-switch-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    z-index: 1;
    /* sits above the knob */
    min-width: max-content;
    /* grows to fit the longest label */
}

.copy-toggle-switch-inner span {
    padding: 6px 14px;
    /* symmetrical padding */
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    color: white;
}

/* ========== knob ========== */
.copy-toggle-switch-switch {
    position: absolute;
    inset: 0;
    /* fills the track */
    width: 50%;
    /* half the track */
    height: 100%;
    background: var(--knob);
    border-radius: inherit;
    transition: transform .25s;
}

.copy-toggle-switch input:checked+.copy-toggle-switch-label .copy-toggle-switch-switch {
    transform: translateX(100%);
}

.copy-toggle-switch-label,
.copy-toggle-switch-inner span {
    text-shadow: none;
    /*  kills the glow  */
}

/* pick any colours you like */
.copy-toggle-switch-label {
    --on: white;
    /* active text */
    --off: grey;
    /* inactive text */
}

/* give every label the “off” colour by default */
.copy-toggle-switch-inner span {
    color: var(--off);
    transition: color .25s;
    /* smooth fade as the knob moves */
}

/* ---------- active text when the toggle is *left* (unchecked) ---------- */
.copy-toggle-switch input:not(:checked)+.copy-toggle-switch-label .copy-toggle-switch-inner span:first-child {
    color: var(--on);
}

/* ---------- active text when the toggle is *right* (checked) ----------- */
.copy-toggle-switch input:checked+.copy-toggle-switch-label .copy-toggle-switch-inner span:last-child {
    color: var(--on);
}

.vote-button {
    color: silver;
}

.like-clicked {
    color: limegreen;
    text-shadow: 0 0 5px limegreen, 0 0 10px limegreen, 0 0 20px limegreen, 0 0 40px limegreen;
}

.dislike-clicked {
    color: red;
    text-shadow: 0 0 5px red, 0 0 10px red, 0 0 20px red, 0 0 40px red;
}

#databaseQueryResponse {
    border: 1px solid navy;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.template-recipe-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 28px;
}

.template-recipe {
    margin-right: 16px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.template-container {
    border: 1px solid #a0a0ff;
    background-color: #f8f8ff;
    border-radius: 16px;
    padding: 16px;
}

label {
    padding-bottom: 5px;
    font-size: 14pt;
}

.category-label {
    font-size: 14pt;
    font-family: Arial, sans-serif;
}

.individual-label {
    font-size: 10pt;
    font-family: 'Arial Narrow', Arial, sans-serif;
}
/* Toast notification styles */
#toast-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff4e5;
    color: #333;
    border: 1px solid #e0b400;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10000;
}

#toast-container.toast-visible {
    animation: toast-slide-down 0.3s forwards;
}

#toast-container.toast-hidden {
    animation: toast-slide-up 0.3s forwards;
}

@keyframes toast-slide-down {
    from { top: -100px; }
    to { top: 20px; }
}

@keyframes toast-slide-up {
    from { top: 20px; }
    to { top: -100px; }
}
