
body {
    
    background-size: cover; 
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* background-image: url("Images/numeroita.jpg"); */
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 192, 203); 
    padding: 10px; 
    position: relative;
    flex-direction: column;
}

nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;         
    gap: 20px;             
    justify-content: center;  
    align-items: center;     
}
nav ul li {
    display: inline-block;    
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    padding: 8px 12px; 
    border-radius: 5px;
    background-color: #f5f5dc; 
    transition: background-color 0.3s;
    font-family: 'Comic Sans MS', cursive, sans-serif; 
}

nav ul li a:hover {
    background-color: rgba(255, 192, 203);
}

    

h1 {
    margin: 0;
    font-size: 2em;
    font-family: 'Great Vibes', cursive;
    text-align: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 192, 203);
    text-align: center;
    padding: 5px 8px; /* pienempi */
    font-size: 0.9em;
}


.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #f5f5dc;
    color: #333;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.dropbtn:hover {
    background-color: yellow;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: yellow;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 1em;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgb(238, 137, 228);
}


.dropdown:hover .dropdown-content {
    display: block;
}
.info-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5dc;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.info-btn:hover {
    background-color: yellow;
}

main {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    max-width: 600px;
    margin: 40px auto;
}
main h1 {
    font-size: 42px;
    font-family: 'Comic Sans MS', cursive;
    margin-bottom: 25px;
    color: #000000;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

#answers button {
    font-size: 22px;
    padding: 14px 28px;
    border-radius: 12px;
    margin: 5px;
    border: 3px solid #333;
    background: linear-gradient(135deg, #A0E7E5, #79C7C5);
    cursor: pointer;
    transition: 0.25s;
}

#answers button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #79C7C5, #A0E7E5);
}

.next-question-btn,
#restart-btn {
    font-size: 24px;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 12px;
    border: 3px solid #333;
    background: linear-gradient(135deg, #ffb3e6, #ff66cc);
    cursor: pointer;
    transition: 0.25s;
}

.next-question-btn:hover,
#restart-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff66cc, #ffb3e6);
}

#feedback {
    font-size: 22px;
    font-weight: 800;
    margin-top: 20px;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}
#question {
    text-align: center;
    width: 100%;
    font-size: 2.2em;
    font-weight: bold;
    color: #000000;
    margin-top: 50px;
}
#score {
    font-size: 2.0em;
    font-weight: bold;
    text-align: center;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


