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

/* Ensure html and body take full height */
html, body {
    height: 100%;
}

body {
    background-color: #2A3D60;
    background-image: url('./predictor.webp'); /* Background image for desktop */
    background-size: contain; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Ensures the image stays fixed while scrolling */
    display: flex;
    justify-content: flex-end; /* Aligns content to the right */
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Background Image Div for Mobile and Tablet */
.bg-image-mobile {
    display: none; /* Hidden by default */
}

/* Container that holds all content */
.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; /* Space out logo and form */
    align-items: center;
    margin-bottom: 30px;
}


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

/* Main title of the page */
h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff; /* Changed to white for better visibility */
}

/* Calculator Container */
.calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* Limits the width for larger screens */
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 10px;
}

.calculator-container h1 {
    margin-bottom: 20px;
    color: #ffffff;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10;
    align-items: flex-start;
    width: 100%;
}

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

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; /* Green focus color */
}

input::placeholder {
    color: #bbb;
}

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

button:hover {
    background-color: #45a049;
}

/* Result text styling */
#result {
    font-size: 18px;
    color: #ffffff; /* Changed to white for better visibility */
    text-align: center;
    margin-top: 20px;
}

.btn {
    margin-top: 20px;
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50; /* Green color */
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

.btn:active {
    background-color: #388e3c; /* Even darker green when pressed */
    transform: translateY(1px); /* Button slightly presses down */
}


/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-image: none; /* Remove background image from body */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Align content to the top */
    }

    .bg-image-mobile {
        display: block; /* Show the background image div */
        width: 100%;
        height: 200px; /* Adjust height as needed */
        background-image: url('./predictor.webp'); /* Add your background image path */
        background-size: cover; /* Ensures the image covers the div */
        background-repeat: no-repeat; /* Prevents the image from repeating */
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin-top: 20px; /* Add space between the image and container */
        border-radius: 0; /* Remove border radius for full-width container */
    }


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

    h1 {
        font-size: 24px;
    }

    button {
        font-size: 16px;
    }

    .calculator-container {
        padding: 15px;
    }
    .button-section {
        flex-direction: column;
        gap: 10px;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 100px;
}

.modal-content {
    background-color: #293d60;
    color: #ffffff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}