/* General */
body {
    animation: background-gradient 30s ease infinite;
    -webkit-animation: background-gradient 30s ease infinite;
    overflow: hidden;
    background-size: 400% 400%;
}
div#particle-background {
    position: fixed;
    z-index: -1;
    left: 0;
    top: 0;
}

/* Generator */
div#generator {
    overflow: hidden;
    width: 30%;
    margin: 40px auto 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 20px;
    -webkit-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.3);
}
div#generator p.comment {
    clear: both;
    font-size: 0.8em;
    text-align: center;
    color: #919191;
    font-family: Montserrat-Bold;
    margin: 15px 0 4px 0;
}
div#generator p.comment span.step {
    margin-right: 5px;
}
div#generator-form .error-bounce {
    animation: jello-horizontal 0.9s both;
    -webkit-animation: jello-horizontal 0.9s both;
}

/* Header */
div#generator header {
    margin: 30px 0 40px 0;
}
div#generator header h2 {
    font-size: 2em;
    margin: 0 10px 30px 10px;
    font-family: Montserrat-Bold;
    text-align: center;
}
div#generator header div#last-rewards-screen {
    padding: 5px;
    margin-left: -20px;
    margin-right: -20px;
}
div#generator header p#last-rewards {
    display: block;
    color: #ffffff;
    margin: 0 auto;
    width: 100%;
    font-family: Montserrat-Bold;
    font-size: 0.8em;
    text-align: center;
}
div#generator header p.slide-in-top {
    animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    -webkit-animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
div#generator header p.slide-out-bottom {
    animation: slide-out-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	-webkit-animation: slide-out-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

/* Cheat console */
div#cheat-console-container {
    margin: 42px 0 43px 0;
    display: none;
}
div#cheat-console {
    overflow: hidden;
    margin: 10px;
    height: 80%;
    background-color: #f7f7f7;
    border-radius: 10px;
    border: 1px solid #dedede;
    padding: 10px 20px;
}
div#cheat-console h3 {
    text-align: center;
    font-weight: bold;
    font-family: Montserrat-Bold;
    font-size: 0.9em;
    color: #919191;
}
div#cheat-console p.console-line {
    text-align: left;
    margin: 6px 4px;
    font-weight: bold;
    font-family: Montserrat-Bold;
    font-size: 0.7em;
    color: #919191;
}
div#cheat-console p.last {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8em;
}

/* Input */
div#generator-form input {
    font-size: 1.2em;
    background-color: #f7f7f7;
    border: 1px solid #dedede;
    border-radius: 5px;
    font-family: Montserrat-Bold;
    display: block;
    width: 250px;
    margin: 10px auto 27px auto;
    padding: 15px 15px;
    text-decoration: none;
    box-sizing: border-box;
}
div#generator-form input::placeholder {
    opacity: 1;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input::-webkit-input-placeholder {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input:-ms-input-placeholder {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input::-ms-input-placeholder {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input:-moz-placeholder {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input::-moz-placeholder {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
div#generator-form input:focus::placeholder {
    color: transparent;
}
div#generator-form input:focus::-webkit-input-placeholder {
    color: transparent;
}
div#generator-form input:focus:-ms-input-placeholder {
    color: transparent;
}
div#generator-form input:focus::-ms-input-placeholder {
    color: transparent;
}
div#generator-form input:focus:-moz-placeholder {
    color: transparent;
}
div#generator-form input:focus::-moz-placeholder {
    color: transparent;
}

/* Select */
div#generator-form div.select-wrapper {
    border-radius: 5px;
    border: 1px solid #dedede;
    background: #f7f7f7;
    display: block;
    padding: 1px;
    width: 250px;
    margin: 10px auto 27px auto;
    box-sizing: border-box;
    -webkit-transition: background-color 0.5s ease;
    transition: background-color 0.5s ease;
}
div#generator-form div.select-wrapper select {
    font-size: 1.2em;
    border: none;
    background: inherit;
    font-family: Montserrat-Bold;
    width: 100%;
    padding: 15px 15px;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
div#generator-form div.select-wrapper select::-ms-expand {
    display: none;
}
div#generator-form div.select-wrapper svg {
    width: 32px;
    height: 32px;
    float: right;
    position: relative;
    bottom: 41px;
    margin-right: 10px;
    pointer-events: none;
}
div#generator-form div.select-wrapper:hover select {
    color: #ffffff;
}
div#generator-form div.select-wrapper:hover svg {
    fill: #ffffff;
}
div#generator-form div.select-wrapper:hover svg g {
    fill: #ffffff;
}

/* Button */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 20px;
    font-size: 1.3em;
    font-family: Montserrat-Bold;
    color: #ffffff;
    transition: background-color 1s ease;
    -webkit-transition: background-color 1s ease;
}
button:hover {
    background: #ffffff !important;
}
div#generator-form button#main-button {
    font-size: 1.4em;
    display: block;
    width: 70%;
    margin: 40px auto;
}
button#og-load-button {
    display: none;
    margin: 0 auto;
}

/* Loading Ring */
.lds-ring {
  display: block;
  margin: 20px auto;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  border-width: 8px;
  border-style: solid;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animations */
.scale-in-center {
    animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
@keyframes jello-horizontal {
   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(0.95, 1.05, 1);
             transform: scale3d(0.95, 1.05, 1);
   }
   75% {
     -webkit-transform: scale3d(1.05, 0.95, 1);
             transform: scale3d(1.05, 0.95, 1);
   }
   100% {
     -webkit-transform: scale3d(1, 1, 1);
             transform: scale3d(1, 1, 1);
   }
 }
@-webkit-keyframes jello-horizontal {
  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(0.95, 1.05, 1);
            transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
            transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}
@keyframes background-gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
@-webkit-keyframes background-gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
@keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@-webkit-keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
}
@-webkit-keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
}
@keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}

/* Mobile */
@media only screen and (max-width: 1000px) {
    html {
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
    }
    html, body {
        padding: 3px;
        margin: 0;
    }
    div#particle-background {
        display: none;
    }
    div#generator {
        width: 100%;
        padding: 0;
        margin: 10px 0;
        box-sizing: border-box;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    div#generator-form input, div#generator-form div.select-wrapper {
        width: 80%;
    }
    div#generator-form button#main-button {
        font-size: 1.2em;
        width: 90%;
    }
    textarea#cheat-console {
        font-size: 0.8em;
    }
}

/* Fonts */
@font-face {
    font-family: Share-Tech-Mono;
    src: url(https://jellycheat.com/components/fonts/share-tech-mono.ttf);
}
@font-face {
    font-family: Montserrat-Bold;
    src: url(https://jellycheat.com/components/fonts/montserrat-bold.ttf);
}
