:root {
    --background-color: #f0f2f5;
    --container-background: white;
    --text-color: #333;
    --button-background: #007aff;
    --button-hover: #0056b3;
    --button-shadow: rgba(0, 122, 255, 0.4);
    --button-shadow-hover: rgba(0, 122, 255, 0.6);
}

html[data-theme='dark'] {

    --background-color: #121212;

    --container-background: #1e1e1e;

    --text-color: #e0e0e0;

    --button-background: #007aff;

    --button-hover: #0056b3;

    --button-shadow: rgba(0, 122, 255, 0.4);

    --button-shadow-hover: rgba(0, 122, 255, 0.6);

    --background-gradient: linear-gradient(135deg, #121212 0%, #2c3e50 100%);

}



body {

    font-family: 'Helvetica Neue', sans-serif;

    background-color: var(--background-color);

    background-image: var(--background-gradient, none);

    display: flex;

    justify-content: center;

    align-items: center;

    height: 100vh;

    margin: 0;

    transition: background-color 0.3s ease;

}



.theme-switcher {

    position: absolute;

    top: 20px;

    right: 20px;

    display: flex;

    align-items: center;

}



/* New Toggle Switch Styles */

#theme-toggle {

    display: none;

}



#theme-toggle + label {

    display: inline-block;

    width: 60px;

    height: 34px;

    position: relative;

    cursor: pointer;

}



#theme-toggle + label:before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: #ccc;

    border-radius: 34px;

    transition: background-color 0.2s;

}



#theme-toggle + label:after {

    content: '';

    position: absolute;

    top: 2px;

    left: 2px;

    width: 30px;

    height: 30px;

    background-color: white;

    border-radius: 50%;

    transition: transform 0.2s;

}



#theme-toggle:checked + label:before {

    background-color: #007aff;

}



#theme-toggle:checked + label:after {

    transform: translateX(26px);

}

/* End of New Toggle Switch Styles */



.container {

    text-align: center;

    background: var(--container-background);

    padding: 40px;

    border-radius: 16px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    transition: background-color 0.3s ease;

    color: var(--text-color);

}



h1 {

    margin-bottom: 30px;

    color: var(--text-color);

    font-size: 2em;

}



.numbers-container {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-bottom: 40px;

}



.number-ball {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 1.5em;

    font-weight: bold;

    color: white;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    transition: transform 0.3s ease;

}



.number-ball:hover {

    transform: translateY(-5px);

}



#generate-button, .button {

    background-color: var(--button-background);

    color: white;

    border: none;

    padding: 15px 30px;

    font-size: 1.2em;

    border-radius: 8px;

    cursor: pointer;

    transition: background-color 0.3s ease, box-shadow 0.3s ease;

    box-shadow: 0 2px 5px var(--button-shadow);

    text-decoration: none;

    display: inline-block;

    margin-top: 10px;

}



#generate-button:hover, .button:hover {

    background-color: var(--button-hover);

    box-shadow: 0 4px 10px var(--button-shadow-hover);

}



#comments-button {

    background-color: #28a745; /* Green */

}



#comments-button:hover {

    background-color: #218838;

}



/* Modal styles */

.modal {

    display: none;

    position: fixed;

    z-index: 1000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    overflow: auto;

    background-color: rgba(0,0,0,0.5);

}



.modal.is-active {

    display: flex;

    justify-content: center;

    align-items: center;

}



.modal-content {

    background-color: var(--container-background);

    padding: 20px;

    border: 1px solid #888;

    width: 80%;

    max-width: 800px;

    border-radius: 16px;

    position: relative;

    color: var(--text-color);

}



.close-button {

    color: #aaa;

    position: absolute;

    top: 10px;

    right: 25px;

    font-size: 28px;

    font-weight: bold;

}



.close-button:hover,

.close-button:focus {

    color: var(--text-color);

    text-decoration: none;

    cursor: pointer;

}


