:root {
    --app-primary-color: #47B7B7;
    --app-secondary-color: #F8D746;
}

html {
    font-size: 100%;
}

.material-icons {
    font-size: 1.5rem;
}

.material-icons_vertical-align {
    vertical-align: bottom;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .20);
}

.form-resource_selector-group input.no-fieldset:not([disabled]),
fieldset:not([disabled]) .form-resource_selector-group input:not([disabled]) {
    background: #fff !important;
}

.no-input-arrows::-webkit-outer-spin-button,
.no-input-arrows::-webkit-inner-spin-button {
    /* @see https://stackoverflow.com/a/4298216/4112200 */
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

/**
 * autocomplete.js library styles
 */
.algolia-autocomplete {
    min-width: 18.75rem !important;
}

.aa-cursor {
    background: #f5fcf9;
    cursor: pointer;
}

/**
 * Resource Component
 */
.resource {
    box-sizing: border-box;
    height: 3.125rem;
}

.resource.resource_is-selected {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    width: 100%;
}

.resource__icon,
.resource__details {
    height: 2.125rem;
}

.resource__icon {
    font-size: 2.125rem;
    color: #47B7B7;
}

.resource__details {
    font-size: .72rem;
    line-height: 1rem;
}

.resource__label,
.resource__description {
    display: block;
}

.resource__label {
    text-transform: uppercase;
}

.resource__btn-remove {
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.3125rem;
    font-size: 1.5rem;
}

.resource-list__item,
.resource-list__item a {
  color: #212529;
  text-decoration: none;
  display: block;
  transition: all .2s ease;
}

.resource-list__item:hover {
  background: #f7f7f7;
}

/**
 * PWA Place Holder
 */
.pwa-placeholder {
    position: relative;
    overflow: hidden;
}

.pwa-placeholder::before {
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 500%;
    margin-left: -250%;
    -webkit-animation: phAnimation .8s linear infinite;
    animation: phAnimation .8s linear infinite;
    background: -webkit-gradient(linear, left top, right top, color-stop(46%, rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.35)), color-stop(54%, rgba(255, 255, 255, 0))) 50% 50%;
}

.pwa-placeholder__item {
    background: #ced4da;
}

@-webkit-keyframes phAnimation {
    0% {
        -webkit-transform: translate3d(-30%, 0, 0);
        transform: translate3d(-30%, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(30%, 0, 0);
        transform: translate3d(30%, 0, 0);
    }
}

@keyframes phAnimation {
    0% {
        -webkit-transform: translate3d(-30%, 0, 0);
        transform: translate3d(-30%, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(30%, 0, 0);
        transform: translate3d(30%, 0, 0);
    }
}
