:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #e5edf7;
  background: #111827;
}

a {
  color: #67e8f9;
}

#app {
  min-height: 100vh;
  padding: 0 24px 12px;
  background: #111827;
}

.app-header {
  min-height: 74px;
  margin: 0 -24px 20px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  background: #0b1220;
  border-bottom: 1px solid #263449;
}

.app-header h1 {
  margin: 0;
  color: #e5edf7;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-header p {
  margin: 4px 0 0;
  color: #9fb2c7;
  font-size: 13px;
}

.container {
  border: 1px solid #263449;
  border-radius: 8px;
  background: #162033;
}

.container .simplebar-content {
  display: flex;
  flex-direction: row;
  height: 114px;
}

.atom-card {
  min-width: 80px;
  height: 80px;
  margin: 10px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #dce8f5;
  background: #0f172a;
  border: 1px solid #263449;
  border-radius: 8px;
  transition: 180ms ease-in-out;
}

.atom-card:hover {
  border-color: #06b6d4;
  transform: translateY(-1px);
}

.atom-card.atom-selected {
  color: #06111b;
  background: #22d3ee;
  border-color: #67e8f9;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.45), 0 12px 28px rgba(6, 182, 212, 0.2);
}

.atom-value {
  display: flex;
  font-size: 10px;
  justify-content: space-between;
}

.atom-symbol {
  display: flex;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
}

.atom-name {
  display: flex;
  font-size: 10px;
  justify-content: center;
}

model-viewer {
  width: 100% !important;
  height: calc(100vh - 308px);
  margin: 0 auto 18px !important;
  background: #162033;
  border: 1px solid #263449;
  border-radius: 8px;
}

footer {
  padding: 18px 0 0;
  display: flex;
  justify-content: center;
  color: #9fb2c7;
  font-size: 12px;
}

.modal {
  position: absolute;
  right: 24px;
  top: 92px;
  width: 0;
  height: calc(100vh - 126px);
  padding: 10px;
  color: #e5edf7;
  background: #162033;
  border: 0;
  border-radius: 8px;
  box-shadow: -14px 0 32px rgba(0, 0, 0, 0.35);
  transition: 220ms ease-in-out;
  opacity: 0;
  overflow: hidden;
}

.modal .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal .header .close {
  width: 24px;
  height: 24px;
  position: sticky;
  top: 0;
  margin-left: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #263449;
  border-radius: 50%;
  font-size: 13px;
}

.modal .header .title {
  font-weight: bold;
  font-size: 22px;
}

.modal .body {
  padding-top: 10px;
}

.modal .body .info-element {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  color: #cbd5e1;
  font-size: 12px;
}

.modal .body .info-element .key {
  color: #67e8f9;
  font-weight: bold;
  text-transform: uppercase;
}

.modal .body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.open {
  width: min(320px, calc(100vw - 48px));
  border: 1px solid #263449;
  opacity: 1;
}

.info-element .value .value-contains .each-row {
  display: flex;
}

.info-element .value .value-contains .each-row div {
  display: flex;
  min-width: 60px;
}

.info-element .value .value-contains .each-row:last-child {
  display: none;
}

img.atom-image {
  width: 100%;
  border-radius: 8px;
}

.simplebar-scrollbar:before {
  background: #67e8f9;
}

@media (max-width: 760px) {
  #app {
    padding: 0 14px 12px;
  }

  .app-header {
    margin: 0 -14px 14px;
    padding: 12px 14px;
  }

  model-viewer {
    height: calc(100vh - 330px);
  }

  .modal {
    right: 14px;
    top: 84px;
  }
}
