@font-face {
    font-family: 'Comic Sans MS Custom';
    src: url('/ComicSansMS3.ttf') format('truetype');
}

body {
    margin: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Comic Sans MS Custom', cursive;
}

#app-container {
    position: relative;
    background-color: #f0f0f0; /* A light grey background to see the container */
    aspect-ratio: 9 / 16;
    height: 100vh;
    max-width: 100vw;
    box-sizing: border-box;
    background-color: white;
    font-family: 'Comic Sans MS Custom', cursive;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    background-color: white;
    color: black;
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
}

#splash-screen.hidden {
    display: none !important;
}

#splash-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#start-screen, #explanation-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    background-color: #f0f0f0;
}

#start-screen {
    justify-content: flex-start;
    overflow-y: auto;
}

#start-screen-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
}

#start-screen {
    gap: 1rem;
}

#loading-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    background-color: white;
    color: black;
    font-family: "Comic Sans MS", cursive, sans-serif;
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

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

#loading-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* On wider screens, height is the constraint */
@media (min-aspect-ratio: 9/16) {
    #app-container {
        height: 100vh;
        width: calc(100vh * 9 / 16);
    }
}

/* On taller screens, width is the constraint */
@media (max-aspect-ratio: 9/16) {
    #app-container {
        width: 100vw;
        height: calc(100vw * 16 / 9);
    }
}

#start-button, #radio-button, #custom-script-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 2.5rem;
    padding: 1rem 2rem;
    border: 3px solid black;
    background-color: #fff;
    color: black;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
    transition: background-color 0.2s;
    font-weight: 700;
    width: 80%;
    margin-bottom: 0.5rem;
    text-align: center; /* Explicitly center text */
}

#start-button:last-of-type, #custom-script-button:last-of-type, #radio-button:last-of-type, #advent-button {
    margin-bottom: 0;
}

#radio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f8f9fa;
}

#radio-theme-input {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem;
    border: 3px solid black;
    border-radius: 10px;
    box-sizing: border-box;
    font-weight: 700;
    text-align: center;
}

#radio-button {
    width: 100%;
    font-size: 2rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0;
}

#start-button:hover, #radio-button:hover, #custom-script-button:hover {
    background-color: #f0f0f0;
}

#start-button:active, #radio-button:active, #custom-script-button:active {
    background-color: #e0e0e0;
    transform: translateY(2px);
}

#promo-banner {
    width: 80%;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    border-radius: 12px;
    border: 3px solid #000;
    background: #ffeeba;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

#promo-banner strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

#promo-banner .promo-line {
    font-size: 0.95rem;
    margin: 0.1rem 0;
}

#promo-banner .promo-cta {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    text-decoration: underline;
}

/* Slightly different tones for variants */
#promo-banner.android-focus {
    background: #e8f5e9;
    border-color: #4caf50;
}

#promo-banner.discord-focus {
    background: #e0e7ff;
    border-color: #5865F2;
}

#example-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 80%;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f8f9fa;
}

#example-section p {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 700;
}

.example-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border: 2px solid black;
    background-color: #e9ecef;
    color: black;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.1s;
}

.example-button:hover {
    background-color: #dde2e6;
}

.example-button:active {
    transform: translateY(1px);
}

/* Golden plating for the 1000 likes special button */
.example-button[data-topic="explained by ducks 1000 likes"] {
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFF8DC, #FDB931, #FFD700);
    background-size: 200% auto;
    border: 3px solid #B8860B;
    color: #5c4005;
    text-shadow: 0px 1px 0px rgba(255,255,255,0.4);
    font-weight: 900;
    animation: gold-shimmer 3s linear infinite, gold-pulse 2s ease-in-out infinite;
    z-index: 10;
    position: relative;
}

/* Advent Calendar Styles */
#advent-button {
    background: repeating-linear-gradient(45deg, #cc0000, #cc0000 10px, #006600 10px, #006600 20px);
    color: white;
    text-shadow: 2px 2px 0px black;
    border: 3px solid #ffd700;
    margin-bottom: 0.5rem !important;
    position: relative;
    overflow: hidden;
}

#advent-button::after {
    content: '🎄';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
}

#advent-button::before {
    content: '🎅';
    position: absolute;
    left: 1rem;
    font-size: 1.5rem;
}



@keyframes gold-shimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes gold-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(218, 165, 32, 0.5); 
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); 
        transform: scale(1.05); 
    }
}

#explanation-screen label {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: black;
    font-weight: 700;
}

#topic-input {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.2rem;
    width: 90%;
    padding: 0.75rem;
    border: 3px solid black;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    resize: none;
    box-sizing: border-box;
    font-weight: 700;
}

#go-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 2rem;
    padding: 0.8rem 1.8rem;
    border: 3px solid black;
    background-color: #fff;
    color: black;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
    transition: background-color 0.2s;
    font-weight: 700;
}

#go-button:hover {
    background-color: #f0f0f0;
}

#go-button:active {
    background-color: #e0e0e0;
    transform: translateY(2px);
}

#custom-script-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    box-sizing: border-box;
    text-align: center;
    background-color: #f0f0f0;
    overflow-y: auto;
}

#custom-script-screen h2 {
    font-size: 2rem;
    margin: 0;
}
#custom-script-screen p {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

#custom-script-input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    width: 95%;
    flex-grow: 1;
    min-height: 150px;
    padding: 0.75rem;
    border: 3px solid black;
    border-radius: 10px;
    resize: vertical;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.custom-script-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 95%;
}

.custom-script-buttons .button-like {
    width: auto;
    flex-grow: 1;
    font-size: 1.2rem;
    padding: 0.7rem 1rem;
    margin-top: 0;
}

#guide-container {
    width: 95%;
    margin-top: 0.5rem;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 0.5rem;
}

#toggle-guide-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid black;
    background-color: #e9ecef;
    color: black;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    transition: background-color 0.2s;
}

#toggle-guide-button:hover {
    background-color: #dde2e6;
}

#guide-content {
    text-align: left;
    padding: 0 1rem;
    margin-top: 0.5rem;
    max-height: 25vh;
    overflow-y: auto;
    font-size: 0.9rem;
}
#guide-content h3, #guide-content h4 {
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
}
#guide-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0.5rem 0;
}
#guide-content li {
    margin-bottom: 0.3rem;
}
#guide-content pre {
    background-color: #e9ecef;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 5px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}
#guide-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #e0e0e0;
    padding: 2px 4px;
    border-radius: 3px;
}

#meme-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 3rem 1rem;
    box-sizing: border-box;
    background: white;
}

#ai-explanation-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#duck-scene {
    position: relative;
    width: 100%;
    height: 80%;
    bottom: -10%;
    /* background-color: rgba(255, 0, 0, 0.1); */ /* for debugging layout */
}

#duck-scene .character-wrapper,
#duck-scene > img {
    position: absolute;
    height: 25%; /* Slightly larger characters */
    transition: transform 0.2s ease-in-out, left 0.5s ease-in-out, bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform-origin: center bottom; /* Added this to make scaling feel more natural */
}

.character-wrapper img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

#duck-scene .character-wrapper.speaking {
    /* Base properties for all speaking animations */
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Duck & Duckling Animation (scale) */
@keyframes speaking-scale {
    from { transform: translateX(-50%) scale(1.0); }
    to { transform: translateX(-50%) scale(1.05); }
}
@keyframes speaking-scale-flipped {
    from { transform: translateX(-50%) scaleX(-1) scale(1.0); }
    to { transform: translateX(-50%) scaleX(-1) scale(1.05); }
}
#duck-scene .character-wrapper.duck.speaking,
#duck-scene .character-wrapper.duckling.speaking {
    animation-name: speaking-scale;
}
#duck-scene .character-wrapper.duck.speaking.flipped,
#duck-scene .character-wrapper.duckling.speaking.flipped {
    animation-name: speaking-scale-flipped;
}

/* Goose & Swan Animation (translate) */
@keyframes speaking-translate {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-6px); }
}
@keyframes speaking-translate-flipped {
    from { transform: translateX(-50%) scaleX(-1) translateY(0); }
    to { transform: translateX(-50%) scaleX(-1) translateY(-6px); }
}
#duck-scene #goose.speaking,
#duck-scene #swan.speaking {
    animation-name: speaking-translate;
}
#duck-scene #goose.speaking.flipped,
#duck-scene #swan.speaking.flipped {
    animation-name: speaking-translate-flipped;
}

/* Mallard, Segual & Frog Animation (rotate) */
@keyframes speaking-rotate {
    from { transform: translateX(-50%) rotate(-3deg); }
    to { transform: translateX(-50%) rotate(3deg); }
}
@keyframes speaking-rotate-flipped {
    from { transform: translateX(-50%) scaleX(-1) rotate(3deg); }
    to { transform: translateX(-50%) scaleX(-1) rotate(-3deg); }
}
#duck-scene .character-wrapper.mallard.speaking,
#duck-scene #segual.speaking,
#duck-scene #frog.speaking {
    animation-name: speaking-rotate;
}
#duck-scene .character-wrapper.mallard.speaking.flipped,
#duck-scene #segual.speaking.flipped,
#duck-scene #frog.speaking.flipped {
    animation-name: speaking-rotate-flipped;
}

/* Base speaking animation for fallback/defaults if needed */
#duck-scene .character-wrapper.speaking {
    animation-name: speaking-scale; /* Default to scaling animation */
}

#duck-scene .character-wrapper.speaking.flipped {
    animation-name: speaking-scale-flipped;
}

#duck-scene .character-wrapper.fade-in, #duck-scene > img.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

#duck-scene .character-wrapper.fade-out, #duck-scene > img.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in-hold {
    from { opacity: 0; transform: scale(0.8) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(10deg); }
}
@keyframes drop-and-fade {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100px) rotate(180deg);
    }
}

.item, .location-item {
    height: 15% !important;
    width: auto;
    z-index: 15 !important;
    transition: left 0.5s ease-in-out, bottom 0.5s ease-in-out, opacity 0.5s ease-out;
}

/* Base styles for a held item */
.held-item {
    position: absolute !important;
    width: auto !important;
    z-index: 20 !important;
    transform-origin: center center;
    opacity: 0; /* Start transparent */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, left 0.1s, bottom 0.1s, height 0.1s;
}

/* Default positioning for non-flipped characters (facing left) */
.held-item {
    transform: rotate(15deg) scale(0.8);
}
/* When visible */
.held-item.visible {
    opacity: 1;
    transform: rotate(10deg) scale(1);
}

/* Default positioning for flipped characters (facing right) */
.held-item.flipped {
    transform: rotate(-15deg) scale(0.8);
}
/* When visible */
.held-item.flipped.visible {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
}

/* --- Character-Specific Held Item Positioning --- */

/* Duck (default white duck) */
.duck > .held-item {
    height: 45% !important;
    bottom: 20% !important;
    left: 70% !important;
}

/* Goose */
#goose > .held-item {
    height: 30% !important;
    bottom: 30% !important;
    left: 60% !important;
}

/* Mallard */
.mallard > .held-item {
    height: 40% !important;
    bottom: 25% !important;
    left: 75% !important;
}

/* Duckling */
.duckling > .held-item {
    height: 60% !important;
    bottom: 15% !important;
    left: 65% !important;
}

/* Animation for dropping an item */
#duck-scene .dropping-item {
    animation: drop-and-fade 0.8s ease-in forwards;
}

#dialogue-container {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    background: transparent;
    border-radius: 15px;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#subtitles {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    color: black;
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    min-height: 4.5rem; /* for 3 lines */
    font-weight: 700;
}

#feedback-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    background-color: white;
}

#feedback-screen h2 {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
    font-weight: 700;
}

#feedback-screen p {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

#follow-up-container {
    width: 90%;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 10px;
}

#follow-up-container h3 {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#follow-up-body {
    margin-top: 0.75rem;
}

#follow-up-container.collapsed #follow-up-body {
    display: none;
}

#follow-up-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legacy-text {
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    color: #444;
}

.follow-up-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border: 2px solid black;
    background-color: #e9ecef;
    color: black;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

.follow-up-button:hover {
    background-color: #dde2e6;
}

.follow-up-button:active {
    transform: translateY(1px);
}

#feedback-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

#feedback-screen #replay-button {
    background-color: #cce5ff; /* A light blue for replay */
}

#feedback-screen #replay-button:hover {
    background-color: #b8daff;
}

#feedback-screen #comment-button {
    background-color: #d4edda; /* A light green color */
}

#feedback-screen #comment-button:hover {
    background-color: #c3e6cb;
}

#feedback-screen #download-script-button {
    background-color: #fff3cd; /* Light yellow/warning color for distinction */
}

#feedback-screen #download-script-button:hover {
    background-color: #ffeeba;
}

#continue-button {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    background-color: rgba(0,0,0,0.5);
    color: white;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 700;
    width: 80%;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
}

#continue-button:hover {
    background-color: #f0f0f0;
}

#continue-button:active {
    transform: translateY(2px);
}

#top-text, #bottom-text {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    color: black;
    text-align: center;
}

#top-text {
    font-size: 2.5rem;
    font-weight: bold;
}

#bottom-text {
    font-size: 1.8rem;
    font-weight: 700;
}

#duck-image {
    max-width: 90%;
    flex-grow: 1;
    object-fit: contain;
    min-height: 0;
    display: block;
    margin: 1rem 0;
}

#skip-intro-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 3px solid black;
    background-color: #ffffffaa; /* semi-transparent white */
    color: black;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
}

#skip-intro-button:hover {
    background-color: #ffffffee;
}

#quit-radio-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 3px solid black;
    background-color: #ffdddd;
    color: black;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
}

#quit-radio-button:hover {
    background-color: #ffcccc;
}

#youtube-link-button {
    text-decoration: none;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    background-color: #ff0000; /* YouTube red */
    color: white;
    border-color: #c00;
}

#youtube-link-button:hover {
    background-color: #e60000;
}

#youtube-link-button:active {
    transform: translateY(2px);
}

#youtube-link-button-start {
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    width: auto;
}

#discord-button-start, #discord-button-end {
    background-color: #5865F2; /* Discord Blurple */
    color: white;
    border-color: #454FBF;
    text-decoration: none;
}

#discord-button-start:hover, #discord-button-end:hover {
    background-color: #4752C4;
}

#discord-button-start {
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    width: auto;
}

#android-download-button {
    background-color: #a4c639; /* Android green */
    color: black;
    border-color: #7b962a;
    animation: android-pulse 2.4s ease-in-out infinite;
}

#android-download-button:hover {
    background-color: #8da931;
}

#android-promo-episode-button {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-color: #4caf50;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    animation: android-pulse-soft 3s ease-in-out infinite;
}

#android-promo-episode-button:hover {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

@keyframes android-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(164, 198, 57, 0.0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 18px rgba(164, 198, 57, 0.7);
    }
}

@keyframes android-pulse-soft {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(76, 175, 80, 0.0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 14px rgba(76, 175, 80, 0.5);
    }
}

#archive-toggle-button {
    background-color: #f8f9fa;
    color: #555;
    border-color: #ccc;
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
}

#archive-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f1f3f5;
}

#archive-section .button-like {
    margin-top: 0;
    font-size: 1.2rem;
    width: 100%;
}

#special-episode-button {
    background: linear-gradient(135deg, #111, #333);
    color: #ffe08a;
    border-color: #ffbf00;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    box-shadow: 0 0 10px rgba(255,191,0,0.6);
}

#special-episode-button:hover {
    background: linear-gradient(135deg, #222, #444);
}

#post-shutdown-button {
    background: repeating-linear-gradient(
        45deg,
        #e0e0e0,
        #e0e0e0 10px,
        #d0d0d0 10px,
        #d0d0d0 20px
    );
    color: #666;
    border-color: #999;
    font-style: italic;
    opacity: 0.9;
}

#post-shutdown-button:hover {
    background: #ccc;
    color: #333;
    opacity: 1;
}

.button-like {
    font-family: 'Comic Sans MS Custom', cursive, sans-serif;
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
    border: 3px solid black;
    background-color: #fff;
    color: black;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 700;
    width: 80%;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
}

.button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    gap: 0.75rem;
}

.button-row .button-like {
    width: 50%;
    margin-top: 1rem;
}

.button-like:hover {
    background-color: #f0f0f0;
}

.button-like:active {
    transform: translateY(2px);
}

/* Centered Item Styles for clearer visibility */
.held-item-centered {
    position: absolute !important;
    left: 50% !important;
    bottom: 40% !important;
    transform: translateX(-50%) scale(1.5) !important;
    z-index: 100 !important;
    transition: opacity 0.3s ease-out, bottom 0.5s ease-out, left 0.5s ease-out;
}

.dropping-item-centered {
    position: absolute !important;
    left: 50% !important;
    bottom: 40% !important;
    z-index: 100 !important;
    animation: drop-and-fade-centered 0.8s ease-in forwards;
}

@keyframes drop-and-fade-centered {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(200px) rotate(45deg) scale(1.5);
    }
}