﻿body {
    background: linear-gradient(to bottom right, #fffbe6, #f0f8ff);
    font-family: 'Sarabun', sans-serif;
    color: #333;
}

.header-bg {
    background: linear-gradient(90deg, #ffe600, #ffae00);
    color: #333;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .header-bg h1 {
        font-weight: bold;
        font-size: 2.8rem;
    }

.lucky-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.highlight-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e68a00;
}

.dream-input {
    font-size: 1.2rem;
    padding: 15px;
    border: 2px solid #ffae00;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.btn-lucky {
    background-color: #ff9800;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    transition: all 0.2s ease-in-out;
    border-radius: 10px;
}

.btn-lucky:hover {
    background-color: #e68a00;
    box-shadow: 0 6px 14px rgba(255, 152, 0, 0.6);
}

footer {
    text-align: center;
    padding: 30px 10px;
    font-size: 0.9rem;
    color: #666;
}


.lucky-card {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lucky-number {
    font-size: 2rem;
    font-weight: bold;
    color: #d9534f;
}

.share-btn {
    margin-top: 30px;
    text-align: center;
}
.card-result {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.btn-back {
    margin-top: 30px;
}

.start_predic_panel {
    background-color: snow;
    padding: 25px;
    width: fit-content;
    height: fit-content;
    border-radius: 8px;
}

.start_predic_text {
    color: #735BC1;
    font-weight: bold;
    padding-bottom: 30px;
}

.custom-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.custom-spinner .dot {
    width: 1rem;
    height: 1rem;
    background-color: #886CE4; /* Bootstrap primary */
    border-radius: 50%;
    animation: pulse 0.8s infinite ease-in-out;
}

.custom-spinner .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.custom-spinner .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}