:root {
  --background-color-light: #f0f2f5;
  --text-color-light: #333;
  --primary-color-light: #4CAF50;
  --white-light: #fff;
  --shadow-color-light: rgba(0, 0, 0, 0.1);

  --background-color-dark: #282c36;
  --text-color-dark: #e0e0e0;
  --primary-color-dark: #61dafb;
  --white-dark: #3a3f4a;
  --shadow-color-dark: rgba(0, 0, 0, 0.3);

  --background-color: var(--background-color-light);
  --text-color: var(--text-color-light);
  --primary-color: var(--primary-color-light);
  --white: var(--white-light);
  --shadow-color: var(--shadow-color-light);
}

[data-theme="dark"] {
  --background-color: var(--background-color-dark);
  --text-color: var(--text-color-dark);
  --primary-color: var(--primary-color-dark);
  --white: var(--white-dark);
  --shadow-color: var(--shadow-color-dark);
}

body {
    font-family: 'Georgia', serif; /* Changed font to Georgia for a classic feel */
    background-color: var(--background-color); /* Use CSS variable for background */
    color: var(--text-color); /* Use CSS variable for text color */
    text-align: center;
    padding: 2em;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme="light"] {
  background: linear-gradient(to right, #ffefba, #ffffff); /* Subtle gradient background */
}

body[data-theme="dark"] {
  background-image: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    radial-gradient(ellipse at top left,    #5a5a8a, transparent),
    radial-gradient(ellipse at top right,   #8a5a5a, transparent),
    radial-gradient(ellipse at bottom right, #5a8a5a, transparent),
    radial-gradient(ellipse at bottom left,  #8a8a5a, transparent);
}

header {
    margin-bottom: 2em;
    padding: 1em;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

h1 + p {
    font-style: italic;
    color: #666;
    font-size: 1.2em;
}

main {
    flex-grow: 1;
    width: 90%;
    max-width: 800px;
    padding: 2em;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin-top: 2em;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horoscope-selector {
    margin-bottom: 2.5em;
    padding: 1.5em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #007bff; /* A nice blue for secondary headings */
    font-size: 1.8em;
    margin-bottom: 1em;
}

#horoscope-select {
    padding: 0.8em;
    font-size: 1.1em;
    border-radius: 8px;
    border: 1px solid #aaddff;
    background-color: #e6f7ff;
    appearance: none; /* Remove default select styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.2%2011.6-1%2016.9l132.8%20140.2c4.1%204.3%209.6%206.5%2015.1%206.5s11-2.1%2015.1-6.5L287%2086.3c3.2-5.3%202.8-12-.9-16.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

#get-lucky-colour-btn {
    padding: 0.9em 1.8em;
    font-size: 1.1em;
    color: #fff;
    background: linear-gradient(to right, #cc0000, #ff5e00); /* Gradient button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#get-lucky-colour-btn:hover {
    background: linear-gradient(to right, #ff5e00, #cc0000);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.result-container {
    margin-top: 2em;
    padding: 2.5em;
    border: 2px dashed #ffd700; /* Golden dashed border for luck */
    border-radius: 12px;
    background-color: #fffaf0; /* Light cream background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-container h3 {
    color: #8b0000; /* Dark red for result heading */
    font-size: 2em;
    margin-bottom: 0.8em;
}

.result-container p {
    margin-bottom: 0.7em;
}

.result-container p strong {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.5em;
    }

    #horoscope-select,
    #get-lucky-colour-btn {
        display: block;
        width: calc(100% - 2em);
        margin: 1em auto;
    }

    #get-lucky-colour-btn {
        margin-left: auto;
        margin-right: auto;
    }

    main {
        width: 95%;
        padding: 1.5em;
    }

    .result-container {
        padding: 1.5em;
    }
}