/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #282c34; /* Dark background color */
    color: #fff; /* White text color */
}

/* Splash screen container */
.splash-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Main container for text */
.mainDiv {
    position: relative;
    transition: transform 1s ease-out; /* Smooth transition for movement */
    transform: translateY(0); /* Initial position */
}

/* Shared animation styles for text */
.animated-text {
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 2s ease-out forwards;
    margin: 5px 0; /* Space between the lines */
}

.divTwo {
    margin-top: -25px;
}

.divOne {
    padding-bottom: 50px;
}

/* First line - App Name */
.first-text {
    color: lightgreen;
    animation-delay: 0s; /* Start immediately */
}

/* Second line - App Slogan */
.second-text {
    color: lightblue;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 1s; /* Start after the underline */
    position: relative;
}

/* Underline */
.underline {
    position: absolute;
    height: 2px;
    background-color: white;
    width: 0;
    transition: width 1s ease;
    transform: translateY(10px); /* Move the underline below the first text */
}

/* Move mainDiv to 2/5 of the screen */
.splash-container.moved .mainDiv {
    transform: translateY(-130%); /* Adjust as needed for 2/5 height */
}

/* Style for the image */
.displayed-image {
    margin-top: 20px; /* Add space between the second string and the image */
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Positioned slightly below */
    transition: opacity 1.5s ease, transform 1.5s ease; /* Fade-in and upward motion over 1.5 seconds */
    width: 50px; /* Set width to 50px */
    height: 50px; /* Set height to 50px */
    object-fit: cover; /* Ensures the image is properly resized without distortion */
}

/* Ensure the image stays in place when mainDiv moves */
.splash-container.moved .displayed-image {
    opacity: 1; /* Make the image visible */
    transform: translateY(0); /* Move to its final position */
}

/* Animation Keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}