body {
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-y: auto; /* Allow vertical scrolling */
}

#starry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #1a1a2e);
    overflow: hidden;
    z-index: -1;
}

#starry-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.4;
}

#starry-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 8s ease-in-out infinite;
    animation-delay: 4s;
    opacity: 0.4;
}

@keyframes twinkle {
    0% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 0.4;
        transform: scale(1);
    }
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.2);
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border: 2px solid #ffd700;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

h1 {
    text-align: center;
    color: #89CFF0; /* Baby blue color */
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.5); /* Baby blue glow */
}

h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffd700;
}

.input-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    font-size: 0.8em;
    color: #ffd700;
}

#name {
    width: 100%;
    padding: 10px;
    border: 2px solid #89CFF0; /* Baby blue border */
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    background-color: transparent;
    color: #89CFF0; /* Baby blue text */
}

#name:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(137, 207, 240, 0.5); /* Baby blue glow */
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    background-color: transparent;
    color: #ffd700;
}

input[type="text"]::placeholder {
    color: rgba(255, 215, 0, 0.5);
}

.button-section {
    text-align: center;
    margin-bottom: 30px;
}

button {
    background-color: #ffd700;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #ffed4a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.results-section {
    background: rgba(135, 206, 235, 0.15); /* Changed from 0.1 to 0.15 for slightly more opacity */
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 206, 235, 0.3); /* Changed from 0.2 to 0.3 for more visible border */
}

.result-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4a90e2; /* Changed from #87CEEB to a darker blue */
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5); /* Adjusted shadow to match new color */
    margin: 10px 0;
    text-align: center;
}

.result-interpretation {
    color: #4a90e2; /* Changed from #87CEEB to a darker blue */
    line-height: 1.6;
    margin-top: 15px;
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.3); /* Adjusted shadow to match new color */
}

/* When results are shown, expand container */
.results-section:not([style*="display: none"]) + .container {
    min-height: 100vh;
}

.results-section h2 {
    color: #89CFF0; /* Baby blue color for headings */
}

#lifePathValue, #destinyValue {
    font-size: 1.2em;
    margin: 10px 0;
    color: #ff4444; /* Red color for the actual numbers */
    text-align: center;
    padding: 10px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-block;
    min-width: 100px;
}

#lifePathInterpretation, #destinyInterpretation {
    margin-top: 15px;
    line-height: 1.6;
    color: #89CFF0; /* Baby blue color for interpretations */
    text-align: left;
}

.error-message {
    color: #ff4444;
    font-size: 0.7em;
    margin-top: 8px;
}

.help-text {
    font-size: 0.7em;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 5px;
}

.choice-section {
    text-align: center;
    margin-bottom: 40px;
}

.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.choice-btn {
    background-color: transparent;
    border: 2px solid #ff4444; /* Red border */
    color: #ff4444; /* Red text */
    padding: 12px 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3); /* Red glow */
    margin: 10px;
    min-width: 180px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2); /* Red shadow */
}

.choice-btn:hover {
    background-color: rgba(255, 68, 68, 0.1); /* Light red background on hover */
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); /* Red glow */
}

.secondary-btn {
    background-color: #666;
    color: #fff;
}

.secondary-btn:hover {
    background-color: #777;
}

.birthdate-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.date-select {
    flex: 1;
    padding: 10px;
    border: 2px solid #89CFF0; /* Baby blue border */
    border-radius: 4px;
    background-color: transparent;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    cursor: pointer;
    min-width: 120px;
    color: #89CFF0; /* Baby blue text */
}

.date-select:hover {
    border-color: #89CFF0; /* Baby blue border on hover */
    box-shadow: 0 0 10px rgba(137, 207, 240, 0.3); /* Baby blue glow */
}

.date-select:focus {
    outline: none;
    border-color: #89CFF0; /* Baby blue border on focus */
    box-shadow: 0 0 15px rgba(137, 207, 240, 0.5); /* Baby blue glow */
}

.date-select option {
    padding: 8px;
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    color: #89CFF0; /* Baby blue text for options */
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .birthdate-inputs {
        flex-direction: column;
    }
    
    .date-select {
        width: 100%;
    }

    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }

    .choice-btn {
        width: 100%;
        max-width: 300px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1em;
    }
}

#initialChoice {
    text-align: center;
    margin-bottom: 30px;
    color: #89CFF0 !important; /* Baby blue color with !important to ensure it's not overridden */
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.3); /* Baby blue glow */
}

.pixel-oracle-link {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}

.pixel-oracle-link a {
    color: #89CFF0;
    text-decoration: none;
    font-size: 0.7em; /* Reduced from 0.9em */
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping */
}

.pixel-oracle-link a:hover {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}