:root {
    --cor-fundo: #fffdd0;
    --cor-dark: #333;
    --cor-toggle-fundo: #5a5a5a;
}
body.dark {
    --cor-fundo: #1d1b1b;
    --cor-dark: #333;
    --cor-toggle-fundo: #7e7c7c;
    
}
body {
    background-color: var(--cor-fundo);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 147px;
    height: 64px;
    cursor: pointer;   
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cor-toggle-fundo);
    transition: .4s;
    border-radius: 40px;
    border: 2px solid var(--cor-dark);
}
.slider:before {
    position: absolute;
    content: "";
    height: 54px;
    width: 54px;
    left: 3px;
    bottom: 3px;
    top: 3px;
    background-image: url('assets/icons/Sol.png');
    background-size: cover;
    border-radius: 50%;
    transition: 0.6s;
}
input:checked + .slider {
    background-color: var(--cor-toggle-fundo);
    transition: 0.6s;
}
input:checked + .slider:before {
    background-image: url('assets/icons/Lua.png');
    transform: translateX(80px) rotate(270deg);
    transition: 0.6s;
}
