@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --bg-light: #F0F8FF;
    --container-bg-light: white;
    --text-light: #333;
    --primary-btn-light: #FFC0CB;
    --btn-text-light: #333;

    --bg-dark: #2c3e50;
    --container-bg-dark: #34495e;
    --text-dark: #ecf0f1;
    --primary-btn-dark: #e74c3c;
    --btn-text-dark: white;
}

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

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    background-color: var(--container-bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

body.dark-mode .container {
    background-color: var(--container-bg-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.instruction-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

body.dark-mode .instruction-text {
    color: var(--text-dark);
}

h1 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

body.dark-mode h1 {
    color: var(--text-dark);
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    color: var(--btn-text-light);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-btn-light);
    margin-bottom: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode button {
    background-color: var(--primary-btn-dark);
    color: var(--btn-text-dark);
}

#food-display {
    margin-top: 1.5rem;
}

#food-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#food-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Theme switcher */
.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

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

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

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

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