.intro {
  text-align: center; 
  font-size: 1.1rem;
  margin: 10px auto 20px auto;
  max-width: 600px;
  color: #eeebf3; 
}

header, main {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

@media (max-width: 600px) {
  #draw-canvas {
    width: 100% !important;
    height: 250px !important;
  }
  .art-card img {
    width: 100% !important;
  }
  nav {
    flex-direction: column;
    gap: 5px;
  }
}

body {
  background: url('https://static.vecteezy.com/system/resources/thumbnails/028/858/117/small/3d-render-of-modern-art-gallery-interior-with-paintings-on-the-wall-ai-generated-free-photo.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #4e459e;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin-top: 20px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

button {
  padding: 8px 16px;
  border: none;
  background: #4a90e2;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

button:hover {
  background: #010203;
}

#gallery-section, #create-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

#add-artwork-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#add-artwork-form input,
#add-artwork-form button {
  padding: 8px;
  font-size: 1rem;
}

#search {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#artwork-list {
  display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.art-card {
  background: rgba(250, 250, 250, 0.85);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  width: 220px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s
}

.art-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.03);
}

button, input[type="color"] {
  border-radius: 4px;
  outline: none;
}

button:focus, input:focus {
  box-shadow: 0 0 0 2px #4a90e255;
}

footer {
  text-align: center;
  padding: 20px 0;
  color: #888;
  font-size: 0.95rem;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.art-card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

.art-card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.1rem;
}

.art-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

#draw-canvas {
  display: block;
  margin: 20px auto;
  background: #fff;
  border: 2px solid #4a90e2;
  border-radius: 8px;
}

.dark-theme {
  background: #181818;
  color: #f4f4f4;
}

.dark-theme #gallery-section,
.dark-theme #create-section {
  background: #232323;
  color: #f4f4f4;
}

.dark-theme .art-card {
  background: #222;
  border-color: #333;
  color: #f4f4f4;
}

.dark-theme button {
  background: #222;
  color: #f4f4f4;
  border: 1px solid #4a90e2;
}

.dark-theme button:hover {
  background: #4a90e2;
  color: #fff;
}
