@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Pixelify+Sans:wght@400..700&family=Tiny5&display=swap");

.tiny5-regular {
  font-family: "Tiny5", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  overflow: hidden;
  margin: 0;
/*   font-family: "Tiny5", sans-serif;
  font-weight: 400; */
  font-style: normal;
  background-image: url(img/background.gif);
}

strong {
  font-family: "Tiny5", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

span.menu-spacer {
  border-left: 5px solid #000900;
  border-radius: 5px;
}

/* .city-display {
  justify-content: center;
  display: flex;
  height: 650px;
  background: azure;
  width: 65%;
  justify-self: center;
  border-radius: 15px;
  padding: 15px;
} */

.city-display {
  justify-content: center;
  display: flex;
  height: 750px;
  background: azure;
  width: 750px;
  justify-self: center;
  border-radius: 15px;
  padding: 15px;
}

#menu-area {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px;
  max-width: 100%;
  align-items: center;
  background-color: rgb(211 136 35 / 90%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.resource-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.resource {
  min-width: 150px;
}

#bottom-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.menu-btn {
  margin: 2px;
  border-radius: 5%;
  border: black;
  background: #deb887;
  font-size: 1rem;
}

.menu-btn:hover {
  background-color: #d8a86a;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.resource-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 5px;
  position: relative;
  height: 2rem;
  transition: width 0.3s ease-out;
}

.resource-level {
  height: 100%;
  background-color: #4caf50;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  transition: width 0.3s ease-out;
}

.resource-level.critical {
  background-color: #f44336;
}

.resource-level.warning {
  background-color: #ffc107;
}

.resource-level.moderate {
  background-color: #2196f3;
}

.resource-level.good {
  background-color: #4caf50;
}

.resource p {
  margin: 0;
  text-align: center;
}

.resource-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 1;
  text-shadow: 0px 0px 2px #fff;
}

.modal-body-research {
  padding: 15px;
}

.fa-solid.fa-circle-xmark {
  color: red;
  font-size: 30px;
}

.fa-solid.fa-circle-xmark:hover {
  color: darkred;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.btn-green {
  background-color: #4caf50;
  color: white;
}

.btn-green:hover {
  background-color: #45a049;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.btn-primary:hover {
  background-color: #2f49e0;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.btn-red {
  background-color: #f44336;
  color: white;
}

.btn-yellow {
  background-color: #ffeb3b;
  color: black;
}

.btn-yellow:hover {
  background-color: #f1c40f;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

.btn-red:hover {
  background-color: #d32f2f;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

table {
  border-collapse: collapse;
  width: 100%;
}

td {
  border: 1px solid #cccccca4;
  padding: 5px;
  /* width: fit-content;
  height: fit-content; */
  text-align: center;
  background-color: #f0f0f03b;
}

/* td:hover {
  background-color: #ddd;
} */

/* .modal {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: translateY(50px);
  opacity: 0;
}

.modal.show {
  transform: translateY(0);
  opacity: 1;
} */

img.city {
  width: 85%;
  opacity: 1 !important;
}

.leaderboard {
  position: absolute;
  top: 0;
  right: 0;
  padding: 15px;
  font-size: 1.5rem;
  width: fit-content;
}

.leaderboard h1 {
  font-size: 3.5rem;
}

.leaderboard .first i.fa-crown {
  color: gold;
}

.leaderboard .second i.fa-crown {
  color: silver;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #000;
}

#actionLog {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  padding-top: 20%;
}

#action-log-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.actionlog-contetnt {
  background-color: #80808042;
}

.log-entry {
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.log-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  display: block;
  font-size: large;
}

.log-time {
  color: #888;
  font-size: 1.5rem;
}
