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

h1 {
    color: #333;
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
    animation: fadeIn 1s ease-in-out;
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode h1 {
    color: #fff;
}

.dark-mode p {
    color: #ccc;
}

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

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

.dark-mode-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dark-mode-toggle:hover {
    background-color: #0056b3;
}

.title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.dark-mode .title {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(var(--start-rotation));
    }
    to {
        transform: rotate(calc(var(--start-rotation) + 360deg));
    }
}

.spinning-text {
    position: absolute;
    color: #007bff;
    animation: spin linear infinite;
    --start-rotation: 0deg;
}

.dark-mode .spinning-text {
    color: #2e778f;
}

.spinning-text-1 {
    top: 30%;
    left: 3%;
    font-size: 16px;
    animation-duration: 8s;
    --start-rotation: 45deg;
}

.spinning-text-2 {
    top: 30%;
    right: 15%;
    font-size: 18px;
    animation-duration: 12s;
    --start-rotation: 90deg;
}

.spinning-text-3 {
    bottom: 20%;
    left: 25%;
    font-size: 14px;
    animation-duration: 10s;
    --start-rotation: 135deg;
}

.spinning-text-4 {
    bottom: 10%;
    right: 30%;
    font-size: 20px;
    animation-duration: 15s;
    --start-rotation: 180deg;
}
