body {
    position: relative;  
    height: 100vh;
    background: #2958e4;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    gap: 8px;
}


#timer {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#score{
    padding-top: 45px;


}

#highscore {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
}


label {
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
    cursor: pointer;
}

/* Paragraphs styling */
p {
    font-size: 1.8rem;
    margin: 10px 0;
}

#question {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

/* Buttons styling */
button {
    background-color: white;
    color: #2958e4;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Answer input styling */
#answer {
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    text-align: center;
    margin: 20px 0;
    width: 150px;
}

#answer:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Settings button positioning */
#settings {
    position: absolute;   
    bottom: 40px;        
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
}

/* Settings menu styling */
#settingsmenu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
}

#settingsmenu label {
    color: #333;
    display: block;
    margin-bottom: 10px;
}

#settingsmenu * {
    margin: 8px 0;
}
#stats {
    position: absolute;   
    bottom: 85px;        
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
}

#statsmenu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
}

#cumulative, #gamesplayed{
    color:black;


}

#statsmenu label {
    color: #333;
    display: block;
    margin-bottom: 10px;
}

#statsmenu * {
    margin: 8px 0;
}
#colorpicker {
    width: 100px;
    height: 40px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#cleardata {
    width: 100%;
    margin-top: 15px;
    background-color: #ff4444;
    color: white;
}

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

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    #question {
        font-size: 1.5rem;
    }
    #timer{
        margin-top: 60px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    #settingsmenu {
        width: 80%;
        min-width: auto;
    }
    #statsmenu {
        width: 80%;
        min-width: auto;
    }
}