/* UTILITIES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  color: #fff;
  background-color: #838383
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

table {
  border: 1px solid black;
}

th {
  border: 0px solid black;
}

td {
  border: 0px solid black;
}

table.messengerwindow {
  border: hidden;
}
tr.messengerwindow {
  border: hidden;
}
th.messengerwindow {
  border: hidden;
}
td.messengerwindow {
  border: hidden;
}
a:link {
  color: whitesmoke;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: whitesmoke;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: lightgray;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: none;
}

/* Messenger Window Table */
table.message {
  border: thin, #FFFFFF;
  height: 500px; /* or any appropriate height */
  overflow-y: auto; /* enables vertical scrolling */
}
td.message {
  overflow-y: auto;
  overflow-x: hidden;
  background-color:#FFFFFF;
  color: #000;
  position:relative;
  margin-left:-2px;
  display: block;
  flex-direction: column-reverse;
}
td.messageblank {
  overflow-y: auto;
  overflow-x: hidden;
  background-color:#FFFFFF;
  color: #000;
  position:relative;
  margin-left:-2px;
  display: block;
  flex-direction: column-reverse;
}
td.contact {
  overflow-y: auto;
  overflow-x: hidden;
  background-color: inherit;
  color: #000;
  position:relative;
  margin-left:-2px;
  display: block;
  font-size: 14px;
}
.unread {
    color: darkred; /* Change text to red */
    font-weight: bold;  /* Makes text bold */
}
div.contact:nth-child(even) {
  background-color: #6E6E6E;
}
div.messageleft {
  text-align: center;
  background-color: #006A00;
  color:#FFFFFF;
  border-radius: 15px;
  padding: 7px;
  width: 75%;
  display: inline-block;
  font-size: 14px;
}
div.messageleft::after {
}
div.messageright {
  text-align: center;
  background-color: #5C5C5C;
  color: #FFFFFF;
  border-radius: 15px;
  padding: 7px;
  width: 75%;
  display: inline-block;
  float: right;
  font-size: 14px;
}
div.messageright::after {
}
div.messagebetween {
  text-align: center;
  background-color: #FFFFFF;
  color: #FFFFFF;
  line-height: 50%;
  width: 100%;
  display: inline-block;
}
div.messageright::after {
}
div.red {
	color: red;
}
/* NAVBAR STYLING STARTS */
/* Style the buttons */
.sidebar {
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: dimgrey;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: white;
  padding: 16px;
  text-decoration: none;
}
 
.sidebar a.active {
  background-color: mediumblue;
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: mediumblue;
  color: white;
}
.sidebar.number {
  display: block;
  color: lightgrey;
  padding: 14px;
  text-decoration: none;
}

div.content {
  margin-left: 250px;
  padding: 30px 20px;
}
.sidebar h3 {
    cursor: pointer;
    color: white;
    padding: 10px 16px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #333; /* Dark grey background */
    border: none;
    text-align: left;
}

.sidebar h3:hover {
    background-color: #555; /* Lighter grey on hover */
}
.sidebar a.active {
    background-color: mediumblue; /* Change the background color for active link */
    color: white; /* Change text color if needed */
}

@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}



 /* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
} 
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  color: #CECECE;
  font-size: 12px;
}
hr.rounded {
  border-top: 2px solid #bbb;
  border-radius: 2px;
}

 /* Pop up pictures when clicked */

body {font-family: Arial, Helvetica, sans-serif;}

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  box-sizing: border-box;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 0 10px #000;
  -moz-box-shadow: 0 0 10px #000;
  -o-box-shadow: 0 0 10px #000;
  -ms-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 10px #000;
  text-align: left;
  width: 90%;
  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.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

/* Password Pattern Matching */

/* Login page info */
table.login-table {
    border: none;
}

.logo-glow {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); /* White glow */
    display: block;
    margin: auto; /* Center the logo if it's not already centered */
    width: 200px; /* Adjust based on your logo's size */
    height: auto; /* Maintain aspect ratio */
}
.loginlogo-glow {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); /* White glow */
    display: block;
    margin: auto; /* Center the logo if it's not already centered */
    width: 350px; /* Adjust based on your logo's size */
    height: auto; /* Maintain aspect ratio */
}
