body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: 100vh;
    overflow: auto;
}

.container {
    background-color: #ccc;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.winning-number,
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.number {
    width: 20px;
    /* Smaller width */
    height: 20px;
    /* Smaller height, keeps circular shape */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 20px;
    /* Adjusted line height to match new height */
    background-color: white;
    color: black;
    margin: 2px;
    /* Reduced margin */
    font-size: 10px;
    /* Smaller font size to fit in the smaller circle */
}

.number.powerball {
    background-color: transparent;
    border: 2px solid blue;
    /* Thinner border to fit smaller size */
}

.button {
    background-color: blue;
    color: white;
    border: none;
    padding: 5px 10px;
    /* Smaller padding */
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    /* Smaller font size */
}

.tickets-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    /* Utilize full available width */
    overflow-y: auto;
}

.ticket {
    width: calc(10% - 6px);
    /* Significantly smaller ticket size */
    min-width: 80px;
    /* Smaller minimum width */
    padding: 2px;
    /* Reduced padding */
    margin: 2px;
    /* Reduced margin */
    background-color: #f2f2f2;
    color: #333;
    border-radius: 4px;
    /* Smaller border radius */
    display: flex;
    justify-content: space-around;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.match {
    background-color: green;
    color: white;
}

.money-spent {
    color: rgb(255, 0, 0);
    font-size: 16px;
    padding: 5px 5px;
    /* Padding to match button styling */
    margin: 10px;
    /* Full width inside the container minus padding */
    text-align: center;
    /* Center the text */
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.title,
.subtitle {
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin-bottom: 20px;
}

.title {
    font-size: 48px;
    color: #ff5722;
    /* Orange color */
}

.subtitle {
    font-size: 24px;
    color: #333;
    /* Dark gray color */
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Use full view height to center content vertically */
}

.text-above {
    margin-bottom: 10px;
    /* Spacing between text and toggle */
}

.switch {
    position: relative;
    display: inline-block;
    width: 100px;
    /* Adjusted for better text fit */
    height: 35px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    border: 1px solid blue;
}

.label-text {
    color: red;
    font-size: 12px;
    /* Small text size for visibility */
    pointer-events: none;
    /* Prevents interaction directly with the text */
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: blue;
}

input:checked+.slider:before {
    transform: translateX(66px);
    /* Adjusted for new slider width */
}

input:checked+.slider .label-text {
    order: -1;
    /* Switch text order when checked */
}

.slider:active:before {
    width: 32px;
}




@media (max-width: 600px) {
    .ticket {
        width: calc(20% - 6px);
        /* Allow more space for each ticket on smaller screens */
    }
}