:root {
    --primary-color: #D5006D; /* Pink */
    --secondary-color: #9C27B0; /* Purple */
    --background-gradient: linear-gradient(45deg, #F48FB1, #CE93D8); /* Light Pink to Light Purple */
    --card-background: #FFFFFF; /* White */
    --text-color: #4A148C; /* Dark Purple */
    --title-color: #880E4F; /* Dark Pink */
    --button-hover-color: #C51162; /* Darker Pink */
    --button-active-color: #B0006B; /* Even Darker Pink */
    --close-icon-color: rgb(105, 105, 105); /* Dim Gray */
    --close-icon-hover-color: #F44336; /* Red */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--background-gradient);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.message-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 650px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8) translateY(100px);
    animation: zoomIn 1.2s ease-out forwards, floatEffect 5s ease-in-out infinite;
    position: relative;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(100px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatEffect {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--title-color);  
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
    opacity: 0;
    animation: fadeInDown 1s ease-out 1.2s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    margin-bottom: 30px;
}

.reveal-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
}

.reveal-btn:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--title-color);
}

.reveal-btn:active {
    background-color: var(--button-active-color);
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba( 0, 0, 0, 0.2); 
}

.reveal-btn:focus {
    outline: none;
    border: 2px solid #FFD700;  
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); 
}

.close-icon {
    font-size: 50px;
    color: var(--close-icon-color);
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: color 1.2s ease, transform 1.2s ease;
    opacity: 0;
    transform: translateY(-20px); 
}

.close-icon:hover {
    color: var(--close-icon-hover-color);
    transform: scale(1.2);
}

#message {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.hidden {
    display: none;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.buttons button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#message {
    background-color: rgba(255, 255, 255, 0.9); 
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease; 
}

#close-icon {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

#close-icon:hover {
    transform: scale(1.2); 
}

.hidden {
    display: none;
}

#reveal-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

#reveal-btn:hover {
    background-color: var(--button-hover-color); 
}