/* General Styles */
body {
    --swoop-page-text: #fff;
    --swoop-panel-text: #fff;
    --swoop-panel-bg: rgba(255, 255, 255, 0.1);
    --swoop-card-bg: rgba(255, 255, 255, 0.05);
    --swoop-form-bg: #222;
    --swoop-form-text: #fff;
    --swoop-form-border: #555;
    --swoop-placeholder: #aaa;
    --swoop-alt-text: #fff;
    --swoop-chat-bg: rgba(255, 255, 255, 0.1);
    font-family: 'YoungSerif', serif;
    line-height: 1.6;
    background-color: #333;
    color: var(--swoop-page-text, white);
    background-image: url("swoop.d55a54aec029.png"), url("facingleftold.2658928f5152.png");
    background-position: -200px 400px, 700px 800px;
    background-size: 70vw 70vw, 70vw 70vw;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    z-index: -1;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'YoungSerif', serif;
    line-height: 1.6;
    background-color: #333;
    color: var(--swoop-page-text, white);
    background-image: url("facingleft.b7994de3afce.png");
    background-position: calc(50% + 4vw) 300px; /* Centered horizontally, but shifted left by 1vw */
    background-size: 70vw auto; /* Ensures width is 70% of viewport, height is auto */
    background-repeat: repeat-y;
    background-clip: padding-box; /* Makes sure the padding affects the background */
    padding: 0; /* Adds padding to the sides of the body */
    margin: 0;
}



br {
    margin: 5px 0;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text p {
    font-size: 1.2em;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

/* Accordion Styles */
.accordion-container {
    width: 100%;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion {
    background-color: #94c482;
    color: #000;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 18px;
    font-family: 'YoungSerif', serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    border-radius: 2px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);*/
    opacity: 100%;
}

.accordion::after {
    content: '\002B';
    font-size: 20px;
    color: #777;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion.active::after {
    content: "\2212";
}

.accordion:hover {
    background-color: #18af9d;
}

.panel {
    padding: 0 18px;
    background-color: var(--swoop-panel-bg, rgba(255, 255, 255, 0.1));
    display: none;
    overflow: hidden;
    color: var(--swoop-panel-text, #fff);
    border-radius: 0 0 2px 2px;
}

.panel.show {
    display: block;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--swoop-panel-text, #fff);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--swoop-form-border, #555);
    border-radius: 4px;
    font-family: 'YoungSerif', serif;
    font-size: 16px;
    background-color: var(--swoop-form-bg, #222);
    color: var(--swoop-form-text, #fff);
    margin-bottom: 0px;
}

.form-group input[type="text"]::placeholder {
    color: var(--swoop-placeholder, #aaa);
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--swoop-panel-text, #fff);
}

.swoop-coop-box {
    width: 25px;
    height: 25px;
    border: 2px solid #9d4edd;
    background-color: #fff;
    color: #9d4edd;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0 !important;
    outline: none;
    box-shadow: none;
    line-height: 1;
}

.form-group input[type="checkbox"].swoop-coop-box {
    margin-right: 0;
}

.swoop-coop-box::before {
    content: '';
    width: 6px;
    height: 12px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
    opacity: 0;
    box-sizing: border-box;
}

.swoop-coop-box:checked {
    background-color: #9d4edd;
    color: #ffffff;
}

.swoop-coop-box:checked::before {
    opacity: 1;
}

.swoop-coop-box:hover,
.swoop-coop-box:focus {
    border-color: #7b38c0;
}

.swoop-coop-box:focus {
    box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.18);
}

.creator-note {
    margin: 10px 0 0;
    color: var(--swoop-panel-text, #fff);
}

.question-answer-pair {
    background-color: var(--swoop-card-bg, rgba(255, 255, 255, 0.05));
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Button Styles */
button {
    background-color: #9d4edd;
    color: white;
    cursor: pointer;
    border: none;
    padding: 10px 24px;
    text-align: center;
    font-size: 16px;
    margin: 5px 2px 0px 0px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'YoungSerif', serif;
    border-radius: 2px;
}

button:hover {
    background-color: #7b38c0;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #6f6f6f;
    color: rgba(255, 255, 255, 0.75);
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
}

button:disabled:hover {
    background-color: #6f6f6f;
    transform: none;
}

.preview-requirements-message {
    margin: 6px 0 0;
    color: var(--swoop-panel-text, #fff);
    font-size: 0.95rem;
}

/* Select Styles */
select {
    background-color: #9d4edd;
    color: white;
    cursor: pointer;
    border: none;
    padding: 10px;
    font-size: 16px;
    margin: 5px 2px;
    font-family: 'YoungSerif', serif;
    border-radius: 2px;
    /* Remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

select:hover {
    background-color: #7b38c0;
}

select option {
    background-color: #9d4edd;
    color: white;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.spinner {
    animation: spin 2s linear infinite;
    margin: 5px;
}

/* Embed Container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Alternative Option */
.alternative-option {
    margin-top: 20px;
    text-align: center;
}

.alternative-option p {
    margin-bottom: 10px;
    color: var(--swoop-alt-text, #fff);
}

/* Chat Response */
#chat-response,
#question-response {
    margin-top: 20px;
    background-color: var(--swoop-chat-bg, rgba(255, 255, 255, 0.1));
    padding: 15px;
    border-radius: 5px;
    color: var(--swoop-panel-text, #fff);
}

/* Hover Effects */
.accordion:hover,
.accordion.active {
    background-color: #240046;
    color: white;
}

.accordion.active {
    background-color: #240046;
    color: white;
}

/* Input Hover and Focus */
.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: #18af9d;
    outline: none;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 850px) {
    .content-wrapper {
        padding: 15px;
    }

    .accordion {
        font-size: 16px;
    }

    .logo {
        font-size: 6vw;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group select {
        font-size: 14px;
        margin-bottom: 0px;
    }
}

.header-container {
    display: flex;
    align-items: inherit;
    flex-direction: column;
    padding: 20px;
    margin: 0px;
    background-color: #240046;
    min-height:61px;
}

.swoop-header-snake {
    width: 72px;
    height: 46px;
    margin-right: 1.2vw;
}


.footer-container {
    background-color: #240046;
    position: inherit;
    font-family: 'YoungSerif', serif;
    text-align: center;
    min-height: 5vh;
}

/* Intro Text Styling */
.intro-text {
    background: linear-gradient(45deg, #ff6d00 0%, #9d4edd 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    opacity: 100%;
}

.intro-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.intro-text p {
    position: relative;
    font-size: 1.5em;
    z-index: 1;
    margin: 0;
}

.intro-text strong {
    font-size: 1.2em;
    color: white; /* Gold color for emphasis */
}

/* Existing CSS... */

/* Spinner Styles */
.spinner {
    display: none; /* Hide the spinner by default */
    margin-left: 10px; /* Space between button and spinner */
    vertical-align: middle;
    animation: spin 2s linear infinite;
    width: auto;
    height: 40px; /* Make the spinner match the button's height */
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.05);
}

.button-with-spinner {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Optional: Changing spinner colors while spinning */
@keyframes spin {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg) saturate(1.2) brightness(1.05);
    }
    100% {
        transform: rotate(-360deg);
        filter: hue-rotate(-360deg) saturate(1.2) brightness(1.05);
    }
}

body.site-shell[data-profile-theme="light"] .spinner {
    filter: hue-rotate(0deg) saturate(1.8) brightness(0.96) contrast(1.08);
}

body.site-shell[data-profile-theme="light"] .spinner {
    animation-name: spin-light;
}

@keyframes spin-light {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg) saturate(1.8) brightness(0.96) contrast(1.08);
    }
    100% {
        transform: rotate(-360deg);
        filter: hue-rotate(-360deg) saturate(1.8) brightness(0.96) contrast(1.08);
    }
}

@media screen and (max-width: 790px) {
    .header-container {
        /*flex-direction: column;*/
        padding: 10px;
    }

    .swoop-header-snake {
        width: 50px;
        height: 32px;
    }

    .swoop-header-snake + span {
        position: relative;
        top: -8px;
    }

    body.site-shell .mobile-footer-item.menu-item svg {
        position: relative;
        top: -3px;
    }

    body.site-shell .mobile-footer-item.menu-item .mobile-footer-label {
        position: relative;
        top: -2px;
    }
}


/* Color Classes */
.red { color: #ff6d00; }
.orange { color: #ff8500; }
.yellow { color: #ff9e00; }
.green { color: #94c482; }
.blue { color: #18af9d; }
.purple { color: #9d4edd; }

body.site-shell {
    --shell-chrome-color: #240046;
}

body.site-shell[data-profile-theme="light"] {
    --shell-chrome-color: #240046;
    background-color: #f4f1e8;
    color: #1b2530;
    --swoop-page-text: #1b2530;
    --swoop-panel-text: #1b2530;
    --swoop-panel-bg: rgba(255, 255, 255, 0.78);
    --swoop-card-bg: rgba(255, 255, 255, 0.62);
    --swoop-form-bg: #ffffff;
    --swoop-form-text: #1b2530;
    --swoop-form-border: #d4cbbb;
    --swoop-placeholder: rgba(27, 37, 48, 0.55);
    --swoop-alt-text: #1b2530;
    --swoop-chat-bg: rgba(255, 255, 255, 0.78);
}

body.site-shell[data-profile-theme="light"] .intro-text p,
body.site-shell[data-profile-theme="light"] .intro-text strong,
body.site-shell[data-profile-theme="light"] .intro-text,
body.site-shell[data-profile-theme="light"] .intro-text * {
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] .panel,
body.site-shell[data-profile-theme="light"] #chat-response,
body.site-shell[data-profile-theme="light"] #question-response {
    background-color: rgba(255, 255, 255, 0.72) !important;
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] .panel p,
body.site-shell[data-profile-theme="light"] .panel strong,
body.site-shell[data-profile-theme="light"] .form-group label,
body.site-shell[data-profile-theme="light"] .checkbox-label,
body.site-shell[data-profile-theme="light"] .alternative-option p,
body.site-shell[data-profile-theme="light"] .intro-text + .accordion-container,
body.site-shell[data-profile-theme="light"] .accordion-container,
body.site-shell[data-profile-theme="light"] .accordion-item,
body.site-shell[data-profile-theme="light"] .content-wrapper,
body.site-shell[data-profile-theme="light"] #chat-response,
body.site-shell[data-profile-theme="light"] #question-response {
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] .question-answer-pair {
    background-color: rgba(255, 255, 255, 0.55) !important;
}

body.site-shell[data-profile-theme="light"] #round-suggestion,
body.site-shell[data-profile-theme="light"] #submission-message,
body.site-shell[data-profile-theme="light"] .panel .button-with-spinner {
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] .form-group input[type="text"],
body.site-shell[data-profile-theme="light"] .form-group input[type="password"],
body.site-shell[data-profile-theme="light"] .form-group select {
    background-color: #ffffff !important;
    color: #1b2530 !important;
    border-color: #d4cbbb !important;
}

body.site-shell[data-profile-theme="light"] .form-group input[type="text"]::placeholder {
    color: rgba(27, 37, 48, 0.55);
}

body.site-shell[data-profile-theme="light"] select {
    background-color: #ffffff !important;
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] select option {
    background-color: #ffffff !important;
    color: #1b2530 !important;
}

body.site-shell[data-profile-theme="light"] .panel *,
body.site-shell[data-profile-theme="light"] .question-answer-pair *,
body.site-shell[data-profile-theme="light"] .alternative-option *,
body.site-shell[data-profile-theme="light"] #chat-response *,
body.site-shell[data-profile-theme="light"] #question-response * {
    color: #1b2530;
}

body.site-shell[data-profile-theme="light"] .panel button,
body.site-shell[data-profile-theme="light"] .alternative-option button,
body.site-shell[data-profile-theme="light"] #copy-generated-qna,
body.site-shell[data-profile-theme="light"] #preview-button,
body.site-shell[data-profile-theme="light"] #submit-button,
body.site-shell[data-profile-theme="light"] #generate-round-button,
body.site-shell[data-profile-theme="light"] #gpt-submit,
body.site-shell[data-profile-theme="light"] #question-submit {
    color: #ffffff !important;
}
