:root {
    /* Color Variables */
    --background-gradient-start: #1b2735;
    --background-gradient-end: #090a0f;
    --text-color: #d3d3d3;
    --highlight-color: #87CEEB;
    --highlight-focus: #FFD700;
    --result-background: #1e2b45;
    --button-bg: #4a90e2;
    --button-hover-bg: #357ABD;
    --highlight-text: #f0c674;

    --base-font-size: 16px;
    --heading-font-size: 2.5rem;
    --large-font-size: 1.6rem;
    --medium-font-size: 1.2rem;
    --small-font-size: 0.8rem;
}

body {
    margin: 0;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, var(--background-gradient-start), var(--background-gradient-end));
    overflow: hidden;
    text-align: center;
    font-family: Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--text-color);
    font-size: var(--base-font-size);
}

.container {
    color: var(--text-color);
    min-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 30px; 
}

footer.footer {
    bottom: 0;
    color: var(--text-color);
    font-size: var(--small-font-size);
    left: 0;
    padding: 0;
    position: fixed;
    text-align: center;
    width: 100%;
}

footer.footer a {
    color: var(--highlight-color);
    text-decoration: none;
}

footer.footer a:hover {
    text-decoration: underline;
}

.resultFooterContainer {
    font-size: var(--small-font-size);
}

button {
    background-color: var(--button-bg);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: var(--medium-font-size);
    margin: 1.5rem auto;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: var(--button-hover-bg);
}

/* Make the real dropdown hidden */
.dropdown-hidden {
    display: none;
}

#personTypeText {
    border: none;
    background: none;
    font-size: inherit;
    color: var(--highlight-color);
    padding: 0;
    border-bottom: 1px solid var(--highlight-color);
    text-decoration: underline;
    cursor: pointer;
    width: auto;
}
#personTypeText:focus {
    border-bottom: 1px solid var(--highlight-focus);
}

/* Stars effect */
.stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 
        200px 300px #FFF,
        500px 200px #FFF,
        800px 400px #FFF,
        100px 100px #FFF,
        300px 600px #FFF,
        700px 500px #FFF,
        600px 700px #FFF,
        900px 100px #FFF,
        1200px 300px #FFF,
        1500px 400px #FFF;
    animation: twinkling 2s infinite;
}

@keyframes twinkling {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#stars2 {
    box-shadow: 
        150px 150px #FFF,
        700px 300px #FFF,
        300px 500px #FFF,
        800px 800px #FFF,
        1200px 200px #FFF,
        1000px 500px #FFF;
    animation: twinkling 3s infinite;
}

#stars3 {
    box-shadow: 
        400px 400px #FFF,
        700px 700px #FFF,
        200px 800px #FFF,
        600px 100px #FFF,
        1100px 500px #FFF;
    animation: twinkling 4s infinite;
}

/* Phrase container and inputs style */
.question {
    color: var(--text-color);
    display: flex;
    flex-wrap: wrap;
    font-size: var(--large-font-size);
    gap: 0.4rem;
    margin: 2rem;
    padding: 1rem 0;
    align-items: center;
    justify-content: center;
    text-align: center;
}





/* Dropdown and input style to blend with the text */
.dropdown, .input-field {
    border: none;
    background: none;
    font-size: inherit;
    color: var(--highlight-color);
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-field {
    background: none;
    border: none; 
    text-align: center;
    width: 2rem;
    color: var(--highlight-color);
    font-size: inherit;
    outline: none; 
}
.input-field::placeholder {
    color: var(--highlight-color);
    opacity: 1; 
}

/* Focus effect for inputs and dropdown */
.dropdown:focus, .input-field:focus {
    outline: none;
    border-bottom: 1px solid var(--highlight-focus); 
}

ul {
    font-size: var(--large-font-size);
}

/* Result section */
#resultSection {
    background-color: var(--result-background);
    border-radius: 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0;
    padding: 1rem;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#resultSection.show {
    opacity: 1;
    transform: translateY(0);
}
h1 {
    font-size: var(--heading-font-size);
    font-weight: 600;
    color: #F5F5F5; 
    margin-bottom: 1.5rem;
}

#resultSection h2 {
    font-size: 2rem;
    font-weight: 600; 
}

#resultSection p {
    font-size: var(--medium-font-size); 
    color: var(--text-color); 
}
#resultSection .highlight {
    color: var(--highlight-text); 
}

.result-footer {
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
}
ul li {
    font-size: 1.2rem;
}

/* Remove Spinner Controls */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

#shareMessage {
    color: var(--highlight-color);
    font-size: 1.1rem;
    margin-top: 10px;
}

.hidden {
    display: none;
}

@media (max-width: 667px) {
    :root{
        font-size: 16px;
    }

    .question {
        font-size: var(--large-font-size);
    }
    button {
        font-size: var(--medium-font-size);
    }
    #resultSection {
        font-size: var(--medium-font-size);
        padding: 1rem 3rem;
        margin: 1rem
    }

    .result-footer {
        font-size: var(--small-font-size);
    }
}