/********** Template CSS **********/

:root {
	--primary: #FD5D14;
	--secondary: #FDBE33;
	--light: #F4F6F8;
	--dark: #040F28;
}

body {
	text-align: justify;
	top: 0 !important;
}

.glass {
    background: rgba(255, 255, 162, 0.1); /* White with 50% opacity */
    border-radius: 15px; /* Rounded corners for a glass-like effect */
    padding: 2px;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 2px; /* Add margin around each .glass element */
    flex-shrink: 1; /* Prevents shrinking */    
}

.glassbg {
    background: inherit; /* White with 50% opacity */
    border-radius: 10px; /* Rounded corners for a glass-like effect */
    padding: 5px;
    box-shadow: 0 13px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 0px; /* Add margin around each .glass element */
    flex-shrink: 1; /* Prevents shrinking */    
}

.skiptranslate iframe {
  display: none;
}

#google_translate_element > div {
  color: transparent;
}

#google_translate_element > div > span {
  display: none;
}

#google_translate_element > .goog-te-gadget > .google_translate_element > img {
  display: none;
  
}

#google_translate_element > .goog-te-gadget {
    font-family: arial;
    font-size: 0px;
    color: #666;
    white-space: nowrap;
}

#language-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* Set a fixed width for the popup */
    height: auto; /* Set a fixed height for the popup to make it square */
    padding: 20px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    box-sizing: border-box;
    border-radius: 15px;
}
#language-popup h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
#language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Add spacing between buttons */
}
#language-list button {
    flex: 1 1 calc(33.333% - 20px); /* Three buttons per row, accounting for gaps */
    padding: 8px;
    border: 1px solid #3cc406;
    background-color: #3cc406;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    border-radius: 5px; /* Rounded corners for buttons */
    box-sizing: border-box;
}
#language-list button:hover {
    background-color: #176e03;
}
#language-popup button.close-btn {
    display: block;
    margin-top: 20px;
    padding: 10px;
    border: none;
    background-color: #ff9d00;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    width: 100%;
}
#language-popup button.close-btn:hover {
    background-color: #0bb097;
}

#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#missingCredential {
    display: none !important;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: #666; /* Default color */
    box-shadow: 0 0 10px 2px #666; /* Simulate glow effect */
}

.green-led {
    background-color: green;
    box-shadow: 0 0 10px 2px green; /* Adjust glow color for green LED */
}

.red-led {
    background-color: red;
    box-shadow: 0 0 10px 2px red; /* Adjust glow color for red LED */
}
/* Hide the status text */
#status {
    display: none;
}

.display-5 {
    font-size: calc(0.425rem + 2.1vw);
    font-weight: 700;
    line-height: 1.2;
}

.pt-6 {
	padding-top: 90px;
}

.pb-6 {
	padding-bottom: 90px;
}

.py-6 {
	padding-top: 90px;
	padding-bottom: 90px;
}

.btn {
	position: relative;
	font-weight: 800;
	font-size: 12px;
	border: 0px;
	transition: .5s;
	border-radius: 8px;
	box-shadow: 0 0 2px 0px #600;
	/* Add this line for rounded corners */
}

.btn.btn-primary::after {
	background: var(--dark);
}

.btn.active::after {
	width: 50%;
	left: 25%;
}

.btn-primary {
	color: #FFFFFF;
}

.btn-success {
	color: inherit;
    background-color: mediumspringgreen;
}

.btn-square {
	width: 36px;
	height: 36px;
}


.btn-sm-square {
	width: 28px;
	height: 28px;
}

.btn-lg-square {
	width: 46px;
	height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
	padding-left: 0;
	padding-right: 0;
	text-align: center;
}

.form-control {
	border-radius: 8px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	color: #228e00;
}

/* Style for h6.col-6.text-success */
h6.col-6.text-success {
    font-size: 14px;
}

h6.text-center.text-primary {
    color: inherit !important;
}

.form-select {
	border-radius: 15px;
}

.contact-Radius {
	border-radius: 15px;
}

img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
}

#topDiv {
	position: fixed;
	/* left: 0; */
	width: 100%;
	z-index: 1000;
	/* Ensure it appears on top of other content */
}

.back-to-top {
	position: fixed;
	display: none;
	left: 50%;
	bottom: 0;
	margin-left: -22px;
	border-radius: 0px;
	z-index: 99;
}

.container_circle {
	display: flex;
	justify-content: space-around;
	margin: 15px;
}

.circle {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: flex;
	flex-direction: column; /* Align label and value vertically */
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: white;
	font-weight: bold;
	position: relative; /* For positioning label if needed */
	text-align: center;
	border: 1px solid #888;
	margin: 5px;
}

.circle-label {
	font-size: 14px;
	color: inherit;
	margin-bottom: 3px;
}

.circle-value {
	font-size: 16px;
	color: white;
	font-weight: bold;
}

.relay1-on {
	background-color: rgba(0, 255, 204, 0.5);
}

.relay1-off {
	background-color: rgba(153, 204, 255, 0.5);
}

.relay2-on {
	background-color: rgba(0, 255, 204, 0.5);
}

.relay2-off {
	background-color: rgba(153, 204, 255, 0.5);
}

.response-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}
.json-response {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #f4f4f4;
    padding: 10px;
    max-height: 400px;  /* Set max height for scrolling */
    overflow-y: auto;  /* Enable vertical scrolling */
    border: 1px solid #ccc; /* Optional, adds border to the JSON output */
}
.export-btn {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
.export-btn:hover {
    background-color: #45a049;
}


.bg-dark-radial {
	background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
	background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
	background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
	background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
	background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
	background-size: 3px 3px;
}

.bg-light-radial {
	background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
	background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
	background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
	background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
	background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
	background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
	position: relative;
	padding: 20px 10px;
	font-size: 18px;
	text-transform: uppercase;
	color: var(--light);
	outline: none;
	transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
	color: var(--primary);
}

@media (max-width: 991.98px) {
	.navbar-dark .navbar-nav .nav-link {
		margin-left: 0;
		padding: 10px 0;
	}
}

.carousel-caption {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(4, 15, 40, .7);
	z-index: 1;
}

@media (max-width: 576px) {
	.carousel-caption h4 {
		font-size: 18px;
		font-weight: 500 !important;
	}

	.carousel-caption h1 {
		font-size: 30px;
		font-weight: 600 !important;
	}
}

.page-header {
	height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
	background-size: cover;
}

.service-item .service-icon {
	margin-top: -50px;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
}

.service-item .service-icon i {
	transition: .2s;
}

.service-item:hover .service-icon i {
	font-size: 60px;
}

.portfolio-item {
	margin-bottom: 60px;
}

.portfolio-title {
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 120px;
	padding: 0 30px;
	right: 30px;
	left: 30px;
	bottom: -60px;
	background: rgba(255, 255, 255, 0.5);
	z-index: 3;
	border-radius: 15px;
}

.portfolio-btn {
	position: absolute;
	display: inline-block;
	top: 50%;
	left: 50%;
	margin-top: -60px;
	margin-left: -60px;
	font-size: 120px;
	line-height: 0;
	transition: .1s;
	transition-delay: .3s;
	z-index: 2;
	opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
	opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
	position: absolute;
	content: "";
	width: 0;
	height: 100%;
	top: 0;
	transition: .5s;
	z-index: 1;
	background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
	left: 0;
}

.portfolio-box::after {
	right: 0;
}

.portfolio-item:hover .portfolio-box::before {
	left: 0;
	width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
	right: 0;
	width: 50%;
}

tspan {
	font-weight: bold;
	font-size: 12px;
}

/* Popup container */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 100, 0, 0.4); /* Background with some transparency */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    overflow: hidden; /* Prevent scrolling */
    padding-top: 40vh;
    font-size: 13px !important;
}

/* Popup content */
.popup-content {
    background-color: yellow;
    margin: 60px auto; /* Automatically center the content */
    padding: 15px;
    max-width: 300px; /* Set maximum width */
    width: auto; /* Allow the content to expand */
    color: green; /* Set text color to green */
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden; /* Prevent scrolling inside the popup */
    box-sizing: border-box; /* Include padding and borders in the total width/height */
}

.model-body {
    background-color: rgba(0, 10, 10, 0.8);
    margin: 15% auto;
    padding: 15px;
    border: 1px solid #888;
    max-width: 70%; /* Set maximum width */
    width: auto; /* Allow the content to expand */
    color: green; /* Set text color to green */
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-row label {
    margin-right: 10px;
}    


@media (min-width: 992px) {

	.testimonial,
	.contact-form {
		margin-left: -90px;
	}
}

@media (min-width: 992px) {
	.footer::after {
		position: absolute;
		content: "";
		width: 1px;
		height: 100%;
		top: 0;
		left: 50%;
		background: var(--primary)
	}
}

.footer-shape::before {
	position: absolute;
	content: "";
	width: 80px;
	height: 100%;
	top: 0;
	left: -40px;
	background: var(--primary);
	transform: skew(40deg);
}

/* Dashboard Styles */

#console {
	height: 120px;
	overflow: auto;
	border: 1px solid #ccc;
	padding: 5px;
}

.white-font {
	color: inherit;
	font-size: 13px;
}

#tempGauge tspan,
#oxyGauge tspan,
#humiGauge tspan  {
	color: inherit;
	font-weight: inherit;
    font-size: inherit; 
    fill: #777 !important;
}

.relay-box {
  height: 230px; /* fixed height for all relays */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 30px;
}


.row.g-3 {
	display: flex;
	justify-content: center;
}

.col-sm-6.row {
	display: flex;
	justify-content: space-around;
}

#background-container {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	/* Apply a blur filter */
	filter: blur(0.5px);
	/* Adjust the blur radius as needed */
	background-attachment: fixed;
}

/*
#content-container {

	
}  */

/*  GIS Map Style */

#map {
	height: 800px;
	width: 100%;
	margin: 0 auto;
	/* Center horizontally */
}

#filter {
	padding: 10px;
	background-color: #f2f2f2;
	margin: 0 auto;
	/* Center horizontally */
	max-width: 100%;
	/* Limit the width of the filter element */
}

.highlight {
	fill: #FF0000;
	/* Change the color as per your requirement */
	stroke: #FF0000;
}

.map-form-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	/* Adjust the gap as needed */
}

.farmerbox {
    position: relative;
    width: 50%;
    max-width: 50%;
    max-height: 50%; /* Set max-height to 50% */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center; /* Centers items vertically */
    text-align: center; /* Centers text inside */
}

/* Chat Icon */
#chat-icon {
    position: fixed;
    bottom: 20px; /* Distance from the bottom of the page */
    right: 20px; /* Distance from the right of the page */
    background-color: transparent;
    border-radius: 50%;
    /* padding: 10px; */
    z-index: 9999; /* Ensure the icon is always on top */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Icon image styling */
#chat-icon-img {
    width: 50px;  /* Set the size of the icon */
    height: 50px;
}

/* Optional hover effect */
#chat-icon:hover {
    transform: scale(1.1); /* Icon enlarges slightly on hover */
}

/* Optional: Styling for a shadow or animation on hover */
#chat-icon:hover #chat-icon-img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Relay state small helper - keeps ON/OFF separate and animates only when state changes */
.relay-state {
    display: inline-block;
    font-weight: 900;
    margin-left: 8px;
    transition: color 180ms ease, background-color 180ms ease, opacity 120ms ease;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* Visual states for relay-state text */
.relay-state.on {
    color: #004d00; /* dark green */
    background-color: rgba(0, 255, 0, 0.12);
}
.relay-state.off {
    color: #4b0082; /* indigo-ish for off */
    background-color: rgba(77, 77, 255, 0.06);
}

/* Subtle transition for the whole button to avoid flash when classes toggle */
button.btn {
    transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}