/**
 * Fortune Cookie CSS Styles
 */

/* Main container styles */
.dfc-fortune-cookie-container {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    background-color: #f9f5ee;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Login container styles */
.dfc-login-container {
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
    padding: 20px;
    background-color: #f9f5ee;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dfc-login-container h3 {
    color: #e67e22;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Fortune cookie styles */
.dfc-fortune-cookie {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
    margin: 20px 0;
}

.dfc-fortune-cookie:hover {
    transform: scale(1.05);
}

.dfc-fortune-cookie img {
    max-width: 200px;
    height: auto;
}

.dfc-cookie-image.opened {
    transform: rotate(25deg);
}

/* Fortune message styles */
.dfc-fortune-message {
    background-color: #fff;
    border: 1px dashed #e67e22;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    font-style: italic;
    font-family: 'Georgia', serif;
    display: none;
}

.dfc-fortune-message p {
    color: #333;
    font-size: 1.2em;
    line-height: 1.5;
    margin: 0;
}

/* Already accessed message */
.dfc-already-accessed {
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
    padding: 20px;
    background-color: #f9f5ee;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dfc-already-accessed h3 {
    color: #e67e22;
    margin-bottom: 10px;
}

.dfc-already-accessed p {
    color: #666;
    font-style: italic;
}

/* Come back tomorrow message */
.dfc-comeback-msg {
    margin-top: 15px;
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

/* Opened cookie state */
.dfc-opened {
    pointer-events: none; /* Prevents clicking after opening */
    cursor: default;
}

/* Processing state */
.dfc-processing {
    opacity: 0.7;
}

/* Social login buttons */
.dfc-google-login, .dfc-facebook-login {
    margin: 15px auto;
    display: flex;
    justify-content: center;
}

/* Animation effects */
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.dfc-animate-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dfc-animate-fade {
    animation: fadeIn 1s ease-in;
}
