* {
    box-sizing: border-box;
}

:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --primary-color: #4CAF50;
    --container-background: #1e1e1e;
}

[data-theme="light"] {
    --background-color: #f0f2f5;
    --text-color: #333333;
    --primary-color: #4CAF50;
    --container-background: #ffffff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 4rem 0; /* Add padding for spacing */
    position: relative;
    box-sizing: border-box;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.container {
    background-color: var(--container-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    margin-bottom: 2rem;
}

h1 {
    margin-bottom: 2rem;
}

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

.number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: #45a049;
}

.contact-section {
    margin-top: 2rem;
    max-width: 500px;
}

.contact-section h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    font-weight: bold;
}

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

@media (max-width: 600px) {
    .container {
        width: 90%;
        margin: 10px;
    }
    
    .numbers-container {
    
        flex-wrap: wrap;
    
    }
    
    
    
    .label-container {
    
        margin-top: 1rem;
    
        text-align: left;
    
        width: 100%;
    
    }
    
    
    
    .prediction-item {
    
        margin-bottom: 1rem;
    
    }
    
    
    
    #webcam-container canvas {
    
        border-radius: 10px;
    
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    }
    
    
}
