html, body {
    margin: 0;
    padding: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}
header {
    background-color: #C45A1B;
    color: white;
    padding: 10px 16px;
    text-align: left;
    font-size: 2.5em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#map {
    flex-grow: 1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0.5rem;
    z-index: 10;
}
#map.fullscreen-clean {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
#device-links {
    margin: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}
#error-message {
    color: #d32f2f;
}
@media (max-width: 600px) {
    header {
        font-size: 1.5em;
    }
    #error-message {
        font-size: 1.5rem;
    }
}
.device-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 10px;
}
.device-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 1rem;
    font-weight: 500;
}
.device-card:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}
#toggleDeviceCard {
    color:#333;
    background-color: #f9f9f9;
    height: 20px;
    border: none;
}
.expanded {
    max-height: 150px;
}
.leaflet-popup-content {
    font-size: large;
}
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
}
#loading {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 50%;
    z-index: 100;
}
.footer {
    font-size: 13px;
    text-align: center;
}
.md-flex {
    gap: 20px;
}
.md-flex li {
    display: inline;
    margin-right: 5px;
    margin-left: 5px;
}
.md-flex a {
    color: #333;
}
.round_btn {
    display: block;
    position: relative;
    width: 30px;
    height: 30px;
    color: #686767;
    border: 2px solid #686767;
    background: #fff;
    cursor: pointer;
}