* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(10,10,30,1) 0%, rgba(0,0,10,1) 80%);
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    z-index: 2;
    text-align: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto; /* Center the overlay */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Optional glow effect */
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #00FFFF; /* Aqua color to match space theme */
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF; /* Glow effect */
    margin-bottom: 30px;
}

.submit-button {
    font-family: 'Orbitron', sans-serif;
}
.form {
    max-width: 500px;
    margin: 0 auto;
}

.form input[type="text"] {
    width: 50%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 2px solid #00FFFF; /* Aqua border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent */
    color: #FFFFFF;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.form input[type="text"]::placeholder {
    color: #CCCCCC;
}

.form input[type="text"]:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.form button[type="submit"] {
    padding: 10px 20px;
    background: linear-gradient(45deg, #00FFFF, #0000FF);
    border: none;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
    display: block;
    margin: 20px auto 0 auto;
}

.form button[type="submit"]:hover {
    background: linear-gradient(45deg, #0000FF, #00FFFF);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}


input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.line-container {
    display: flex;
    align-items: center;       /* Vertically center items */
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 50px auto 0 auto;
    position: relative;
}


.line-wrapper {
    flex-grow: 1; /* Line stretches to fill available space */
    position: relative;
    height: 8px;
    margin: 0 50px; /* Increase margin to move images away from the line */
}

.line {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, yellow 50%, purple 50%);
    border-radius: 5px;
}

.marker {
    position: absolute;
    top: 50%; /* Center vertically over the line */
    transform: translateY(-50%);
    /* 'left' will be dynamically updated in JavaScript */
    width: 10px;
    height: 40px;
    background-color: white;
    border: 2px solid black;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.7);
}


.side-container {
    display: flex;
    align-items: center;      /* Center items horizontally */
    justify-content: center;  /* Center items vertically */
    position: relative;       /* To position percentage absolutely */
    width: auto;
    flex: 0 0 auto;           /* Prevent flex items from shrinking */
}



.percentage {
    position: absolute;
    top: calc(100% + 10px);   /* Place it below the image with some spacing */
    font-size: 1.5rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px #FFFFFF;
}


.banana-image, .phone-image {
    width: auto;
    height: 8vw;
    max-width: 100%;  /* Ensure images don't exceed container width */
    display: block;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 600px) {
    /* Existing styles */
    .banana-image, .phone-image {
        height: 50px;  /* Reduce image height on mobile devices */
    }

    .side-container {
        width: auto;  /* Allow the container to adjust based on content */
        flex: 0 0 auto;  /* Prevent flex items from shrinking */
        padding: 15px;
    }

    .line-container {
        display: flex;
        align-items: center;
        justify-content: center;  /* Center items horizontally */
        padding: 0 10px;          /* Add 20px padding to left and right */
        gap: 10px;                /* Adjust gap between elements */
        width: 100%;
        max-width: 800px;
        margin: 20px auto 0 auto; /* Adjust margin for mobile */
        position: relative;
    }

    .line-wrapper {
        flex-grow: 1;     /* Line stretches to fill available space */
        margin: 0;        /* Remove margins on mobile */
    }
}

