@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --bg-color: #f4f4f9;
    --container-bg-color: #ffffff;
    --text-color: #333333;
    --button-bg-color: #4CAF50;
    --button-hover-bg-color: #45a049;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg-color: #2d2d2d;
    --text-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to allow scrolling */
    min-height: 100vh; /* Changed from height to min-height */
    padding: 2rem 0;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

.container {
    background-color: var(--container-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--shadow-color), 0 6px 6px var(--shadow-color);
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    position: relative;
    width: 90%;
    max-width: 600px; /* Set a max-width for better layout with Disqus */
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

h1 {
    margin-bottom: 2rem;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#generate-btn {
    background-color: var(--button-bg-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#generate-btn:hover {
    background-color: var(--button-hover-bg-color);
    box-shadow: 0 0 10px var(--button-bg-color), 0 0 20px var(--button-bg-color), 0 0 30px var(--button-bg-color);
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    .number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    #generate-btn {
        padding: 0.8rem 1.5rem;
    }
}

.contact-section {
    margin-top: 2rem;
    padding-top: 1rem;
}

.contact-section hr {
    border: none;
    border-top: 1px solid var(--shadow-color);
    margin-bottom: 1.5rem;
}

.contact-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-section input, 
.contact-section textarea {
    padding: 0.8rem;
    border: 1px solid var(--shadow-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-section input:focus, 
.contact-section textarea:focus {
    outline: none;
    border-color: var(--button-bg-color);
}

.contact-section textarea {
    min-height: 100px;
    resize: vertical;
}

#submit-btn {
    background-color: var(--text-color);
    color: var(--container-bg-color);
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

#submit-btn:hover {
    opacity: 0.8;
}
