html {
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    padding: 0;
    margin: 0;
    height: 100%;
}

:root {
    --border-radius: 7px;
    --primary-color: #4CAF50; /* soft green */
    --primary-color-dark: #388E3C;
    --primary-color-light: #C8E6C9;
    --accent-color: #81C784;
    --text-color: #2E2E2E;
    --border-color: #4CAF50;
    --delete-button-color: #ff4444;
    --delete-button-hover-color: #cc0000;
    --unread-color: #e9f9ea;
}

body {
    padding: 0;
    margin: 0;
    color: var(--text-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

button {
    font-family: 'Karla', sans-serif;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    width: fit-content;
    padding: 0.5em 1.3em;
    /*padding: 0.303rem 0.606rem;*/
    border-radius: var(--border-radius);
}

input {
    font-family: 'Karla', sans-serif;
    border: solid 1px var(--border-color);
    padding: 0.33rem;
    border-radius: var(--border-radius);
}

::placeholder {
  color: rgba(76, 175, 80, 0.3);
  opacity: 1;
}

a:link, a:visited {
  color: var(--accent-color);
}
a:focus, a:hover, a:active {
  background-color: var(--primary-color-light);
}

.GameTorch {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: solid 2px var(--border-color);
    box-shadow: 0 2px 13px rgba(0, 0, 0, 0.2);
}

.HeaderLeft, .HeaderRight {
    display: flex;
    align-items: center;
}

#header-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 1rem;
}

#header-logo > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.25rem 0.67rem;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

#header-logo > a:hover {
    color: var(--primary-color);
}

.header-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

#header-credits {
    margin-right: 1rem;
}

#header-account {
    font-size: 1rem;
    font-weight: 500;
}

#header-account > a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.25rem 0.67rem;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

#header-account > a:hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
}

.signed-out #header-account > a {
    font-size: 1rem !important;
}

.Footer {
    text-align: center;
    padding: 1rem;
    border-top: solid 2px var(--border-color);
    box-shadow: 0 -2px 13px rgba(0, 0, 0, 0.2);
    background: white;
    margin-top: auto;
}

.App {
    display: grid;
    margin: auto;
    padding-bottom: 2rem;
}

.ThingMaker {
    display: grid;
    margin: auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: fit-content;
    gap: 1rem;
    padding: 1rem;
}

.ThingMakerInput {
    width: 20rem;
    border: solid 1px black;
}

.ThingMakerButtonHolder {
    display: flex;
    gap: 0.33rem;
    justify-content: center;
    align-items: center;
}

.ThingMakerButton {
    font-size: 1.2em;
    border-radius: var(--border-radius);
    border: solid 2px #4CAF50;
    background-color: #dbf0dc;
    color: #4CAF50;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ThingMakerButton[disabled],
.ThingMakerButton:disabled {
    background-color: #8B9E8B !important;
    color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    box-shadow: none !important;
    transform: scale(0.98) !important;
}

.ThingMakerButton:not(:disabled):hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.LowCreditsMessage {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius);
    color: #856404;
    text-align: center;
}

.LowCreditsMessage a {
    color: #856404;
    text-decoration: underline;
}

.LowCreditsMessage a:hover {
    color: #533f03;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 90vw;
    max-width: 100%;
}

.PromptsSection:has(.prompt-grid:empty) {
    display: none;
}

.prompt-grid:empty + h2 {
    display: none;
}

.prompt-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.prompt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--border-radius);
}

.prompt-description {
    padding: 8px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Updated CSS classes for prompt detail page */

.PromptDetailContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.PromptTitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-color);
}

.PromptArtStyle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color-light);
    letter-spacing: 0.01em;
}

.PromptSubtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color-light);
    font-style: italic;
}

.AttemptsContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: center; /* Ensure horizontal centering */
}

.AttemptHeader {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ImagesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.ImageWrapper {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

.ResultControls {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.85);
    border-radius: var(--border-radius);
    padding: 0.1rem 0.2rem;
}

.CCIcon {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.result-checkbox {
    position: static;
    opacity: 0;
    margin-left: 0;
    width: 1.2rem;
    height: 1.2rem;
    z-index: 1;
    transition: opacity 0.2s;
}

.ImageWrapper:hover .result-checkbox {
    opacity: 1;
}

.result-checkbox:checked {
    opacity: 1;
}

.AttemptImage {
    height: auto;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.NoImagesNotice {
    font-style: italic;
    color: #888;
    text-align: center;
    margin: 1rem 0;
}

/* CSS for fullscreen image overlay */

.ImageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.FullscreenImage {
    border-radius: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.SignIn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px); /* Account for header and footer */
    padding: 20px;
}

.SignInForm {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.SignInForm h1 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    text-align: center;
}

.SignInInput {
    margin-bottom: 1.5rem;
}

.SignInLabel {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.SignInInput input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.SignInButtons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.SignInButtons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#sign-in-button {
    background-color: #4CAF50;
    color: white;
}

#sign-in-button:hover {
    background-color: #45a049;
}

#sign-up-button {
    background-color: #BA68C8;
    color: white;
}

#sign-up-button:hover {
    background-color: #AB47BC;
}

.SignInMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.SignInMessage.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.SignInMessage.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.PromptActions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.PromptDeleteButton {
    background-color: var(--delete-button-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s;
}

.PromptDeleteButton:hover {
    background-color: var(--delete-button-hover-color);
}

.BulkActions {
    margin-bottom: 1rem;
    text-align: right;
}

.BulkDeleteButton {
    background-color: var(--delete-button-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s;
}

.BulkDeleteButton:hover {
    background-color: var(--delete-button-hover-color);
}

.BulkActionsOverlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.BulkDownloadButton {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.BulkDownloadButton:hover {
    background: var(--primary-color-dark);
}

.BulkPublishButton {
    background: #0074d4;
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 500;
    font-family: 'Karla', sans-serif;
    transition: background-color 0.2s;
}

.BulkPublishButton:hover {
    background: #005fa3;
}

.Dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.DashboardHeader {
    text-align: center;
    margin-bottom: 3rem;
}

.DashboardHeader h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.DashboardHeader p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.DashboardBody {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.StatCard {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 250px;
    margin: 0.5rem;
}

.StatCard:hover {
    transform: translateY(-5px);
}

.StatValue {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.StatLabel {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.StatIcon {
    font-size: 2rem;
    margin-top: 1rem;
}

.SelectAllButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 1rem;
    font-weight: 500;
}

.SelectAllButton:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.UnauthorizedPage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px); /* Account for header and footer */
    padding: 2rem;
    text-align: center;
    gap: 2rem;
}

.UnauthorizedPage h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.UnauthorizedPage p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    line-height: 1.5;
}

.UnauthorizedPage a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.UnauthorizedPage a:hover {
    text-decoration: underline;
}

.UnauthorizedImage {
    margin-top: 2rem;
}

.UnauthorizedImage img {
    width: 200px;
    height: auto;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.CoinAnimation {
    position: absolute;
    background: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: floatUp 1s ease-out forwards;
    z-index: 1000;
    pointer-events: none;
}

.PromptsSection {
    display: grid;
    align-items: center;
    justify-content: center;
}

.PromptsSection h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.UnderConstruction {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.Boring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 200px); /* Account for header and footer */
    padding: 2.5rem 1.5rem;
    text-align: left;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.Boring h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.Boring h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.Boring p, .Boring ul, .Boring li {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 650px;
    line-height: 1.7;
}

.Boring ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.Boring li {
    margin-bottom: 0.5rem;
}

.Boring img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
    .Boring {
        max-width: 100vw;
        width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        padding: 1.1rem 0.5rem;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        overflow-x: hidden;
    }
    .Boring h1 {
        font-size: 1.4rem;
        word-break: break-word;
        padding: 0 0.2em;
    }
    .Boring p, .Boring ul, .Boring li {
        font-size: 1rem;
        max-width: 98vw;
        word-break: break-word;
        overflow-wrap: break-word;
        padding: 0 0.1em;
    }
    .Boring ul {
        padding-left: 1.1rem;
    }
}

/* --- Public Results Section Styles --- */
.PublicResultsSection {
  margin: 2.5rem auto 3rem auto;
  max-width: 1100px;
  padding: 2rem 1rem 1.5rem 1rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.07);
}
.PublicResultsSection h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #222;
}
.public-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.public-result-card {
  background: #f8f9fb;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
  padding: 1.1rem 1rem 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 320px;
}
.public-result-card:hover {
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.025);
}
.public-result-image {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: #e9e9ef;
  margin-bottom: 1rem;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  transition: box-shadow 0.18s, filter 0.18s;
}
.public-result-card:hover .public-result-image {
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13);
  filter: brightness(1.07) saturate(1.1);
}
.public-result-prompt {
  font-size: 1.08rem;
  font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 0.5rem;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-result-date {
  font-size: 0.98rem;
  color: #888;
  margin-bottom: 0.2rem;
  text-align: center;
}
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.pagination-btn {
  background: #f2f2f7;
  color: #333;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.55rem 1.3rem;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pagination-btn:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}
.pagination-btn:not(:disabled):hover {
  background: #e6eaff;
  color: #1a2a5a;
}

/* --- Public CC Overlay Styles --- */
#public-cc-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 34, 0.88);
  transition: opacity 0.18s;
  opacity: 0;
}
#public-cc-overlay.active {
  display: flex;
  opacity: 1;
}
.public-cc-overlay-bg {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: transparent;
}
.public-cc-overlay-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 48px 0 rgba(0,0,0,0.18);
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
  min-width: 320px;
}
.public-cc-overlay-img {
  max-width: 50vw;
  max-height: 50vh;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
  margin-bottom: 1.5rem;
  background: #f3f3f7;
}
@media (max-width: 700px) {
  .public-cc-overlay-content {
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    min-width: 0;
  }
  .public-cc-overlay-img {
    max-width: 92vw;
    max-height: 48vh;
  }
}
.public-cc-overlay-close {
  position: absolute;
  top: 0.7rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #222;
  cursor: pointer;
  z-index: 3;
  padding: 0 0.3rem;
  line-height: 1;
  transition: color 0.15s;
}
.public-cc-overlay-close:hover {
  color: #e23b3b;
}
.public-cc-overlay-download {
  display: inline-block;
  background: #1a2a5a;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.7rem 2.1rem;
  margin-top: 0.2rem;
  text-decoration: none;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  transition: background 0.15s, color 0.15s;
}
.public-cc-overlay-download:hover {
  background: #2a4ad7;
  color: #fff;
}

.IndexFeatureList {
  margin: 2.5rem auto 2rem auto;
  padding: 2rem 2.5rem 2rem 2.5rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px 0 rgba(76,175,80,0.08), 0 1.5px 4px 0 rgba(44,44,44,0.04);
  max-width: 540px;
  text-align: left;
  border: 1px solid var(--primary-color-light);
}
.IndexFeatureList h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color-dark);
  margin-bottom: 1.2rem;
  text-align: center;
}
.IndexFeatureList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.IndexFeatureList li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.13rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 2.1rem;
}
.IndexFeatureList li:last-child {
  margin-bottom: 0;
}
.IndexFeatureList li::before {
  content: "🎮";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 1.3rem;
  opacity: 0.85;
}
.IndexFeatureList b {
  color: var(--primary-color-dark);
  font-weight: 600;
}
@media (max-width: 700px) {
  .IndexFeatureList {
    padding: 1rem;
    margin: 1rem;
    max-width: 83.5vw;
  }
  .IndexFeatureList h2 {
    font-size: 1.3rem;
  }
  .IndexFeatureList li {
    font-size: 1rem;
    padding-left: 1.7rem;
  }
  .IndexFeatureList li::before {
    font-size: 1.1rem;
  }
}

.public-result-art-style {
  font-size: 0.97rem;
  color: #6a7a8c;
  font-style: italic;
  margin-bottom: 0.4rem;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-cc-overlay-prompt {
  font-size: 1.18rem;
  color: #1a2a5a;
  margin: 1.1rem auto 1.2rem auto;
  text-align: center;
  max-width: 600px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.public-cc-overlay-art-style {
  font-size: 1.08rem;
  color: #4a5a6c;
  font-style: italic;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
  max-width: 600px;
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .SpriteAnimatorPreviewRow {
      flex-direction: column;
      gap: 0.8rem;
  }
  /* Rotate the arrow container so the arrow points down when stacked */
  .SpriteAnimatorArrow {
      transform: rotate(90deg);
  }
  /* Give the arrow label a pill-style background for readability on small screens */
  .SpriteAnimatorArrow > div:last-child {
      background: rgba(255, 255, 255, 0.9);
      padding: 0.25rem 0.7rem;
      border-radius: var(--border-radius);
      box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  }
}

.SingleRowActionButtons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.NewSpriteAnimatorAnnouncement {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
}

.IndexFeatureItem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.18rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    padding-left: 1.2rem;
    position: relative;
    /* Optional for a subtle highlight: */
    /* background: #f3e8ff; */
    /* border-radius: 0.6em; */
}
.IndexFeatureItem:last-child {
    margin-bottom: 0;
}

.feature-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    background: #f3e8ff; /* soft purple */
    font-size: 1.25em;
    margin-right: 0.7em;
    box-shadow: 0 1px 4px 0 rgba(76,175,80,0.07);
    text-shadow: 0 0 2px #bdbdbd, 0 0 4px #fff176;
}

.UserProfilePage {
    padding-left: 2rem;
    padding-right: 2rem;
    display: grid;
    justify-content: center;
}

.UserProfileHeader {
    padding: 1.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
}

.EditProfileBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    color: #888;
    font-size: 1rem;
    vertical-align: middle;
    border-radius: var(--border-radius);
    transition: background 0.15s;
}
.EditProfileBtn:hover, .EditProfileBtn:focus {
    background: #f0f0f0;
    color: #222;
    outline: none;
}

/* --- User Collections Section --- */
.UserCollectionsSection {
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
.UserCollectionsSection h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
}
.collections-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-height: 210px;
  padding: 1.1rem 0.7rem 1.1rem 0.7rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s;
}
.collection-card:hover {
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.025);
}
.collection-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: #e9e9ef;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
}
.collection-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1a2a5a;
  text-align: center;
  margin-top: 0.5rem;
  word-break: break-word;
}
@media (max-width: 700px) {
  .UserCollectionsSection {
    padding: 0 0.5rem;
  }
  .collections-grid {
    gap: 0.7rem;
  }
  .collection-card {
    width: 44vw;
    min-width: 120px;
    max-width: 180px;
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
  }
  .collection-thumbnail {
    width: 60px;
    height: 60px;
  }
}

.CommonsActionButtonRow {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 1rem 0;
}
.CommonsActionButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--primary-color);
  color: #fff !important;
  font-size: 1.13rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  /* padding: 0.7rem 2.1rem; */
  text-decoration: none !important;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.CommonsActionButton:hover, .CommonsActionButton:focus {
  background: var(--primary-color-dark);
  color: #fff !important;
  box-shadow: 0 2px 12px 0 rgba(44,44,44,0.13);
  outline: none;
}
.CommonsActionButton:disabled {
  background: #8B9E8B;
  color: #f0f0f0 !important;
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: none;
}

/* --- Collect Split Button Styles --- */
.CollectSplitButton {
  display: flex;
  width: 100%;
  position: relative;
}
.CollectBtnMain {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: 1px solid #e0e0e0;
  flex: 1 1 0;
  min-width: 0;
}
.CollectBtnDropdown {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  width: 2.5em;
  min-width: 2.5em;
  padding-left: 0.2em;
  padding-right: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none;
}
.CollectBtnMain:disabled, .CollectBtnDropdown:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.CollectDropdownMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0;
  padding: 0.2em 0;
  list-style: none;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
}
.CollectDropdownMenu.flip-up {
  top: auto !important;
  bottom: 100%;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.CollectDropdownMenu li {
  padding: 0.7em 1.2em;
  cursor: pointer;
  transition: background 0.15s;
}
.CollectDropdownMenu li:hover, .CollectDropdownMenu li:focus {
  background: #f3f3f3;
  outline: none;
}

/* --- Collection Info Blob Styles --- */
.CollectionInfoBlob {
  background: linear-gradient(120deg, #f7fafc 70%, #e6f4ea 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px 0 rgba(44, 44, 44, 0.08);
  padding: 2.2rem 2.5rem 2.2rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.CollectionHeader {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.collection-main-thumbnail {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: #e9e9ef;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  flex-shrink: 0;
  border: 2.5px solid #e0f2e9;
}
.CollectionInfo {
  flex: 1 1 0;
  min-width: 0;
}
.CollectionActionButtonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
}
.CollectionActionButtonRow .CommonsActionButton {
  font-size: 1.01rem;
  padding: 0.38rem 1.1rem;
  border-radius: 0.6rem;
  min-width: 0;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(44,44,44,0.07);
}
.CollectionActionButtonRow .CommonsActionButton span {
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .CollectionInfoBlob {
    padding: 1.1rem 0.7rem 1.1rem 0.7rem;
    max-width: 99vw;
  }
  .CollectionHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .collection-main-thumbnail {
    width: 100px;
    height: 100px;
  }
}

/* Spritesheet grid for workshop page */
.WorkshopSpritesheetsGrid {
    margin: 3.5rem auto 2.5rem auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}
.WorkshopSpritesheetCard {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    padding: 1.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.SpritesheetDescription {
    font-size: 1.18em;
    font-weight: 600;
    margin-bottom: 1.1rem;
    color: #1a2a5a;
}
.SpritesheetSpritesRow {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}
.WorkshopSpritesheetCard img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
    transition: transform 0.13s;
}
.WorkshopSpritesheetCard img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13);
}

.InboxPageContainer {
  max-width: min(900px, calc(100dvw - 3rem));
  margin: 2.5rem auto 2.5rem auto;
  padding: 0 1.5rem;
}

.sprite-overlay-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    z-index: 2;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sprite-overlay-close:hover {
    background: rgba(0,0,0,0.8);
}
.sprite-overlay-content {
    position: relative;
    max-width: 96vw;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.BrowseByImageModelSection {
  max-width: calc(100vw - 2rem);
}

@media (max-width: 700px) {
  .PublicResultsSection-partials-version {
    margin: 2.5rem auto 3rem auto;
    padding: 2rem 1rem 1.5rem 1rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.07);
    max-width: calc(100vw - 2rem);
  }
}
@media (min-width: 701px) {
  .PublicResultsSection-partials-version {
    margin: 2.5rem auto 3rem auto;
    max-width: min(1100px, calc(100dvw - 5rem));
    width: calc(100dvw - 5rem);
    padding: 2rem 1rem 1.5rem 1rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.07);
  }
}
.PublicResultsSection-partials-version h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #222;
}
.public-results-grid-partials-version {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.public-result-card-partials-version {
  background: #f8f9fb;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
  padding: 1.1rem 1rem 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 320px;
}
.public-result-card-partials-version:hover {
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.025);
}
.public-result-image-partials-version {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: #e9e9ef;
  margin-bottom: 1rem;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  transition: box-shadow 0.18s, filter 0.18s;
}
.public-result-card-partials-version:hover .public-result-image-partials-version {
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13);
  filter: brightness(1.07) saturate(1.1);
}
.public-result-prompt-partials-version {
  font-size: 1.08rem;
  font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 0.5rem;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-result-date-partials-version {
  font-size: 0.98rem;
  color: #888;
  margin-bottom: 0.2rem;
  text-align: center;
}
.pagination-controls-partials-version {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.pagination-btn-partials-version {
  background: #f2f2f7;
  color: #333;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.55rem 1.3rem;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pagination-btn-partials-version:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}
.pagination-btn-partials-version:not(:disabled):hover {
  background: #e6eaff;
  color: #1a2a5a;
}
.public-result-art-style-partials-version {
  font-size: 0.97rem;
  color: #6a7a8c;
  font-style: italic;
  margin-bottom: 0.4rem;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select {
    font-family: 'Karla', sans-serif;
}

.UserProfileHeaderCentered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0 1.5rem 0;
}
.UserProfileBio {
    text-align: center;
}

@media (max-width: 700px) {
  .Header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.3rem;
    gap: 0.2rem;
  }
  .HeaderLeft {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.2rem;
  }
  .HeaderRight {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.2rem;
  }
  #header-logo {
    margin-right: 0;
    margin-bottom: 0.3rem;
    text-align: center;
  }
  .header-model-dropdown-container {
    margin-bottom: 0.3rem;
    width: 100%;
    justify-content: center;
    display: flex !important;
  }
  #header-account {
    flex-direction: row;
    justify-content: center;
    display: flex;
    width: auto;
    gap: 0.2rem;
  }
  #header-account > a {
    justify-content: center;
    font-size: 1.3rem;
    padding: 0.3rem 0.4rem;
    text-align: center;
    width: auto;
  }
}

/* Commons Heart Link Styles */
#header-commons-link {
    padding: 0 0.5rem;
    padding-top: 0.37rem;
}
#header-commons-link > img {
    height: 1.333rem;
    width: auto;
    object-fit: contain;
    margin-top: 0.5rem;
}
@media (max-width: 700px) {
    #header-commons-link {
        padding: 0 !important;
        padding-top: 0 !important;
    }
    #header-commons-link > img {
        margin-top: 0 !important;
    }
}

/* Prevent background scroll when overlay is open */
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw;
    touch-action: none;
}

@media (max-width: 700px) {
  .ImageOverlay {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
  }
  .FullscreenImageContainer {
    max-height: 90dvh;
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  .WorkshopSpritesheetPage {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    min-height: unset !important;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 0.5rem;
  }
  .WorkshopSpritesheetPage > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90vw !important;
    max-width: 320px !important;
    height: auto !important;
  }
  .SpritesheetSpritesRow {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    max-width: 100vw !important;
    padding-bottom: 0.5em;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .SpritesheetSpritesRow img {
    flex: 0 0 auto;
  }
  .SpritesheetButtonRow {
    flex-wrap: wrap;
    gap: 0.7em !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Blog video wrapper for blog articles */
.BlogVideoWrapper {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.BlogVideoWrapper video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
