/* Add these styles at the beginning of your CSS file */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#content {
    position: relative;
    z-index: 1;
    background-color: rgba(12, 12, 12, 0.5); /* 50% opacity */
    height: 95%;
    overflow: hidden;
    border: 1px solid #0ff;
    border-radius: 30px;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    color: #fff;
    max-width: 810px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c0c0c;
}

header {
    background: linear-gradient(to right, #000, #001a1a);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10; /* Ensure header is above other elements */
}

h1 {
    margin: 0;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

main {
    background-color: #11111100;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    overflow-y: auto; /* Add this line */
    max-height: calc(100vh - 200px); /* Add this line */
    scrollbar-width: thin;
    scrollbar-color: #0ff rgba(0, 255, 255, 0.1);
    flex: 1;
    padding-top: 80px; /* Adjust this value based on your header height */
}

h2 {
    color: #f0f;
    border-bottom: 2px solid #f0f;
    padding-bottom: 10px;
    text-shadow: 0 0 5px #f0f, 0 0 10px #f0f;
}

/* Form Styles */
form {
    display: grid;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #0ff;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #0ff;
    border-radius: 4px;
    font-size: 16px;
    background-color: #000;
    color: #fff;
    box-shadow: 0 0 5px #0ff;
}

button {
    background-color: #f0f;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #f0f;
    box-shadow: 0 0 10px #f0f;
}

button:hover {
    background-color: #ff00ff;
    box-shadow: 0 0 15px #f0f, 0 0 25px #f0f;
}

/* Results Section */
#results {
    margin-top: 20px;
}

#prediction-output {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #001a1a;
    border: 1px solid #0ff;
    border-radius: 4px;
    padding: 15px;
    margin: 40px 20px;
    box-shadow: 0 0 10px #0ff;
    font-size: 48px;
    font-weight: bold;
    color: #0ff;
    text-shadow: 0 0 5px #00ff04, 0 0 10px #59ff00, 0 0 1px #00ffff;
    letter-spacing: 1px;
    text-align: center;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 20px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    form {
        grid-template-columns: 1fr;
    }
}

/* Interactive Elements */
input[type="number"]:focus {
    outline: none;
    border-color: #f0f;
    box-shadow: 0 0 10px #f0f;
}

button:active {
    transform: scale(0.98);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    button, input {
        transition: none;
    }
}

/* Custom Scrollbar Styles */
main::-webkit-scrollbar {
    width: 12px;
}

main::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: #0ff;
    border-radius: 10px;
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

main::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

/* Add these new styles for login and signup forms */
#login-form, #signup-form {
    max-width: 400px;
    margin: 0 auto;
}

#login-form input, #signup-form input {
    width: 95%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #0ff;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    box-shadow: 0 0 5px #0ff;
}

#login-form button, #signup-form button {
    width: 100%;
    padding: 10px;
    background-color: #f0f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #f0f;
    box-shadow: 0 0 10px #f0f;
}

#login-form button:hover, #signup-form button:hover {
    background-color: #ff00ff;
    box-shadow: 0 0 15px #f0f, 0 0 25px #f0f;
}

#login-form p, #signup-form p {
    text-align: center;
    margin-top: 20px;
}

#login-form a, #signup-form a {
    color: #0ff;
    text-decoration: none;
}

#login-form a:hover, #signup-form a:hover {
    text-decoration: underline;
}

/* Add styles for the navigation */
nav {
    display: flex;
    gap: 10px;
}

nav a {
    color: #0ff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 11; /* Ensure buttons are above other elements */
    position: relative;
}

nav a:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #f0f, 0 0 10px #f0f;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 50px 0;
}

#hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f0f;
    text-shadow: 0 0 10px #f0f, 0 0 20px #f0f;
}

#hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
#features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 0;
}

.feature {
    text-align: center;
    width: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}

.feature i {
    font-size: 3em;
    color: #0ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

.feature h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #f0f;
}

/* Call to Action Section */
#cta {
    text-align: center;
    padding: 50px 0;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 30px;
}

#cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f0f;
}

#cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 11; /* Ensure buttons are above other elements */
    position: relative;
}

.btn-primary {
    background-color: #f0f;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #0ff;
    border: 2px solid #0ff;
}

.btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    #features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 80%;
    }
}

/* Add these new styles for enhanced login and signup forms */
.form-container {
    max-width: 300px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0ff;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #0ff;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f0f;
    box-shadow: 0 0 10px #f0f;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
    margin-top: 1rem;
}

/* Enhance existing styles */
body {
    background: linear-gradient(45deg, #000033, #000066);
}

#content {
    backdrop-filter: blur(10px);
    border: 2px solid #0ff;
}

header {
    background: linear-gradient(to right, #000, #001a1a);
}


.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.btn:hover::before {
    left: 100%;
}

/* Add a pulsating effect to the main heading */
@keyframes pulse {
    0% {
        text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    }
    50% {
        text-shadow: 0 0 20px rgb(0, 255, 8), 0 0 30px rgb(0, 255, 115), 0 0 40px rgb(0, 255, 60);
    }
    100% {
        text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    }
}

h1 {
    animation: pulse 2s infinite;
}

/* Add hover effects to form inputs */
.form-group input:hover {
    border-color: #f0f;
}

/* Style form icons */
.form-group label i {
    margin-right: 0.5rem;
    color: #f0f;
}

/* Add transitions to all interactive elements */
a, button, input {
    transition: all 0.3s ease;
}

/* Enhance footer styling */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}
