body {
  margin: 0;
  padding: 0;
}

.clear:after {
    content: ""; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

.clear {display: inline-block;}
/* Hides from IE-mac \*/
* html .clear {height: 1%;}
.clear {display: block;}
/* End hide from IE-mac */

a:link, a:visited{
  color: #cc9930;
  text-decoration: none;
}

a:hover{
  color: #ffd378;
}

.wrap1, .wrap2{
  overflow: scroll;
  height: 500px;
}


h1{
  display: none;
}

h2, h3{
  width: 100%;
}

  h2 a{
    position: absolute;
    top: 0;
    right: 15px;
    padding: 5px;
    font-size: .7em;
    -webkit-border-bottom-right-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-bottomright: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
  }

  h2 a:hover{
    background: #222
  }

ol, ul{
  text-align: left;
  padding: 0 0 0 20px
}

  ol li, ul li{
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 8px;
    width: 100%;
  }

    ul li strong{
      color: #cc9930
    }

  ol li a, ul li a{
    float: right;
  }

/* Animated */

.animated, .contest-wc, .button-div, .pick, .submit-link {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.animated2, .team-div, .rightc{
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.animated3 {
  -webkit-animation-duration: 3s;
          animation-duration: 3s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

@-webkit-keyframes bounceInLeft {
  0%, 60%, 75%, 90%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(-3000px, 0, 0);
            transform: translate3d(-3000px, 0, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(25px, 0, 0);
            transform: translate3d(25px, 0, 0);
  }

  75% {
    -webkit-transform: translate3d(-10px, 0, 0);
            transform: translate3d(-10px, 0, 0);
  }

  90% {
    -webkit-transform: translate3d(5px, 0, 0);
            transform: translate3d(5px, 0, 0);
  }

  100% {
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes bounceInLeft {
  0%, 60%, 75%, 90%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(-3000px, 0, 0);
            transform: translate3d(-3000px, 0, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(25px, 0, 0);
            transform: translate3d(25px, 0, 0);
  }

  75% {
    -webkit-transform: translate3d(-10px, 0, 0);
            transform: translate3d(-10px, 0, 0);
  }

  90% {
    -webkit-transform: translate3d(5px, 0, 0);
            transform: translate3d(5px, 0, 0);
  }

  100% {
    -webkit-transform: none;
            transform: none;
  }
}

.bounceInLeft, .team-div, .submit-link, .rightc {
  -webkit-animation-name: bounceInLeft;
          animation-name: bounceInLeft;
}

@-webkit-keyframes rubberBand {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
            transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
            transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
            transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(.95, 1.05, 1);
            transform: scale3d(.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, .95, 1);
            transform: scale3d(1.05, .95, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

@keyframes rubberBand {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
            transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
            transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
            transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(.95, 1.05, 1);
            transform: scale3d(.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, .95, 1);
            transform: scale3d(1.05, .95, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

.rubberBand, .pick {
  -webkit-animation-name: rubberBand;
          animation-name: rubberBand;
}

@-webkit-keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.fadeIn, .contest-wc{
  -webkit-animation-name: fadeIn;
          animation-name: fadeIn;
}

/* End Animated */

/* Login */

.body{
  color: #FFF;
  text-align: center;
  margin-top: 120px;
}

.box-login{
  border: 1px solid #cc9930;
  -webkit-border-top-left-radius: 20px;
  -webkit-border-bottom-right-radius: 20px;
  -moz-border-radius-topleft: 20px;
  -moz-border-radius-bottomright: 20px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: inline-block;
  max-width: 500px;
  margin: 30px 5%;
  padding: 30px 5%;
  width: 80%;
}

  .body:before{
    content: 'Welcome to our World Cup Bracket Contest!';
    font-size: 1.5em;
    line-height: 1.2em;
    margin: 20px 0 0 0;
    display: inline-block;
    width: 100%;
    text-align: center;
    color: #FFF;
  }

  .row-input{
    margin-bottom: 20px;
  }

    .box-login input[type="text"], .box-login input[type="password"]{
      /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#cccccc+0,ffffff+100 */
      background: rgb(204,204,204); /* Old browsers */
      background: -moz-linear-gradient(top,  rgba(204,204,204,1) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
      background: -webkit-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
      background: linear-gradient(to bottom,  rgba(204,204,204,1) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
      border: 1px solid #CCC;
      font-size: 1em;
      padding: 15px 2%;
      width: 96%;
    }

    .box-login label{
      color: #FFF;
      text-transform: uppercase;
      display: inline-block;
      margin-bottom: 10px;
    }

      .box-login label.username:before{
        content: 'username';
      }

      .box-login label.password:before{
        content: 'password';
      }

      .box-login input[type="submit"]{
        cursor: pointer;
      }


/* End Login */

div.container {
  color: #FFF;
  margin: 30% 5% 30px 5%;
  padding: 2%;
  width: 86%;
}

  .leftc, .rightc{
    float: left;
    margin: 10px 0;
    text-align: center;
    width: 100%;
  }

    .rules li{
      border-bottom: 0;
      font: .9em Arial;
      text-align: justify;
    } 

      .rules img{
        height: auto;
        max-width: 100%;
      }

      .rules span{
        color: #cc9930;
        text-transform: uppercase;
      }

    .pick, .pick:visited{
      /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#cc9930+0,ffd378+100 */
      background: #cc9930; /* Old browsers */
      background: -moz-linear-gradient(left,  #cc9930 0%, #ffd378 100%); /* FF3.6-15 */
      background: -webkit-linear-gradient(left,  #cc9930 0%,#ffd378 100%); /* Chrome10-25,Safari5.1-6 */
      background: linear-gradient(to right,  #cc9930 0%,#ffd378 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc9930', endColorstr='#ffd378',GradientType=1 ); /* IE6-9 */
      border: 1px solid #cb8b07;
      color: #000;
      display: inline-block;
      font-size: 1.5em;
      font-weight: bold;
      line-height: 1.2em;
      text-transform: uppercase;
      text-align: center;
      padding: 15px 0;
      width: 80%;
    }

      .pick:hover{
        color: #666
      }

      /* Bracket */
        
        .contest-wc {
          position: absolute;
          width: 1000px;
          height: 750px;
          z-index: 100;
          border: 3px solid #fff;
        }
        
        .contest-wc:before{
          background:#F00;
          content: '';
          height: 100%;
          left: 0;
          position: absolute;
          top: 0;
          width: 100%;
          z-index: -1
        }

        .contest-wc:after{
          background: #000;
          content: '';
          height: 100%;
          left: 0;
          position: fixed;
          top: 0;
          width: 100%;
          z-index: -2
        }

        .contest-wc * {
          position: absolute;
        }

        .contest-wc .cancel-link {
          border: 1px solid black;
          display: block;
          padding: 4px 5px;
          width: 68px;
          text-align: center;
          font-weight: bold;
          background-color: #bdbdbd;
          color: #000;
        }

        .contest-wc .reset-link {
          border: 1px solid black;
          display: block;
          padding: 4px 5px;
          width: 68px;
          text-align: center;
          font-weight: bold;
          background-color: #bdbdbd;
          color: #666;
        }

        .contest-wc .random-link {
          border: 1px solid black;
          display: block;
          padding: 4px 5px;
          width: 188px;
          text-align: center;
          font-weight: normal;
          background-color: #545454;
          color: #fff;
        }

        .contest-wc .submit-link{
          border: 1px solid #000;
          display: block;
          padding: 4px 5px;
          width: 136px;
          text-align: center;
          font-weight: bold;
          color: #fff;
          font-size: 18px;
          -webkit-border-radius: 10px;
          -moz-border-radius: 10px;
          border-radius: 10px;
          background-image: url(../img/submit-bg.gif);
          background-repeat: repeat-x;
          background-position: left top;
        }

        .contest-wc .team-sel {
          width: 90px;
          height: 20px;
          background-color: #000;
          color: #fff;
          font-size: 11px;
        }

        .contest-wc div.team-sel {
          width: 84px;
          height: 14px;
          text-align: center;
          background-color: #000;
          color: #fff;
          text-align: center;
          font-size: 10px;
          font-weight: bold;
          font-family: Tahoma, Arial, Verdana;
          border: 1px solid #fff;
          border-radius: 3px;
          padding: 2px 2px;
        }

      /* End Bracket */

@media  screen and (min-width: 480px){


}

@media screen and  (min-width: 780px){
  
  /* Login */

    .body{
      width: 100%;
      top: 20%;
      height: 0;
      left: 0;
      position: fixed;
      margin: 0;
    }

    .body:before{
      margin: 0;
      position: absolute;
      left: 0;
      top: -20px;
    }

  /* End Login */
  
  div.container {
    margin: 200px auto 50px auto;
  }

}

@media screen and  (min-width: 1100px){
  
  .leftc, .rightc{
    margin: 0;
    width: 50%;
  }

  ol, ul{
    padding: 0 0 0 40px
  }

  .rightc{
    float: right;
  }

  h2 a{
    padding: 10px 15px;
    font-size: 1em;
  }

}


@media screen and  (min-width: 1100px) {


}

@media screen and  (min-width: 1260px) {

  div.container {
    width: 960px;
    padding: 2%;
  }

}
