@import url("https://fonts.googleapis.com/css?family=Lato:300");

body {
  background-color: #DEDEFF;
  color: #F0F0FF;
  font-family: "Lato", sans-serif;
  overflow-y: scroll;
  margin: 0;
}

body.no-scroll {
  position: fixed;
}

body.loading .hidden-while-loading,
body:not(.loading) .hidden-when-loaded {
  display: none !important;
}

#banner {
  background-color: #EBEBFF;
  border-bottom: 3px solid #C1C1FF;
  text-align: center;
  position: fixed;
  height: 100px;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
}

#banner h1, h2 {
  margin: 10px;
}

#banner h1 {
  margin-top: 20px;
  font-size: 32px;
  color: #57446C;
}

#banner h2 {
  font-size: 20px;
  color: #B6A9DE;
}

#content {
  margin-top: 120px;
}

.entries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#gallery {
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
}

#gallery:not(.active) {
  display: none;
}

#gallery img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  user-drag: none;
}

.gallery-image {
  max-height: 80%;
  max-width: 80%;
  box-shadow: 0px 0px 30px #C9C9FF;
  display: block;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: left 0.5s;
}

.gallery-image.previous {
  left: -200%;
}

.gallery-image.next {
  left: 200%;
}

#close-button {
  height: 40px;
  width: 40px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

#close-button:active {
  opacity: 0.8;
}

.region-title {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.region-name {
  font-size: 16px;
  line-height: 20px;
  height: 20px;
  width: 80px;
  padding: 5px 10px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  font-weight: bold;
}

.region-line {
  flex: 1;
  height: 3px;
}

.generation.kanto .separator {
  background-color: #9084F8;
}

.generation.johto .separator {
  background-color: #96BAF7;
}

.generation.hoenn .separator {
  background-color: #7CA6F9;
}

.entry {
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 10%;
}

.entry.unobtainable {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.generation.kanto .entry {
  background-color: #C9C9FF;
}

.generation.johto .entry {
  background-color: #BED3FE;
}

.generation.hoenn .entry {
  background-color: #B6C6F9;
}

.generation.kanto .entry.unobtainable {
  color: #C9C9FF
}

.generation.johto .entry.unobtainable {
  color: #BED3FE
}

.generation.hoenn .entry.unobtainable {
  color: #B6C6F9;
}

.entry img {
  cursor: pointer;
  max-width: 100%;
  display: block;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.entry.placeholder {
  height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.entry {
  margin: 6px;
  width: 192px;
  height: 192px;
  line-height: 192px;
  font-size: 72px;
}

@media (max-width: 1200px) {
  .entry {
    margin: 5px;
    width: 160px;
    height: 160px;
    line-height: 160px;
    font-size: 60px;
  }
}

@media (max-width: 960px) {
  .entry {
    margin: 4px;
    width: 128px;
    height: 128px;
    line-height: 128px;
    font-size: 48px;
  }
}

@media (max-width: 720px) {
  .entry {
    margin: 3px;
    width: 96px;
    height: 96px;
    line-height: 96px;
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .entry {
    margin: 2px;
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 24px;
  }
}
