body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #2c2e38;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loading {}

#login {
  /* position: absolute; */
  width: 100vw;
  height: 100vh;
  display: none;
  /* background-color: #2c2e38; */
  justify-content: center;
  /* align-items: center; */
}

#login-form {
  display: flex;
  position: absolute;
  top: 10%;
  flex-direction: column;
  align-items: center;
  width: 20vw;
  height: fit-content;
  background-color: #1d2128;
  border-radius: 5px;
  padding: 2rem;
  gap: 2rem;
}

#login-form h4 {
  width: 100%;
  text-align: center;
  color: white;
  margin: 0;
}

input::placeholder {
  color: gray;
  opacity: 0.8;
}

#login-form input[type=password],
#login-form input[type=text] {
  background-color: #2c2e38;
  border-radius: 5px;
  border: thin solid white;
  color: white;
  padding: 1rem;
  margin: 0;
  width: 100%;


  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  line-height: 1;
  box-sizing: border-box;
  /* min-width: 100%; */
}

#login-error-msg {
  display: none;
  color: rgb(177, 0, 0);
}

#login-form button {
  padding: 0.7rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  border-radius: 5px;
  margin: 0;
  color: white;
  background-color: #2e74b5;
}

#login-form button:hover {
  background-color: #0e5ba2;
  cursor: pointer;
}

#dashboard {
  max-width: 100vw;
  overflow-x: hidden;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body #title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 100vw;
  margin: 0;
  height: 15vh;
  color: #748a9e;
  font-weight: bold;
  font-size: clamp(0.5vw, 2vw, 5vw);
  background-color: #2f363f;
}

#title {
  text-wrap: nowrap;
}

#icon {
  margin-left: 2%;
}

#logout {
  margin-right: 2%;
}

#logout:focus {
  outline: 3px solid #cad0db;
  /* Adjust focus state for better visibility */
}

#logout:hover {
  background-color: #454545ce;
}

#search {
  margin-top: 2vh;
  width: 50vw;
  height: 6vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2f363f;
  border: none;
  border-radius: 99999px;
}

input[type="text"] {
  flex-grow: 1;
  font-size: 1.2rem;
  margin-left: 3%;
  border: transparent;
  color: #ccc;
  background-color: transparent;
  cursor: text;
}

input[type="text"]:focus {
  border-color: transparent;
  outline: none;
}

button[type="submit"] {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-right: 1%;
}

#search:hover {
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.3);
}

#container {
  display: flex;
  justify-content: space-evenly;
  height: 100vh;
  width: 90vw;
  margin: 2% 0;
  color: #748a9e;
  font-size: 150%;
}

#container .column {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 15%;
  height: 100%;

}

#container .column .btn-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

#container .column .btn-container .btn {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 5vh;
  padding: 5% 0;
  margin: 5% 0%;

  border: none;
  border-radius: 10px;
  background-color: #2f363f;
  color: #cad0db;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Smooth transition for background color */
}

#container .column .btn-container .btn:hover {
  background-color: #454545ce;
}

.btn .imgDiv {
  min-height: 80%;
  max-height: 80%;
  aspect-ratio: 1/1;
  display: flex;

}

.btn .imgDiv img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  /* Prevents shrinking in flexbox */
}

.btn .btnTitle {
  max-width: 70%;
  font-size: clamp(0.5vw, 1.2vw, 4vw);

}

.circleDiv {
  height: 35%;
  aspect-ratio: 1/1;
}

.circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: orange;
}

.circle-no-ping {
  background-color: none;
}

.circle.up {
  background-color: green;
  /* Green when the site is up */
}

.circle.down {
  background-color: red;
  /* Red when the site is down */
}


/* Responsive Styles */
@media only screen and (max-aspect-ratio: 16/9) {
  #login {
    min-width: 70vw;
  }

  #login-form {
    width: 70vw;
  }

  #container {
    flex-wrap: wrap;
  }

  body #title-bar {
    height: 10vh;

  }

  #title {
    font-size: x-large
  }

  #search {
    width: 80vw;
    height: 5vh;
  }

  input[type="text"] {
    width: 70%;

  }

  #container .column {
    width: 40%;
    height: fit-content;

  }

  .btn .btnTitle {
    max-width: 70%;
    font-size: clamp(0.5vw, 3vw, 4vw);

  }
}

/* Focus State for Accessibility */
#container .column .btn-container .btn:focus {
  outline: 3px solid #cad0db;
  /* Adjust focus state for better visibility */
}