:root {
    --swrl-blue: #4990e2;
    --swrl-hot-pink: #FF2E63;
    --watch-green: #3EB283;
    --read-orange: #F6A900;
    --listen-purple: #b042f4;
    --play-blue: #71A8D6;
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

input, p {
    font-size: 16px;
}

.hidden {
    display: none!important;
}

.bringToFront {
    z-index: 5;
}

body {
    background: #fff;
    padding: 0;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    color: #222222
}

.header {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    background-color: #FF2E63;
    position: fixed;
    height: 56px;
    overflow: hidden;
    z-index: 10;
}

.header .title {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    height: 100%;
    width: 100%;
    margin: auto;
    position: relative;
    color: #fff;
}

.header .title-details {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
    max-width: 70%;
}

.title img {
    height: 40px;
    width: 40px;
    margin-top: 8px;
}

.title h1 {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#inboxDisplay, #recommendSendContainer , #filterContainer{
    margin: 12px;
    height: 32px;
    width: 32px;
    position: fixed;
    top: 0;
    right: 0;
    cursor: pointer;
}

#inboxIcon, #recommendSendButton , #filterButton{
    width: 32px;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    background: #4990E2;
    color: white;
    font-size: 12px;
    width: 24px;
    line-height: 24px;
    text-align: center;
}

.profile-photo {
    border-radius: 50%;
}

.menu-image {
    height: 40px;
    width: 40px;
    margin: 4px;
    margin-right: 12px;
}

#login {
    cursor: pointer;
    margin: 18px;
    margin-right: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: fixed;
    top: 0;
    right: 0;
}

#menuSwipeable {
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 32px;
    z-index: 99;
}

.main {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 56px;
}

.main .logo {
    max-height: 48px;
    width: 48px;
    vertical-align: middle;
}

.main .icon {
    max-height: 72px;
    width: 72px;
    vertical-align: middle;
    transition: all 0.2s;
}

.selected .icon {
    transition: all 0.2s;
    max-height: 24px;
    width: 24px;
    margin: auto;
}

.main .sections {
    position: absolute;
    bottom: 0;
    top: 56px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
}

.main .section.watch {
    background: #3EB283;
}

.main .section.read {
    background: #F6A900;
}

.main .section.listen {
    background: #b042f4;
}

.main .section.play {
    background: #71A8D6;
}

.main .title {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    padding: 12px;
    color: #fff
}

.main .section {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    padding-top: 4px;
    padding-bottom: 4px;
    height: 100%;
    cursor: pointer;
    transition: all 0.5s;
}

#loggingInView, #loggingInAnonymousView, #loadingView {
    z-index: 5;
    background-color: white;
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 0;
    right: 0;
}

.loggingInLogo {
    width: 96px;
    margin: 120px calc(50% - 48px) 48px;
}

.loggingInMessage {
    text-align: center;
}

#toasterMessage {
    display: none;
    width: 90%;
    background-color: #2c2c2c;
    color: white;
    font-size: 16px;
    z-index: 8;
    padding: 8px;
    position: absolute;
    bottom: 8px;
}

#toasterMessage.show {
    display: block;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the toaster in and out */

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 8px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 8px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 8px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 8px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

.selected.section {
    transition: all 0.5s;
    cursor: default;
    height: 36px;
}

.main .section-detail {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    margin: auto;
    margin-left: 24px;
    font-size: 40px;
}

.main h1, .main h2 {
    margin: 0px;
    margin-left: 12px;
}

.main h1 {
    line-height: 48px;
}

.main h2 {
    line-height: 72px;
    transition: all 0.2s;
}

.tabs {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 4;
    height: 40px;
    line-height: 40px
}

#recommendationTabs {
    z-index: 6;
    background-color: white;
}

.tabs div {
    width: 100%;
    text-align: center;
    padding-bottom: 2px;
    cursor: pointer;
}

.tabs div.selected {
    transition: 0.2s;
    font-weight: bolder;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #FF2E63;
}

#swrlSearch {
    z-index: 2;
    position: absolute;
    top: 112px;
    left: 0px;
    right: 0px;
    height: 36px;
    margin: auto;
    width: calc(100% - 8px);
    line-height: 36px;
    box-sizing: border-box;
    border: 2px solid #222222;
    border-radius: 16px;
    font-size: 20px;
    background-color: white;
    background-image: url(../img/search.png);
    background-size: 18px;
    background-position: 8px 8px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 32px;
}

#recommendToForm {
    width: calc(100% - 8px);
    margin: 8px auto;
    position: relative;
    z-index: 10;
}

#recommendTo {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="30"><text x="5" y="19" style="font: bold 16px Arial;">To:</text></svg>') no-repeat;
    box-sizing: border-box;
    border: 2px solid #222222;
    font-size: 16px;
    height: 30px;
    padding-left: 36px;
    margin: auto;
    width: 100%;
    z-index: 10;
    position: relative;
    background-color: white;
}

.autocomplete-items {
    position: absolute;
    border: 2px solid #222222;
    border-top: none;
    z-index: 10;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
}

.autocomplete-items .swrlerSmall {
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #222222;
}

.autocomplete-items .swrlerSmall:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: #4990E2 !important;
    color: #ffffff;
}

#recommendMessage {
    box-sizing: border-box;
    border: 2px solid #222222;
    font-size: 20px;
    width: calc(100% - 8px);
    margin: 8px 4px;
    padding: 8px;
}

.selectedSwrlers {
    display: flex;
}

.swrlerSmall {
    height: 32px;
}

.personLink {
    height: 64px;
}

.swrlerSmall, .personLink {
    cursor: pointer;
    display: flex;
    margin: 4px;
    position: relative;
    width: calc(100% - 8px);
}

.swrlerSmallText {
    line-height: 32px;
    font-size: 12px;
}

.personLinkText {
    line-height: 64px;
    font-size: 16px;
}

.swrlerSmallText, .personLinkText {
    top: 0;
    margin-left: 4px;
}

.swrlerSmallImage {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 4px;
}

.imageCropper {
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 50%;
    margin-top: 4px;
    margin-right: 4px;
}

.personLinkImage {
    margin: 0 auto;
    height: auto;
    width: 100%;
}

.swrlerSmallDelete {
    width: 12px;
    height: 12px;
    right: 0;
    margin-right: 8px;
    margin-top: 10px;
    position: absolute;
}

#swrlList, #searchResults, #searchView, #recommend, #recommendationList, #swrlFullPage, #savedSearches {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

#savedSearchesCard {
    position: absolute;
    left: 0;
    right: 0;
}

#swrlList, #recommendationList {
    top: 104px;
}

#recommendationList {
    z-index: 6;
    background-color: white
}

#searchResults, #searchView, #savedSearchesCard {
    top: 156px
}

#searchView {
    display: contents;
}

#recommend, #swrlFullPage, #savedSearches {
    top: 56px;
    overflow: scroll;
}

.swrlsContainer {
    overflow: scroll;
}

.swrl {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: row;
    position: relative;
    margin: 12px 4px 12px 4px;
}

.recommendation, .card {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    /* display: flex;
    flex-direction: column; */
    position: relative;
    margin: 12px 4px 0px 4px;
}

.recommender {
    height: 32px;
    line-height: 2;
    margin: 4px;
    display: flex;
}

.recommendationMessage {
    display: flex;
    margin: 4px;
}

.recommender {
    margin-right: 4px;
}

.recommenderMessage.date {
    font-size: 12px;
    color: gray;
}

.recommenderName {
    font-size: 16px;
}

.recommendationSwrl {
    display: flex;
    flex-direction: row;
    position: relative;
}

.recommendationActions {
    display: flex;
    direction: rtl;
    padding: 4px;
}

.actionText {
    color: #FF2E63;
    cursor: pointer;
    margin: 0 8px;
}

.unread {
    box-shadow: 0 1px 3px rgba(255, 46, 98, 0.5), 0 1px 2px #FF2E63;
}

.swrlBanner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    height: 64px;
    line-height: 64px;
    margin: 1px;
    font-size: 20px;
    z-index: 1;
    color: white;
    background: black
}

.swrlInfo {
    display: flex;
    overflow: hidden;
}

.swrlImage {
    height: 64px;
    width: 48px;
    margin: 1px;
}

.swrlDetails {
    height: 64px;
    overflow: hidden;
}

.swrlTitle, .cardTitle {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swrlTitle {
    margin: 4px;
}

.cardTitle {
    padding: 8px;
    padding-bottom: 4px;
    margin: 0;
}

.cardSubTitle {
    font-size: 16px;
    margin: 4px;
    color: grey;
}

.swrlStats {
    font-size: 12px;
    padding-left: 4px;
    margin-top: 12px;
}

.swrlMiniIcon {
    height: 12px;
}

.loadingSpinner {
    height: 48px;
}

.loadingSpinnerSmall {
    height: 32px;
    width: 32px;
}

.loadingbar {
    width: 100%;
    height: 12px;
}

.swrlButtons {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
}

.swrlButton {
    align-self: flex-end;
    margin: 0 8px 8px 0;
    cursor: pointer;
    height: 24px;
    width: 24px;
}

.swrlButton.swrlSpinner {
    cursor: default;
}

.statusMessage {
    margin: auto 56px;
    text-align: center;
    z-index: 7;
}

#sidebarMenu {
    height: 100%;
    position: fixed;
    left: 0;
    width: 256px;
    margin-top: 56px;
    transform: translateX(-256px);
    transition: transform 250ms ease-in-out;
    background: #FF2E63;
    z-index: 10;
}

.sidebarMenuInner {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebarMenuInner li {
    display: flex;
    list-style: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebarMenuInner li span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
}

.sidebarMenuInner li a {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

#openSidebarMenu:checked~#sidebarMenu {
    transform: translateX(0);
}

#fade {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    z-index: 9;
    opacity: 0.5;
}

#filters {
    position: absolute;
    top: 118px;
    left: 48px;
    right: 48px;
    background: black;
    color: white;
    z-index: 10;
    padding-bottom: 8px;
}

#filters h3 {
    margin: 8px;
}

.center {
    text-align: center;
}

#openSidebarMenu {
    transition: all 0.3s;
    box-sizing: border-box;
    display: none;
}

.sidebarIconToggle {
    transition: all 0.3s;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 16px;
    left: 12px;
    height: 24px;
    width: 24px;
}

#backButtonDiv {
    margin: 12px;
    height: 32px;
    width: 32px;
    position: fixed;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 99;
}

#backButton {
    width: 32px;
}

.spinner {
    transition: all 0.3s;
    box-sizing: border-box;
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: #fff;
}

.horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 4px;
}

.diagonal.part-1 {
    position: relative;
    transition: all 0.3s;
    box-sizing: border-box;
    float: left;
}

.diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 4px;
}

#openSidebarMenu:checked~.sidebarIconToggle>.horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    opacity: 0;
}

#openSidebarMenu:checked~.sidebarIconToggle>.diagonal.part-1 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(135deg);
    margin-top: 8px;
}

#openSidebarMenu:checked~.sidebarIconToggle>.diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-top: -12px;
}

.pageButtonsContainer {
    width: 100%;
}

.pageButtons {
    display: table;
    width: fit-content;
    margin: auto;
}

#swrlImageContainer {
    width: 100%
}

#swrlImageLarge {
    display: block;
    max-width: 40%;
    max-height: 200px;
    margin: 8px auto 8px auto;
}

.cardContent {
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.smallLink {
    max-height: 32px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-left: 4px;
}

.rating {
    display: inline-block;
    position: relative;
    min-height: 32px;
}

.ratingText {
    position: absolute;
    top: 0;
    line-height: 32px;
    margin-left: 4px;
}

#addToSavedSearch, .showMoreSwrls {
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    position: relative;
    margin: 4px;
    width: fit-content;
    height: 32px;
    margin-left: auto;
    margin-right: auto;
}

#addToSavedSearch div {
    display: flex;
    margin: 4px;
    line-height: 24px;
}

.showMoreSwrls {
    line-height: 32px;
    padding: 4px;
}

#addToSavedSearch img {
    align-self: flex-end;
    margin: 4px;
    height: 24px;
    width: 24px;
}

.savedSearch {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: row;
    position: relative;
    margin: 4px;
    height: 56px;
}

.savedSearchText, .savedSearchButtons {
    line-height: 48px;
    margin: 4px;
}

.savedSearch img {
    height: 32px;
    width: 32px;
    margin: auto 8px auto 4px;
    vertical-align: middle;
}

.savedSearchButtons {
    position: absolute;
    right: 0;
}

@media only screen and (min-width: 1025px) {
    .main .sections {
        top: 68px;
        bottom: 12px;
    }
    #centre {
        top: 112px;
    }
    .tabs {
        top: 60px;
    }
    #swrlSearch {
        top: 112px;
    }
    #swrlList, #recommendationList {
        top: 104px;
    }
    #searchResults, #searchView, #savedSearchesCard {
        top: 156px;
    }
    #recommend, #swrlFullPage, #savedSearches {
        top: 56px;
    }
    .main .section {
        padding-left: 0px;
    }
    .main .section, #centre, .tabs, #swrlSearch, .swrlsContainer, #recommend, #swrlFullPage, #loggingInView {
        margin-left: auto;
        margin-right: auto;
        width: 640px;
    }
    #toasterMessage {
        width: 592px;
        margin-left: 16px;
        bottom: 12px;
    }
    .section .close, .section .back {
        position: absolute;
        left: 50%;
        margin-left: -312px;
    }
    .main .section-detail {
        margin-left: 176px;
    }
    .main .selected .section-detail {
        margin-left: 256px;
    }
    #recommendationsDetail {
        margin-left: 184px;
    }

    #filters {
        left: 480px;
        right: 480px;
    }
    .selected .recommendTitle {
        font-size: 2vw;
    }
}