.context-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
}

.context-content {
    position: absolute;
    top: 50%;
    margin: 0 2em;
    width: -webkit-calc(100% - 4em);
    width: calc(100% - 4em);
    padding: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    overflow: hidden;
    overflow-y: auto;
    max-height: 100%;
    box-shadow: 0px 3px 6px 3px #606060;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .context-content {
        margin: 0 1em;
        width: -webkit-calc(100% - 2em);
        width: calc(100% - 2em);
    }
}

@media (min-width: 1200px) {
    .context-content {
        margin: 0 8em;
        width: -webkit-calc(100% - 16em);
        width: calc(100% - 16em);
    }
}

.ios-safari .overlay.open .context-content {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.ios-safari .overlay:not(.open) .context-content {
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.context-title {
    background-color: #333;
    color: #CCC;
    line-height: 3em;
    padding: 0 0.5em 0 0.5em;
    margin: 0;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-stretch: condensed;
    font-weight: 500;
    font-size: 18px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: 0;
    position: relative;
}

.context-title-img {
  max-width: 96px;
  max-height: 96px;
  box-sizing: content-box;
  padding: 0.5em 0.5em 0 0.5em;
}

.context-title-text {
  display: block;
  position: absolute;
  text-align: right;
  bottom: 0;
  right: 1.5em;
}


.context-list {
    position: relative;
    background-color: white;
    border-radius: 0 0 8px 8px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.context-text {
    position: relative;
    background-color: white;
    border-radius: 0 0 8px 8px;
    padding: 1.5em 0.5em;
    white-space: pre-line;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.context-list.even {
    padding-top: 1px;
}

.context-item {
    box-sizing: border-box;
    border-bottom: 1px solid #888;
    line-height: 3em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 0.5em;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: 0;
}

.context-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}
