* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Full screen setup */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: white;
transition: background-color 0.5s ease;
}
/* Container for the toggle button */
.container {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.7);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
/* Toggle button styling */
.toggle-button {
width: 100px;
height: 50px;
background-color: #ccc;
border-radius: 50px;
padding: 5px;
display: flex;
align-items: center;
cursor: pointer;
position: relative;
transition: background-color 0.5s ease;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}
/* Circle inside the toggle */
.toggle-circle {
width: 40px;
height: 40px;
background-color: white;
border-radius: 50%;
position: absolute;
top: 5px;
left: 5px;
transition: all 0.5s ease;
}
/* Dark mode background */
body.dark {
background-color: black;
}
/* Dark mode toggle button */
body.dark .toggle-button {
background-color: #555;
}
/* Dark mode toggle circle */
body.dark .toggle-circle {
background-color: black;
left: 55px;
}