body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: purple;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    cursor: pointer;
    padding: 20px;
    width: 90%;
    max-width: 600px;
}

h1 {
    font-family: "Times New Roman", Times, serif;
    color: #fff;
    margin: 0;
    transition: color 0.5s ease;
    font-size: 3rem;
}

sub {
    font-style: italic;
    color: #ccc;
    display: block;
    transition: color 0.5s ease;
    font-size: 1rem;
    margin-top: 10px;
}

#ufo {
    position: fixed;
    top: 50px;
    left: -100px;
    font-size: 40px;
    transition: left 10s linear, top 2s ease-in-out;
    display: none;
}

/* Media queries for mobile responsiveness */
@media screen and (max-width: 767px) {
    #container {
        top: 40%;
    }

    h1 {
        font-size: 2.5rem;
    }

    sub {
        font-size: 0.9rem;
    }

    #ufo {
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    sub {
        font-size: 0.8rem;
    }

    #ufo {
        font-size: 25px;
    }
}

/* Additional improvements for better responsiveness */
@media screen and (max-height: 500px) {
    h1 {
        font-size: 1.8rem;
    }

    sub {
        font-size: 0.7rem;
        margin-top: 5px;
    }
}

/* Ensure text remains visible during webfont load */
.wf-loading h1,
.wf-loading sub {
    visibility: hidden;
}

.wf-active h1,
.wf-active sub,
.wf-inactive h1,
.wf-inactive sub {
    visibility: visible;
}
