/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Set full height for html and body */
html, body {
    height: 100%; /* Ensure the full height of the viewport */
}
/* Body styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-image: url('assets/images/banner.jpg'); /* Background image */
    background-size: cover; /* Cover the entire page */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    color: #343a40; /* Dark text color */
    padding: 20px;
}


/* Container styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff; /* White background for the container */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative; /* Required for absolute positioning of the language button */
}

/* Language button styles */
.language-selection {
    position: absolute; /* Ensure the popup is positioned relative to this container */
    top: 20px; /* Position at the top */
    right: 20px; /* Align to the right */
    display: inline-block; /* Aligns the button and popup inline */
}

.language-popup {
    position: absolute; /* Positions the popup relative to the button */
    top: 100%; /* Places it directly below the button */
    left: 0; /* Aligns it with the left side of the button */
    background: white; /* Background color */
    border: 1px solid #ccc; /* Border styling */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Add a shadow for depth */
    z-index: 10; /* Ensure it appears above other elements */
    width: 150px; /* Set a width for the popup */
}

.language-option {
    padding: 10px; /* Add some padding */
    cursor: pointer; /* Pointer cursor on hover */
}

.language-option:hover {
    background-color: #f0f0f0; /* Change background on hover */
}

/* Greeting styles */
#greeting {
    font-size: 30px;
    font-weight: bold;
    margin: 50px 0 20px; /* Increased top margin for more spacing */
    color: #007bff; /* Bootstrap primary color */
    text-align: center; /* Center the greeting */
}

/* Search form styles */
form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 15px;
    font-size: 16px;
    border: 2px solid #007bff; /* Blue border */
    border-radius: 5px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #0056b3; /* Darker blue on focus */
    outline: none; /* Remove default outline */
}

/* Button styles */
button {
    padding: 15px;
    font-size: 16px;
    color: white;
    background-color: #007bff; /* Primary button color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slightly enlarge button on hover */
}

/* Results div styles */
#results {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border: 1px solid #ced4da; /* Light gray border */
    border-radius: 5px;
    overflow-x: auto; /* Enable horizontal scroll on small screens */
}

/* Table styles for results */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #dee2e6; /* Light gray border */
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007bff; /* Header color */
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping for even rows */
}

tr:hover {
    background-color: #e9ecef; /* Highlight row on hover */
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    input[type="text"], button {
        width: 100%; /* Full width on smaller screens */
    }

    /* Adjusting table layout for mobile */
    #results table {
        width: 100%;
        display: block; /* Allow block display for responsive design */
        overflow-x: auto; /* Enable horizontal scroll for long tables */
    }

    th, td {
        white-space: nowrap; /* Prevent text from wrapping */
    }
}
