/* style.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* Make headers smaller */
h1 {
    font-size: 2rem; /* Smaller font size for main header */
    margin-bottom: 15px;
}

h2 {
    font-size: 1.5rem; /* Smaller font size for subheader */
    margin-bottom: 10px;
}

h3 {
    font-size: 1.25rem; /* Smaller font size for sub-subheader */
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Style for Sensor ID, Sensebox ID, and AQICN ID links */
p strong {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

p a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #28a745; /* Green background */
    color: #fff; /* White text */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

p a:hover {
    background-color: #218838; /* Lighter green on hover */
}

/* Container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Legend image styling */
.legend {
    text-align: center;
    margin-top: 20px;
}

.legend img {
    max-width: 100%;
    height: auto;
}

/* Back to Sensor List link */
a[href="index.php"] {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

a[href="index.php"]:hover {
    background-color: #1a252f;
}

/* Styling for list element links in index.php */
ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

ul li {
    margin-bottom: 10px; /* Space between list items */
}

ul li a {
    display: block;
    padding: 10px 15px;
    background-color: #007bff; /* Blue background */
    color: #fff; /* White text */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

ul li a:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

ul li a:active {
    transform: translateY(0); /* Reset lift effect on click */
}
