/*****************************
*  CREATING ANIMATIONS
******************************/

@keyframes slide {
    0% {
        width: 0px;
    }
    12% {
        width: 0px;
    }
    16% {
        width: 75px;
    }
    20% {
        width: 150px;
    }
    24% {
        width: 225px;
    }
    28% {
        width: 300px;
    }
    100% {
        width: 300px;
    }
}

@keyframes frameTwo {
    0% {
        opacity: 1;
    }
    39% {
        opacity: 1;
    }
    42% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes frameThree {
    0% {
        opacity: 0;
    }
    42% {
        opacity: 0;
    }
    47% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}



/*****************************
*  DECLARING FONTS
******************************/
@font-face {
  font-family: 'Bourgeois-Book';
  src: url('fonts/Bourgeois-BookCond.eot');
  src: url('fonts/Bourgeois-BookCond.eot?#iefix') format('embedded-opentype'),
       url('fonts/Bourgeois-BookCond.woff') format('woff'),
       url('fonts/Bourgeois-BookCond.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Bourgeois-Bold';
  src: url('fonts/Bourgeois-BoldCond.eot');
  src: url('fonts/Bourgeois-BoldCond.eot?#iefix') format('embedded-opentype'),
       url('fonts/Bourgeois-BoldCond.woff') format('woff'),
       url('fonts/Bourgeois-BoldCond.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}



/*****************************
*  STRUCTURE AND POSITION
******************************/

a,
a:link,
a:hover {
    text-decoration: none;
    color: #ffffff;
}

/* Set height/width of container */
.general {
    height: 250px;
    width: 300px;
    position: relative;
    overflow: hidden;
    background-color: #265c5e;
}

p,
.glitch {
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Bourgeois-Bold', sans-serif;
    /*font-size: 38px;*/
    font-size: 29px;
    width: 300px;
    text-align: center;
    /*margin-top: 10px;*/
    margin-top: 30px;
    /*line-height: 31px;*/
    line-height: 23px;
}

.frame1,
.frame2 {
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 250px;
    background-size: 300px 250px;
    background-position: top left;
    background-image: url(images/frame1.png);
    z-index: 7;
}

.frame2 {
    background-image: url(images/frame2.png);
    z-index: 8;
}

.frame2 .glitch {
    text-shadow: 0px 0px 10px #fcd403;
    color: #f9edad;
    margin-top: 19px;
}

.frame3 {
    opacity: 0;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.frame3 .glitch {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 85px;
  color: #f9edad;    
  text-shadow: 0px 0px 3px #454444;
}

.frame3 p {
    font-size: 18px;
    line-height: 14px;
    color: #485050;
    font-family: 'Bourgeois-Bold', sans-serif;
    padding: 5px;
    font-style: normal;
    text-align: center;
    margin: 16px 0 0 12px;
    background: #f3ce29;
    border: 3px solid #5c8eb2;
    width: 55px;
}

.frame3 img {
    margin-right: 12px;
    width: 70px;
}

/* GLITCH CONTROLS */

/*.glitch-wrapper {
  height: 100%;
  width: 300px;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
}*/
.glitch {
  color: white;
  text-transform: upercase;
  position: relative;
  display: inline-block;
}
/*.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 77%;
  height: 69px;
  padding: 0 35px;
}
*/
/*****************************
*  ASSIGNING ANIMATIONS
******************************/

.frame2 { animation: slide 10s 3 linear normal; animation-fill-mode: forwards; }
.frame2 .glitch { animation: frameTwo 10s 3 linear normal; animation-fill-mode: forwards; }
.frame3 { animation: frameThree 10s 3 linear normal; animation-fill-mode: forwards; }

/*.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #f0de01;
  clip: rect(124px, 0px, 0px, 0);
  animation: glitch-anim-2 10s 3 linear normal;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #d2af05;
  clip: rect(185px, 0px, 0px, 0);
  animation: glitch-anim 10s 3 linear normal;
}*/
