/* General Styles */
body, html {
    width: 100%;           /* Add this */
    margin: 0;            /* Add this to remove default gaps */
    height: 100%; 
    display: flex;
    justify-content: center; 
    align-items: center;    
    background-color: #222;  
    overflow-x: hidden;
    font-family: 'Fira Code', monospace;
}



h1, h2, h3 {
    margin: 0;
}

a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header nav {
    position: absolute; 
    top: 0; /* Corrected from 'top: 10' to 'top: 0' */
    left: 0;
    right: 0;
    height: 70px; /* Adjust height as needed */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Ensure visibility */
    z-index: 1000; /* Keep it above other elements */
}

header nav ul {
    list-style: none;
    margin: 10px;
    padding: 10px;
    text-align: center;
}

header nav ul li {
    display: inline-block;
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #ffcc00;
}

#canvas {
    position: fixed; /* Fixes the canvas in the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
}
/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

footer p {
    margin: 0;
    text-align: center;
}

/* Container Styles */
.container {
    width: 400px;         /* Change this number to whatever width you want */
    /* OR use a percentage if you want it to scale: width: 80%; */
    
    background-color: #333;
    padding: 40px 20px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative; 
    z-index: 10; 
}

.container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}


/* Form Styles */
form {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}
textarea {
    resize: none;          /* Removes the resize option */
    width: 100%;           /* Ensures it fills the container */
    box-sizing: border-box; /* Crucial: includes padding in the width calculation */
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #fff;
    font-size: 1rem;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #ccc;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    background-color: #666;
}

button.contact-button {
    padding: 12px 20px;
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    font-size: 1rem;
    width: 50%;
}

button.contact-button:hover {
    background-color: #f8ebb7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 85%;
        padding: 30px 15px;
    }

    header nav {

        height: 90px; /* Adjust height as needed */
    }

    button.contact-button {
        width: 100%;
    }

    footer {
        
        padding: 10px;
        font-size: 1.1rem;
    }
    
    @media screen and (max-width: 400px) {
        .hero-content2 p {
            font-size: 10px;
        }
    
        .hero-content2 {
    
            margin-top: -30px; 
         }
    }
}
