/* File: style.css
   Path: /style.css
   Canvas ID: 6888406714008191830f811d53f217fa */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0e6fa;
  color: #333;
}

header {
  background-color: #8a2be2;
  color: white;
  text-align: center;
  padding: 1em;
  position: relative;
  overflow: hidden;
}

.site-logo {
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

nav {
  background-color: #9370db;
  padding: 0.5em;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

.candy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 2em;
}

.candy-item {
  background-color: white;
  border-radius: 10px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.candy-item:hover {
  transform: translateY(-5px);
}

.candy-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.cta-button {
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 0.5em 1em;
  font-size: 1.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #ff1493;
}

footer {
  background-color: #8a2be2;
  color: white;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}

.magic-sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
