/* Sets the font for the entire body, providing a comfortable reading size */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Styles the header with a vibrant color and centers the text */
header {
    display: flex; /* Align items horizontally */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items in the container */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-family:Arial, Helvetica, sans-serif; 
}

h3 {
  color: lightgray; 
  font-size: 20px; 
  margin-top: 30px; 
}

p {
  color: lightgray; 
}
/* Adds spacing around our main container for better layout */
.raffle-container {
    padding: 20px;
    max-width: 600px;
    margin: auto;
    border: 1px solid rgb(247, 245, 245); 
    margin-top: 20px; 
}


/* Styles the form inputs and submit button to be more visually appealing */
#entryForm input[type="text"] {
    margin-right: 10px;
    padding: 10px;
    border: 2px solid #26a7de; 
    margin-bottom: 10px; 
}

#entryForm button {
    padding: 10px 20px;
    background-color: #26a7de;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}


/* Adds hover effect to our form submit button to indicate interactivity */
#entryForm button:hover {
    background-color: #33c9f3;
}

/* Styles the participant list to differentiate from the rest of the content */
#participants {
    background-color: rgb(250, 250, 250);
    padding: 10px;
    margin-top: 20px;
    color: #2296c7; 
}

/* Styles the individual participant list items */
#participantsList li {
    list-style: none;
    padding: 5px;
    border-bottom: 1px solid #26a7de;
}

/* Styles the 'Draw' button when it's disabled */
#drawButton:disabled {
    padding: 10px 20px;
    background-color: lightgray;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 10px;
}

/* Styles the 'Draw' button when it's enabled */
#drawButton:enabled {
    padding: 10px 20px;
    background-color: #26a7de;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 10px; 
}

/* Adds a hover effect to the 'Draw' button to indicate interactivity */
#drawButton:enabled:hover {
    background-color: #51b8e4;
}

/* Hides the winner display by default, to be shown after the draw */
#winnerDisplay {
    display: none;
    margin-top: 20px;
    text-align: center;
    color: #2296c7; 
}

/* ... existing CSS code ... */

/* Styles the 'Reset' button similarly to the 'Draw' button */
#resetButton {
    padding: 10px 20px;
    background-color: #26a7de; /* Matching the Draw button color */
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px; /* Consistent with Draw button margin */
    margin-left: 10px; /* Adds a little space between the buttons */
    display: none; /* Hidden by default, shown after draw */
    border-radius: 10px; 
}

/* Adds a hover effect to the 'Reset' button to indicate interactivity */
#resetButton:hover {
    background-color: #51b8e4; /* Lighter blue on hover, for interactivity */
}

.material-icons {
    vertical-align: middle;
    font-size: 50px; /* Adjust size as needed */
    padding-right: 10px; /* Adds some space between the icon and the text */
}


/* ... existing CSS code ... */

/* Styles for the gender radio buttons */
input[type="radio"] {
    margin-right: 5px;
      margin-bottom: 20px; 
      accent-color: lightblue; 
}
    


/* Styles for the grade level dropdown */
select {
    margin-right: 10px;
    padding: 5px;
    margin-bottom: 20px; 
}




 

/* Label styles for radio buttons */
label {
    margin-right: 20px; /* Space between the radio button labels */
    font-weight: normal; /* Normal font weight */
}

/* Simpler dropdown styles */
select {
    background-color: white; /* White background */
    color: #333; /* Dark text */
    padding: 5px; /* Padding inside the dropdown */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Clickable cursor style */
    line-height: 1.5; /* Space between lines */
    font-size: 1em; /* Relative font size */
}

/* Style the focus state of the inputs for accessibility */
/* input:focus,
select:focus,
button:focus {
    outline: 2px solid #26a7de; /* Blue outline to show focus }*/

 /* Styles for the gender distribution bars */
.genderBar {
  height: 30px;
  color: white;
  text-align: center;
  line-height: 30px; /* Vertically center the text in the bar */
  margin-bottom: 5px;
  transition: width 0.5s; /* Smooth transition for width changes */
}


.gradeBar {
  height: 30px;
  color: white;
  text-align: center;
  line-height: 30px;
  margin-bottom: 5px;
  transition: width 0.5s;
}

#genderChartContainer {
  border: 1px solid lightblue; 
  padding: 0px 10px 10px 10px;  
  border-radius: 20px; 
  margin-bottom: 20px; 
}

#gradeChartContainer {
  border: 1px solid lightblue; 
  padding: 0px 10px 10px 10px;  
  border-radius: 20px; 
}