/*!
 * Tiny HTML Framework v1.0.0
 * https://github.com/ranaroussi/tiny-html-framework
 *
 * Copyright 2013-2018 Ran Aroussi
 *
 * Licensed under the GNU Lesser General Public License, v3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.gnu.org/licenses/lgpl-3.0.en.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* template.js */
*[templatejs] { display: none; }

/* --- reset --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, rem, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, rembed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;

    -webkit-text-size-adjust: 100%;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}
html, body {
    height: 100%;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    padding-left: 1.25rem;
}
iframe {
    overflow: hidden;
}
img {
    max-width: 100%;
    -ms-interpolation-mode: bicubic;
}
body {
    line-height: 1;
}
.hidden {
    display: none;
}
.fixed {
    position: fixed;
}
.absolute {
    position: absolute;
}
.relative {
    position: relative;
}
strong {
    font-weight: bold;
}
/* --- tables --- */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 1rem auto;
}
table.stripes  tr:nth-of-type(even) td {
    background: #eee;
}
table thead {
    border-bottom: 2px solid #ddd;
}
table tfoot {
    border-top: 2px solid #ddd;
}
table th {
    font-weight: bold;
}
table.sortable th {
    cursor: pointer;
}
table th, table td {
    border-bottom: 1px solid #ddd;
    padding: .65rem;
    text-align: left;
}
.dir-rtl table tr th,
.dir-rtl table tr td {
    text-align: right;
}
.dir-rtl table tr th.text-left,
.dir-rtl table tr td.text-left {
    text-align: left;
}
.dir-rtl table tr th.text-center,
.dir-rtl table tr td.text-center {
    text-align: center;
}
.table-container {
    overflow: hidden;
    overflow-x: auto;
    clear: both;
    width: 100%;
}

/* --- grid --- */
.container { max-width: 80rem; margin: auto; }
.row .row { margin:  0 -1rem; }
.col      { padding: 0  1rem; }
.row.col { width: 100% !important; }

.row::after {
    content: "";
    clear: both;
    display: table;
}
.col,
.col-12, .col-11, .col-10, .col-9, .col-8, .col-7,
.col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
    padding: 0.25rem 1rem;
    float: left;
    width: 100%;
    box-sizing: border-box;
}
.dir-rtl .col,
.dir-rtl .col-12, .dir-rtl .col-11, .dir-rtl .col-10,
.dir-rtl .col-9, .dir-rtl .col-8, .dir-rtl .col-7,
.dir-rtl .col-6, .dir-rtl .col-5, .dir-rtl .col-4,
.dir-rtl .col-3, .dir-rtl .col-2, .dir-rtl .col-1 {
    float: right;
}
.col-12 {
    float: none !important;
}

@media only screen and (min-width: 479px) {
    .col-11, .col-10, .col-9, .col-8, .col-7,
    .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
        width: 50% ;
    }
}
@media only screen and (min-width: 767px) {
    .col-11 { width: 91.66%; }
    .col-10 { width: 83.33%; }
    .col-9 { width: 74.99%; }
    .col-8 { width: 66.66%; }
    .col-7 { width: 58.33%; }
    .col-6 { width: 50% ; }
    .col-5 { width: 41.66%; }
    .col-4 { width: 33.33%; }
    .col-3 { width: 24.99%; }
    .col-2 { width: 16.66%; }
    .col-1 { width: 8.33%; }
}

.show {
    display: block;
}
.show-inline {
    display: inline-block;
}
.hide {
    display: none;
}
/* --- responsive --- */
.desktop-show,
.mobile-hide {
    display: block !important;
}
.desktop-show-inline,
.mobile-hide-inline {
    display: inline !important;
}
.desktop-hide,
.mobile-show,
.desktop-hide-inline,
.mobile-show-inline {
    display: none !important;
}
@media only screen and (max-width: 479px) {
    .desktop-show,
    .mobile-hide,
    .desktop-show-inline,
    .mobile-hide-inline {
        display: none !important;
    }
    .desktop-hide-inline,
    .mobile-show-inline {
        display: inline !important;
    }
    .desktop-hide,
    .mobile-show {
        display: block !important;
    }
}

/* --- utils --- */
.font-light {
    font-weight: 300;
}
.font-regular {
    font-weight: 400;
}
.font-heavy {
    font-weight: 700;
}
.float-right {
    float: right !important;
}
.float-left {
    float: left !important;
}
.float-none {
    float: none !important;
}
.float-center {
    float: none !important;
    margin-left: auto;
    margin-right: auto;
}
.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-justify {
    text-align: justify;
}
.dir-rtl {
    direction: rtl;
}
.dir-ltr {
    direction: ltr;
}
.dir-reset {
    direction: initial
}
.color-inherit {
    color: inherit;
}
.clearfix {
    zoom: 1;
    content: "";
    clear: both;
    display: table;
}
.tight {
    margin: 0;
}
.tight-top {
    margin-top: 0;
}
.tight-bottom {
    margin-bottom: 0;
}
.antialias {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.no-antialias {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}
.preload * {
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}
.text-muted, a.text-muted, .text-muted a {
    color: #808080;
}

/* --- typography --- */
body {
    font-size: 15px;
    line-height: 1.4;
    font-family: Helvetica, Arial, sans-serif;
    color: #444;
    background: #fff;
}
code {
    font-family: "SF Mono", "Roboto Mono", Menlo, Courier, monospace;
}
a {
    color: #09f;
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
}
a:hover, a:focus {
    color: #268bd2;
    text-decoration: underline
}
h1 {
    font-size: 2.25rem;
    margin: 1rem 0 1rem;
}
h2 {
    font-size: 1.5rem;
    margin: 1rem 0 1rem;
}
h2, h3, h4 {
    margin-top: 0;
}
h3, h4 {
    margin-bottom: 1rem;
    font-weight: bold;
}
p, ul, ol {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 1.5rem;
}
li ul, li ol {
    margin: 0;
}
hr {
    border: 0;
    border-top: 1px solid #ddd;
    height: 1px;
    margin: 1.5rem 0;
}
.zoom-sm {
    zoom: .86;
}
.zoom-xs {
    zoom: .72;
}
.zoom-lg {
    zoom: 1.12;
}
.zoom-xl {
    zoom: 1.28;
}
.zoom-xxl {
    zoom: 1.4;
}

/* --- dropdown --- */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.dropdown-wrapper:hover {
    padding-bottom: 8px;
    margin-bottom: -8px;
}
.dropdown-trigger {
    margin-right: 5px !important;
}
.dropdown-trigger:after {
    content: ' \25BE';
    margin: -1px 0px 0 5px;
    opacity: .8;
}
.dropdown-items {
    list-style: none !important;
    margin: 5px 0 0 !important;
    padding: 4px 2px !important;
    display: none;
    position: absolute !important;
    background-color: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-bottom-color: #e9e9e9 !important;
    min-width: 180px !important;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.1) !important;
    z-index: 1 !important;
    border-radius: 5px !important;
    font-weight: 400 !important;
    clear: both !important;
}
.dropdown-wrapper:hover:after {
    content: ' ';
    display: block;
    margin: 0 0 -5px 30px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #eee;
}
.dropdown-items:before {
    content: ' ';
    display: block;
    margin: -9px 0 5px 27px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}
.dropdown-items li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
}
.dropdown-items a {
    text-align: left !important;
    line-height: 1 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
    padding: .7rem 1rem !important;
    text-decoration: none !important;
    display: block !important;
    border-radius: 2px !important;
}
.dropdown-items a:hover {
    background-color: #f5f5f5 !important;
}
.dropdown-wrapper:hover .dropdown-items {
    display: block;
}

/* --- buttons --- */
button, .btn {
    background-color: #cccccc;
    color: black;
    border: 1px solid #c5c5c5;
    padding: 0.75rem 1.5rem;
    text-align: center;
    margin: 2px 0;
    text-decoration: none;
    display: inline-block;
    font: 15px/1 Helvetica, Arial, sans-serif;
    cursor: pointer;
    border-radius: 4px;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    box-sizing: border-box;
}
button:hover, .btn:hover {
    opacity: .85;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .3);
    text-decoration: none;
}
.btn-block {
    width: 100%;
}
@media only screen and (max-width: 479px) {
    .btn-block-mobile {
        width: 100%;
    }
}
.btn-outline {
    background: transparent !important
}
.btn-shadow {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

button[disabled], .btn-disabled,
.btn-disabled:hover {
    box-shadow: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed;
}
.btn-success, .btn-success:hover {
    color: white;
    background-color: #4CAF50;
    border-color: #28a745;
}
.btn-primary, .btn-primary:hover {
    color: white;
    background-color: #008CBA;
    border-color: #008cb0;
}
.btn-warning, .btn-warning:hover {
    color: rgba(0, 0, 0, .7);
    background-color: #ffc107;
    border-color: #ffc107;
}
.btn-danger, .btn-danger:hover {
    color: white;
    background-color: #c82333;
    border-color: #bd2130;
}
.btn-info, .btn-info:hover {
    color: white;
    background-color: #17a2b8;
    border-color: #06a6b9;
}
.btn-light, .btn-light:hover {
    color: #333;
    background-color: #e7e7e7;
    border-color: #dddddd;
}
.btn-light:hover {
    box-shadow: 0 1px 10px rgba(0, 0, 0, .2);
}
.btn-dark, .btn-dark:hover {
    color: white;
    background-color: #333333;
    border-color: #000000;
}
.btn-link {
    color: #09f;
    background-color: transparent;
    border-color: transparent;
}
.btn-link:hover {
    color: #268bd2;
    opacity: 1;
    text-decoration: underline;
    box-shadow: none !important
}
.btn-link-tight {
    color: #09f;
    background-color: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.btn-link-tight:hover {
    color: #268bd2;
    opacity: 1;
    text-decoration: underline;
    box-shadow: none !important;
}
.btn-outline.btn-success {
    color: #4CAF50;
}
.btn-outline.btn-primary {
    color: #008CBA;
}
.btn-outline.btn-warning {
    color: #ffc107;
}
.btn-outline.btn-danger {
    color: #c82333;
}
.btn-outline.btn-info {
    color: #17a2b8;
}
.btn-outline.btn-light {
    color: #666;
}
.btn-outline.btn-dark {
    color: #333333;
}
/* alerts */
.alert {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    text-align: center;
    margin: 1rem 0;
    text-decoration: none;
    border-radius: 4px;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.alert::before {
    content: '\2716';
    font-size: 82%;
    margin-top: 4px;
    float: right;
    cursor: pointer;
}
.alert-success {
    color: rgba(30, 90, 30, 1);
    background-color: rgba(75, 175, 80, .3);
    border-color:  rgba(75, 175, 80, .3);
}
.alert-primary {
    color: rgba(0, 140, 175, 1);
    background-color: rgba(0, 140, 175, .3);
    border-color:  rgba(0, 140, 175, .3);
}
.alert-warning {
    color: rgba(153, 85, 8, 0.7);
    background-color: rgba(255, 195, 5, .3);
    border-color:  rgba(255, 195, 5, .3);
}
.alert-danger {
    color: rgba(200, 35, 50, 1);
    background-color: rgba(200, 35, 50, .4);
    border-color:  rgba(200, 35, 50, .3);
}
.alert-info {
    color: rgba(25, 160, 185, 1);
    background-color:rgba(25, 160, 185, .2);
    border-color:rgba(25, 160, 185, .2);
}
.alert-light {
    color: #333;
    background-color: #f9f9f9;
    border-color: #dddddd;
}
.alert-dark {
    color: #000;
    background-color: rgba(51, 51, 51, .2);
    border-color: rgba(51, 51, 51, .2);
}
/* --- text --- */
.text-success {
    color: rgba(30, 90, 30, 1);
}
.text-primary {
    color: rgba(0, 140, 175, 1);
}
.text-warning {
    color: rgba(153, 85, 8, 0.7);
}
.text-danger {
    color: rgba(200, 35, 50, 1);
}
.text-info {
    color: rgba(25, 160, 185, 1);
}
.text-light {
    color: #333;
}
.text-dark {
    color: #000;
}
/* --- forms --- */
input, textarea, select {
    width: 100%;
    display: block;

    background: #fff;
    color: inherit;
    border: 1px solid #c5c5c5;
    /*padding: 0.65rem 0.6rem 0.6rem;*/
    padding: 10px 8px 9px;
    margin: 0;
    font: 15px/1 Helvetica, Arial, sans-serif;
    border-radius: 4px;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.3s;
    box-sizing: border-box;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .1);
}
.inline {
    width: auto;
    max-width: 100%;
    display: inline-block;
}
.field-success {
    border-top-color: #4CAF50;
}
.field-primary {
    border-top-color: #008CBA;
}
.field-warning {
    border-top-color: #ffc107;
}
.field-danger {
    border-top-color: #c82333;
}
.field-info {
    border-top-color: #17a2b8;
}
.field-light {
    border-top-color: #ccc;
}
.field-dark {
    border-top-color: #333333;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 11px 20px 10px 10px;
    min-width: 60px;
    box-shadow: none;
    background: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSdibGFjaycgaGVpZ2h0PScyNCcgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMjQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz48cGF0aCBkPSdNMCAwaDI0djI0SDB6JyBmaWxsPSdub25lJy8+PC9zdmc+) right 1px top 50% no-repeat;
    background-color: rgba(0, 0, 0, .025);
}
select::-ms-expand { display: none; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(0, 155, 255, 1);
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .1), 0 0 10px rgba(0, 155, 255, .5);
}
::placeholder { color: #ddd; }
::-webkit-input-placeholder { color: #ddd; }
::-moz-placeholder { color: #ddd; }
:-ms-input-placeholder { color: #ddd; }
:-moz-placeholder { color: #ddd; }
.form-container {
    display: inline-block;
}
.form-container :last-child {
    margin-right: .5rem;
}
.dir-rtl .form-container :last-child {
    margin-right: 0;
}
.form-container input, .form-container label {
    float: left;
    line-height: 1.2;
}
.form-container label {
    margin-left: .5rem;
    text-align: right;
}
.dir-rtl .form-container label {
    margin-left: 0;
    margin-right: .5rem;
}
.form-container label.block {
    width: 100%;
    display: block;
    margin-right: 0;
    margin-left: 0;
    line-height: 1.5;
}
.form-container::after {
    content: "";
    clear: both;
    display: table;
}
input[type=checkbox], input[type=radio] {
    transition-duration: 0.1s;
    box-sizing: border-box;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    box-shadow: none;
    height: 1rem;
    width: 1rem;
    border: 1px solid #ccc;
    box-shadow: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
input[type=checkbox]:focus, input[type=radio]:focus {
    border-color: rgba(0, 155, 255, 1);
    box-shadow: 0 0 10px rgba(0, 155, 255, 1);
}
input[type=radio] {
    border-radius: 50%;
}
input[type=checkbox]:checked, input[type=radio]:checked {
    background-color: #2196F3;
    border-color: #008cb0;
}
input[type=checkbox]:checked::after {
    content: '';
    display: block;
    position: absolute;
    margin-left: .325rem;
    width: .15rem;
    height: .6rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
input[type=radio]:checked::after {
    content: '';
    display: block;
    margin: .22rem;
    position: absolute;
    border-radius: 50%;
    background: white;
    width: .4rem;
    height: .4rem;
}

/* --- navigation --- */
ul.navbar {
    width: 100%;
    list-style-type: none;
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    box-sizing: border-box;
}
.container ul.navbar {
    width: calc(100% - 2rem);
    margin: 1rem 1rem 1rem;
    border-radius: 4px;
}
@media only screen and (max-width: 479px) {
    .container ul.navbar {
        width: 100%;
        margin: 0 0 1rem;
        border-radius: 0;
    }
}
ul.navbar .row {
    margin: 0;
    padding: 0;
}
ul.navbar::after {
    content: "";
    clear: both;
    display: table;
}
ul.navbar li {
    float: left;
}
.dir-rtl ul.navbar li {
    float: right;
    text-align: right;
}
ul.navbar li.mobile-menu {
    float: right;
    display: none;
}
.dir-rtl ul.navbar li.mobile-menu {
    float: left;
}
ul.navbar li.mobile-menu a::after {
    content: '\2630';
}
ul.navbar li a {
    display: block;
    text-align: center;
    line-height: 1;
    padding: 1.3rem 1.2rem 1.2rem;
    text-decoration: none;
}
.dir-rtl ul.navbar li {
    text-align: right;
}
ul.navbar li.brand a {
    font-size: 1.2rem;
    line-height: 1;
    padding: 1.2rem 2rem 1.1rem 1rem;
}
.dir-rtl ul.navbar li.brand a {
    padding: 1.2rem 1rem 1.1rem 2rem;
    float: right;
    text-align: right;
}
ul.navbar li.active a,
ul.navbar li a:hover {
    text-decoration: underline;
}
ul.navbar-light {
    background-color: #ddd;
    border-bottom: 0;
}
ul.navbar-light li a {
    color: #444;
}
ul.navbar-light li.active a,
ul.navbar-light li a:hover {
    text-decoration: none;
    background-color: #ccc;
}
ul.navbar-light li.active a {
    text-decoration: none;
}
ul.navbar-dark {
    background-color: #333333;
    border-bottom: 0;
}
ul.navbar-dark li a {
    color: white;
}
ul.navbar-dark li.active a,
ul.navbar-dark li a:hover {
    text-decoration: none;
    background-color: #111111;
}
ul.navbar li.brand a:hover,
ul.navbar li.mobile-menu a:hover {
    opacity: .9;
    background-color: inherit;
}
ul.navbar li.mobile-menu a.navbar-closed {
    display: block;
}
ul.navbar li.mobile-menu a.navbar-opened {
    display: none;
}
ul.navbar li.brand::after {
    content: "";
    clear: both;
    display: table;
}
ul.navbar-sticky {
    position: fixed;
    z-index: 2;
}
@media only screen and (max-width: 479px) {
    ul.navbar li {
        box-sizing: border-box;
        display: none;
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
    ul.navbar.opened li,
    ul.navbar:target li {
        display: block;
        float: none;
    }
    ul.navbar:target li a.navbar-closed {
        display: none;
    }
    ul.navbar:target li a.navbar-opened {
        display: block;
    }
    ul.navbar li.mobile-menu {
        float: right;
    }
    ul.navbar li a {
        text-align: left;
    }
    .dir-rtl ul.navbar li a {
        text-align: right;
    }
    ul.navbar li.brand,
    ul.navbar li.mobile-menu {
        border: 0;
        display: inline-block;
    }
}

/* --- tabs --- */
ul.tabs {
    width: 100%;
    list-style-type: none;
    margin: 1rem 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
}
ul.tabs::after {
    content: "";
    clear: both;
    display: table;
}
ul.tabs li {
    display: inline-block;
    margin-bottom: -1px;
}
ul.tabs li.mobile-menu {
    float: right;
    display: none;
}
ul.tabs li a {
    display: block;
    text-align: center;
    line-height: 1;
    padding: .9rem 1.1rem .8rem;
    text-decoration: none;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    -ms-transition: none;
}
ul.tabs li a:hover {
    opacity: .6;
}
ul.tabs li.active a {
    border-radius: 5px 5px 0 0;
    border: 1px solid #ddd;
    /*margin: 0 -1px;*/
    background: #fff;
    border-bottom: 0;
    opacity: 1;
    color: #333;
    cursor: default;
}
.tabs-content {
    margin: 1.5rem 0;
}
.tabs-content>div {
    display: none;
}
.tabs-content>div.active {
    display: block;
}

/* --- modal --- */
.modal-window {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.15);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    display: none;
    pointer-events: none;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

.modal-window:target {
    opacity: 1;
    pointer-events: auto;
    display: block !important;
}

.modal-window>div {
    width: 640px;
    max-width: 90%;
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 2rem 1.5rem 1.5rem;
    background: #fff;
    color: #444;
    border-radius: 5px;
    box-shadow: 0 2px 50px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 110%;
    position: absolute;
    right: 1rem;
    text-align: right;
    top: .1rem;
    text-decoration: none;
    text-indent: -1000px;
    color: transparent;
}
.dir-rtl .modal-close {
    text-align: left;
    right: auto;
    left: 1rem;
}
.modal-close:hover {
    color: #e00;
    color: transparent;
    text-decoration: none;
}
.modal-close::after {
    content: '\2716';
    color: #aaa;
    font-weight: bold;
}
.modal-close:hover::after {
    color: #e00;
}

.modal-window header {
    width: calc(100% + 3rem);
    font-size: 120%;
    line-height: 1;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.025);
    border-radius: 5px 5px 0 0;
    margin: -2rem -1.5rem 1.5rem;
    padding: 1.5rem 1.5rem 1.3rem;
}
.modal-window footer {
    width: calc(100% + 3rem);
    line-height: 1;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.025);
    border-radius: 0 0 5px 5px;
    margin: 2rem -1.5rem -1.5rem;
    padding: .75rem 1.5rem;
}
.modal-window header::after,
.modal-window footer::after {
    content: "";
    clear: both;
    display: table;
}
.modal-window h1 {
    font-size: 180%;
    margin: 0 0 .5rem;
}

.rotate {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.no-overflow {
    overflow: hidden;
}

/* --- animation --- */
@-webkit-keyframes blinker {
    from {opacity: 1.0;}
    to {opacity: 0.0;}
}
.blink {
    text-decoration: blink;
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 0.6s;
    -webkit-animation-iteration-count:infinite;
    -webkit-animation-timing-function:ease-in-out;
    -webkit-animation-direction: alternate;
}

.loader {
    display: inline-block;
    margin: 0 .25rem
}
.loader::after {
    content: "";
    display: block;
    margin: auto;
    border: 10px solid #f3f3f3; /* Light grey */
    border-top: 10px solid #808080; /* #3498db */
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: loader 2s linear infinite;
}
.loader-link::after {
    border-top-color: #09f;
}
.loader-success::after {
    border-top-color: #4CAF50;
}
.loader-primary::after {
    border-top-color: #008CBA;
}
.loader-warning::after {
    border-top-color: #ffc107;
}
.loader-danger::after {
    border-top-color: #c82333;
}
.loader-info::after {
    border-top-color: #17a2b8;
}
.loader-light::after {
    border-top-color: #ccc;
}
.loader-dark::after {
    border-top-color: #333333;
}
@keyframes loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-wait {
    overflow: hidden;
    text-indent: -1000%;
}
.btn-wait::before, .btn-wait::after {
    float: right;
    content: "";
    width: 50%;
    display: block;
    height: 5px;
    margin-top: 6px;
    background: #444;
    border-radius: 3px;
    top: 50%;
    animation: btn-wait1 .8s infinite;
}
.btn-wait::after {
    float: left;
    animation: btn-wait2 .8s infinite;
}
/* safari hack */
@media not all and (min-resolution:.001dpcm) {
        @media {
        .btn-wait {
            font-size: 0%;
            text-indent: 1%;
        }
        .btn-wait::before {
            margin-top: 8px;
        }
        .btn-wait::after {
            margin-top: -5px;
            margin-bottom: 2px;
        }
    }
}
.btn-success.btn-wait::before,
.btn-success.btn-wait::after {
    background: white;
}
.btn-primary.btn-wait::before,
.btn-primary.btn-wait::after {
    background: white;
}
.btn-warning.btn-wait::before,
.btn-warning.btn-wait::after {
    background: #222;
}
.btn-danger.btn-wait::before,
.btn-danger.btn-wait::after {
    background: white;
}
.btn-info.btn-wait::before,
.btn-info.btn-wait::after {
    background: white;
}
.btn-light.btn-wait::before,
.btn-light.btn-wait::after {
    background: #333;
}
.btn-dark.btn-wait::before,
.btn-dark.btn-wait::after {
    background: white;
}
.btn-link.btn-wait::before,
.btn-link.btn-wait::after {
    background: #09f;
}
@keyframes btn-wait1 {
    0%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 50% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}
@keyframes btn-wait2 {
    0%, 100% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    } 50% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}
