@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
}

body {
    background-color: black;
    color: white;
    text-align: center;
    font-family: 'Silkscreen', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    /* Accommodate fixed navbar */
}

h1 {
    font-size: 50px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 3px 0px rgb(255, 115, 0);
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    background-color: white;
    image-rendering: pixelated;
    transition: opacity 0.5s ease-in-out;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 3px 0px #ff7b00;
    white-space: nowrap;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff7b00;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff7b00;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.play-btn {
    background: linear-gradient(45deg, #f7871f, #ff7b00);
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: white;
    font-family: 'Silkscreen', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 3px 3px 0px rgb(255, 255, 255);
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 10px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

@media only screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
    }

    .nav-links {
        margin: 1rem 0;
    }

    .logo,
    .play-btn {
        margin: 0.5rem 0;
    }
}

@media only screen and (max-width: 600px) {
    h1 {
        font-size: 30px;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1rem;
    }

    .play-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}