@font-face {
    font-family: 'reviverauto091517regular';
    src: url('/wp-content/themes/sightbox-theme/static/fonts/reviverauto091517-webfont.woff2') format('woff2'),
        url('/wp-content/themes/sightbox-theme/static/fonts/reviverauto091517-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/*This is for preloading the font to use in the canvas*/
#font-preload {
    font-family: 'reviverauto091517regular';
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.rplate-generator {
    display: flex;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #f2f2f2;
}

html.dark .rplate-generator {
    background-color: #0a0a0a;
}

.rplate-generator #imageCanvas {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.rplate-generator .container {
    width: 100%;
    max-width: 1140px;
    padding: 80px 15px;
    margin: auto;
    text-align: center;
}

.rplate-generator .section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    line-height: 66px;
    font-weight: 700;
    margin: 0 auto;
    margin-bottom: 26px;
    max-width: 450px;
}

.rplate-generator .section-title .sub-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 26px;
}

.rplate-generator .section-title {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.rplate-generator #canvas-wrap {
    margin-bottom: 13px;
}

.rplate-generator .controls {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    background: none;
    padding: 40px 35px;
    padding-bottom: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
}

.rplate-generator .controls * {
    font-family: 'Poppins', sans-serif;
}

.rplate-generator .controls .input {
    min-width: 15%;
    max-width: 25%;
}

.rplate-generator .controls__label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #000;
    transition: color 0.3s ease-in;
}

.rplate-generator #licence-plate-text {
    border: none;
    background: none;
    border-bottom: 1px solid #000;
    width: 100%;
    padding-left: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: -3px;
    font-size: 22px;
    transition: all 0.3s ease-in;
}

.rplate-generator #licence-plate-text:focus {
    outline: none;
}

.rplate-generator .controls select {
    -moz-appearance: none;
    -webkit-appearance: none;
    font-size: 16px;
    padding: 8px 10px;
    font-weight: 400;
    max-width: 160px;
    background: none;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
    background: url(/wp-content/themes/sightbox-theme/static/img/ic-down-arrow.svg) no-repeat center right;
    background-size: 18px;
    background-position-x: calc(100% - 7px);
    padding-right: 35px;
    transition: all 0.3s ease-in;
}

.rplate-generator .controls select::-ms-expand {
    display: none;
}

.rplate-generator .controls select:focus {
    outline: none;
}

.rplate-generator .color-theme-radio-label {
    font-size: 15px;
    margin-right: 5px;
    margin-top: 8px;
    padding-left: 24px;
    color: #000;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    transition: all 0.3s ease-in;
}

.rplate-generator .color-theme-radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rplate-generator .color-theme-radio-label .checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 17px;
    width: 17px;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 50%;
    transition: all 0.3s ease-in;
}

.rplate-generator .color-theme-radio-label:hover input~.checkmark {
    background-color: #ccc;
}

.rplate-generator .color-theme-radio-label input:checked~.checkmark {
    background-color: #000;
}

.rplate-generator label[for="message-selector"]{
    transition: all 0.3s ease-in;
}

.no-plate-message .rplate-generator #message-selector,
.no-plate-message .rplate-generator label[for="message-selector"]{
    pointer-events: none;
    opacity: 0.5;
}

/*GLOBAL DARK THEME SPECIFICS*/
html.dark .rplate-generator .controls__label{
  color: #fff;
}

html.dark .rplate-generator .controls select{
  background-color: #fff !important;
}

html.dark .rplate-generator #licence-plate-text{
  color: #fff;
  border-color: #fff;
}

html.dark .rplate-generator .color-theme-radio-label{
  color: #fff;
}

html.dark .rplate-generator .color-theme-radio-label .checkmark{
  border-color: #fff;
}

html.dark .rplate-generator .color-theme-radio-label input:checked~.checkmark{
  background-color: #fff;
}


@media screen and (max-width: 700px) {
    .rplate-generator .controls {
        flex-direction: column;
        margin-bottom: 0;
    }

    .rplate-generator .section-title h2{
      font-size: 50px;
      line-height: 55px;
    }

    .rplate-generator .controls .input {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }

    .rplate-generator #licence-plate-text {
        margin-top: 0;
        text-align: center;
    }

    .rplate-generator .color-theme-radio-label {
        margin-top: 0;
    }

    .rplate-generator .controls select{
      width: 100%;
    }
}