﻿body, p, div, span, h1, h2, h3, h4, h5, h6, button, a, .card-text {
    font-family: 'Lato', sans-serif !important;
}

/* General card styling */
.card {
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: auto auto 2rem auto;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.card-header {
    background-color: #255FA4;
    color: white;
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    /* Header logos */
    .card-header img {
        height: 70px;
        width: auto;
        margin-right: 10px;
        object-fit: contain;
    }

.header-logo-text {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Language button styling */
.card-header .d-flex button {
    padding: 4px;
    margin-left: 8px;
}

    .card-header .d-flex button img {
        height: 24px;
        width: auto;
    }

/* Banner Image */
.card-img-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Body */
.card-body {
    padding: 20px;
    font-family: 'Lato', sans-serif;
}

/* Title section */
.card-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 1.5rem;
    flex-wrap: wrap; /* Allow wrapping if needed */
}

.card-title {
    margin: 0;
    color: #255FA4;
    font-size: 22px;
    font-weight: 600;
}

.occasion-type {
    color: #666;
    font-size: 0.9em;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    border-radius: 1rem;
    white-space: nowrap;
}

.card-text span, pre, .btn-lg {
    font-family: 'Lato', 'Roboto', sans-serif;
}

/* Location styling */
.card-text img {
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 10px;
    height: 20px;
}

.card-text {
    margin-bottom: 20px;
}

/* Date and Time Styling */
.datetime-box {
    background-color: #255FA4;
    color: white;
    width: 48%;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

    .datetime-box img {
        height: 16px;
        width: auto;
        margin-right: 4px;
        vertical-align: middle;
    }

    .datetime-box span {
        font-weight: 600;
        font-size: 0.9rem;
    }

.datetime-value {
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Buttons: Pill-shaped and responsive */
.btn-success, .btn-danger {
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 18px;
    width: 140px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-family: 'Lato', 'Roboto', sans-serif;
}

.bg-primary {
    background-color: #007bff !important;
}

.text-primary {
    color: #007bff !important;
}

.rounded {
    border-radius: 10px;
}

.bi-calendar-event-fill, .bi-clock-fill {
    margin-right: 5px;
}

/* Spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: #ffffff;
}

    .spinner-border .sr-only {
        display: none;
    }

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-delayed-1 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.float-animation-delayed-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 2s;
}

.logo-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Download buttons */
.download-button {
    transition: transform 0.2s ease;
    display: block;
}

    .download-button:hover {
        transform: scale(1.05);
    }

.store-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .store-badge-container.apple {
        width: 270px;
        height: 80px;
    }

    .store-badge-container.google {
        width: 300px;
        height: 80px;
    }

.store-badge {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Button container fix */
.row.mt-6.mb-4 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

    .row.mt-6.mb-4 .col-6 {
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }

/* Bottom section */
.d-flex.justify-content-center.align-items-center.mb-5 {
    margin: 2rem 1rem 3rem 1rem;
    padding: 0 1rem;
    width: auto;
    max-width: 100%;
}

    .d-flex.justify-content-center.align-items-center.mb-5 img {
        max-width: 45%;
        height: auto;
        object-fit: contain;
    }

/* Mobile responsive styles */
@media (max-width: 576px) {
    .card {
        max-width: 100%;
        margin: 10px 10px 2rem 10px;
    }

    .header-logo-text {
        height: 24px;
    }

    .card-header .d-flex button {
        padding: 3px;
        margin-left: 6px;
    }

        .card-header .d-flex button img {
            height: 20px;
        }

    .card-title-section {
        flex-direction: row; /* Keep horizontal layout */
        align-items: center;
        gap: 0.5rem;
        margin: 1rem;
    }

    .card-title {
        font-size: 20px; /* Slightly smaller on mobile */
    }

    .occasion-type {
        font-size: 0.85em;
        padding: 0.2rem 0.6rem;
    }

    .card-body {
        padding: 15px;
    }

    .datetime-box {
        padding: 0.5rem;
    }

        .datetime-box img {
            height: 14px;
        }

        .datetime-box span {
            font-size: 0.85rem;
        }

    .datetime-value {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .btn-success, .btn-danger {
        width: 120px;
    }

    .store-badge-container.apple {
        width: 240px;
        height: 71px;
    }

    .store-badge-container.google {
        width: 270px;
        height: 71px;
    }

    .d-flex.justify-content-center.align-items-center.mb-5 {
        margin: 1.5rem 0.5rem 2.5rem 0.5rem;
    }

        .d-flex.justify-content-center.align-items-center.mb-5 img {
            max-width: 42%;
        }
}

/* Animation classes */
.response-icon {
    animation: responseIconAnimation 1s ease-out;
}

.response-title {
    animation: responseTitleAnimation 1s ease-out;
}

.response-message {
    animation: responseMessageAnimation 1.2s ease-out;
}

/* Animation Keyframes */
@keyframes responseIconAnimation {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes responseTitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes responseMessageAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments for response page */
@media (max-width: 576px) {
    .response-icon img {
        width: 60px;
        height: 60px;
    }

    .response-title {
        font-size: 1.5rem;
    }

    .response-message {
        font-size: 0.9rem;
    }
}