@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700');

*{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family:;
}

html,body{
  /*background: #111;*/
  color: #fff;
  font-family:;
  overflow-x: hidden;
background-color:#0e0e0e;
  width: 100%;
  height: 100%;
  background-repeat: span;
  background-size: cover;
}
/* global styles */
.btn{
  padding: 10px 25px;  
  background: #8f8;
  color: #111;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.spinner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 120px;
  height: 120px;
  border: 16px solid transparent;
  margin: -60px 0 0 -60px;
  border-top: 16px solid #EB7713;
  border-bottom: 16px solid #EB7713;
  border-radius: 50%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
@-webkit-keyframes spin{
  0%{ transform: rotate(0deg);}
  100%{ transform: rotate(360deg);}
}
@keyframes spin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

.fade-in{
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  animation-duration: 1s;
}
.fade-out{
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
  animation-duration: 1s;  
}

@-webkit-keyframes fadeIn{
  from{ opacity: 0 }
  to{ opacity: 1 }
}
@keyframes fadeIn{
  from{ opacity:0 }
  to{ opacity:1 }
}

@-webkit-keyframes fadeOut{
  from{opacity: 1;}
  to{ opacity:0;}
}
@keyframes fadeOut{
  from{opacity: 1;}
  to{ opacity:0;}
}
/* end global style */
.container{
  width: 100%;
  padding: 0px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  visibility: hidden;
}
.left{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
}
.left h1{
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: bolder;
  margin: 20px 0;
  line-height: 1;
  font-family: Monteserat;
}
.left p{
  padding: 0 20px;
}
#arrow{
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  margin-top: 20px;
  margin-bottom:20px;
  width: 60px;
  height: 50px;
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg);
}
  
.right{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 5px 30px;
}
#badge{
  position: relative;
}
#attendee-name{
  z-index: 4;
  position: absolute;
  top: 80px;
  left: 10px;
  border: none;
  border-bottom: 1px solid #EB7713;
  background: transparent;
  color: #fff;
  padding: 2px 4px;
  font-size: .8rem;
  font-weight: 100;
  width: 120px;
  text-align: center;
  text-transform: capitalize;
  font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
#attendee-name::-webkit-input-placeholder{
  font-size: .8rem;
  font-style: italic;
  color: #aaa;
}
#attendee-name:-ms-input-placeholder{
  font-size: .8rem;
  font-style: italic;
  color: #aaa;
}
#attendee-name::-ms-input-placeholder{
  font-size: .8rem;
  font-style: italic;
  color: #aaa;
}
#attendee-name::placeholder{
  font-size: .8rem;
  font-style: italic;
  color: #aaa;
}
#attendee-name:focus{
  border-bottom: 2px solid transparent;
}
#voltage-badge{
  position: relative;
/*  top: 80px;*/
/*  left: 0;*/
  width: 280px; 
  height: 280px;
}
#placeholder{
  position: absolute;
  background: #99a;
  height: 140px;
  width: 140px;
  z-index: 2;
  border-radius: 500px;
  border:6px solid #03DAC5;
  cursor: default;
}
#placeholder h2{
  position: absolute;
  top: 40px;
  left: 30px;
  font-size: 1.4rem;
  color: #eee;
}
#badge label{
  position: relative;
  top: -248px;
  left: 119px;
}
#user_profile{
  visibility: hidden;
  width: 0;
  opacity:0;
}
#preview-btn{
  position: relative;
  margin-top: 20px;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  background: #ECF039;
  color: #111;
  text-transform: uppercase;
  -webkit-transition: background .3s ease;
  -o-transition: background .3s ease;
  transition: background .3s ease;
}
#preview-btn:hover{ 
  background: #EB7713; 
  color: #ddd;
  -webkit-transition: background .2s ease;
  -moz-transition: background .2s ease;
  -o-transition: background .2s ease;
  transition: background .2s ease;
}

/* slider control */
#control{ 
  position:relative; 
  text-align: center;
}
#tooltip{
  font-size: .8rem;
  padding: 8px;
  font-weight:500;
  display: none;
  color: #fc8;
} 
#imgControl{
  position: relative;
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 50%;
  height: 8px;
  background: #ff7a18;
  outline: none;
  border-radius: 50px;
}
#imgControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ECF039;
  cursor: pointer;
  border-radius: 50%;
}
#imgControl::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ECF039;
  cursor: pointer;
}

/* preview modal */
.modal{
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y:auto;
  background: rgb(0,0,0);
  background: rgba(0,0,0,.6);
  display: none;
  z-index: 9;
}
/* modal close button */
.modal-btn{
  position: absolute;
  color: #bbb;
  right: 2%;
  top: 1vh;
  border: none;
  background: transparent;
  font-size: 2rem;
  font-weight: 600;
  -webkit-transition: .2s ease;
  -o-transition: .2s ease;
  transition: .2s ease;
  outline: none;
  z-index: 1;
}
.modal-btn:hover{
  color: #888;
  -webkit-transition: color .3s ease;
  -o-transition: color .3s ease;
  transition: color .3s ease;
}

/* actual preview image */
#my-badge{
  margin: auto;
  position: relative;
  top: 50%;
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
  text-align: center;
  background: rgb(244,244,244);
  background: rgba(244,244,244,.92);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-top: 20px;
}
#download-btn{
  background: #4c7;
  font-weight: 800;
  text-transform: uppercase;
  color: #334;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  margin: 20px 0;
  -webkit-transition: all .4s ease;
  -o-transition: all .4s ease;
  transition: all .4s ease;
}
#download-btn:hover{
  background: #1a4;
  color: #ddd;
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
}

@media only screen and (min-width:410px) and (max-width:575px){
  .left h1{
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: bolder;
    margin: 40px 0 20px;
    line-height: 1;
  }
  .left p{
    padding: 0 10px;
  }
  #attendee-name{
    top: 120px;
    border-bottom: 2px solid #EB7713;
    font-size: 1.2rem;
    width: 125px;
  }
  #attendee-name::-webkit-input-placeholder{
    font-size: 1rem;
  }
  #attendee-name:-ms-input-placeholder{
    font-size: 1rem;
  }
  #attendee-name::-ms-input-placeholder{
    font-size: 1rem;
  }
  #attendee-name::placeholder{
    font-size: 1rem;
  }
  #voltage-badge{
    width: 380px; 
    height: 380px;
  }
  #placeholder{
    position: absolute;
    height: 190px;
    width: 190px;
  }
  #placeholder h2{
    position: absolute;
    top: 55px;
    left: 50px;
    font-size: 1.6rem;
    color: #eee;
  }
  #badge label{
    position: relative;
    top: -335px;
    left: 162px;
  }
  #user_profile{
    visibility: hidden;
    width: 0;
  }
}

@media only screen and (min-width:576px) and (max-width:768px){
  .left h1{
    text-transform: uppercase;
    font-size: 3.2rem;
    font-weight: bolder;
    margin: 40px 0 20px;
    line-height: 1;
  }
  .left p{
    padding: 0 30px;
  }
  #attendee-name{
    top: 150px;
    left: 15px;
    border-bottom: 2px solid #EB7713;
    font-size: 1.4rem;
    width: 155px;
  }
  #attendee-name::-webkit-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name:-ms-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name::-ms-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name::placeholder{
    font-size: 1.1rem;
  }
  #voltage-badge{
    width:480px; 
    height: 480px;
  }
  #placeholder{
    position: absolute;
    height: 240px;
    width: 240px;
  }
  #placeholder h2{
    position: absolute;
    top: 95px;
    left: 20px;
    font-size: 1.8rem;
    color: #eee;
  }
  #badge label{
    position: relative;
    top: -420px;
    left: 205px;
  }
  
  #user_profile{
  visibility: hidden;
  width: 0;
}
}

@media only screen and (min-width:769px) and (max-width:960px){
  .container{
    width: 100%;
    padding: 0px 0px;
    padding-top: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    overflow: hidden;
  }
  #arrow{
    -ms-flex-item-align: end;
        align-self: flex-end;
    margin: 10px 5px 0 0;
    width: 90px;
    height: 50px;
    -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
            transform: rotate(0);
  }
  .left{
    text-align: left;
    padding-left: 30px;
  }
  .left h1{
    text-transform: uppercase;
    font-size: 3.6rem;
    font-weight: bolder;
    margin: 80px 0 20px;
    padding: 0 10px;
    line-height: 1;
  }
  .left p{
    padding: 0 10px;
  }
  .right{
    padding: 10px 20px; 
  }
  #attendee-name{
    top: 150px;
    left: 15px;
    border-bottom: 2px solid #EB7713;
    font-size: 1.4rem;
    width: 155px;
  }
  #attendee-name::-webkit-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name:-ms-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name::-ms-input-placeholder{
    font-size: 1.1rem;
  }
  #attendee-name::placeholder{
    font-size: 1.1rem;
  }
  #voltage-badge{
    width:480px; 
    height: 480px;
  }
  #placeholder{
    position: absolute;
    height: 240px;
    width: 240px;
  }
  #placeholder h2{
    position: absolute;
    top: 95px;
    left: 20px;
    font-size: 1.8rem;
    color: #eee;
  }
  #badge label{
    position: relative;
    top: -420px;
    left: 205px;
  }
  #user_profile{
    visibility: hidden;
    width: 0;
  }
}

@media only screen and (min-width:961px) {
  .container{
    width: 100%;
    padding: 0px 0px;
    padding-top: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    overflow: hidden;
  }
  .left, .right{
    -webkit-box-flex: 50%;
        -ms-flex: 50%;
            flex: 50%;
  }
  .left{
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: left;
    padding-left: 50px;
    max-width: 50%;
  }
  .left h1{
    text-transform: uppercase;
    font-size: 3.6rem;
    font-weight: bolder;
    margin: -30px 0 20px;
    padding: 0 10px;
    line-height: 1;
  }
  .left p{
    padding: 0 10px;
    margin-bottom: 20px;
  }
  .right{
    padding: 10px 10px; 
  }
  #arrow{
    -ms-flex-item-align: end;
        align-self: flex-end;
    margin: 10px 5px 0 0;
    width: 90px;
    height: 50px;
    -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
            transform: rotate(0);
  }
  #attendee-name{
    top: 145px;
    left: 15px;
    border-bottom: 2px solid #EB7713;
    font-size: 1.8rem;
    width: 155px;
  }
  #attendee-name::-webkit-input-placeholder{
    font-size: 1.4rem;
  }
  #attendee-name:-ms-input-placeholder{
    font-size: 1.4rem;
  }
  #attendee-name::-ms-input-placeholder{
    font-size: 1.4rem;
  }
  #attendee-name::placeholder{
    font-size: 1.4rem;
  }
  #voltage-badge{
    width:480px; 
    height: 480px;
  }
  #placeholder{
    position: absolute;
    height: 240px;
    width: 240px;
  }
  #placeholder h2{
    position: absolute;
    top: 95px;
    left: 20px;
    font-size: 1.8rem;
    color: #eee;
  }
  #badge label{
    position: relative;
    top: -420px;
    left: 205px;
  }
  #my-badge{
    border-radius: 8px;
    width: 60%;
  }
}