@import url('https://fonts.googleapis.com/css?family=Raleway');

body { 
  background: rgb(17, 17, 17);
  color: rgb(185, 185, 185);
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

input {
  background: none;
  border: none;
  width: 100%;
  color: rgb(185, 185, 185);
  font-size: 2rem;
  outline: none;
}

#loading {
  margin: 1rem;
}

#copy {
  left: -100vw;
  position: absolute;
}

.colors {
  display: flex;
  flex-wrap: wrap;
}

.color {
  flex-grow: 1;
  width: 13rem;
  height: 15rem;
  display: flex;
  flex-direction: column;
}

.name, .code {
  margin: 0.5rem;
  position: relative;
  background: inherit;
}

.name {
  flex-grow: 999;
  font-size: 1.5rem;
}

.name::after {
  content: "Click to copy name";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  transition-delay: 2s;
}

.color:hover > .name::after {
  opacity: 1;
}

.code::after {
  content: "Click to copy code";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  transition-delay: 2s;
}

.color:hover > .code::after {
  opacity: 1;
}

.code {
  font-size: 1rem;
  text-align: right;
}
