@font-face {
    font-family: 'Assistant'; 
    src: url('./Assistant-Regular.ttf');
}

@font-face {
    font-family: 'Assistant-Bold'; 
    src: url('./Assistant-Bold.ttf');
}


html, body {
    overflow: hidden;
    font-family: Assistant, sans-serif;
    background-color: #fdf1a1;
    color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.add-to-home {
    position: fixed;
    bottom: 50px;
    left: 10px;
    right: 10px;
    background-color: #fff3cd;
    color: #000;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    text-align: center;
    z-index: 999;
}

h1 {
    font-family: Assistant-Bold;
    font-size: 2rem;
    text-align: center;
    color: #f57f17;
    padding: 15px 0 5px;
}

h2 {
    font-size: 1rem;
    text-align: center;
    color: #f57f17;
    padding: 15px 0 5px;
}

.date {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tip {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.tip-content {
    background-color: #fff9c4;
    color: #000;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    font-size: larger;
    line-height: 1.5;
    text-align: center;
}

.suggestion {
    text-align: center;
    margin-bottom: 30px;
}

.suggestion a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.countdown {
    text-align: center;
    font-size: 1rem;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
}

.share-tip {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#shareTipButton {
    padding: 10px 20px;
    background-color: #f57f17;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.floating-circle-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #f57f17;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    will-change: transform;
}
.floating-circle-btn.spinning {
    transform: translateY(-140px) rotate(540deg);
}
.floating-circle-btn .floating-x {
    display: none;
    position: absolute;
    color: #fff;
    font-size: 2rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.floating-circle-btn.show-x img {
    z-index: 2002;
}
.floating-circle-btn.show-x .floating-x {
    display: block;
}
.floating-circle-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    z-index: 2002;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.dialog-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    transition: background 0.2s;
}

.dialog-overlay.active {
    display: block;
}

.bottom-dialog {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2001;
    background: #ffd4af;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
    padding: 24px 16px 32px 16px;
    min-height: 120px;
    max-height: 60vh;
    overflow-y: auto;
    animation: slideUp 0.25s;
    text-align: center;
    direction: rtl;
}

.bottom-dialog.active {
    display: block;
}

.bottom-dialog .close-btn {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .date {
        font-size: 1rem;
    }

    .tip-content {
        font-size: 0.95rem;
    }

    .countdown {
        font-size: 1rem;
    }

    .floating-circle-btn {
        /* When dialog is closed, merged with corner */
        bottom: 24px;
        left: 0;
        width: 56px;
        height: 56px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 50%;
        border-top-left-radius: 0;
        border-top-right-radius: 50%;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
       transition:
            box-shadow 0.2s,
            border-radius 0.3s,
            bottom 0.3s,
            left 0.3s,
            transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
        will-change: transform;
    }
     .floating-circle-btn.spinning {
        /* When dialog is open, make it a full circle, move up, and spin */
        border-radius: 50%;
        bottom: 24px;
        left: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        transform: translateY(-160px) rotate(540deg);
    }
    .floating-circle-btn img {
        width: 32px;
        height: 32px;
    }
}