
@keyframes popout {
    from{transform:scale(0.1)}
    to{transform:scale(1)}
}
@-webkit-keyframes popout {
    from{transform:scale(.1)}
    to{transform:scale(1)}
}
 /* -------------------------------------- Animations */
 @keyframes fade-top {
  from {top: -200px; transform:scale(.1); opacity: 0;}
  to {top: 0px; transform:scale(1);opacity: 1;}
}
.fade-top {
animation: fade-top .6s;
}
 @keyframes fade-left {
  from {left: -200px; transform:scale(.1);opacity: 0;}
  to {left: 0px; transform:scale(1);opacity: 1;}
}
.fade-left {
animation: fade-left .6s;
}

@keyframes fade-right {
  from {right: -200px; transform:scale(.1); opacity: 0;}
  to {right: 0px; transform:scale(1); opacity: 1;}
}
.fade-right {
animation: fade-right .6s;
}
@keyframes fade-bottom {
  from {bottom: -100px; transform:scale(.1); opacity: 0;}
  to {bottom: 0px; transform:scale(1); opacity: 1;}
}
.fade-bottom {
animation: fade-bottom 1s;
}
@keyframes fade-in {
  from {opacity: 0; top:-70px}
  to {opacity: 1; transform:scale(1); top:0px}
}
.fade-in {
animation: fade-in 1s;
}
@keyframes scale {
  0%{transform: scale(0,0);}
50% {transform: scale(1.1,1.1);}
100% {transform: scale(1,1);}
}
.me {

opacity: 0;
}
.scale {
animation: scale 1s;
width: 250px;
opacity: 1;

}
@keyframes six-rate {
  0%{width: 0%;}
30% {width: 100%;}
100% {width: 60%;}
}

.six-rate {
animation: six-rate 2s;
opacity: 1;
}
@keyframes eight-rate {
  0%{width: 0%;}
30% {width: 100%;}
100% {width: 80%;}
}
.eight-rate {
animation: eight-rate 2s;
opacity: 1;
}
@keyframes nine-rate {
  0%{width: 0%;}
30% {width: 100%;}
100% {width: 90%;}
}
.nine-rate {
animation: nine-rate 2s;
opacity: 1;
}
/* -------------------------------------- Animations */

.button-back {
  display: block;
  border: none;
  position: relative;
  border-radius: 2px;
  background: linear-gradient(to right, #c72d7e,#8679ef);
  text-align: center;
  /* font-weight: bold; */
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
  cursor: pointer;
  margin-bottom: 50px;
  transition: all 0.4s;
  position: relative;
  animation: fade-in .4s ease;
  -webkit-animation: fade-in .4s ease;
}

.button-back:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: -webkit-linear-gradient(to right,  #c72d7e, #fb4673);
  background: linear-gradient(to right,#fb4673, #c72d7e);
  transform: scaleX(0);
  opacity: 0;
  transition: all .4s ease-out;
}

.button-back:hover:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  opacity: 1;
}

.button-back span {
  cursor: pointer;
  color: #fff;
  align-items: center;
  display: inline-block;
  position: relative;
  transition: 0.2s;
}

.button-back span::before {
  content: "";
  top: 0;
  left: -10px;
  position: relative;
  opacity: 0;
  transition: all .4s;
}

.button-back:hover span {
  padding-left: 15px;
}

.button-back:hover span::before {
  content: "";
  top: 0;
  left: -10px;
	position: relative;
	display: inline-block;
  margin-left: 8px;
  opacity: 1;
	border-right: 5px dashed;
	border-top:5px solid transparent;
	border-bottom: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: all .4s;
}

.button-back span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.2s;
}

.animations-gallery,
.gamifications-gallery,
.web-designs-gallery,
.graphic-designs-gallery,
.drawings-gallery {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}




.project {
  position: relative;
  background: #EDEDED;
  overflow: hidden;
  width: 33%;
  height: auto;
  margin-bottom: 6px;
  /* animation: fade-top ease-out .6s; */
 }

 .project {
    cursor: pointer;
 }

.project .project__image {
  width: 100%;
  height: auto;
	opacity: .9;
  transform: scale(1.2);
  transition: transform .6s, filter 2s;
}


.project:hover .project__image {
	filter:brightness(50%);
  transform: scale(1.02);
}

.project:hover .ad{
  border-style: solid;
  border-width: 20px 0 20px 30px;
  border-radius: 3px;
  border-color: transparent transparent transparent #fff;
  transition: all .4s;
}

.project:hover .ad-box{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0000003d;
  border-radius: 50%;
  padding-left: 10px;
  width: 80px;
  height: 80px;
  bottom: calc(50% - 40px);
  right: calc(50% - 40px);
  transition: all .4s;
  z-index: 9;
  transition: all .6s;
}

.info-text {
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transition: all .4s;
  z-index: 9;
  transition: all .6s;
}

.info-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  top: 0;
  right: 0;
  opacity: 0;
  width: auto;
  padding: 10px;
  transition: all .4s;
  z-index: 10;
  transition: all .6s;
}

.project:hover .info-container {
  opacity: 1;
  transition: all .6s;
}

.link-box {
  width: 50px;
  height: 40px;
  opacity: .7;
  display: flex;
  justify-content: center;
  align-content: center;
  border: 2px solid #fff;
  z-index: 11;
  transition: all .6s;
}



.info-box {
  width: 50px;
  height: 40px;
  opacity: .7;
  display: flex;
  margin-left: 10px;
  justify-content: center;
  align-content: center;
  border: 2px solid #fff;
  z-index: 11;
  transition: all .6s;
}
.link-box img,
.info-box img {
  width: 100%;
  height: auto;
}

.link-box:hover {
  opacity: 1;
  background-color: #00000059;
  transition: all .6s;
}


.info-box:hover {
  opacity: 1;
  background-color: #00000059;
  transition: all .6s;
}


h4 {
  position: relative;
  top: 0;
  color: #fff;
  font-size: 33px;
  margin-top:60px;
  padding-right: 30%;
  padding-left: 30px;
  text-align: left;
  opacity: 0;
  transition: all .4s ease-out;
}
.black-box {
  position: relative;
  background-color: #474545;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: all .4s ease-out;
}
.info-container:hover ~ .info-text .black-box{
  opacity: 1;
  transition: all .4s ease-out;
}

.info-container:hover ~ .info-text h4 {
  margin-top: 20px;
  opacity: 1;
  transition: all .4s ease-out;
}

.text-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  padding: 10px;
  background-color: #ffffffc4;
  text-align: center;
  transition: all .4s;
}

.subline {
    text-align: center;
    color:#000;
    width: 100%;
    padding: 1em 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.headline {
    font-weight: 100;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #474545;
    letter-spacing: 2px;
    opacity: 0;
    margin-bottom: -20px;
    transition: all .6s;
}



.project:hover .headline {
  margin:0;
  opacity: 1;
  transition: all .6;
}



.headline-gallery  {
  position: relative;
}

.headline-gallery h10{
  position: relative;
  animation: fade-in .8s ease;
  -webkit-animation: fade-in .8s ease;
}

.headline-gallery h1{
  position: relative;
  animation: fade-in .6s ease;
  -webkit-animation: fade-in .6s ease;
  opacity: 1;
}

.headline-gallery h3{
  position: relative;
  animation: fade-in .3s ease;
  -webkit-animation: fade-in .3s ease;
  opacity: 1;
}

#overlay {
  display:none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#overlay.open{
    display: flex;
    overflow-y: scroll;
    justify-content: center;
    align-items: center;
    background:#000000d0;
    z-index:12;
}


#overlay__inner {
  background: #ffffff7d;
  position: relative;
  opacity: 1;
  animation: popout 1s ease;
  -webkit-animation: popout .6s ease;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
#overlay__inner_graphic {
  background: #ffffff7d;
  position: relative;
  opacity: 1;
  animation: popout 1s ease;
  -webkit-animation: popout .6s ease;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.overlay-image {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  animation: popout .6s ease;
  -webkit-animation: popout .6s ease;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.background-image,
iframe {
  position: relative;
  top:0px;
  left:0px;
  bottom: 0px;
  right: 0px;
  margin: 0;
}

iframe {
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  top: 20px;
  left: 20px;
}

.background-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: black;
}


.drawing {
  margin: auto;
  width: 45vw;
  height: auto;
}

.animation-img {
  margin: auto;
  width: 60vw;
  height: auto;
}

.animation-img {
  opacity: .6;
}

#nextButton {
  position: absolute;
  right: -70px;
  top:50%;
  margin-top: -40px;
  border: 2px solid #ffffff93;
  display: inline-block;
	margin-left: 20px;
  vertical-align: middle;
  cursor: pointer;
  z-index: 100;
  transition: all .4s;
}

#right-arrow {
  margin: 10px 0 10px 20px;
  border-left: 15px solid;
	border-left-color: #ffffff93;
	border-top:15px solid transparent;
	border-bottom: 15px solid transparent;
  border-right: 15px solid transparent;
  transition: all .4s;
}

#nextButton:hover #right-arrow {
  border-left-color:#ffffff;
  margin: 10px -5px 10px 25px;
  transition: all .4s;
}

#nextButton:hover {
  transition: all .4s;
  border: 2px solid #ffffff;
}

#prevButton {
  position: absolute;
  left:-70px;
  top:50%;
  margin-top: -40px;
  border: 2px solid #ffffff93;
  display: inline-block;
	margin-right: 20px;
  vertical-align: middle;
  cursor: pointer;
  z-index: 100;
  transition: all .4s;
}

#left-arrow {
  margin: 10px 20px 10px 0;
  border-right: 15px solid;
	border-right-color:#ffffff93;
	border-top:15px solid transparent;
	border-bottom: 15px solid transparent;
  border-left: 15px solid transparent;
  transition: all .4s;
}

#prevButton:hover #left-arrow {
  border-right-color:#ffffff;
  margin: 10px 25px 10px -5px;
  transition: all .4s;
}

#prevButton:hover {
  border: 2px solid #ffffff;
  transition: all .4s;
}

.close {
  position: absolute;
  cursor: pointer;
  top: 2px;
  right: 20px;
  background: none;
  outline: 0;
  color: #474545;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  transition: all .6;
}

.close:hover {
    color: #000;
    transition: all .6;
}



@media screen and (max-width: 1500px) {
	.project {
    width: 49.5%;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 1050px) {
  #overlay__inner {
    margin:80px;
  }
  #overlay__inner_graphic {
    margin:80px;
  }
  .drawing,
  .animation-img {
    width: 75vw;
  }
}



.loader,
.loader:before,
.loader:after {
  position: absolute;
  bottom:50%;
  right:45%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #ffffff;
  font-size: 10px;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}

@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}


@media screen and (max-width: 720px) {
  h4 {
    font-size: 30px;
  }

  #overlay__inner,
  #overlay__inner_graphic {
    margin:80px 20px 80px 20px;
  }

  #overlay__inner {
    width: 95%;
    height: 350px;
  }

  .drawing,
  .animation-img {
    width: 95vw;
  }
  
  .background-image {
    height: 100%;
    width: auto;
  }

  .animation-img {
    height: 100%;
    width: auto;
  }
  #nextButton {
    top:100%;
    right: 35%;
    margin-top: 20px;
  }
  
  #right-arrow {
    margin: 7px 0 7px 10px;
    border-left: 10px solid;
    border-left-color:#ffffff93;
    border-top:10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid transparent;
  }
  
  #nextButton:hover #right-arrow {
    margin: 7px -3px 7px 13px;
  }

  
  #prevButton {
    top:100%;
    left:35%;
    margin-top: 20px;
  }

  #left-arrow {
    margin: 7px 10px 7px 0;
    border-right: 10px solid;
    border-right-color:#ffffff93;
    border-top:10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid transparent;
  }
  
  #prevButton:hover #left-arrow {
    margin: 7px 13px 7px -3px;
  }
  
}

@media screen and (max-width: 600px) {
	.project {
    width: 100%;
    margin-bottom: 10px;
  }


  .overlay-image {
    padding: 20px 5px 5px 5px;
  }

  iframe {
    width: calc(100% - 10px);
    height: calc(100% - 25px);
    bottom: 5px;
    left: 5px;
  }
}
@media screen and (max-width: 500px) {
  .animation-img {
    transform: scale(1.3);
  }

  h4 {

    font-size: 36px;
  }
}

@media screen and (max-height: 900px) and (min-width: 1000px) {
  .drawing {
    width: 90vh;
  }
  
  .animation-img {
    width: 100vh;
  }
}


