:root {
  --pageBlack: #262626;
  --pageYellow: #ffd83e;
  --pagePurple: #552b55;
  --pageRed: #E1332d;
  --pageGreen: #79cba7;
  --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: 100%;
  height: 100%;
  /* background-color: var(--lightBlue); */
  opacity: 0.8;
  /* z-index: -1; */
}
.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);
}
p {
  font-size: 16px;
  width: 80%;
  align-self: center;
  text-align: center;
}
a {
  text-decoration: none;
  background-color: black;
  color:white;
  width: 100px;
  padding: 15px;
  margin-bottom: 20px;
  align-self: center;
}

/* EFFECT STYLES */

.container {
  background-color: #444;
  border: 10px solid white;

}
.container img {
  transition: all .5s;
}
.container:hover img {
  transform: rotate(720deg) scale(0);
  opacity: 0;
}
.container:before {
  background-color: var(--pageGreen);
  opacity: 0;
  transition: all .3s;
}

.container:hover:before {
  opacity: 1;
  transition-delay: .4s;
}
a{
  transform: translateY(-300px);
  transition: all .2s;
}
.container:hover a {
  transform: translateY(0);
  transition-delay: .5s;
}
p{
  transform: translateY(-300px);
  transition: all .2s;
}
.container:hover p {
  transform: translateY(0);
  transition-delay: .7s;
}
h2{
  transform: translateY(-300px);
  transition: all .2s;
}
.container:hover h2 {
  transform: translateY(0);
  transition-delay: .9s;
}




/* 
.container:before {
  transform: translate(650px, -100px) rotate(180deg);
  transition: all .5s;
}
.container:hover:before {
  transition-timing-function:ease;
  transform: translate(0,0) rotate(0deg);
}
h2 {
  transform: translateY(-150px);
  transition: all 0.2s
}
.container:hover h2 {
  transform: translateY(0px);
  transition-timing-function: ease-in-out;
  transition-delay: 0.5s
}
p {
  transition: all .2s;
  transform: translateX(300px) rotate(90deg);
}
.container:hover p {
  transform: translateX(0px) rotate(0deg);
  transition-timing-function: ease-in-out;
  transition-delay: 0.4s
}
a {  
  transition: all .2s;
  transform: translateY(-300px);
}
.container:hover a {
  transform: translateY(0px);
  transition-timing-function: ease-in-out;
  transition-delay: .3s
} */