@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400&display=swap');

/* Global Styles */
* {
    box-sizing: border-box; /* Ensures padding and borders do not affect width */
}

body {
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between; /* Space between title and nav */
    align-items: center;
    background: #f4f4f4;
    color: #333333;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #333333;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: #dddddd;
    color: #000000;
    transform: scale(1.05);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: transparent; /* No background color */
    width: 100%;
    /* Removed border-radius and box-shadow */
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333333;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border 0.3s;
    width: 100%;
    max-width: 400px;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus {
    border-color: #2980b9;
    outline: none;
}

form input[type="submit"] {
    background: #2980b9;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    transition: background 0.3s, transform 0.3s;
}

form input[type="submit"]:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #f4f4f4;
    color: #333333;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    nav ul {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    nav a {
        padding: 8px 10px;
    }
}
