:root {
    --background-color: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
    --text-color: #333;
    --lotto-generator-bg: white;
    --lotto-generator-shadow-1: rgba(0, 0, 0, 0.1);
    --lotto-generator-shadow-2: rgba(0, 0, 0, 0.05);
    --lotto-generator-hover-shadow-1: rgba(0, 0, 0, 0.15);
    --lotto-generator-hover-shadow-2: rgba(0, 0, 0, 0.1);
    --lotto-h2-color: #333;
}

[data-theme="dark"] {
    --background-color: linear-gradient(135deg, #2c3e50, #34495e);
    --text-color: #f5f5f5;
    --lotto-generator-bg: #3b4b5e;
    --lotto-generator-shadow-1: rgba(0, 0, 0, 0.3);
    --lotto-generator-shadow-2: rgba(0, 0, 0, 0.2);
    --lotto-generator-hover-shadow-1: rgba(0, 0, 0, 0.4);
    --lotto-generator-hover-shadow-2: rgba(0, 0, 0, 0.3);
    --lotto-h2-color: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
  color: var(--text-color);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill-opacity="0.2"><rect fill="hsl(45, 50%, 80%)" width="800" height="800"/><circle fill="hsl(65, 50%, 80%)" cx="400" cy="400" r="300"/><circle fill="hsl(85, 50%, 80%)" cx="400" cy="400" r="200"/><circle fill="hsl(105, 50%, 80%)" cx="400" cy="400" r="100"/></g></svg>');
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

[data-theme="dark"] body::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill-opacity="0.1"><rect fill="hsl(210, 20%, 30%)" width="800" height="800"/><circle fill="hsl(230, 20%, 30%)" cx="400" cy="400" r="300"/><circle fill="hsl(250, 20%, 30%)" cx="400" cy="400" r="200"/><circle fill="hsl(270, 20%, 30%)" cx="400" cy="400" r="100"/></g></svg>');
}

lotto-generator {
  display: block;
  background-color: var(--lotto-generator-bg);
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--lotto-generator-shadow-1), 0 15px 15px var(--lotto-generator-shadow-2);
  padding: 30px 40px;
  transition: all 0.3s ease-in-out;
  width: 90%;
  max-width: 500px;
}

lotto-generator:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--lotto-generator-hover-shadow-1), 0 20px 20px var(--lotto-generator-hover-shadow-2);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--lotto-generator-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

h2 {
    color: var(--lotto-h2-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -1px;
}
