body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #333; /* Default text color */
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
    background: linear-gradient(135deg, #3b3b3b, #1a1a1a); /* Dark mode background */
    color: #f5f5f5; /* Light color for dark mode text */
}

.dark-mode .container {
    background-color: #333333cc; /* Darker background for container in dark mode */
    color: #f5f5f5; /* Light color for text inside the container */
}

.dark-mode button {
    background-color: #555;
}

.dark-mode .intro, .dark-mode .instructions, .dark-mode .info,
.dark-mode h1, .dark-mode h2, .dark-mode p, .dark-mode li {
    color: #f5f5f5; /* Ensure text elements are light in dark mode */
}

.container {
    text-align: center;
    background-color: #ffffffcc;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

input, button {
    padding: 10px;
    margin: 10px 5px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.results p {
    font-size: 1.2em;
    margin: 8px 0;
}

.intro, .instructions, .info {
    margin: 15px 0;
    color: #333;
    line-height: 1.5;
}

.instructions {
    list-style: decimal inside;
}

.info {
    margin: 10px 0;
    font-style: italic;
}

h2 {
    color: #444;
    font-size: 1.4em;
    margin-top: 20px;
}
