/* 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 {
    margin-top: 100px;
    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 - ABCD */
.first-text {
    color: lightgreen;
    animation-delay: 0s; /* Start immediately */
    text-align: center;

    font-size: 2rem;
}

/* Second line - EFGH */
.second-text {
    color: lightblue;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 1s; /* Start after the underline */
    position: relative;
    text-align: center;
    
    font-size: 1.3rem;
}

/* 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(-135%); /* Adjust as needed for 2/5 height */ 
/*-320 for single */
/*-295 for double */
/*-270 for triple */
/*-245 for triple */
}
/* Style for the image */
.displayed-image {
    /*margin-top: -245px; /* Add space between the second string and the image */
    opacity: 0; /* Initially hidden */
    transform: translateY(50%); /* Positioned slightly below */
    transition: opacity 1.5s ease, transform 1.5s ease; /* Fade-in and upward motion over 1.5 seconds */
    width: 250px; /* Set width to 50px */
    height: 250px; /* Set height to 50px */
    object-fit: cover; /* Ensures the image is properly resized without distortion */
}


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