:root {
  --pageBlack: #262626;
  --pageYellow: #ffd83e;
  --pagePurple: #552b55;
  --pageRed: #E1332d;
  --pageGreen: #2ce771;
  --lightGreen: #006266;
  --pageGrey: #212121;
  --lightGrey: #2d3436;
  --lightBlue: #a0c7dc;

}
body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lightGreen);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.container {
  width: 450px;
  height: 300px;
  position: relative;
  overflow: hidden;
}
img {
  width: 100%
}
.container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 195%;
  background-color: var(--lightBlue);
  opacity: 0.8;
  transition: all .25s;
  transform: translate(550px, 300px) rotate(45deg);
}
.container:hover:before {
  transform: translate(-60px, -130px) rotate(45deg);
}
.caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: white;
  text-transform: uppercase;
  
}
h2 {
  text-align: center;
  font-size: 17px;
  padding:20px;
  margin-top: 20px;
  background-color: rgb(0,0,0,0.8);
  transform: translate(200px, -200px);
  transition: all .25s;
}
.container:hover h2 {
  transform: translate(0,0);
  transition-delay: 0.1s
}
p {
  font-size: 16px;
  width: 80%;
  align-self: center;
  text-align: center;
  transition: all .25s;
  transform: translate(-200px, 200px);
}
.container:hover p {
  transform: translate(0,0);
  transition-delay: 0.1s
}
a {
  text-decoration: none;
  background-color: black;
  color:white;
  width: 100px;
  padding: 15px;
  margin-bottom: 20px;
  align-self: center;
  transition: all .25s;
  opacity: 0;
}
.container:hover a {
  opacity: 1;
  transition-delay: .8s
}