/* updated 10 May 2025 */


/* General Reset for consistent styling across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

/* Add a margin below the header for spacing */
.official-data, .developer-credit {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.official-data a {
    color: #2980b9;
    text-decoration: none;
}

.official-data a:hover {
    text-decoration: underline;
}

/* Styling for "Developed by KST" */
.developer-credit {
    font-weight: bold;
    font-size: 1.1rem;
    color: #34495e;
}


/* Form Styling */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 1rem;
    color: #34495e;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

input[type="number"] {
    -moz-appearance: textfield; /* Remove the spinner in Firefox */
    -webkit-appearance: none;  /* Remove the spinner in Chrome/Safari */
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #3498db;
}

/* Datalist Styling */
input[list] {
    width: calc(100% - 20px); /* To account for padding */
    display: inline-block;
}

/* Return Page Styling */

.return-page strong {
    color: #2980b9;
    font-weight: bold;
}

.return-page h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.return-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.return-page p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.return-page h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

/* Predicted Price Styling */
.predicted-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin-top: 20px;
    
}

/*Error HMTL Styling */
.error-messages h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.error-messages strong {
    color: #2980b9;
    font-weight: bold;
}

.error-messages {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.centered-link {
    display: block;            /* Make the link a block-level element */
    margin: 0 auto;            /* Horizontally center the link */
    text-align: center;        /* Align the text inside the link to center */
    width: max-content;        /* Ensures the width is based on the link content */
    background-color: pink;
    padding: 14px 25px;
    text-decoration: none;
    color: black;
}

ul {
    list-style-type: none; /* Removes default bullets */
    padding: 0; /* Removes default padding */
    text-align: center; /* Centers the content inside each <li> */
}

.centered-link-1 {
    display: block;            /* Make the link a block-level element */
    margin: 0 auto;            /* Horizontally center the link */
    text-align: center;        /* Align the text inside the link to center */
    width: max-content;        /* Ensures the width is based on the link content */
    background-color: grey;
    padding: 14px 25px;
    text-decoration: none;
    color: white;
}

.centered-link-2 {
    display: block;            /* Make the link a block-level element */
    margin: 0 auto;            /* Horizontally center the link */
    text-align: center;        /* Align the text inside the link to center */
    width: max-content;        /* Ensures the width is based on the link content */
}

