body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #000, #111);
    color: #fff;
    position: relative;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 5% 15%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 15% 85%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 25% 35%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 35% 65%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 45% 25%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 55% 75%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 65% 45%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 75% 5%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 85% 55%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 95% 95%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 10% 50%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 40% 90%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 60% 20%, rgba(255,255,255,0.2) 1px, transparent 1px),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 120px 120px, 150px 150px, 100px 100px, 140px 140px, 130px 130px, 160px 160px, 110px 110px, 170px 170px, 125px 125px, 135px 135px, 145px 145px, 155px 155px, 105px 105px, 175px 175px;
    animation: move-stars 40s linear infinite;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease;
}

@keyframes move-stars {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: move-stars 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#explore {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4B0082;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    bottom: 50px;
}

.arrow {
    font-size: 24px;
    margin-top: 10px;
    color: #fff;
    position: absolute;
    bottom: 10px;
}



#title {
    font-size: 48px;
    margin: 20px 0;
    color: #fff;
    position: relative;
}

#title input {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-10px - var(--input-width, 80px)));
}

#but-foss {
    position: absolute;
    left: 50%;
    transform: translateX(10px);
    white-space: nowrap;
}

#title input::placeholder {
    transition: opacity 0.3s ease;
}

#title input.fading::placeholder {
    opacity: 0;
}

#placeholder-text {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-10px - var(--input-width, 80px)));
    color: #fff;
    font-size: 48px;
    font-family: inherit;
    text-align: right;
    pointer-events: none;
    transition: transform 0.3s ease;
}

#but-foss {
    position: absolute;
    left: 50%;
    transform: translateX(10px);
    white-space: nowrap;
}

#title span {
    transition: opacity 0.5s ease;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#title input {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 48px;
    font-family: inherit;
    outline: none;
    width: 80px;
    min-width: 80px;
    transition: width 0.3s ease;
    text-align: right;
}

#placeholder-text {
    transition: transform 0.3s ease, opacity 0.3s ease;
}



#explore:hover {
    background-color: #2E003E;
}

main {
    padding: 20px 100px;
    position: relative;
    z-index: 1;
    background-color: rgba(0,0,0,0.5);
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: move-stars 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

#alternatives {
    display: flex;
    flex-wrap: wrap;
}

.alternative {
    background-color: rgba(0,0,0,0.7);
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,0.2);
    width: calc(50% - 20px);
    box-sizing: border-box;
}

.app-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 8px;
    flex-shrink: 0;
}

.app-content {
    flex: 1;
}

.app-title {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 20px;
}

.app-description {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 14px;
}

.app-long-description {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
}

.app-altto {
    margin: 0 0 10px 0;
    color: #aaa;
    font-size: 12px;
}

.learn-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4B0082;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.learn-more-btn:hover, .link-btn:hover {
    background-color: #2E003E;
}

.learn-more-btn, .link-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 16px;
    background-color: #4B0082;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    text-align: center;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.alt-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.no-matches {
    text-align: center;
    color: #fff;
    font-size: 24px;
    padding: 50px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #title {
        font-size: 32px;
    }

    #title input {
        font-size: 32px;
    }

    #explore {
        bottom: 30px;
    }

    .arrow {
        bottom: 5px;
    }

    main {
        padding: 20px;
    }

    .alternative {
        width: 100%;
        margin: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .app-icon {
        margin-bottom: 10px;
    }

    .app-content {
        width: 100%;
    }

    .card-buttons {
        flex-direction: column;
    }

    .no-matches {
        font-size: 18px;
        padding: 30px;
    }
}