* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #333; /* Dark mode background */
    color: #f0f0f0; /* Dark mode text color */
    transition: background-color 0.3s, color 0.3s;
}

h1 {
    color: inherit;
}

button {
    width: 100px; /* Set the width of the button */
    height: 100px; /* Set the height of the button */
    border-radius: 50%; /* Make the button circular */
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* Remove padding to make sure the content is centered */
    margin-top: 20px;
}

.result {
    margin-top: 20px;
    font-size: 24px;
    color: #1e90ff; /* Dark mode color */
}

.result a {
    color: #1e90ff; /* Dark mode color */
    text-decoration: none;
}

.toggle-button {
    font-size: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 20px;
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    width: 80px; /* Set the width of the button */
    height: 50px; /* Set the height of the button */
    border-radius: 5%; /* Make the button circular */
}

.paragraph {
    margin-top: 20px;
    font-size: 18px;
    max-width: 600px;
    text-align: center;
}

.bottomleft {
    font-size: 10px;
    position: fixed; /* Change from absolute to fixed to keep it at the bottom left of the viewport */
    bottom: 5px;
    left: 5px;
    z-index: 3; /* Increase z-index if necessary to ensure it's above other elements */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for better visibility */
    color: white; /* Ensure text color is white for contrast */
    padding: 2px; /* Add some padding for better appearance */
    border-radius: 2px; /* Optional: Add border radius for smoother edges */
}

.bottomleft a {
    color: white; /* Ensure links are white for better visibility */
    text-decoration: none; /* Remove underline for cleaner look */
}

.bottomleft a:hover {
    text-decoration: underline; /* Add underline on hover for better UX */
}

@keyframes fall {
    0% { transform: translateY(-100vh); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.falling-word {
    position: fixed; /* Use fixed positioning */
    top: -50px; /* Start just above the top of the viewport */
    left: 30%; /* Center horizontally */
    transform: translateX(-50%); /* Center the text */
    text-align: center;
    animation: fall 3s ease-in-out; /* Ensure duration is set correctly */
}

.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

.light-mode .result {
    color: #007BFF;
}

.light-mode .result a {
    color: #007BFF;
}
