@font-face {
    font-family: 'PageFont';
    src: url('/fonts/Kanit-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  
}

.nav-bg {
    background-color: #4b8fce;
}

.login-block {
    background-image: none; /* ลบ background-image เมื่อจอน้อยกว่า 768px */
}

#login-img-logo{
    width: 50%;
}

.login-header {
    font-size: 24px;
}


@media (max-width: 768px) {
    .login-block {
        background-image: none !important; 
    }
    .right-side {
        width: 100%;
        border-top-left-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #login-img-logo {
        width: 80%;
    }

    .login-header {
        font-size: 16px;
    }

}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


body {
    margin-bottom: 60px;
    font-family: 'PageFont', Verdana, sans-serif;
    font-size: 0.9rem;
}

.bg {
    background: linear-gradient(to bottom, #d9cebd, #ffffff);
}

.nav-f {
    font-size: 1rem;
}

.main-content {
    
}

.breadcrumb {
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 5px 10px 5px 10px;
    background-color: #EFEFEF;
}

#map {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #999;
    height: calc(100vh - 160px);
}

#btnMapSearch{
    position:absolute;
    top:97px;
    left: 65px;
    z-index:999;
}

.leaflet-control-attribution {
    display: none;
}

.center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.blue { color: dodgerblue; }
.red { color: red; }
.green { color: green;}
.orange {color: orange;}
.yellow {
    color: yellow;
}
    
.cams-list{
    height: calc(100vh - 195px);
    border: 1px solid #CCC;
    background-color: #EFEFEF;
}

.cams-section {
    height: calc(100vh - 195px);
    border: 1px solid #CCC;
    background-color: #666;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px; /* ระยะห่างระหว่างกล่อง */
}

.cams-section-modal {
    height: 500px;
    border: 1px solid #CCC;
    background-color: #666;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px; /* ระยะห่างระหว่างกล่อง */
}

.cam-view {
    border: 1px solid #FFF;
    background-color: #333;
    display: flex;
    flex-direction: column;
   /* align-items: center; 
    justify-content: center; */
    height: 100%; 
}

.cam-title{
    color: #FFF;
    height: 30px;
    padding-left: 10px;
    margin-top: 5px;
    position: absolute;
}

.cam-view img {
    max-width: 100%; /* ให้ภาพไม่ขยายเกินขนาดของ container */
    height: auto; /* รักษาสัดส่วนของภาพ */
    margin-top: 0px;
}

.preview {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


.mr-2 {
    margin-right: 5px;
}

.ml-4 {
    margin-left: 20px;
}

dt {
    background-color: #EFEFEF;
}

dt, dd {
    line-height: 30px;
}

.strikethrough td {
    text-decoration: line-through;
}

.form-group {
    margin-top: .5rem !important;
}

.blinking-text {
    animation: blinking 2s infinite;
}

@keyframes blinking {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.image-frame {
    width: 750px;
    height: 550px;
    border: 1px solid #CCC;
    background-color: #FFF;
}

.image-frame img {
    border: 1px solid #CCC;
    width: 750px;
    height: 550px;
    
}

.shadow {
    box-shadow: -1px 10px 20px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: -1px 10px 20px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: -1px 10px 20px 0px rgba(0,0,0,0.75);
}

.datepicker {
    margin-top: 100px;
}

#mapping {
    width: 100%;
    height: 532px;
    border: 1px solid;
    margin: 15px 0px 0px 0px;
}