@import 'font-awesome.min.css';

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #2d2d2d;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
    background-image: url("../images/main.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/*DIALOG*/

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1003;
    display: table;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.dialogWindow {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.dialogWindow > div {
    display: inline-block;
    margin: 0 auto;
    width: 590px;
    background-color: #f9f9f9;
    color: #2d2d2d;
    padding: 15px;
    position: relative;
    text-align: left;
    padding-bottom: 80px;
}

.dialogWindow .title {
    font-size: 22px;
    line-height: 30px;
    margin: 10px 30px 30px 10px;

}

.dialog input[type="checkbox"] + label {
    vertical-align: middle;
    display: inline-block;
}

div.error label:nth-of-type(1), label.error {
    color: red;
}

.dialogWindow input[type="radio"], .dialogWindow input[type="checkbox"] {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    opacity: 0;
    margin-left: 179px;
}

.dialogWindow input[type="radio"] + label, .dialogWindow input[type="checkbox"] + label {
    position: relative;
    line-height: 25px;
    display: inline-block;
    padding-left: 5px;
}

.dialogWindow input[type="radio"] + label:before, .dialogWindow input[type="checkbox"] + label:before {
    content: "";
    position: absolute;
    top: 6px;
    left: -14px;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border: 1px solid #bebebe;
}

.dialogWindow input[type="radio"]:checked + label:before, .dialogWindow input[type="checkbox"]:checked + label:before {
    background-color: #28c4b9;
}

.dialogWindow input[type="radio"]:checked, .dialogWindow input[type="checkbox"]:checked {
    /*background-color: #28c4b9;*/
}

.greenButton {
    border: none;
    color: #ffffff;
    font-size: 16px;
    line-height: 40px;
    padding: 0 40px 0 25px;
    background-color: #28c4b9;
    background-image: url(../images/icons/buttonRightArrow.png);
    background-position: 100% 50%;
    background-repeat: no-repeat;
    outline: none;
    cursor: pointer;
}

.greenButton:hover {
    background-color: #3fada4;
}

.greenButton {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.dialogWindow label span {
    color: red;
    margin: 0px 0 0 4px;
    display: inline-block;
    vertical-align: top;
}

/* LOGIN DIALOG */
#loginDialog .dialogWindow > div {
    min-height: 415px;
}

#loginDialog label {
    width: 160px;
    display: inline-block;
    text-align: right;
    margin-right: 20px;
}

#loginDialog label span {
    color: red;
}

#loginDialog input[type="text"], #loginDialog input[type="password"] {
    width: 200px;
    background-color: #e7e7e7;
    border: 1px solid #c1c1c1;
    padding: 0 12px;
    line-height: 32px;
    margin-bottom: 0px;
    outline: none;
}

#loginDialog input[type="text"]:focus, #loginDialog input[type="password"]:focus {
    background-color: #ffffff;
}

span.error {
    color: red;
    margin: 0 0 0 5px;
    font-size: 13px;
    display: none;
}

#loginDialog .tabs {
    border-bottom: 1px solid #28c4b9;
}

#loginDialog .tabs a {
    font-size: 22px;
    color: #505251;
    display: inline-block;
    width: 47%;
    height: 50px;
    margin: 0 1.5%;
    line-height: 50px;
    background-color: #e6e6e6;
    text-align: center;
}

#loginDialog .tabs a.selected, #loginDialog .tabs a:hover {
    /*background-color: #28c4b9;*/
    /*color: white;*/
    cursor: pointer;
}

#loginDialog .fbLoginButton i {
    color: white;
    background-color: #696969;
    font-size: 17px;
    display: inline-block;
    margin-right: 5px;
    width: 25px;
    height: 25px;
    line-height: 26px;
    text-align: center;
    margin-bottom: 15px;
}

#loginDialog form {
    margin-top: 35px;
}

#loginDialog form:not(.selected) {
    display: none;
}

input[type="checkbox"] + label {
    width: auto !important;
    font-size: 12px;
    color: #c0c0c0;
    margin-right: 5px !important;
}

/*#signInPanel {*/
/*margin-top: 60px !important;*/
/*}*/

form p {
    margin: 8px 0;
}

#affShowButton {
    color: #28c4b9;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

#loginDialog .or {
    position: relative;
    font-size: 13px;
    width: 425px;
    margin: 5px auto 25px auto
}

#loginDialog .or:before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c0c0c0;

}

#loginDialog .or span {
    display: inline-block;
    background-color: #f9f9f9;
    padding: 0 10px;
    position: relative;
}

.info {
    color: #c0c0c0;
    text-align: justify;
    width: 76%;
    margin: 0 auto;
    margin-top: 25px;
    font-size: 12px;
    line-height: 20px;
}

#forgottenPanel {
    margin-top: 80px;
}

#forgottenResponse {
    margin-top: 80px;
}

#passwordReminderButton {
    position: absolute;
    bottom: 24px;
    left: 25px;
    cursor: pointer;
}

#affPanel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
}

#affPanel > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    overflow: hidden;
}

#affPanel > div > div {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 25px;
}

#affPanel h1, #affPanel h2 {
    color: #28c4b9;
    font-weight: normal;
}

#affPanel h1 {
    margin: 40px 0 20px 0;
    font-size: 24px;
}

#affPanel h2 {
    margin: 30px 0 20px 0;
    font-size: 18px;
}

input.error + span {
    display: inline-block;
}

#affError {
    margin-left: 185px !important;
}

#affError.error {
    display: block !important;
}

#logError {
    position: absolute;
    left: 195px;
}

#logError.error {
    display: block !important;
}

@media screen and (max-width: 800px) {
    .dialog {
        top: 0;
        display: block;
        height: auto;
        bottom: 0;

        width: auto;
        right: 0;
        z-index: 101;
    }

    .dialogWindow {
        display: block;
        position: absolute;
        bottom: 0;
        top: 0;
        width: 100%;
        height: 100% !important;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 10;
    }

    .dialog > i {
        display: block;
        position: absolute;
        width: 100%;
        height: 1000%;
        background-color: #f9f9f9;
    }

    .dialogWindow > div {
        width: 100%;
        height: 100%;
        padding: 0;
    }

    #townSelectorDialog .dialogWindow > div {
        height: auto;
        min-height: 100%;
    }

    .dialogWindow .close {
        /*    display: none;*/
    }

    #loginDialog form {
        text-align: center;
        margin-top: 25px;
    }

    #loginDialog label {
        width: 100%;
        text-align: center;
    }

    #loginDialog .dialogWindow > div {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
    }

    #loginDialog .tabs {
        margin: 0;
        border-bottom: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    #loginDialog .title {
        margin: 65px 20px 0 20px;
        font-size: 16px;
        line-height: 20px;
    }

    #loginDialog .tabs a {
        margin: 0;
        width: 50%;
        line-height: 40px;
        height: 40px;
        font-size: 19px;
        position: relative;
        border-bottom: 1px solid #e6e6e6;
    }

    #loginDialog .tabs a:before {
        content: "";
        position: absolute;
        bottom: 0;
        height: 1px;
        left: 0;
        right: 0;
        background-color: #e6e6e6;
    }

    #loginDialog .tabs a:nth-of-type(1) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    /*#loginDialog .tabs a.selected {*/
    /*background-color: #e6e6e6;*/
    /*color: #505251;*/
    /*}*/
    #loginDialog .tabs a.selected {
        color: #505251;
        background-color: #e6e6e6;
        border-bottom-color: #28c4b9;
    }

    #loginDialog .tabs a.selected:before {
        background-color: #28c4b9;
    }

    #loginDialog .fbLoginButton i {
        margin-bottom: 20px;
    }

    #loginDialog input[type="submit"] {
        position: relative;
        right: auto;
        bottom: -25px;
    }

    #loginDialog .signIn input[type="submit"] {
        bottom: 10px;
    }

    #loginDialog .advertiserSignInButton, #loginDialog .passwordReminderButton {
        position: relative;
        display: block;
        left: 0;
        margin-top: 25px;
        padding-bottom: 15px;
    }

    #loginDialog .advertiserSignInButton {
        margin-top: 7px;
    }

    .dialogWindow .close {
        position: fixed;
        top: 9px;
        z-index: 1;
        display: none;
    }

    #allDialogCloseButton {
        display: block;
        position: fixed;
        top: 9px;
        right: 15px;
    }

    #loginDialog .info {
        margin-bottom: 30px;
        margin-top: -5px;
        line-height: 17px;
    }

    .dialogWindow input[type="radio"], .dialogWindow input[type="checkbox"] {
        margin-left: -5px;
    }

    #signInPanel {
        margin-top: 70px !important;
    }

    #signInButton {
        bottom: -40px !important;
    }

    #affError {
        margin-left: -5px !important;
    }

    input.error + span {
        display: block;
    }

    #forgottenPanel {
        margin-top: 15px;
    }

    #forgottenPanel .info {
        margin-top: 30px;
    }
}