body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    font-family: 'Orbitron', sans-serif;
}

header {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

h1 {
    color: white;
    font-size: 3rem;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #800080;
    position: absolute;
    bottom: -10px;
    left: 0;
    opacity: 0;
    animation: fadeInOutUnderline 5s infinite;
}

@keyframes fadeInOutUnderline {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

p#subtitle {
    color: white;
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInOut 5s infinite;
    animation-delay: 2.5s; /* To make the subtitle appear half-way through the title animation */
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.widgetbot-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    border-radius: 8px;
    z-index: 9;
    border: 2px solid #800080;
    box-shadow: 0 0 40px #800080;
    background: rgba(0, 0, 0, 0.8);
}

#background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.star, .planet {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
    transition: transform 0.2s;
}

.star {
    width: 3px;
    height: 3px;
}

.planet {
    width: 10px;
    height: 10px;
    background: #800080;
}

/* Media Query for smaller screens */
@media (max-width: 400px), (max-height: 900px) {
    h1 {
        display: none;
    }

    p#subtitle {
        margin-top: 0;
        opacity: 1;
        font-size: 0.813rem;
        animation: none;
    }
}
