/********************
 * GENERAL
 ********************/
body {
    background: var(--bg-color);
    color: var(--text-3);

    background-image: var(--bg-image);
    background-size: cover;
    background-position: var(--bg-position);
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: var(--font-family-1);
}

footer {
    padding-right: 8px;

    background: var(--secondary-1);
    color: var(--text-1);
}

h2 {
    color: var(--text-2);

    text-shadow: 1px 1px rgba(0, 0, 0, .5);
    font-family: var(--font-family-2);
    font-size: 4rem;
    font-weight: var(--header-font-weight);
}

h3 {
    color: var(--text-1);

    text-shadow: 1px 1px rgba(0, 0, 0, .5);
    font-family: var(--font-family-2);
    font-weight: var(--header-font-weight);
}

div.container {
    display: flex;
    flex-direction: column;

    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 64px;
}

/********************
 * WEBCODE LANDING PAGE
 ********************/
div.jumbotron {
    position: relative;

    width: 100%;
    max-height: 256px;

    padding: 1rem;

    background: transparent;
    box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, .5);

    border-radius: 0;
}

div#webcode-container {
    width: 100%;
}

div#webcode-form:after,
div#webcode-header:after {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: var(--secondary-1);

    background-image: var(--banner-image);
    background-size: cover;
    background-position: var(--banner-position);
    background-repeat: no-repeat;
    background-attachment: fixed;

    opacity: .5;

    content: "";

    z-index: -1;
}

div#webcode-form:after {
    opacity: .75;
}

div#webcode-form div.row:not(:first-child) {
    margin-top: 16px;
}

div#webcode-form div.row * {
    margin: 0 4px;
}

div.client-branding {
    max-height: 192px;

    object-fit: contain;

    -webkit-filter: var(--branding-filter);
    -moz-filter: var(--branding-filter);
    -o-filter: var(--branding-filter);
    filter: var(--branding-filter);

    content: var(--client-branding);
}

div.header-block,
div#input-container,
div#response-container {
    margin: auto 0;

    text-align: center;
}

div#input-container {
    color: var(--text-1);
}

div#response-container {
    display: none;

    color: var(--text-1);

    font-family: monospace;
    font-size: 14px;
    font-weight: var(--text-font-weight);
}

input#text-webcode {
    max-width: 384px;
}

input[type=button]:focus {
    outline: none;
}

/********************
 * WEBCODE RETURN PAGE
 ********************/
div.webcode-content,
div.webcode-row {
    margin: 0px;
}

div.webcode-row {
    margin-top: 16px;

    background: var(--secondary-4);
}

div.webcode-row h3 {
    margin: .25rem 0;
}

div.webcode-content * {
    max-width: 100%;
    max-height: 100%;
}

div.webcode-content div.webcode-video {
    overflow: hidden;

    padding: 0px;
}

div.webcode-content div.webcode-video div {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;

    max-width: none;
    max-height: none;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    filter: blur(4px);

    -webkit-filter: brightness(75%);
    -moz-filter: brightness(75%);
    -o-filter: brightness(75%);
    filter: brightness(75%);
}

div.webcode-content div.webcode-video video {
    display: inherit;

    position: relative;

    margin: auto;

    z-index: 1;
}

div.social-media {
    display: flex;
}

a.fab,
a.fas {
    width: 32px;
    height: 32px;

    margin: 4px;
    padding: 4px;

    font-size: 24px;
    text-align: center;
    text-decoration: none;

    box-shadow: .5px .5px 1px .25px rgba(0, 0, 0, .5);
}

a.fab:hover,
a.fas:hover {
    opacity: .75;
}

a.fab:last-child {
    margin-right: 0px;
}

a.fa-facebook-f {
    background: #4267b2;
    color: #fff;
}

a.fa-x-twitter {
    background: #000;
    color: #fff;
}

a.fa-whatsapp {
    background: #25d366;
    color: #fff;
}

a.fa-envelope {
    background: var(--secondary-1);
    color: #fff;
}

button.btn-download {
    width: 100%;

    margin-top: 8px;
    padding: 8px;
}

span.download-size,
span.download-text {
    margin: auto 0;
}

span.download-size {
    position: absolute;
    right: 24px;
}

span.download-text {
    display: inline-block;

    width: 100%;
}

span.download-size small {
    color: var(--text-3);
}

/********************
 * BOOTSTRAP
 ********************/
.form-control {
    border-radius: 0px;
}

.btn {
    border-radius: 0px;
}

.btn-wms {
    color: #fff;
    background-color: var(--primary-1);
    border-color: var(--primary-1);

    box-shadow: 1px 1px 2px .5px rgba(0, 0, 0, .5);
}

.btn-wms:hover {
    color: #fff;
    background-color: var(--primary-2);
    border-color: var(--primary-2);
}

.btn-wms.disabled,
.btn-wms:disabled {
    color: #fff;
    background-color: var(--primary-1);
    border-color: var(--primary-1);
}

.btn-wms:not(:disabled):not(.disabled).active,
.btn-wms:not(:disabled):not(.disabled):active,
.show>.btn-wms.dropdown-toggle {
    color: #fff;
    background-color: var(--primary-2);
    border-color: var(--primary-2);
}

/********************
 * MEDIA QUERIES
 ********************/
@media (max-width: 576px) {
    h2 {
        font-size: 2rem;
    }

    input#text-webcode {
        max-width: 80%;
    }

    span.download-size small {
        font-size: .5rem;
    }

    span.download-text {
        font-size: .75rem;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    h2 {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    div.container {
        max-width: 95%;
    }
}

@media (min-width: 1200px) {
    div.jumbotron,
    div#webcode-container {
        width: 996px;
    }
}