/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', Arial, sans-serif;
    background: #d6c0a8;
    min-height: 100vh;
    color: #333;
    margin: 0;
}
.cherry-bomb-one-regular {
  font-family: "Cherry Bomb One", system-ui;
  font-weight: 400;
  font-style: normal;
}


/* Header Styles */
header {
    text-align: center;
    padding: 2rem 0 1rem 0;
    background: none;
    border: none;
}

header h1 {
    color: #5d4e37;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    color: #6b5b47;
    font-size: 1.1rem;
}

.curved-text-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.curved-text {
    font-size: 2.2rem;
    font-weight: 600;
    fill: #5c4427;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

/* Carousel Container */
.carousel-container {
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 2.5rem 1rem 2rem 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Carousel Items */
.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(.4,1.3,.6,1);
    position: relative;
}

.carousel-item h3 {
    color: #5d4e37;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-item.current {
    z-index: 2;
    transform: scale(1.0);
    box-shadow: 0 8px 32px rgba(92,68,39,0.10);
}

.carousel-item.last, .carousel-item.next {
    z-index: 1;
    transform: scale(0.55);
    opacity: 0.7;
    filter: blur(0.5px) grayscale(10%);
}

.carousel-item.current canvas {
    width: 840px;
    height: 500px;
    max-width: 100vw;
    max-height: 60vh;
    border: 4px solid #5c4427;
    border-radius: 12px;
    background: #f5ede3;
    box-shadow: 0 4px 24px rgba(92,68,39,0.10);
}

.carousel-item.last canvas,
.carousel-item.next canvas {
    width: 420px;
    height: 250px;
    max-width: 45vw;
    max-height: 30vh;
    border: 2px solid #a08a6a;
    border-radius: 10px;
    background: #f5ede3;
    box-shadow: 0 2px 12px rgba(92,68,39,0.07);
}

/* Canvas Styles */
canvas {
    width: 100%;
    max-width: 840px;
    height: auto;
    aspect-ratio: 840/500;
    border: 3px solid rgba(139, 115, 85, 0.4);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

canvas:hover {
    border-color: rgba(139, 115, 85, 0.7);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Canvas Overlay */
.canvas-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Canvas Label Styles */
.canvas-label {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    transform: scale(1);
}

.carousel-item.current .canvas-label {
    font-size: 2.2rem;
    transform: scale(1.2);
}

.carousel-item.last .canvas-label,
.carousel-item.next .canvas-label {
    font-size: 1.3rem;
}

/* Carousel Positions */
.carousel-item.past {
    opacity: 0.6;
    transform: scale(0.9);
}

.carousel-item.present {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-item.next {
    opacity: 0.6;
    transform: scale(0.9);
}

/* Active state */
.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #a08a6a;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(92,68,39,0.10);
}

.control-btn:hover {
    background: #5c4427;
    transform: scale(1.08);
}

/* Upload Section */
.upload-section {
    background: rgba(255,255,255,0.18);
    border-radius: 15px;
    padding: 2rem 1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(92,68,39,0.07);
    text-align: center;
}

.upload-section h2 {
    color: #5c4427;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#gifUpload {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin: 0.5rem;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff5252, #d84315);
}

.auto-play-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.auto-play-btn:hover {
    background: linear-gradient(135deg, #26d0ce, #2d8f7f);
}

.auto-play-btn.playing {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.auto-play-btn.playing:hover {
    background: linear-gradient(135deg, #ff8f00, #ef6c00);
}

.demo-btn {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.demo-btn:hover {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* GIF List */
.gif-list {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.gif-gallery-section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

.gif-gallery-section h2 {
    text-align: center;
    color: #5d4e37;
    margin-bottom: 1.5rem;
}

.gif-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gif-container .row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gif-item {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 12px;
    color: #5d4e37;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #a08a6a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gif-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gif-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

/* Fade transition for carousel GIFs */
.carousel-gif {
    transition: opacity 0.5s cubic-bezier(.4,1.3,.6,1);
    opacity: 1;
}
.carousel-gif.fade {
    opacity: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #6b5b47;
    background: rgba(0, 0, 0, 0.05);
}

/* Peppers Banner */
.peppers-banner {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 420px;
    width: 100%;
    height: auto;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .carousel-item.current canvas {
        width: 95vw;
        height: auto;
        max-width: 840px;
        max-height: 50vw;
    }
    .carousel-item.last canvas,
    .carousel-item.next canvas {
        width: 45vw;
        height: auto;
        max-width: 420px;
        max-height: 25vw;
    }
}

@media (max-width: 700px) {
    .carousel-track {
        gap: 1rem;
    }
    .carousel-item.current canvas {
        width: 98vw;
        max-width: 98vw;
        height: auto;
    }
    .carousel-item.last canvas,
    .carousel-item.next canvas {
        width: 40vw;
        max-width: 40vw;
        height: auto;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item {
    animation: fadeIn 0.5s ease-out;
}

/* Loading animation for canvases */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

canvas:empty {
    animation: pulse 2s infinite;
}
