/* General Body Styles and Centering */
body {
    font-family: Arial, sans-serif; /* A clear, readable font */
    display: flex; /* Use flexbox to easily center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh; /* Full viewport height */
    margin: 0;
    background-color: #f0f0f0; /* Light background */
}

/* The Main Purple Card Container */
.card {
    width: 350px; /* Set a fixed width for the card */
    padding: 30px;
    background-color: #A379D4; /* A shade of purple */
    border: 4px solid #4A3366; /* Darker border for a retro look */
    border-radius: 12px;
    box-shadow: 8px 8px 0px 0px #4A3366; /* Shadow to make it pop */
    text-align: center;
    color: white;
}

/* Title Styling */
.title {
    font-size: 1.8em;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Sparkle Decoration */
.sparkle {
    font-size: 3em;
    color: #FFC300; /* Yellow for the sparkle */
    margin-bottom: 20px;
    line-height: 0.5; /* Reduce space above/below the asterisk */
}

/* Form Layout */
#countdownForm {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between input group and button */
}

/* Input Group (Label and Field) */
.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Input Field Styling */
.input-group input {
    width: 100%;
    padding: 10px;
    border: 3px solid #4A3366;
    box-sizing: border-box; /* Include padding/border in the element's total width */
    font-size: 1.1em;
    text-align: center;
}

/* Start Countdown Button Styling */
.start-button {
    background-color: #FFC300; /* Yellow background */
    color: #4A3366; /* Dark purple text */
    padding: 12px 20px;
    border: 3px solid #4A3366;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    box-shadow: 4px 4px 0px 0px #4A3366; /* Button shadow */
}

/* Button Hover Effect */
.start-button:hover {
    background-color: #FFD700; /* Lighter yellow on hover */
}

/* Countdown Display Area */
.countdown-result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #FFC300;
}