:root {
    --disney-blue: #1E90FF;
    --disney-gold: #FFD700;
    --disney-pink: #FF69B4;
    --disney-green: #32CD32;
}

/*@font-face {*/
/*    font-family: 'Waltograph';*/
/*    src: url('fonts/waltograph42.otf') format('opentype');*/
/*}*/

body {
    font-family: 'Lato', sans-serif;
    background-image: url('images/disney-castle-bg.png');
    background-size: cover;
    background-attachment: fixed;
}

.font-disney {
    font-family: 'Waltograph', cursive;
}

.text-disney-blue {
    color: var(--disney-blue);
}

.bg-disney-blue {
    background-color: var(--disney-blue);
}

.btn-primary {
    @apply bg-disney-blue hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.input-field {
    @apply shadow-sm rounded-md w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-150 ease-in-out border border-gray-300;
}

.input-field::-webkit-inner-spin-button,
.input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field[type=number] {
    -moz-appearance: textfield;
}

.time-input {
    @apply flex-1 px-3 py-2 bg-white border text-gray-700 text-center;
    width: 50%;
    -moz-appearance: textfield;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input:first-child {
    border-right: none;
}

.time-input:focus {
    @apply outline-none ring-2 ring-blue-500 z-10 relative;
}

.stat-card {
    @apply rounded-lg p-4 bg-white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.nav-button {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-600 rounded-full w-10 h-10 flex items-center justify-center transition-colors duration-200;
}

.nav-button:focus {
    @apply outline-none ring-2 ring-blue-300;
}

.weather-btn {
    @apply bg-gray-100 hover:bg-gray-200 text-gray-800 font-semibold py-2 px-4 rounded-full transition duration-150 ease-in-out;
}

.weather-btn.active {
    @apply bg-disney-blue text-white;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.5);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animated-icon {
    animation: bounce 2s infinite;
}

#mediaPreview img, #mediaPreview video {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

#uploadProgress {
    transition: all 0.3s ease;
}

.media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.media-preview-item {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.media-preview-item:hover {
    transform: scale(1.05);
}

.media-preview-more {
    width: 5rem;
    height: 5rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
}

.media-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.media-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.media-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.magic-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}
