body { font-family: Arial, sans-serif; }
a {color:blue;}
.visually-hidden{position:absolute;left:-9999px;}
#status, #route_type {display:none}
#message-alert i { font-size: 20px; color: grey; }
#message-alert.new i { color: white; }
#message-alert span { color: white; font-weight: bold; }
#dms-icon {width:32px;height:32px;}
#chat-popup {
  position: fixed;
  bottom: -400px;
  right: 20px;
  width: 280px;
  height: 400px;
  background: #f1f1f1 url(../image/backgrounds/ui.png) top left;
  border-radius: 20px;
  border: 2px solid #ccc;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: bottom 0.5s ease;
}

#chat-popup.active { bottom: 80px; }

#chat-header {
  background: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 16px;
}

#back-button {
  font-size: 18px;
  cursor: pointer;
  display: none;
}

#chat-contacts {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  justify-content: space-between;
}

.contact-item:hover { background: #eaeaea; }

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-name { font-weight: bold; }
.contact-subtext { font-size: 12px; color: grey; }

.typing-indicator {
  font-size: 12px;
  color: grey;
  font-style: italic;
  padding-left: 2px;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

#chat-messages.active { display: flex; }

#chat-account.active, #chat-account-login-content.active, #chat-account-register-content.active, #chat-account-main-content.active {
  display: flex;
}

#chat-account, #chat-account-login-content, #chat-account-register-content, #chat-account-main-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

.message-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 8px;
  flex-shrink: 0;
}

.message {
  background: #dcf8c6;
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 80%;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.from-dog .message { background: #dcf8c6; }

.bottom-buttons {
  display: flex;
}

.close-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #eee;
  cursor: pointer;
  font-weight: bold;
  border-top: 1px solid #ccc;
}

.close-btn:hover { background: #ddd; }

.hidden { display: none !important; }

.homepage_about {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#message-alert .typing-dot {
  font-size: 14px;
  color: #000;
  animation: pulseTyping 1s infinite ease-in-out;
}

@keyframes pulseTyping {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}


i { font-style: normal; }

#chat-icons {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
gap: 10px;
z-index: 999;
}

.chat-icon {
background: white;
border: 1px solid #ccc;
border-radius: 8px;
padding: 10px 14px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
font-size: 18px;
cursor: pointer;
transition: all 0.3s;
display: flex;
align-items: center;
position:relative;
}

.chat-icon.new i {
color: orange;
}

.chat-icon span {
color: white;
font-weight: bold;
margin-left: 5px;
}

.badge {
background: orange;
color: white;
border-radius: 50%;
font-size: 12px;
font-weight: bold;
padding: 2px 6px;
margin-left: 6px;
line-height: 1;
}

.hidden {
display: none !important;
}

.contact-info {
position: relative;
flex-grow: 1;
}

.message-badge {
position: absolute;
right: 0;
top: 2px;
background-color: #28a745;
color: white;
font-size: 12px;
font-weight: bold;
border-radius: 999px;
padding: 4px 8px;
min-width: 20px;
text-align: center;
}

/* GPS Signal Bars */
#gpsstatus {display:none}
/*
#gps-info {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: white;
	border-radius: 10px;
	padding: 5px;
	cursor: pointer;
	z-index: 1000;
}
*/
#gps-info {
	width:100%;
	position: absolute;
	top: 15px;
	margin-top:15px;
	left: 0px;
	max-width:400px;
	background-color: white;
	padding: 5px;
	cursor: pointer;
	z-index: 400;
	display:block;
}
#gps-help-text {margin-top: 12px; font-size: 14px; padding: 10px; background: #fff3cd; border: 1px solid #ffeeba; border-radius: 8px;}
#gps-help-text ul {list-style-type:none; margin:0; padding:0; text-align:left}
#gps-help-text ul li {margin: 0 0 10px;}

.signal-bars {
	display: flex;
	justify-content: right;
}

.bar {
	width: 8px;
	height: 16px;
	margin: 0 2px;
	background-color: lightgray;
	border-radius: 4px;
}

#bar1, #bar2, #bar3 {
	background-color: lightgray;
}

/* GPS INFO PANEL */
#gps-info {
    position: absolute;
    top: 15px;
    cursor: pointer;

}

/* Panel that appears when gps-info is tapped */
#gps-accuracy-panel {
    position: absolute;
    top: 60px;
    right: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    z-index: 1100;
    display: none;
    width: 320px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#gps-accuracy-panel.active {
    display: block;
}

#gps-accuracy-panel img {
    max-width: 100%;
}



/* Smaller Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 32px;  /* smaller width */
  height: 18px; /* smaller height */
  vertical-align: middle; /* align with text */
  margin-right:4px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 18px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px; width: 14px;
  left: 2px; bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #0b7;
}
input:checked + .slider:before {
  transform: translateX(14px);
}

#utility-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255,255,255,0.4);
  font-family: sans-serif;
  overflow: visible; 
}
#utility-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255,255,255,0.4);
  font-family: sans-serif;
  overflow: visible; 
  z-index: 9999; /* Higher than the main modal */
}

#utility-modal.hidden {
  display: none;
}
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
}
.modal-inner {
  position: relative;
  width: 98%;
  max-width: 800px;
  max-height: 98vh;
  overflow-y: auto;
  background: #f4f6f8;
  padding: 0; /* remove padding from here */
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  border-radius: 10px;
}

.modal-inner .container {
	margin:0;
	padding:0;
}

/* NEW: Sticky header */
.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  display: flex;
  justify-content: flex-end;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.modal-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  pointer-events: none;
}

/* Move content padding here instead */
#utility-modal-content {
  padding: 15px;
}

/* Close button tweak */
#utility-modal-close {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}
.emoji {
  display: inline-block;
  width: 28px;       /* ✅ fixed width keeps text perfectly aligned */
  text-align: center;
}

/* REACTIONS */
  .reaction-bar {
    width: 100%;
    height: 30px;
    display: flex;
    border-radius: 0px;
    overflow: hidden;
    /*box-shadow: 0 0 4px rgba(0,0,0,0.25);*/
    background: #fff;
  }
  .champion-card .reaction-bar {
	  padding: 10px 0 0;
	  margin-top:10px;
  } 
  .reaction {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    user-select: none;
    transition: background 0.2s;
  }
  
  .reaction:hover { background: #f8f8f8; }
  
  .counter {
    font-size: 12px;
	margin-top:2px;
    margin-left: 0px;
    color: #555;
  }

  .float-emoji {
    position: fixed;
    font-size: 22px;
    pointer-events: none;
    opacity: 1;
	z-index:99999;
    animation: floatUp 2.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  }

  @keyframes floatUp {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    20%  { transform: translate(-10px, -50px) rotate(-5deg); opacity: 0.95; }
    40%  { transform: translate(8px, -110px) rotate(6deg); opacity: 0.9; }
    60%  { transform: translate(-6px, -170px) rotate(-3deg); opacity: 0.8; }
    80%  { transform: translate(4px, -230px) rotate(2deg); opacity: 0.6; }
    100% { transform: translate(0, -280px) rotate(0deg); opacity: 0; }
  }
  
/* END REACTIONS */
