@import url(https://fonts.bunny.net/css?family=alegreya-sc:400);
@import url(https://fonts.bunny.net/css?family=aclonica:400);

@font-face {
  font-family: default-font;
  font-style: normal;
  font-weight: 400;
  src: url(/static/fonts/acme-latin-400-normal.woff2) format('woff2'), url(/static/fonts/acme-latin-400-normal.woff) format('woff');
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #363636;
  --main-font: "Alegreya SC", sans-serif;
  --text-color: #f2f2f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #1a1a1a;
  color: #f2f2f2;
  font-family: var(--main-font);

  background: repeating-linear-gradient(45deg,
      #1a1a1afa,
      #1a1a1afa 5px,
      #1a1a1afa 5px,
      #1a1a1afa 10px),
    url(/static/images/background-image.webp);
  background-size: cover;
}

a {
  color: #cabb9e;
}

.active-city summary {
  cursor: default;
  color: #d2d266;
}
.active-city button {
  background-color: transparent;
  color: #f2f2f2;
  width: 24px;
  height: 24px;
  border: transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}
.active-city button:hover {
  background-color: #404040;
  box-shadow: inset 0 0 10px #303030;
}
.active-city button:first-child {
  float: left;
}
.active-city button:last-child {
  float: right;
}

header {
  font-family: var(--main-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 100px;
  background-color: #363636;
  box-shadow: inset 0 0 10px black;
  padding-bottom: 14px;

  background: repeating-linear-gradient(45deg,
      #363636fa,
      #363636fa 5px,
      #363636fa 5px,
      #363636fa 10px),
    url(/static/images/background-image.webp);
}

#menu {
  position: relative;
  display: flex;
  list-style: none;
  padding: 10px 0;
  font-size: 1em;
  z-index: 100;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
}

#menu li {
  margin: 4px 0;
}

nav {
  position: relative;
  font-size: 1em;
  color: var(--primary-color);
}

nav ul {
  margin: 0;
  padding-left: 10px;
}

table th,
table td {
  padding: 4px 40px;
}

main {
  padding: 25px;
  background: repeating-linear-gradient(45deg,
      #412700e6,
      #412700e6 10px,
      #412700e6 10px,
      #412700e6 20px),
    url(/static/images/old_map.png);
  border-radius: 0px;
}

main {
  background: #363636;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 25px auto 0;
  max-width: 1200px;
  min-height: 300px;
  padding: 24px;
  position: relative;
  width: 80%;
}

main:before,
main:after {
  content: "";
  height: 98%;
  position: absolute;
  width: 100%;
  z-index: -1;
}

main:before {
  background: #303030;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  left: -5px;
  top: 4px;
  transform: rotate(-2.5deg);
}

main:after {
  background: #333333;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  right: -3px;
  top: 1px;
  transform: rotate(1.4deg);
}

main h1 {
  padding: 0px 0 0 0;
  color: #f2f2f2;
}

.color-square {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  margin: 2px 10px 0 0;
}

.title {
  margin: 10px 0 20px 0;
  font-family: "Aclonica", sans-serif;
  font-size: 40px;
}

.form {
  padding: 25px;
}

footer {
  position: relative;
  margin: 25px;
  text-align: center;
  bottom: 0;
}

.user-card>div {
  position: relative;
  box-shadow: none;
  margin: 0px 0 25px 0 !important;
  padding: 20px 20px 0 20px !important;
  border-radius: 10px;
}

#flag {
  width: 100% !important;
  height: auto !important;
  max-width: 800px;
  max-height: 800px;
  filter: opacity(0.6) sepia(0.7);
  position: relative;
  padding: 3px;
  background-color: #b2b2b2;
}

#info {
  position: absolute;
  bottom: -20px;
  right: 0px;
  font-family: var(--main-font);
  font-size: 200%;
  color: #0a0a0a;
  line-height: 10px;
  padding: 1px 40px;
  background-color: #E6D8B8;
  box-shadow: 0 0 2px #0a0a0a;
  transform: rotate(3deg);
}

.nail {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 10px;
  height: 10px;
  background-color: #2A2A2A;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nail::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 40%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background-color: #2A2A2A;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transform: rotate(-12deg);
}

.nail-2 {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: #2A2A2A;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nail-2::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 28%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background-color: #2A2A2A;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transform: rotate(4deg);
}

.username-error {
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.password-error {
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

#text-danger {
  background-color: rgba(200, 10, 10, 0.4);
  border: 1px solid rgba(200, 10, 10, 0.7);
}

#text-success {
  background-color: rgba(40, 200, 100, 0.4);
  border: 1px solid rgba(40, 200, 100, 0.7);
}

.error {
  color: rgb(255, 100, 100);
}

#logo {
  width: 116px;
  height: auto;
  vertical-align: middle;
  margin: 0 12px;
}

.menu-rss {
  position: relative;
  font-size: 16px;
  background-color: #b2b2b2;
  box-shadow: inset 0 0 5px black;
  padding: 6px;
  color: #0a0a0a;
  margin: 0px auto 0px;
  width: 100%;
}

.menu-rss::before,
.menu-rss::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  pointer-events: none;
}

.menu-rss::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.menu-rss::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
}

.menu-rss li {
  margin: 0px 4px;
  display: table;
  width: 100px;
  cursor: help;
  background-color: #9d9d85;
  padding: 4px 8px;
  border: 2px solid #9d9d85;
  box-shadow: inset 0 0 1px 2px #b2b2b2;
}

.menu-rss ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  overflow-x: hidden;
  white-space: nowrap;
  padding: 0 20px;
}

th {
  position: relative;
  font-weight: bold;
  border-bottom: #121212 solid 2px;
  border-right: #121212 solid 2px;
  border-left: #2a2a2a solid 2px;
  border-top: #2a2a2a solid 2px;
  background-color: #1a1a1a;
}

td {
  background-color: #222222;
  border-bottom: #181818 solid 2px;
  border-right: #181818 solid 2px;
  border-left: #2a2a2a solid 2px;
  border-top: #2a2a2a solid 2px;
}

/* Resource bars for food, water & energy */
.bar-container {
  position: relative;
  width: 72px;
  height: 22px;
  background-color: #2a2a2a44;
  display: inline-block;
  border-radius: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow: hidden;
  vertical-align: top;
  border-bottom: 1px #3a3a3a66 solid;
  border-left: 1px #3a3a3a66 solid;
  border-right: 1px #3a3a3a66 solid;
}
#food-bar {
  position: absolute;
  width: 72px;
  background-color: rgba(245, 100, 10, 0.4);
  bottom: 0;
  border-top: 1px #2a2a2a66 solid;
}
#water-bar {
  position: absolute;
  width: 72px;
  background-color: rgba(10, 200, 245, 0.4);
  bottom: 0;
  border-top: 1px #2a2a2a66 solid;
}
#energy-bar {
  position: absolute;
  width: 72px;
  background-color: rgba(245, 245, 10, 0.4);
  bottom: 0;
  border-top: 1px #2a2a2a66 solid;
}

summary {
  font-family: var(--main-font);
  padding: 8px 18px;
  width: 20vw;
  cursor: pointer;
  border-radius: 10px;
  margin: 0 6px;
  background-color: #303030;
  border: 2px solid #282828;
  box-shadow: inset 0 0 1px 2px #3a3a3a;
}

.header-loggedout {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: -14px;
  flex-wrap: wrap;
}

#logout {
  color: #ff8181;
  text-decoration: none;
}

.dropdown ul {
  background-color: #2f2f2f;
  position: absolute;
  top: 60px;
  width: 20vw;
  margin-left: 6px;
  list-style-type: none;
  padding: 8px 6px;
  box-shadow: 0 0 10px #1a1a1a;
  border-radius: 10px;
}

.dropdown ul li {
  padding: 8px 8px;
  background-color: #3a3a3a;
  border-radius: 10px;
  border: 1px #3a3a3a solid;
  box-shadow: inset 0 0 1px 2px #2f2f2f;
  margin: 8px 0 !important;
}

.dropdown ul li:last-of-type {
  border-bottom: none;
}

.dropdown ul a {
  color: #f2f2f2;
  text-decoration: none;
  width: 100%;
}

.login {
  padding: 16px;
}

form {
  padding: 20px;
}

form label {
  margin-top: 10px;
}

form input,
form select {
  font-size: 14px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background-color: #a2a2a2;
  color: #0a0a0a;
  width: 100%;
  padding: 10px;
  display: block;
  box-sizing: border-box;
}

form input[type="submit"] {
  cursor: pointer;
  background-color: #821000;
  color: #f2f2f2;
}

form textarea {
  width: 100%;
  height: 150px;
  border: none;
  padding: 10px;
  border-radius: 4px;
  color: #0a0a0a;
  background-color: #a2a2a2;
}

fieldset {
  border: none;
  padding: 10px 0;
}

.center {
  text-align: center;
}

.box {
  margin: 0;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 4px;
  background-color: #2a2a2a;
  border: 2px solid #181818;
  box-shadow: inset 0 0 1px 2px #3a3a3a;
}

.top-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 80%;
  margin: -4em auto 4em auto;
  gap: 4px;
}

.top-item {
  padding: 20px;
  border-radius: 4px;
  background-color: #2a2a2a;
  box-shadow: inset 0 0 1px 2px #3a3a3a;
  transition: 200ms;
}

.top-item:hover {
  box-shadow: inset 0 0 0px 2px #daa520;
}

.top-item.link {
  background-color: #2a2a4a;
  box-shadow: inset 0 0 1px 2px #4d4d3a;
}
.top-item.link:hover {
  box-shadow: inset 0 0 0px 2px #daa520;
}

.top-item.link:nth-of-type(1) {
  margin-left: 1em;
}

.top-item.link#inventory {
  background-color: #4a2a2a;
}

.bold {
  font-weight: bold;
}

.notification-title {
    text-align: center
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 2rem 0rem;
}

.notification-item {
    display: flex;
    background: var(--secondary-bg, #1a1a1a);
    padding: 1rem 1.5rem;
    text-align: left;
    box-shadow: inset 0 20px 30px 0px #2a2a2a;
    justify-content: space-between;
    border-radius: 10px;
}
.notification-item:hover {
    box-shadow: inset 0 -20px 30px 0px #2a2a2a;
}

.notification-message {
    line-height: 1.8;
}

.notification-message {
    margin: 0 1rem 0 0;
    color: var(--text-color);
}

.notification-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-date {
    font-size: 0.8rem;
    color: #888;
}
.notification-item:hover > .notification-right > .notification-date {
    color: #f2f2f2;
}

.notification-copy {
    background-color: #2a2a2a;
    color: #888;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
}
.notification-copy:hover {
    color: #f2f2f2;
    cursor: pointer;
}
.notification-copy:focus {
    background-color: #3a3a3a;
    color: #52f252;
}

.no-notifications {
    color: #888;
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
}

.pagination a:hover {
    background: var(--border-color, #333);
}

.pagination span {
    color: #888;
    font-size: 0.9rem;
}

.tooltip span {
  background-color: #8d8d75;
  border-radius: 10px;
  padding: 0 1.5em;
  margin: 1em 0em 1em 0.5em;
}
.tooltip span.positive {
  color: #5adf5a;
}
.tooltip span.negative {
  color: red;
}
.tooltip span.neutral {
  color: white;
}

.warning {
  animation: warning-blink 1s ease-in-out infinite;
}
@keyframes warning-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.danger {
  animation: danger-blink 1s ease-in-out infinite;
}
@keyframes danger-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; background-color: #9a0a0a; }
}

@media screen and (max-width: 600px) {
  .login {
    padding: 16px 0;
  }

  #minimap {
    display: none;
  }
}

@media only screen and (max-width: 720px) {
  main {
    width: 100%;
  }

  #info {
    position: absolute;
    font-size: 100%;
    line-height: 10px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }



  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }

  summary {
    width: 90vw;
  }

  .dropdown ul {
    position: relative;
    top: 0;
    margin-top: 8px;
    margin-left: 8px;
    width: 89vw;
    box-shadow: none;
  }
}
