@charset "UTF-8";

.colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.color {
  padding: 0 0.5rem;
  width: 320px;
  max-width: 100%;
}

.block {
  padding: 1rem 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tile {
  width: 10rem;
  height: 10rem;
  font-size: 1rem;
}
.tile.v, .tile.q {
  width: 5rem;
}
.tile.h, .tile.q {
  height: 5rem;
}
.tile a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.tile a:hover {
  box-shadow: 0 0 2px #ffffff, 0 0 2px #000000 inset;
}
.tile-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-evenly;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tile-inner div {
  width: 100%;
  text-align: center;
}
.tile.f .tile-hex, .tile.f .tile-rgb, .tile.f .tile-hsl {
  height: 4rem;
  line-height: 4rem;
}
.tile.v .tile-hex, .tile.v .tile-rgb, .tile.v .tile-hsl,
.tile.h .tile-hex, .tile.h .tile-rgb, .tile.h .tile-hsl,
.tile.q .tile-hex, .tile.q .tile-rgb, .tile.q .tile-hsl {
  display: none;
  width: 100%;
  height: 100%;
  font-weight: 400;
}
.tile.v a, .tile.h a, .tile.q a {
  display: block;
  width: 100%;
  height: 100%;
}
.tile.q a, .hue .tile.h a {
  overflow: hidden;
  text-indent: -9999px;
}
.tile.h a span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12rem;
  transform: translate(-50%,-50%);
}
.tile.v a span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12rem;
  transform: translate(-50%,-50%) rotate( 75deg );
}

.color-hex .tile.f .tile-hex,
.color-rgb .tile.f .tile-rgb,
.color-hsl .tile.f .tile-hsl {
  font-weight: 700;
  text-decoration: underline;
}
.color-hex .tile.h .tile-hex,
.color-hex .tile.v .tile-hex,
.color-hex .tile.q .tile-hex,
.color-rgb .tile.h .tile-rgb,
.color-rgb .tile.v .tile-rgb,
.color-rgb .tile.q .tile-rgb,
.color-hsl .tile.h .tile-hsl,
.color-hsl .tile.v .tile-hsl,
.color-hsl .tile.q .tile-hsl {
  display: block;
}

.block.hue .tile, .block.rgb .tile {
  height: 3rem;
}

.control .buttons {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem 0;
}
.control .buttons a, .control .buttons label {
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  vertical-align: middle;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
}
.control .buttons a i, .control .buttons label i {
  font-size: 75%;
}

@media only screen and ( min-width:1170px ) {
  .color {
    width: 370px;
  }
  .tile {
    width: 12rem;
    height: 12rem;
    font-size: 1.2rem;
  }
  .tile.v, .tile.q {
    width: 6rem;
  }
  .tile.h, .tile.q {
    height: 6rem;
  }
  .tile-hex {
    font-size: 1.6rem;
  }
}

.samples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.samples a {
  display: inline-block;
  color: #f0f0f0;
  background-color: #333333;
  border: 1px solid #f0f0f0;
  padding: 2rem;
  margin: 1.5rem 0;
  text-decoration: none;
}
.samples a:hover {
  color: #333333;
  background-color: #f0f0f0;
  border: 1px solid #333333;
}

.charts {
  position: fixed;
  left: 0;
  bottom: 2.8rem;
  width: 100%;
  padding: 2rem;
  background-color: #ffffff;
}
.chart {
  display: flex;
  margin: 0 auto;
  width: 100%;
  height: 10rem;
  max-width: 1024px;
  border: 1px solid #cccccc;
}
.chart a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

body {
  min-height: calc(100vh - 17rem);
  margin-bottom: 17rem;
}
