/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
}

/* Set background image for the entire page */
body {
    background-color: #2A3D60; /* Default background color if image doesn't load */
    background-image: url('predictor.jpg'); /* Add your image URL */
    background-size: contain; /* Ensures image covers entire page */
    background-position: center center; /* Center the image */
    background-attachment: fixed; /* Makes background fixed during scroll */
    background-repeat: no-repeat; /* Prevents tiling of the image */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container Styling */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Header with logo */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.logo img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.Name h2 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flexbox layout for the form and image */

/* Form Styling */
.college-form {
    background-color: rgba(255, 255, 255, 0.1); /* Form background color */
    padding: 50px;
    border-radius: 8px;
    flex: 1; /* Allow the form to take available space */
    margin-top: 30px;
    height: auto; /* Allow the form to adjust its height based on content */
    max-height: none; /* Remove the max height limit */
    overflow: visible; /* Prevent scrolling */
    margin-left: 700px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

input, select, button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    width: 100%;
}

input:focus, select:focus, button:focus {
    outline: none;
    border-color: #4CAF50;
}

input::placeholder {
    color: #bbb;
}

button {
    background-color: #45a049;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #387b2b;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Keep background image on smaller screens */
    body {
        background-image: none; /* Remove background image from body */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Scroll the background with the page */
    }
    

    .container {
        padding: 15px;
    }

    .main-content {
        flex-direction: column; /* Stack form and image vertically on smaller screens */
        gap: 10px;
        height: auto; /* Let the height adjust when stacked */
    }

    .logo img {
        width: 40px;
    }

    .Name h2 {
        font-size: 20px;
    }

    h1 {
        font-size: 24px;
    }

    button {
        font-size: 16px;
    }
    .college-form {
        margin-left: 0; /* Reset left margin on mobile */
        margin-top: 20px; /* Add some space between form and image */
        padding: 20px;
    }
}
