body_tod { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: #1e1e1e; color: #c0c0c0; } .menu_1_tod { display: flex; justify-content: center; align-items: center; background-color: #282828; padding: 10px 0; margin: 0; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); flex-wrap: wrap; /* Enables wrapping */ } .menu_1_tod ul { display: flex; justify-content: center; padding: 0; margin: 0; flex-wrap: wrap; /* Enables wrapping */ } .menu_1_tod li { list-style-type: none; padding: 12px 20px; margin: 0 10px; color: #ddd; cursor: pointer; background-color: #3a3a3a; border-radius: 6px; transition: background-color 0.3s, transform 0.2s; } .menu_1_tod li:hover { background-color: #555; transform: translateY(-2px); } .challenge_1_tod { display: none; position: relative; top: 20px; background-color: #333; color: #ddd; padding: 15px; border-radius: 10px; box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5); text-align: center; max-width: 90%; word-wrap: break-word; margin: 20px auto; display: flex; align-items: center; justify-content: center; } .challenge_1_tod img { border-radius: 50%; margin-right: 15px; width: 40px; height: 40px; } .challenge_1_tod .text_tod { font-size: 16px; line-height: 1.4; } @media (max-width: 768px) { .menu_1_tod li { padding: 10px 15px; font-size: 14px; } .challenge_1_tod .text_tod { font-size: 14px; } } @media (max-width: 500px) { .menu_1_tod { flex-direction: column; /* Stack menu items vertically */ } .menu_1_tod ul { flex-direction: column; /* Stack menu items vertically */ } .menu_1_tod li { padding: 10px 15px; font-size: 14px; margin: 5px 0; /* Add spacing between items */ width: 100%; /* Make items full width */ text-align: center; /* Center the text */ } .challenge_1_tod .text_tod { font-size: 14px; } }