@font-face {
    font-family: 'Calibre';
    src: url("fonts/CalibreWeb-Regular.599825074474.woff") format("woff"),
    url("fonts/CalibreWeb-Regular.5c665ff0b66b.eot") format("embedded-opentype");
    font-weight: 400;
}

@font-face {
    font-family: 'Calibre';
    src: url("fonts/CalibreWeb-Semibold.1dd92505850c.woff") format("woff"),
    url("fonts/CalibreWeb-Semibold.743c464bd437.eot") format("embedded-opentype");
    font-weight: 600;
}

.main_container {
    margin-top: 20px;
}

.navbar-inverse .navbar-brand {
    color: #FFF;
}

textarea {
    width: 97%;
}

legend {
    margin-bottom: 18px;
}

/* float clearing for IE6 */
* html .clear {
    height: 1%;
    overflow: visible;
}

/* float clearing for IE7 */
* + html .clear {
    min-height: 1%;
}

/* float clearing for everyone else */
.clear:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
    font-size: 0;
}

#hint_id_approved_user_conditions {
    float: none;
}

.clickable {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

form.modal_form {
    margin-bottom: 0px;
}

table.responsive {
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.hide-desktop {
    display: none !important;
}

.hide-mobile {
    display: block !important;
}

@media screen and (max-width: 979px) {
    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: block !important;
    }
}

@media screen and (max-width: 600px) {

    table.responsive {
        border: 0;
        position: relative;
        overflow: hidden;
    }

    table.responsive thead {
        display: none;
    }

    table.responsive tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    table.responsive td {
        display: block;
        position: relative;
        padding-left: 50%;
        width: 50%;
        word-wrap: break-word;
        margin-bottom: 0px;
        overflow: auto;

    }

    table.responsive td:first-child {
        border-top: 0;
    }

    table.responsive td:last-child {
        border-bottom: 0;
    }

    table.responsive td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        word-wrap: break-word;

    }

    .search-query {
        width: 70%;
    }

}

.list-striped li:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

.envelope {
    display: inline-block;
    position: relative;
    margin: 35px auto 0;
    width: 98px;
    height: 66px;
    background: #c94548;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 0 1px #c94548 inset;
    vertical-align: middle;
}

.envelope:before,
.envelope:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 0 solid transparent;
    border-width: 33px 49px;
}

.envelope:before {
    border-bottom-color: #c94548;
    top: -100%;
    left: 0px;
}

.envelope:after {
    border-right-color: #ed4c50;
    border-left-color: #fa565a;
    border-bottom-color: #fa565a;
    top: 0;
    left: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.paper {
    background: #fff;
    width: 87px;
    height: 66px;
    margin: 0 auto;
    border-radius: 5px;
    position: absolute;
    left: 6px;
    top: -33px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.paper:before,
.paper:after {
    content: '';
    position: absolute;
    left: 12px;
    background: #e3f1fc;
    height: 4px;
    border-radius: 5px;
}

.paper:before {
    top: 14px;
    width: 31px;
}

.paper:after {
    right: 12px;
    top: 28px;
    box-shadow: 0 8px 0 #e3f1fc,
    0 16px 0 #e3f1fc,
    0 24px 0 #e3f1fc,
    0 40px 0 #e3f1fc;
}

.print-only {
    display: none;
}

.footer-logo {
    display: block;
    width: 238px;
    margin-bottom: 10px;
}

.notification-bubble {
    position: relative;
}

.notification-bubble[data-unread]:after {
    content: attr(data-unread);
    position: absolute;
    right: -6px;
    top: 0px;
    font-size: .7em;
    background: #ea2727;
    color: white;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
}

.btn.notification-bubble[data-unread]:after {
    top: -6px;
}

.notify-container {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.notify-bubble {
    position: absolute;
    top: -8px;
    right: -7px;
    padding: 2px 5px 2px 6px;
    background-color: green;
    color: white;
    font-size: 0.65em;
    border-radius: 50%;
    box-shadow: 1px 1px 1px gray;
    display: none;
}

.news-item {
  cursor: pointer;
  border-top: 1px solid rgb(221, 221, 221);
}

.news-item p {
  /* Make .news-item hover color fill entire box */
  margin-bottom: 0;
  padding-bottom: 9px;
}

.news-item:hover {
    background-color: #f5f5f5;
}

.resource-news-like {
    cursor: pointer;

}

.resource-news-like:hover {
    fill: #3a87ad;
}

.resource-news-like:active {
    fill: #265870;
}

.resource-news-like.liked {
    fill: #58b8e7;
}

.resource-news-like.liked:hover {
    fill: #8cd3f5;
}

.resource-news-like.liked:active {
    fill: #000;
}

.readable h1, .readable h2, .readable h3, .readable h4, .readable h5, .readable h6 {
  /* For text that is more book like and less UI like */ 
  margin-bottom: 10px;
}
.h-no-margin {
  margin-bottom: 0;
}

.alert:not(:last-child) {
  margin-bottom: 4px !important;
}


.hidden-option {
  display: none;
}

.nav {
    padding: 0px 10px;
    height: 40px;
    text-align: center;
    line-height: 40px;
}


#memo-modal {
    max-height: 90vh;
    overflow: scroll;
}

#memo-reply-area {
    resize: none;
    height: 100px;
    overflow: scroll;
    max-height: 200px;
}

.memo-modal-backdrop {
    opacity: 0.7;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #fff;
    top: 0;
    left: 0;
}

.pagination {
  height: auto;
}

.pagination li {
  display: inline-block;
  margin-top: 0px;
}

.pagination a {
  border-left-width: thin;
}

.pagination .active a {
  color: black;
  border-color: #ccc;
}

.nowrap {
  white-space: nowrap;
}

select.disabled {
  background-color: #f5f5f5;
  border-color: #ddd;
  cursor: not-allowed;
}

option.disabled {
  color: #ccc;
}

.helpable {
  cursor: help;
}

.noselect {
  -webkit-user-select: none; /* Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.help-text {
  color: #999999;
}

.label-small {
    padding: 0 4px;
    width: fit-content;
    margin: 2px;
}

ol.alpha-list {
    list-style-type: upper-alpha;
}


/* stacked table */

.table-stacked thead {
  display: none;
}

.table-stacked tbody,
.table-stacked tr,
.table-stacked td {
  display: block;
  margin: 0;
  border: 0;
}

table.table-stacked {
  border-collapse: collapse !important;
}

.table-stacked td {
  padding: 8px;
}

.table-stacked tr {
  border-left: thin solid #aaa;
  border-right: thin solid #aaa;
  border-bottom: thin solid #aaa;
}
.table-stacked tr:first-child {
  border-top: thin solid #aaa;
}
.table-stacked tfoot tr {
  border: none;
}

.table-stacked td[data-col]::before {
  content: attr(data-col) ':';
  display: block;
  width: 100%;
  font-weight: bold;
  padding-bottom: 8px;
}

/* .table-stacked input, */
.table-stacked select {
  width: 50%;
}
