/* Default styles */

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 700;
    src: url('Syne.ttf') format('truetype'); 
}

@font-face {
    font-family: Darker Grotesque;
    font-style: normal;
    font-weight: 400 700;
    src: url('DarkerGrotesque.ttf') format('truetype'); 
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Syne', sans-serif;
    overflow: hidden;
}

.image-top {
    position: relative;
    background-image: url('image1.webp');
    background-size: cover;
    background-position: center;
    flex: 1.9;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.tortoise {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotateZ(37.5deg);
    height: 25vh;
    animation: rocking 2s ease-in-out infinite alternate, fadeIn 1.5s forwards;
    opacity: 0; /* Ensure it starts invisible */
    transition: opacity 1.5s ease-in-out; /* Smooth transition for visibility */
}


@keyframes rocking {
    0% {
        transform: translateX(-50%) rotateZ(37.5deg); /* Initial position */
    }
    100% {
        transform: translateX(-50%) rotateZ(-10deg); /* Final position */
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EBBA30;
    padding: 8px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.somethings-brewing {
    margin: 0;
    font-size: 70px;
    padding-top: inherit;
}

.text-wrapper {
    display: block;
}

.span {
    display: block;
    font-size: 24px;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
}

.image-bottom {
    background-image: url('image2.webp');
    background-size: cover;
    background-position: center;
    flex: 1;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.logo {
    position: absolute;
    margin-top: 2%;
    left: 50%;
    transform: translateX(-50%);
    height: 18.5vh;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.footer {
    position: fixed; 
    bottom: 2%;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #4B382A; 
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 5s forwards;
}

.footer:hover .footer-text:hover {
    color: #6d9ce3; 
}

.footer-text {
    font-family: 'Darker Grotesque', sans-serif; 
    font-size: 20px;
    color: #4B382A; 
    text-decoration: none;
}

/* Media query for smaller screens */
@media screen and (max-width: 600px) {
    .somethings-brewing {
        font-size: 50px; 
    }

    .text-wrapper {
        font-size: 40px; 
    }

    .span {
        font-size: 17px; 
    }

    .logo {
        height: 12vh; 
    }

    .image-top {
        flex: 1.75;
    }

    .tortoise {
        height: 18vh; 
    }
}
