/* General Styles */
body, html {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100%; /* Make sure the page takes up full height */
    display: flex;
    flex-direction: column;
}

/* Navigation Bar Styling */
.navbar-custom {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white;
}

.navbar-toggler {
    border-color: rgba(255,255,255,.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.8)), url('/assets/indonesia_landscape.jpeg') no-repeat center center;
    background-size: cover;
    padding: 10px 0;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 30px;
}

.container {
    flex-grow: 1; /* Allow the container to expand to fill available space */
    /* Ensure the content wrapper takes up at least the viewport height minus the header and footer */
    min-height: calc(100vh - [HeightOfYourNavbar]px - [HeightOfYourFooter]px); 
}

/* Map Container Styles */
.map-container {
    height: 50vh;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

#map {
    height: 400px; /* Example height, adjust as needed */
}

.content {
    flex: 1; /* Allows content to expand and push the footer down */
}

/* Footer Styling */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e4e4e4;
    margin-top: 30px;
    width: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 33.3333%; /* 1/3 of the container width */
    overflow: hidden; /* Ensures no part of the image spills out */
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will cover the area, might crop the image */
}

/* Styles for the card group to handle equal height */
.card-group .card {
    display: flex;
    flex-direction: column;
}

.card-group .card .card-body {
    flex-grow: 1; /* Ensure the card body takes up all available space */
}

/* Styles for the sensor card */
.sensor-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.custom-img {
    /* your custom styles here */
    max-height: 200px;
    /* more styles if needed */
}


/* Styles for the circular indicators */
.parameter-circle {
    border-radius: 50%;
    width: 200px; /* or desired size */
    height: 200px; /* or desired size */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #333;
    margin: 10px;
}

.parameter-label {
    font-size: 2rem; /* or desired size */
    width: 100%;
    text-align: center;
}

.parameter-bottom {
    font-size: 1rem; /* or desired size */
    position: relative;
    width: 100%;
    text-align: center;
}

.parameter-value {
    font-size: 2rem; /* or desired size */
}

/* Styles for the sponsor information */
.sponsor-info {
    font-style: italic;
    margin-bottom: 10px;
}

.pm25-color {
    /* initial styles if necessary */
}

.pm10-color {
    /* initial styles if necessary */
}


/* Custom CSS for icon sizing */
.bi-moisture,
.bi-thermometer-half {
    font-size: 1.5rem; /* Adjust the size as needed */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem; /* Smaller font size for small devices */
    }

    .hero-section p {
        font-size: 0.9rem; /* Smaller font size for small devices */
    }

    .navbar-brand {
        font-size: 1.25rem; /* Adjust navbar brand size */
    }
    
    /* Adjust navbar toggler size and margin if needed */
    .navbar-toggler {
        font-size: 1.25rem;
        margin: 0.5rem;
    }

    .navbar-custom .navbar-brand {
        margin-left: 15px; /* Aligns brand with the collapsible button */
    }

    .parameter-label {
        font-size: 1rem; /* or desired size */
        width: 100%;
        text-align: center;
    }
    
    .parameter-bottom {
        font-size: 0.5rem; /* or desired size */
        position: relative;
        width: 100%;
        text-align: center;
    }
    
    .parameter-value {
        font-size: 1rem; /* or desired size */
    }

    .parameter-circle {
        width: 80px; /* smaller size for small devices */
        height: 80px; /* smaller size for small devices */
    }
}
