@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #B5D7E8;
}

.header {
    text-align: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 0; /* Behind the logo */
}

.clouds svg {
    width: 100%;
    height: auto;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
    margin-top: 30px;
    z-index: 1;
}

h1 {
    font-size: 1.5em;
    color: #2d5268;
    margin: 0;
    font-family: 'Jua', sans-serif;
    /* font-weight: 800; */
    padding: 6px;
}

.container {
    text-align: center;
}

.iphone-container {
    position: relative;
    width: 300px;
    height: 600px;
}

.iphone-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('iphone15pro-mockup.webp') no-repeat center center;
    background-size: contain;
    z-index: 2;
    pointer-events: none; /* Allows interactions to pass through */
}

.slider {
    position: absolute;
    top: 4.5%; /* Adjust this value to fit the screen of the mockup */
    left: 8%;
    width: 84%;
    height: 91%;
    overflow: hidden;
    border-radius: 30px;
    z-index: 1; /* Ensure slider is behind the mockup */
    animation: wiggle 1s ease-in-out;
}
.slider.initial-wiggle {
    animation: wiggle 1s ease-in-out;
}

.slides {
    display: flex;
    transition: transform 0.3s ease; /* Smooth transition for slide movement */
}

.wallpaper {
    min-width: 100%;
    height: auto;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.254);
    color: white;
    border: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3;
}

.left-button {
    left: -40px;
}

.right-button {
    right: -40px;
}

#downloadBtn {
    margin-top: 20px;
    padding: 10px 60px;
    font-size: 16px;
    background-color: #0a84ff;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: "Jua", sans-serif;
    /* font-weight: 600; */
    position: relative; /* Added to position pseudo-element correctly */
    overflow: hidden; /* Ensures no overflow issues */
    width: 200px; /* Set a fixed width */
    height: 40px; /* Set a fixed height to ensure consistency */
    box-sizing: border-box;
}

#downloadBtn.downloading {
    transition-duration: 0.3s;
    background-color: #0056b3;
}

#downloadBtn.downloading::after {
    content: "Downloading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    white-space: nowrap;
    z-index: 2;
}

#downloadBtn .default-text {
    display: block; /* Show default text */
}

#downloadBtn.downloading .default-text {
    display: none; /* Hide default text when downloading */
}

/* #downloadBtn:hover {
    
    background-color: #7abdff;
    box-shadow: 0 0px 56px #0a84ff93;
    box-shadow: 0 0px 56px #0a84ff93;
    transition-duration: 0.3s;
} */

/* Footer Styles */
.footer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block; /* Removes any inline spacing */
    margin: 0; /* Ensures no margin */
    padding: 0; /* Ensures no padding */
}

.footer-text {
    background-color: #308A4D; /* Change to your preferred solid color */
    color: white;
    padding: 20px;
    text-align: center;
    margin: 0; /* Ensures no margin */
    border: 0; /* Remove any border if applied */
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

@keyframes wiggle {
    0% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
    100% { transform: translateX(0); }
}