.pokelog {
  padding: 0px;

  position: fixed;
  top: 50%;
  left: -150%;

  color: white;
  background-color: #0b1318;
  border: none;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease;
  overflow-y: hidden;
}

.pokelog.active {
  left: 50%;
}

.pokelog.closed {
  left: 150%;
}

.pokelog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

.pokelog_wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;

  width: 500px;
  height: 80vh;
  gap: 6px;

  overflow-x: hidden;
}

.pokelog_id {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 8px;
}

.pokelog_id span {
  min-width: 30px;
}

.pokelog_close_button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  
  position: absolute;
  top: 6px;
  right: 6px;

  color: white;
  border: 1px solid white;
  border-radius: 6px;
  cursor: pointer;
}

.pokelog_sprite_container {
  display: flex;
  justify-content: center;
  align-items: center;
  
  overflow-x: hidden;
  overflow-y: hidden;
}

.pokelog_sprite {
  max-width: 50%;

  position: fixed;
  z-index: 1;

  filter: drop-shadow(10px 10px 10px #0b1318)
}

.pokelog_sprite_bg_image {
  width: 280px;
  height: 280px;

  background: transparent;
  border: 24px solid #0b1318;
  border-radius: 50%;
  transform: translate(60%, 25%);
}

.pokelog_sprite_bg_image::before {
  content: "";

  width: calc(100% + 8px);
  height: 18px;

  position: absolute;
  top: 50%;
  left: -4px;
  
  background-color: #0b1318;
  transform: translateY(-50%);
}

.pokelog_sprite_bg_image::after {
  content: "";
  
  width: 56px;
  height: 56px;
  
  position: absolute;
  top: 50%;
  left: 50%;
  
  background: transparent;
  border: 18px solid #0b1318;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pokelog_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
}

.pokelog_arrow {
  font-size: 28px;
  
  padding: 12px;
  
  color: white;
  background: rgba(0,0,0,0.0);
  border: none;
  cursor: pointer;
}

.pokelog_arrow:hover {
  background: rgba(0,0,0,0.6);
}

.pokelog_type {
  display: flex;
  justify-content: center;
  flex: 1;
  
  gap: 12px;
}

.pokelog_type .type_badge {
  width: 48px;
  height: 48px;
}

.pokelog_type .type_icon {
  width: 100%;
}

.pokelog_tabs {
  display: flex;
  justify-content: space-around;
  
  white-space: nowrap;
  
  position: relative;
  
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pokelog_single_tab {
  font-size: 15px;
  
  width: 100%;
  padding: 10px 16px;
  
  position: relative;
  
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

.pokelog_tab_underline {
  height: 3px;
  
  position: absolute;
  bottom: 0;
  
  background: white;
  border-radius: 3px;
  transition: 0.25s ease;
}

.pokelog_content {
  height: 50%;
  padding: 18px 12px;

  overflow-y: auto;
}

.pokelog_content_tab {
  display: flex;
  flex-direction: column;

  padding: 12px 32px;
  gap: 12px;
}

.main_fact {
  display: flex;
}

.main_fact_name {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  
  font-size: 20px;
  
  min-width: 160px;
}

.main_fact_value {
  display: flex;
  align-items: center;
  text-align: left;
  
  font-size: 20px;
}

.stat_row {
  display: flex;
  align-items: center;

  font-size: 20px;
  
  gap: 12px;
}

.stat_name {
  display: flex;
  
  text-align: left;
  text-transform: capitalize;

  width: 200px;
}

.stat_bar {
  width: 100%;
  height: 8px;
  
  background: #0f1c24;
  border: 1px solid white;
  border-radius: 6px;
}

.stat_fill {
  height: 8px;
  
  border-radius: 4px;
}

.evo_tree {
  display: flex;
  justify-content: center;
}

.evo_node {
  display: flex;
  align-items: center;
}

.evo_node.root {
  flex-direction: row;
}

.evo_children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.evo_child_with_arrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evo_arrow {
  font-size: 20px;
  font-weight: bold;
  opacity: 0.7;
}

.evo_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.evo_item img {
  width: 100%;
}