:root {
    --bg-color: #f0f0f0;
    --container-bg: white;
    --text-color: #333;
    --button-bg: #4CAF50;
    --button-text: white;
    --button-hover-bg: #45a049;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --bg-color: #333;
    --container-bg: #444;
    --text-color: #f0f0f0;
    --button-bg: #5a5a5a;
    --button-hover-bg: #6a6a6a;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

.container {
    position: relative;
    text-align: center;
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: background-color 0.3s;
}

#menu-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0; /* Add margin to compensate for removed image */
}

#generate {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate:hover {
    background-color: var(--button-hover-bg);
}

/* The switch - the box around the slider */
.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
