@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&display=swap');

body {
    font-family: 'Bubblegum Sans', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    text-align: center;
    overflow: hidden; /* To ensure animations don't cause scrollbars */
}

.container {
    background-color: rgba(211, 211, 211, 0.75); /* Light gray and less opaque */
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-in-out forwards;
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,0,0,0.3), rgba(255,127,0,0.3), rgba(255,255,0,0.3), rgba(0,255,0,0.3), rgba(0,0,255,0.3), rgba(75,0,130,0.3), rgba(148,0,211,0.3)); /* Faded rainbow overlay */
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    z-index: 0;
    opacity: 0.6;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1 {
    color: #e94e77;
    font-size: 2.8em; /* Adjusted for smaller size */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    animation: slideIn 1s ease-out forwards;
}

p {
    font-size: 1em; /* Adjusted for smaller size */
    margin-bottom: 15px;
    color: #555;
}

.phone-number {
    display: inline-block;
    font-size: 3.5em;
    font-weight: bold;
    color: #000; /* Changed to black */
    background: none; /* Removed rainbow background */
    -webkit-background-clip: unset; /* Resetting */
    -webkit-text-fill-color: #000; /* Changed to black */
    background-size: auto;
    animation: pulse 1.5s infinite alternate; /* Removed rainbowText animation */
    text-decoration: none;
    margin: 25px 0;
    padding: 12px 30px;
    background-color: #fff;
    border-radius: 12px;
    border: 3px solid #000; /* Changed border to black */
    border-image: none; /* Removed border image */
    transition: all 0.4s ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.phone-number:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-image: none; /* Removed border image */
}

.tagline {
    font-size: 1.3em; /* Adjusted for smaller size */
    color: #666;
    margin-top: 25px;
    font-style: italic;
    animation: slideUp 1s ease-out forwards 0.5s;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #777;
    position: absolute; /* Positioning for footer */
    bottom: 20px; /* Distance from bottom */
    width: 100%;
    text-align: center;
    left: 0; /* Align to left */
}

footer a {
    color: #fff; /* Changed to white */
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f0f0f0; /* Lighter shade for hover */
    text-decoration: underline;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 5vw; /* Use viewport width for padding */
        width: 80%; /* Set width to 80% */
        margin: 0;
    }

    h1 {
        font-size: 8vw; /* Use viewport width for font size */
    }

    .phone-number {
        font-size: 7vw; /* Use viewport width for font size */
        padding: 2vw 4vw;
    }

    .tagline {
        font-size: 4vw; /* Use viewport width for font size */
    }

    p {
        font-size: 3.5vw; /* Use viewport width for font size */
    }

    footer {
        font-size: 3vw; /* Use viewport width for font size */
        bottom: 10px;
    }

    footer p {
        display: flex;
        justify-content: center;
        white-space: nowrap; /* Prevent wrapping */
    }
}
