html, body, #map {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

#map { 
  position: absolute; 
  top: 0; 
  bottom: 0; 
  width: 100%; 
  height: 100%;   
  z-index: 2;
}

#logo-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

#logo {
  max-width: 120px;
  height: auto;
}

.row_customer {
  background-color: yellow;
}

.pan-controls {
  display: none;
}

.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #28a745;
  color: #fff;
  font-size: 44px;
  font-family: 'Roboto', sans-serif;
  position: absolute;
  right: 50px;
  top: 10px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 2px solid white;
  cursor: arrow;
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

.new_message {
  background-color: lightyellow;
  transition: background-color 0.5s;
}

.phone_number {
  font-family: Arial;
  background-color: #F7F7F7;
  color: #333;
  font-size: 18px;
  position: absolute;
  right: 50%;
  margin-right: -170px;
  width: 340px;
  bottom: 0px;
  padding: 15px 20px;
  text-align: center;
  z-index: 900;
  font-weight: bold;
}

.report-outage {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #ff0000;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  animation: blink-animation 1s infinite;
  width:60%;
  max-width:500px;
  font-family: Arial, sans-serif;	
}

.report-outage-container {
  z-index: 900;
}

#footer-links {
	display:block; 
	position:absolute; 
	text-align:center; 
	bottom:0px; 
	padding:3px; 
	width:98%; 
	left:0px;
	z-index:9000;	
}

/* General style for both links */
.link-button {
    display: inline-block; /* Aligns buttons horizontally */
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #333;
    background-color: #FFF;
    border-radius: 3px;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-right: 10px; /* Adds space between the buttons */
    transition: all 0.3s ease;
}

.link-button:hover {
    background-color: #f2f2f2;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Remove margin from the last button */
.link-button:last-child {
    margin-right: 0;
}

.map-legend {
  position: absolute;
  top: 3px;
  right:0px;
  background-color: rgba(255, 255, 255, 0.8);
  background-color:transparent;
  padding: 10px;
  font-family: Arial, sans-serif;
  border: 0px solid #999;
  border-radius: 5px;
  display: flex;
  flex-direction: row; /* Ensure items are aligned horizontally */
  align-items: center; /* Vertically center items */
  z-index: 1000;
}

.map-legend h4 {
  margin-top: 0;
  font-size: 1em;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-left: 15px; /* Space between legend items */
}

.legend-color {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  display: inline-block;
  background-color: inherit;
  border-radius: 50%; /* Make the color boxes circular */
  border: none; /* Remove the border */
}

.legend-description {
  font-size: 0.9em;
}

.map-legend h4 {
  margin-top: 0;
  font-size: 1em;
  display: none;
}

.alert-box {
  font-family: Arial, sans-serif;
  font-size: 24px;
  max-width: 90%;
  padding: 20px;
  background-color: #ff0000;
  color: #FFF;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: block;
}

.alert-box a {
  color: #721c24;
  text-decoration: none;
  font-weight: bold;
}

.alert-box p {
  margin: 10px 0 20px 0;
}

.close-alert {
	color:#FFF;
}

.close-btn:hover {
  background-color: #ff0000;
  color: white;
}
.mapboxgl-popup .mapboxgl-popup-content {
    max-width: none; /* Remove the default max-width */
    width: auto; /* Optional: Allow content to define the width */
}		

.custom-popup {
    width:400px;
    min-width:350px;
    max-width:90%;
}

@keyframes flash {
    0%   {background-color: #ffff99;}  /* Start color */
    50%  {background-color: #ffffff;}  /* Mid transition color */
    100% {background-color: #ffff99;}  /* End color */
}

.flashRow {
    animation: flash 1s; /* The animation will last for 1 second */
}	

.window {
    position: fixed;
    bottom: 0px;
    right: -660px;
    width: 390px;
    height: 400px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    transition: right 0.3s;
    z-index:1000;
    overflow:hidden;
}	
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black with 70% opacity */
    z-index: 999; /* Ensure the overlay is below the slide-out window but above everything else */
}	
.close-btn {
    position: absolute;
    top: 0px;
    right: 30px;
    font-size: 54px;
    cursor: pointer;
    font-weight:normal;
    color:#FFF;
}	
iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}		
.row_customer {
    background-color:yellow;	
}			

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  font-family: Arial, sans-serif;
    border:3px solid #333;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 0px auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 600px; /* Maximum width */
    position:fixed;
    display:block;
    bottom:0px;
    left:0px;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#reset_map {
	border-radius:5px; 
	border:1px solid #666; 
	padding-top:4px; 
	cursor:pointer; 
	padding-bottom:4px; 
	padding:6px 8px 6px 8px; 
	position:fixed; 
	bottom:201px; 
	right:7px; 
	font-size:16px; 
	z-index:19000;	
	color:#333;
	display:none;
}

#toggleRadar {
	border-radius:5px; 
	border:1px solid #666; 
	padding-top:4px; 
	cursor:pointer; 
	padding-bottom:4px; 
	padding:6px 8px 6px 8px; 
	position:fixed; 
	bottom:155px; 
	right:7px; 
	font-size:16px; 
	z-index:19000;	
	color:#333;
}

@media (max-width: 600px) {
	
	.alert-box {
	  width: 85%;
	  font-size: 1.5em;
	}
	.report-outage {
	  width: 90%;
	  padding: 15px 20px;
	  font-size: 1.4em;
	  bottom: 36px;
	}

/*	.mapboxgl-ctrl-bottom-right {
	  bottom:70px;	
	}	
	
	#reset_map {
		bottom:230px; 
	}	*/
	
}
