@charset "UTF-8";

@import "util/normalize";
@import "util/easing";
@import "util/color";
@import "util/mixin";
@import "util/typography";
@import "util/keyframes";
@import "util/perfect-scrollbar";

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: $font-family-sans, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    font-weight: 400;
    background-color: $white;
    color: $black;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}

body.page-qa {
    background-color: $white;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

a:hover {
    color: inherit;
    text-decoration: underline;
}

.clearfix:after {
	content: "";
	clear: both;
 	display: block;
}

input, button, textarea, select {
    margin: 0;
	padding: 0;
    border-radius: 0;
    appearance: none;
    border: none;
    border-radius: 0;
    outline: none;
    background: none;
    box-sizing: border-box;
    font-family: inherit;
    &::-webkit-search-decoration {
        display: none;
    }
    &::focus {
        outline-offset: -2px;
    }
}

#primary-container {
    height: 100%;
    position: relative;
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #000;
}

.page-qa #primary-container {
    height: 64%;
    background-color: transparent;
}

// Site Header
#site-header {
    width: 100%;
}

#site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 24px 0;
}


#site-title {
    margin: 0 auto 0 0;
    font-size: 23px;
    font-weight: 500;
    color: $white;
    letter-spacing: -0.05em;
}

.page-qa #site-title {
    color: inherit;
}

#site-title > a {
    text-decoration: none;
}

#site-logo {
    width: 42px;
}

#site-header-inner > a {
    margin-left: 42px;
    color: $white;
    text-decoration: none;
    font-size: inherit;
    font-weight: 500;
}

.page-qa #site-header-inner > a {
    color: $black;
}

.search-button {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: 48px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../image/icon-search--light.svg);
}

.page-qa .search-button {
    background-image: url(../image/icon-search--dark.svg);
}

a#your-qa-button {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: 21px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../image/icon-identity--light.svg);
}

.page-qa a#your-qa-button {
    background-image: url(../image/icon-identity--dark.svg);
}

#push-icon {
    display: block;
    width: 8px;
    height: 8px;
    position: absolute;
    bottom: -5px;
    right: -5px;
    border-radius: 50%;
    background-color: $red;
    border: solid 2px #000;
}

.page-qa #push-icon {
    border: solid 2px $white;
}

// Site Description
#site-introduction {
    width: 100%;
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate3d(50%, 50%, 0);
    text-align: center;
}

#site-slogan,
#page-title {
    font-size: 48px;
    color: $white;
    font-weight: 300;
    margin: 0;
}

.page-qa #site-slogan,
.page-qa #page-title {
    color: $black;
}

#site-slogan > span,
#page-title > span {
    font-weight: 500;
}

#site-description {
    width: 45em;
    margin: 12px auto;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,.8);
}

.page-qa #site-description {
    color: $gray;
}

#site-introduction__buttons {
    display: flex;
    justify-content: center;
    margin: 24px auto 0;
}

.button--bounce {
    transition: all 100ms;
}

.button--bounce:active {
    transform: scale(0.98);
}

#post-a-question-button {
    width: 179px;
    height: 54px;
    line-height: 54px;
    background-color: $blue;
    text-align: center;
    color: $white;
    font-size: inherit;
    font-weight: 500;
    border-radius: 3px;
    margin: 0 10px 0;
    text-decoration: none;
    box-shadow: rgba(23,43,99,0.26) 0 7px 42px;
    transition: all 100ms;
}

#post-a-question-button:active {
    box-shadow: rgba(23,43,99,0.36) 0 7px 26px;
    transform: scale(0.98);
}

#browse-question-button {
    width: 179px;
    height: 54px;
    line-height: 52px;
    box-sizing: border-box;
    margin: 0 10px 0;
    text-align: center;
    color: $ultralight-gray;
    border: solid 1px rgba(255,255,255,.2);
    background-color: rgba(255,255,255,.15);
    font-size: inherit;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
    transition: all 300ms;
}

#browse-question-button:active {
    transform: scale(0.98);
}

// scroll to discover
#scrolltodiscover-container {
    position: absolute;
    bottom: 8%;
    left: 5%;
    color: $light-gray;
    font-size: inherit;
    font-weight: 500;
    overflow: hidden;
}

#scrolltodiscover {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate3d(0, 100%, 0);
    transition: all 400ms ease 600ms;
}
.is-page-loaded #scrolltodiscover {
    transform: translate3d(0, 0%, 0);
}

.arrow-down-icon-container {
    width: 14px;
    height: 14px;
    margin-right: 9px;
    overflow: hidden;
}

.arrow-down-icon {
    width: 14px;
    height: 14px;
    animation: arrow-up-down 1.6s ease infinite;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../image/icon-arrowdown.svg);
}

#cover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-image: url(../image/cover-image.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .15;
}

.page-qa #cover {
    background-image: url(../image/luca-bravo-207676.jpg);
}

// main
#main {
    width: 90%;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    background-color: transparent;
}

// Filter
#filter {
    width: 100%;
    z-index: 5;
}

#filter.is-sticky {
    position: fixed;
    bottom: auto!important;
    top: 0;
    right: 5%;
    opacity: 1;
    visibility: visible;
}

#filter.is-no-sticky {
    position: absolute;
    top: auto!important;
    bottom: 0;
    right: 5%;
}

#filter-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: $dark-gray;
    height: 57px;
    position: relative;
    z-index: 3;
    color: $white;
    cursor: pointer;
}

#filter:hover #filter-header {
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.4);
}

#filter-header::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 50%;
    right: 15px;
    transform: translate3d(0, 50%, 0);
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../image/icon-dropdown.svg);
    opacity: .54;
}

#filter-header > span:first-child {
    margin-right: 9px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

#filter-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: 57px;
    right: 0;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

#filter.is-sticky #filter-list {
    width: 25%;
    position: fixed;
    top: 57px;
    right: 5%;
}

#filter.is-no-sticky #filter-list {
    position: absolute;
    top: 57px;
    right: 0;
}

#filter:hover > #filter-list {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
}

#filter-list > li {
    display: block;
    border-bottom: solid 1px lighten($rcBrowserBg, 20%);
}

#filter-list > li:last-child {
    border-bottom: none;
}

#filter-list > li > a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 24px 0;
    background-color: lighten($rcBrowserBg, 15%);
    color: $white;
}

#filter-list > li > a:hover {
    background-color: $blue;
}

// Questions
#questions-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.questions {
    width: 25%;
    position: relative;
}
.page-qa .questions {
    transform: translate3d(0, 0%, 0);
}

.js-box-shadow {
    box-shadow: rgba(29,29,31,0.13) 0 10px 60px;
}

.questions:nth-of-type(odd) {
    background-color: darken($ultralight-gray, 1%);
}
.questions:nth-of-type(even) {
    background-color: $ultralight-gray;
}

.questions:first-child {
    z-index: 1;
    transform: translate3d(0, 7%, 0);
    transition: all 600ms $ease-in-out-back 200ms;
}
.is-page-loaded .questions:first-child,
.page-qa .questions:first-child {
    transform: translate3d(0, -2%, 0);
}

.questions:nth-child(2) {
    z-index: 3;
    transform: translate3d(0, 7%, 0);
    transition: all 600ms $ease-in-out-back;
}
.is-page-loaded .questions:nth-child(2),
.page-qa .questions:nth-child(2) {
    transform: translate3d(0, -4%, 0);
}

.questions:nth-child(3) {
    transform: translate3d(0, 7%, 0);
    z-index: 2;
    transition: all 600ms $ease-in-out-back 100ms;
}
.is-page-loaded .questions:nth-child(3),
.page-qa .questions:nth-child(3) {
    transform: translate3d(0, -3%, 0);
}

.questions:last-child {
    transform: translate3d(0, 7%, 0);
    z-index: 1;
    transition: all 600ms $ease-in-out-back 300ms;
}
.is-page-loaded .questions:last-child,
.page-qa .questions:last-child {
    transform: translate3d(0, -2%, 0);
}

.questions-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 42px 0 47px;
    font-size: 18px;
    font-weight: 500;
}

.questions-header::after {
    display: block;
    content: "";
    width: 88%;
    height: 5px;
    border-radius: 2.5px;
    background-color: darken($ultralight-gray, 10%);
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translate3d(50%, 0, 0);
}

.questions-header__icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    margin-right: 9px;
}

.questions-header__icon > span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate3d(50%, 50%, 0);
}

.questions-header__icon::after {
    display: block;
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: solid 1px;
    box-sizing: border-box;
    background-color: transparent;
    top: 0;
    left: 0;
}

.questions-header__icon--best > span {
    background-color: $icon--best;
    box-shadow: 0 0 14px $icon--best;
}
.questions-header__icon--best::after {
    border-color: $icon--best;
}

.questions-header__icon--latest > span {
    background-color: $icon--latest;
    box-shadow: 0 0 14px $icon--latest;
}
.questions-header__icon--latest::after {
    border-color: $icon--latest;
}

.questions-header__icon--high-reward > span {
    background-color: $icon--high-reward;
    box-shadow: 0 0 14px $icon--high-reward;
}
.questions-header__icon--high-reward::after {
    border-color: $icon--high-reward;
}

.questions-header__icon--resolved > span {
    background-color: $icon--resolved;
    box-shadow: 0 0 14px $icon--resolved;
}
.questions-header__icon--resolved::after {
    border-color: $icon--resolved;
}

.questions__item {
    width: 88%;
    margin: 0 auto;
    padding: 24px 0 33px;
    border-bottom: solid 1px darken($ultralight-gray, 10%);
}

.questions__item-inner {
    padding: 0 27px;
}

a.questions__item__title {
    display: block;
    text-decoration: none;
    margin-bottom: 9px;
    line-height: 1.6;
}

a.questions__item__title:hover {
    color: $blue;
    text-decoration: underline;
}

.questions__item__answer {
    background-color: lighten($rcBrowserBg, 15%);
    margin: 9px 0 15px;
    padding: 9px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    color: $rcBrowserBodyText;
    line-height: 1.2;
    margin-top: -0.2em;
}

.questions__item__footer {
    font-size: 13px;
    color: $light-gray;
}

.loadmore-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 88%;
    height: 48px;
    line-height: 48px;
    margin: 30px auto 21px;
    font-weight: 500;
    color: $gray;
    text-align: center;
    background-color: darken($ultralight-gray, 10%);
    border-radius: 2px;
    cursor: pointer;
}

.loadmore-text {
    display: block;
}

$loder-width: 16px;
$loder-border-size: 3px;
.loader {
    display: none;
	width: $loder-width;
	height: $loder-width;
	border-radius: 50%;
	background-color: transparent;
	border-top: $loder-border-size solid darken($ultralight-gray, 18%);
	border-right: $loder-border-size solid darken($ultralight-gray, 18%);
	border-bottom: $loder-border-size solid $blue;
	border-left: $loder-border-size solid $blue;
	animation: loading .6s infinite linear;
}

.loadmore-button.is-loading .loadmore-text {
    display: none;
}

.loadmore-button.is-loading .loader {
    display: block;
}

// search
#search {
    padding: 50px 0;
}

#search-header {
    margin: 0 0 24px;
    text-align: center;
    font-weight: 400;
    font-size: 27px;
}

#search-logo {
    width: 45px;
    margin: 0 auto 9px;
}

#search-header > span {
    display: block;
    margin: 0 auto;
    color: $black;
}

#search-form-container {
    position: relative;
    color: inherit;
    width: 500px;
    margin: 0 auto;
    padding: 24px 0 78px;
}

#search-form {
    position: relative;
    border-bottom: solid 1px $black;
}

#search-input {
    width: 100%;
    font-size: 18px;
    padding: 12px 0 12px 10px;
    color: $black;
    font-family: inherit;
}

/* Google Chrome, Safari, Opera 15+, Android, iOS */
#search-input::-webkit-input-placeholder {
    color: $black;
    font-family: inherit;
}

/* Firefox 18- */
#search-input:-moz-placeholder {
    color: $black;
    font-family: inherit;
}

/* Firefox 19+ */
#search-input::-moz-placeholder {
    color: $black;
    font-family: inherit;
}

/* IE 10+ */
#search-input:-ms-input-placeholder {
    color: $black;
    font-family: inherit;
}

#search-input:placeholder-shown {
    color: $black;
    font-family: inherit;
}

#search-submit {
    width: 18px;
    height: 18px;
    background-image: url(../image/icon-search--dark.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    bottom: 50%;
    right: 10px;
    transform: translate3d(0, 50%, 0);
    cursor: pointer;
}

#result-number {
    display: block;
    padding: 12px 0 0;
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translate3d(50%, 100%, 0);
}

// footer
#site-footer {
    width: 100%;
    color: $black;
    position: relative;
    z-index: 1;
    background-color: $ultralight-gray;
    padding: 24px 0;
}

// footer nav
#site-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 33px 0;
}

#site-footer-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer-nav > ul > li {
    display: inline-block;
    margin-right: 30px;
    font-size: 15px;
}

#site-footer-nav > ul > li:last-child {
    margin-right: 0;
}

li.site-footer-nav__divider {
    color: rgba(0, 0, 0, .2)!important;
}

#site-footer-nav > ul > li > a {
    color: inherit;
    text-decoration: none;
}

// site footer nav --secondary
#site-footer-nav--secondary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    margin: 0 auto;
    padding: 42px 0;
    border-top: solid 1px darken($ultralight-gray, 10%);
}

#site-footer-nav--secondary > ul {
    margin: 0 0 0 96px;
    padding: 0;
    list-style: none;
}

#site-footer-nav--secondary > ul:first-child {
    margin: 0 auto 0 0;
}

#site-footer-nav--secondary > ul > span {
    display: block;
    color: $gray;
    font-size: 13px;
    margin-bottom: 24px;
}

#site-footer-nav--secondary > ul:first-child > span {
    margin-bottom: 9px;
}

#site-footer-nav--secondary > ul > li {
    margin-bottom: 18px;
    font-size: 13px;
}

#site-footer-nav--secondary > ul:first-child > li {
    font-size: 18px;
}

#site-footer-nav--secondary > ul > li > a {
    text-decoration: none;
}

#copyright > a {
    display: block;
    font-size: 18px;
    color: $black;
    text-decoration: none;
}

a#backtotop {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 52px;
    height: 52px;
    background-color: darken($rcBrowserBg, 19%);
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

a#backtotop:hover {
    background-color: $blue;
}

#backtotop > span {
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../image/icon-arrowup.svg);
}

// RC Browser
.rcbrowser {
    position: fixed;
    top: 10%;
    left: 15%;
    z-index: 9;
    max-height: 90%;
    overflow: hidden;
    background-color: $rcBrowserBg;
    border-radius: 3px;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.5);
    color: $white;
    opacity: 0;
    visibility: hidden;
}

.rcbrowser a {
    text-decoration: none;
}

.rcbrowser a:hover {
    color: $rcBrowserBodyText;
    text-decoration: underline;
}

.rcbrowser-inner {
    height: 100%;
    overflow-y: scroll;
    position: relative;
}

.rcbrowser.is-open {
    opacity: 1;
    visibility: visible;
}

.rcbrowser--postaquestion,
.rcbrowser--postaquestion .rcbrowser-header {
    width: 400px;
}

.rcbrowser--qa-detail,
.rcbrowser--qa-detail .rcbrowser-header {
    width: 369px;
}

.rcbrowser--your-qa,
.rcbrowser--your-qa .rcbrowser-header {
    width: 800px;
}

.rcbrowser--qa-detail--resolved .current-answer-container {
    margin: 0 0 15px 0;
}

// rcBrowser header
.rcbrowser-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    z-index: 2;
    height: 35px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: $dark-gray;
    box-shadow: 0 0 10px 0px rgba(0,0,0,.3);
    cursor: move;
}

.rcbrowser-loader-container {
    position: absolute;
    bottom: 50%;
    right: 10px;
    transform: translate3d(0, 50%, 0);
}

.rcbrowser-loader-container > .loader {
    width: 12px;
    height: 12px;
    border-top: $loder-border-size solid $rcBrowserBg;
	border-right: $loder-border-size solid $rcBrowserBg;
}

.rcbrowser.is-loading .loader {
    display: block;
}

.rcbrowser-control {
    margin-left: 9px;
}

.rcbrowser-control > span {
    display: block;
    float: left;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: darken($rcBrowserBg, 19%);
    margin-right: 5px;
}

span.rcbrowser__close-button {
    background-color: $red;
    background-image: url(../image/icon-close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px 6px;
    cursor: pointer;
}

// rcBrowser main
.rcbrowser-main {
    margin: 35px 0 15px;
    padding: 0 15px;
}

// rcBrowser main header
.rcbrowser-main-header {
    text-align: center;
    border-bottom: solid 2px lighten($rcBrowserBg, 10%);
    padding: 27px 0;
}

.rcbrowser-main-header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 9px;
}

.rcbrowser-main-header-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: $rcBrowserSubText;
}

.rcbrowser-main-header-subtitle > span {
    color: $white;
}

.answer-deadline {
    display: none;
    margin: -9px 0 15px;
    padding: 6px;
    border-radius: 2px;
    font-size: 12px;
    background-color: $rcBrowserDarkBg;
}

.rcbrowser.has-answer .answer-deadline {
    display: block;
}

// rcBrowser--qa-detail main header
.rcbrowser--qa-detail .rcbrowser-main-header {
    text-align: left;
    padding: 18px 0 6px;
}

.rcbrowser-main-header-date {
    color: $rcBrowserSubText;
    font-size: 12px;
}

.rcbrowser--qa-detail .rcbrowser-main-header-title {
    font-size: 18px;
    font-weight: 500;
    margin: 3px 0 18px;
    line-height: 24px;
}

.rcbrowser--qa-detail .rcbrowser-main-header-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: $white;
}

.rcbrowser--qa-detail .rcbrowser-main-header-subtitle > span {
    margin: 0 9px 0 0;
    display: inline-block;
}

.add-reward-button {
    background-color: $gray;
    border-radius: 2px;
    font-size: 12px;
    padding: 2px;
    cursor: pointer;
}

.add-reward-container {
    overflow: hidden;
    display: none;
}

.add-reward {
    margin: 15px 0;
    background-color: $rcBrowserDarkBg;
    border-radius: 3px;
    padding: 6px 9px;
}

.rcbrowser-submit.rcbrowser-submit--add-reward {
    @include button_blue;
}

.add-reward__close-button {
    float: right;
    font-size: 13px;
    cursor: pointer;
    margin-top: -6px;
}

.add-reward__close-button::before {
    display: inline-block;
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 2px;
    background-image: url(../image/icon-close--light.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px 9px;
}

.reward-value-container {
    display: inline-block;
}

// rcbrowser main body
.rcbrowser-main-body {
    padding: 15px 0 0;
}

// arbitration button
.arbitration-button {
    font-size: 12px;
    color: $rcBrowserSubText;
    text-decoration: none;
    display: block;
    float: right;
    margin: -10px 0 3px;
}

// arbitration button
.arbitration-button--applied {
    font-size: 12px;
    color: $rcBrowserSubText;
    text-decoration: none;
    display: block;
    float: right;
    margin: -10px 0 3px;
}

// answer item
.answer-item {
    cursor: pointer;
}

.final-answer-button {
    margin: 15px 0 0;
    padding: 9px;
    border-radius: 3px;
    font-size: 12px;
    // background-color: $blue;
    @include button_blue;
    text-align: center;
}

// current answer
.current-answer-container {
    margin: 15px 0;
}

.current-answer-container.is-open .current-answer-inner {
    opacity: 1;
}

.current-answer-header {
    font-size: 13px;
}

.current-answer-header > span {
    display: inline-block;
}

.current-answer-header::before {
    display: inline-block;
    content: "";
    width: 8px;
    height: 8px;
    background-color: $green;
    border-radius: 50%;
    margin-right: 6px;
}

.current-answer-item {
    background-color: $rcBrowserDarkBg;
    margin: 9px 0 15px;
    padding: 15px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.current-answer-body {
    color: $rcBrowserBodyText;
    line-height: 1.2;
    margin-top: -0.2em;
    font-size: 18px;
}

.current-answer-body > p {
    margin: 0 0 9px;
}

.current-answer-body > p:last-of-type {
    margin: 0;
}

// date
.current-answer-item > span {
    color: $rcBrowserSubText;
    font-size: 12px;
}

// answered history
.answered-history-container {
    margin: 15px 0 24px;
    transition: all 400ms;
}

.answered-history-container.is-open .answered-history-inner {
    opacity: 1;
}

.answered-history-header {
    font-size: 13px;
    margin: 9px 0;
    padding: 6px 0;
    border-bottom: solid 1px rgba(255,255,255,.2);
}

.answered-history-item {
    position: relative;
    background-color: $rcBrowserDarkBg;
    margin: 0 0 15px 0;
    padding: 15px;
    border-radius: 3px;
    overflow: hidden;
}

.answered-history-body {
    color: $rcBrowserBodyText;
    line-height: 1.2;
    margin-top: -0.2em;
    font-size: inherit;
}

.answered-history-body > p {
    margin: 0 0 9px;
}

.answered-history-body > p:last-of-type {
    margin: 0;
}

.answer-data {
    overflow: hidden;
    display: none;
}


.answer-data-inner {
    margin: 15px 0 0;
    background-color: rgba(0,0,0,.3);
    border-radius: 3px;
    padding: 9px;
}

.answer-data__avatar {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    float: left;
    margin: 0 12px 6px 0;
}

.answer-data__item {
    margin-bottom: 5px;
    font-size: 13px;
    color: $rcBrowserBodyText;
}

.answer-data__item:last-child {
    margin-bottom: 0px;
}

// date
.answered-history-item > span {
    color: $rcBrowserSubText;
    font-size: 12px;
}

// answer form header
.answer-form-header {
    font-size: 13px;
    margin: 0 0 15px;
    padding: 6px 0;
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
}

.answer-form-container {
    background-color: $rcBrowserDarkBg;
    margin: 15px 0;
    padding: 9px 15px 15px;
    border-radius: 3px;
}

// your balance
.your-balance {
    text-align: right;
    font-size: 13px;
    color: $rcBrowserSubText;
    margin-bottom: -9px;
}

.your-balance > span {
    color: $rcBrowserBodyText;
}

// rcBrowser form (default setting)
.rcbrowser-form__col-2 {
    margin-top: -15px;
    margin-bottom: -15px;
}

.rcbrowser-textarea {
    display: block;
}

.rcbrowser-input,
.rcbrowser-textarea {
    width: 100%;
    box-shadow: inset 0 0 0 1px $dark-gray;
    background-color: $white;
    color: $black;
    border-radius: 3px;
}

.rcbrowser-input:focus,
.rcbrowser-textarea:focus {
    box-shadow: inset 0 0 0 1px $blue;
}

.is-error .rcbrowser-input,
.is-error .rcbrowser-textarea,
.is-error .rcbrowser-select {
    box-shadow: inset 0 0 0 1px $red;
}

// disable spin button
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    font-family: inherit;
    font-size: inherit;
}

// rcBrowser textarea
.textarea-container {
    margin: 15px 0;
}

.textarea-container--postaquestion {
    margin-top: 0;
}

textarea[name="question-body"] {
    height: 100px;
    padding: 12px;
}

// rcBrowser reward
.input-container {
    margin: 15px 0;
    position: relative;
}

.input-inner {
    position: relative;
}

.input-header {
    display: block;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translate3d(0, 50%, 0);
    height: 40px;
    line-height: 40px;
    margin-left: 12px;
    padding-right: 9px;
    background-color: $white;
    pointer-events: none;
    font-size: 13px;
    color: $black;
    pointer-events: none;
}

.rcbrowser-input {
    padding: 0 12px;
    height: 42px;
    line-height: 42px;
}

.rcbrowser-input--number {
    text-align: right;
}

// rcBrowser selectbox
.rcbrowser-select {
    width: 100%;
    box-shadow: inset 0 0 0 1px $dark-gray;
    padding: 0 50px 0 12px;
    height: 42px;
    line-height: 42px;
    border-radius: 4px;
    background-color: lighten($rcBrowserDarkBg, 5%);
    font-size: 13px;
    color: $white;
    font-family: inherit;
    cursor: pointer;
}

.select-container {
    margin: 15px 0;
    position: relative;
}

.select-container--answer {
    margin: 0 0 15px;
}

.select-container--question-category {
    width: calc(100% - 146px);
    float: left;
}

.select-container--arbitrator {
    margin: 0 0 15px;
}

.select-container--has-quick-help .rcbrowser-select {
    width: calc(100% - 30px);
}

.select-container::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    margin-top: 10px;
    margin-right: 10px;
    background-size: contain;
    background-image: url(../image/icon-dropdown.svg);
    pointer-events: none;
}

.select-container--has-quick-help::after {
    right: 30px;
}

.quick-help {
    position: absolute;
    top: 11px;
    right: 0;
}

.quick-help-button {
    display: block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background-color: $rcBrowserDarkBg;
    color: $rcBrowserBodyText;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 1;
}

.quick-help-body {
    width: 200px;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background-color: $blue;
    padding: 9px;
    color: $rcBrowserBodyText;
    font-size: 13px;
    z-index: 2;
    display: none;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.quick-help-body::after {
    display: block;
    content: "";
    border-top: solid 6px $blue;
    border-left: solid 6px transparent;
    border-right: solid 6px transparent;
    border-bottom: solid 6px transparent;
    position: absolute;
    bottom: -12px;
    left: 12px;
}

.quick-help:hover .quick-help-body {
    display: block;
    animation-duration: .3s;
    transition-timing-function: $ease-in-out-expo;
    animation-fill-mode: both;
    animation-name: bounce;
}

select[name="question-category"] {
    padding: 0 12px;
    height: 42px;
    line-height: 42px;
    text-align: right;
}

.select-answer {
    font-size: inherit;
}


// rcBrowser checkbox
label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 9px 0 0;
    padding: 9px;
    font-size: inherit;
    background-color: lighten($rcBrowserDarkBg, 5%);
    border-radius: 2px;
    cursor: pointer;
}

input[type=checkbox] {
    display: block;
    flex-basis: 14px;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-image: url(../image/icon-checkbox--blank.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

input[type=checkbox]:checked {
    background-image: url(../image/icon-checkbox--checked.svg);
}

label > span {
    display: block;
    flex: 1;
}

// rcBrowser submit
.submit-container {
    margin: 15px 0;
    float: right;
}

.rcbrowser-submit {
    width: 131px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: $white;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    @include button_blue;
}

// rcBrowser--qa-detail submit
.rcbrowser--qa-detail .submit-container {
    float: none;
}

.rcbrowser--qa-detail .rcbrowser-submit {
    width: 100%;
}

// rcBrowser Your Q&A
.notifications {
    margin: 0 0 15px;
}

.notifications-item {
    width: 100%;
    background-color: $rcBrowserDarkBg;
    cursor: pointer;
    margin-bottom: 1px;
}

.notifications-item-inner {
    padding: 9px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.notification-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 9px;
}

.notification-badge--positive {
    background-color: $green;
}

.notification-badge--negative {
    background-color: $red;
}

.notifications-item-body > p {
    margin: -0.1em 0 0;
    line-height: 1.4;
    font-size: 13px;
    color: $rcBrowserBodyText;
}

.notifications-item-body > span {
    font-size: 12px;
    color: $rcBrowserSubText;
}

.see-all-notifications {
    display: block;
    float: right;
    font-size: 13px;
    color: $rcBrowserSubText;
    margin-top: 5px;
}

// your q&a
.your-qa {
    position: relative;
}

.your-qa__questions {
    width: 50%;
    float: left;
}

.your-qa__answers {
    width: 50%;
    float: right;
}

.your-qa__questions-inner,
.your-qa__answers-inner {
    padding: 0 21px;
}

.your-qa__questions-header,
.your-qa__answers-header {
    border-bottom: solid 1px lighten($rcBrowserBg, 10%);
    padding-bottom: 12px;
    font-size: 13px;
    color: $rcBrowserBodyText;
    font-weight: 500;
    text-align: center;
}

.your-qa__divider {
    display: block;
    width: 1px;
    height: 100%;
    background-color: lighten($rcBrowserBg, 10%);
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -0.5px;
}

.your-qa__questions__item {
    margin: 15px 0 0;
    border-bottom: solid 1px lighten($rcBrowserBg, 10%);
}

.your-qa__questions__item-date {
    margin: 0;
    font-size: 12px;
    color: $rcBrowserSubText;
}

.your-qa__questions__item-title {
    display: block;
    margin: 6px 0;
    font-size: inherit;
    color: $rcBrowserBodyText;
    cursor: pointer;
    text-decoration: none;
}

.your-qa__questions__item-status {
    margin: 15px 0 6px;
    font-size: 12px;
    color: $rcBrowserBodyText;
}

.your-qa__questions__item-status--resolved::before {
    display: inline-block;
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 2px;
    background-color: $green;
}

.your-qa__questions__item-body {
    padding: 9px;
    font-size: inherit;
    border-radius: 3px;
    color: $rcBrowserBodyText;
    background-color: $rcBrowserDarkBg;
}


// rcBrowser placeholder
/* Google Chrome, Safari, Opera 15+, Android, iOS */
textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder {
    color: $light-gray;
    font-family: inherit;
}
/* Firefox 18- */
textarea:-moz-placeholder,
input:-moz-placeholder {
    color: $light-gray;
    font-family: inherit;
}
/* Firefox 19+ */
textarea::-moz-placeholder,
input::-moz-placeholder {
    color: $light-gray;
    font-family: inherit;
}
/* IE 10+ */
textarea:-ms-input-placeholder,
input:-ms-input-placeholder {
    color: $light-gray;
    font-family: inherit;
}

textarea:placeholder-shown,
input:placeholder-shown {
    color: $light-gray;
    font-family: inherit;
}

// error
.error-container {
    font-size: 13px;
    color: $rcBrowserBodyText;
    margin-top: 6px;
    padding: 4px 6px 6px;
    line-height: 1.3;
    border-radius: 3px;
    display: none;
    background-color: $red;
    box-shadow: inset 0 0 0 1px darken($red, 15%);
}

.error-container--select {
    margin: 0 0 15px;
}

.is-error .error-container {
    display: block;
    animation-duration: 200ms;
    transition-timing-function: $ease-in-out-expo;
    animation-fill-mode: both;
    animation-name: bounce;
}

// option edit
.edit-option-container {
    overflow: hidden;
    display: none;
}

.edit-option {
    margin: 0 0 15px;
    background-color: $rcBrowserDarkBg;
    border-radius: 3px;
    padding: 15px 15px;
}

.edit-option-container.is-open .edit-option {
    opacity: 1;
}

.edit-option-header {
    font-size: 13px;
}

.add-option-button {
    width: 100%;
    height: 42px;
    line-height: 42px;
    border-radius: 3px;
    text-align: center;
    box-sizing: border-box;
    background-color: darken($rcBrowserDarkBg, 8%);
    cursor: pointer;
}

// rcBrowser form footer
.rcbrowser-form-footer {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: $rcBrowserSubText;
    margin: 15px 0 0;
}

// toggle container
.toggle-container {
    overflow: hidden;
    height: 0;
    transition: all 400ms;
}

.toggle-inner {
    opacity: .25;
    transition: all 200ms ease 400ms;
}

.toggle-container.is-open .toggle-inner {
    opacity: 1;
}

.is-bounce {
    animation-duration: .3s;
    transition-timing-function: $ease-in-out-expo;
    animation-fill-mode: both;
    animation-name: bounce;
}

// tooltip
.tooltip {
    position: absolute;
    top: 81px;
    right: 63px;
    z-index: 999;
    background-color: $blue;
    color: $white;
    padding: 12px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 300ms;
}

.tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.tooltip::before {
    display: block;
    content: "";
    border-top: solid 6px transparent;
    border-bottom: solid 6px $blue;
    border-left: solid 6px transparent;
    border-right: solid 6px transparent;
    position: absolute;
    top: -12px;
    right: 12px;
}

// fake metamask
#fake-metamask {
    width: 300px;
    height: 300px;
    position: fixed;
    top: 10%;
    left: 10%;
    z-index: 999999999;
    background-color: $white;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.5);
    display: none;
}

#fake-metamask.is-open {
    display: block;
}

#fake-metamask > span {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate3d(50%, 50%, 0);
    color: inherit;
    font-size: 24px;
    font-weight: bold;
}
