:root {
  --background-color: #888098;
  --text-color: #344055;

  --primary-color: #CFB3CD;
  --primary-offset: #BAA0B8;
  --secondary-color: #2c62b0;

  --accent-color: #DFC2F2;
}

:root {
  --background-color: #606D5D;
  --primary-color: #D3CDD7;
  --primary-offset: #BEB8C2;

  --accent-color: #97A6A1;
}

/* secondary color is not being used? */
/* color: var(--primary-color); */
/* width: clamp(200px, 50%, 600px); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial;
  /* font-size: 14px; */
}

html {
  background-color: var(--background-color);
  padding: 2rem 2rem 2rem 2rem;
}

/* ///////////// */
/* LOGIN STYLING */
#login-container {
  max-width: 500px;
  color: white;
}

/* user, pass, esn */
.login-item {
  width: 100%;
  position: relative;
  border-bottom: 2px dashed var(--text-color);
  margin: 4rem auto 1rem;
}
/* Border animation */
.login-item::after {
  content: '';
  position: relative;
  display: block;
  height: 4px;
  width: 100%;
  top: 2px;
  background: var(--secondary-background);

  /* Hide border on initialization */
  transform: scaleX(0);

  /* Transition from left -> right over 500ms */
  transform-origin: 0%;
  transition: transform 500ms ease;
}

/* Show the border after focus */
.login-item:focus-within::after { transform: scaleX(1); }



/* Animate the labels */
.login-item label {
  color: var(--text-color);
  font-size: 1.2rem;

  z-index: -1;
  position: absolute;
  left: 0%;

  transform-origin: 0%;
  transition: transform 400ms;
}

/* Move labels only when no text */
.login-item:focus-within label, input:not(:placeholder-shown) + label { transform: scale(0.8) translateY(-5rem); }



.login-item input {
  outline: none;
  border: none;
  background: none;

  overflow: hidden;
  margin: 0;
  width: 100%;
  padding: 0.25rem 0;

  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

#login-container button {
  color: var(--text-color);
  background-color: white;
  border-color: var(--background-offset)


  border: 1px solid transparent;
  border-radius: 0.25rem;
  outline: 0;

  padding: 16px;
  width: 100%;

  cursor: pointer;
}

#login-container button:hover {
  color: white;
  background-color: var(--accent-color);
  /* border-color: #; */
  transition: all 0.5s 0s ease;
}












/* /////////////////// */
/* ESN UPDATER STYLING */
.update-container {
  margin: 10px 0;
}
.update-container input {
  outline: none;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: rgba(200, 200, 200, 0.5);
  padding: 0.2rem;
}
.update-container button {
  cursor: pointer;
  border-radius: 5px;
  border: none;
  padding: 0.3rem;
}


/* //////////////////////// */
/* OVERVIEW GENERAL STYLING */
#overview-container {
  color: var(--text-color);
}

#address-location #event-time {
  font-size: 20px;
}

#coordinate-location, #event-past-time {
  font-size: 12px;
  /* color: rgba(0, 0, 0, 0.5); */
  transition: opacity 0.3s;
  opacity: 0.5;
}
#coordinate-location:hover, #event-past-time:hover {
  opacity: 1;
}

.functioning-glance {
  display: flex;
  align-items: center;
}

.functioning-glance img {
  /* height: 50px;
  width: 50px; */
  max-height: 70px;
  max-width: 70px;
}






/* ///////////// */
/* TABLE STYLING */
table {
  border-collapse: collapse;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);

  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-right: 1rem;
  min-width: 400px;
}

table thead tr {
  background-color: var(--accent-color);
  color: var(--background-offset);
  text-align: left;
  font-weight: bold;
}

table th, table td {
  padding: 1rem 1.5rem;
}

table tbody tr {
  color: var(--text-color);
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--seconday-color);
}

table tbody tr:nth-of-type(even) {
  background-color: var(--primary-offset);
}

table tbody tr:last-of-type {
  border-bottom: 2px solid var(--accent-color);
}

table tbody tr.active-row {
  font-weight: bold;
  color: var(--secondary-color)
  font-size: 2rem;
}





/* TABLES CONTAINER RELOCATION */
#tables-container {
  display: flex;
  flex-direction: row;
}
#tables-container > * {}

.sensor-count {
  display: inline;
  padding-left:1rem;
}

#inspector-container {
  max-width: 100%;
  flex-grow: 1;
}

#TD1-report-container {
  display: flex;
  justify-content: center;
/*   flex-wrap: wrap; */
}

#TD1-report-container svg {
  max-height: 700px;
  min-height: 300px;
  margin-right: 1rem;
  margin-top: 1rem;
}

@media(max-width: 1100px) {
  #TD1-report-container { flex-wrap: wrap; }
}

#enrichment-report-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 100%;
  margin-right: 1rem;
}

#enrichment-graphic-text-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.enrichment-graphic-text {
  /* min-width: 15%; */
  flex: 1 1 0px;
  text-align: center;
}
