
:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #007bff;
    --text-color: #333;
    --bg-color: #fff;
    --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: #f0f0f0;
}

header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

main {
    padding: 2rem;
}

#upload-section {
    margin-bottom: 2rem;
    text-align: center;
}

#file-input {
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

art-piece {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

art-piece:hover {
    transform: translateY(-5px);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

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

.theme-switch input {
    display: none;
}

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

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

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

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

.slider.round {
    border-radius: 34px;
}

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

body.dark-mode {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
    --accent-color: #3498db;
    --text-color: #ecf0f1;
    --bg-color: #34495e;
}
