/*!
 * Alloprof mobile theme
 * @author Matthew Storman
 * @copyright 2021 Vanilla Forums Inc.
 * @license GPL-2.0-only
 */

 .d-desktop {
    display: initial;
 }

 .d-mobile {
    display: none !important;
 }

 .MobileHeader {
    margin-left: 10px;
     /* margin-right: 5%; */
 }

 .MobileHeader h3 {
    font-size: 18px;
 }

 .not-published-badge.mobile {
    display: none !important;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    margin-bottom: 15px;
 }

 .Navigation-linkContainer.mobile {
     display: none;
 }

 .Categories .Category-banner__img {
    max-height: 480px;
 }

 .Header {
    padding-left: 80px;
    padding-right: 80px;
 }

 /* Basic Mobile theme */

@media screen and (max-width: 1366px) {
    .Header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .Categories .Category-banner__text {
        margin-top: 80px;
    }

    .Categories .Category-banner__container {
        flex-direction: column;
    }

    .Categories .Category-banner__img {
        max-height: 280px;
        text-align: center;
    }

    .sidebar.right {
        display: none;
    }

    .Container {
        width: 870px!important;
    }

    .sidebar.left {
        width: 300px;
    }

    .Content.MainContent {
        width: 502px;
    }

    .Banner-content__pagename {
        display: none;
    }

    .Banner-content h1 {
        font-size: 48px;
        color: black;
        font-weight: 500;
        text-align: center;
        margin-bottom: 20px;
    }

    .Banner-content h1 br {
        display: none;
    }

    .Banner-content h1 b {
        font-weight: 500;
    }
}

@media screen and (max-width: 1024px) {
    .Navigation-link {
        padding: 0 15px;
    }

    body.flyoutIsOpen {
        overflow: hidden;
    }

    body.Section-ConversationList .discussion-sticky-mobile,
    body.Section-Conversation .discussion-sticky-mobile {
        display: none;
    }

    .ScrollProgress {
        height: 42px !important;
    }

    .Categories .Category-banner__container {
        padding: 0 24px;
    }

    .Categories .Category-banner__text {
        display: none;
    }

    .Banner-content.Category {
        max-height: 207px;
        height: 207px;
    }

    .Categories .Category-banner__img {
        max-height: 207px;
        text-align: center;
    }

    .Frame-body {
        position: relative;
    }

    #MainHeader .Header-left {
        margin-right: 0 !important;
        width: fit-content !important;
    }

    div.Header-logo {
        margin: 0 0 0 45px !important;
    }

    .ToggleFlyout.Outside .MenuItems li a,
    .ToggleFlyout.Outside .CommentOptions li a {
        padding: 16px 0 !important;
    }

    .Banner-content .Banner-content__description {
        font-size: 18px;
        line-height: 25px;
        color: black;
        font-weight: 500;
        text-align: center;
        font-family: 'ChromaticaBlack';
        margin-top: 0;
    }

    .Banner-content__Container {
        justify-content: flex-start;
        padding-top: 100px;
        background-position-x: center;
        background-size: 400px;
        background-position-y: calc(100% + 40px);
    }

    .Banner-content.Teacher .Banner-content__Container {
        background-position-y: calc(100% + 95px);
    }

    .Header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .Header .Header-left__search {
        display: none !important;
    }

    .MeBox .additional-links {
        top: 17px;
    }

    .MeBox .additional-links > a {
        width: 32px;
        height: 32px;
    }

    .sidebar.left {
        margin-right: 0 !important;
    }

    .Frame-details {
        max-width: 580px;
        margin: 0 auto;
    }

    .Frame-details .Frame-row {
        flex-direction: column;
        padding-top: 65px;
    }

    div.Popup.SocialPopup .SocialSharingButtons a {
        flex-wrap: wrap;
        justify-content: center;
    }

    div.Popup.SocialPopup .SocialSharingButtons a img {
        margin: 0;
    }

    .Frame-banner .Banner-content,
    .Extra,
    .Question-submenu .Navigation-linkContainer span.desktop {
        display: none !important;
    }

    .Question-submenu .Navigation-linkContainer span.mobile {
        display: inline-block !important;
    }

    .Frame-banner, .Frame-header {
        background-color: white;
    }

    .Frame-header {
        box-shadow: 0px 0px 20px rgb(0 0 0 / 5%);
    }

    .Frame-menubar {
        top: 132px;
    }

    .Frame-header .Header .row {
        height: 132px;
        align-items: center;
    }

    .Frame-header .Header .Header-logo {
        height: 70px;
        margin-left: 0;
    }

    .Frame-header .Header .Header-right {
        height: 70px;
    }

    .Frame-menubar {
        max-width: 580px;
        margin: 0 auto;
    }

    .Navigation-linkContainer a {
        display: block;
        text-align: center;
        font-size: 13px;
        line-height: 18px;
        flex: 1;
    }

    .Navigation-linkContainer svg {
        width: 100%;
    }

    .Navigation-link {
        padding: 0;
    }

    .Container {
        width: 100%!important;
    }

    .sidebar.left {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }

    .sidebar:hover {
        height: auto;
    }

    .Content.MainContent {
        width: 100%;
        margin: 0 auto;
    }

    .Content.MainContent .BoxDiscussionFilter.Panel {
        display: block;
        margin-bottom: 40px;
    }

    .TalkTeacher .TalkTeacher-link_mobile {
        display: block;
    }

    .TalkTeacher .TalkTeacher-link {
        display: none!important;
    }

    .Question-submenu.invalid {
        display: flex;
    }

    .Banner-content.Teacher .Banner-content__Container {
        background-position-y: calc(100% + 45px);
    }

    .Frame-details .Frame-row {
        padding-top: 0;
    }

    .CommentHeading {
        padding-left: 15px;
    }

    .verified-info {
        min-height: 40px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        background: #DBF8EF;
        border-radius: 8px;
        font-size: 12px;
        line-height: 14px;
        margin-bottom: 16px;
    }

    .verified-info img {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }

    .verified-badge {
        display: none;
    }

    .AskQuestionForm.BoxNewDiscussion,
    .DataList .ItemDiscussion, .DataList .Item, .MessageList .ItemDiscussion.ItemDiscussion, .MessageList .ItemComment .Comment {
        padding: 16px;
        border-radius: 0;
    }

    .CategoryDetail .Card {
        margin-left: 25px !important;
        margin-right: 25px !important;
        margin-bottom: 25px !important;
    }
    .CategoryDetail .Card h1 {
        font-size: 40px;
    }
    .CategoryDetail .Card h2 {
        font-size: 15px;
    }

    .MeBox .MeButton-user .ProfilePhoto,
    .Header .MeButton {
        min-width: 27px;
        height: 27px;
        margin-left: 5px;
    }
    .Header .MeButton svg {
        height: 21px;
    }
    .MeBox .MeButton .Alert {
        min-width: 10px;
        width: 10px;
        height: 10px;
        right: 4px;
    }
    .Frame-banner {
        min-height: 0;
        display: block;
    }
    .Banner-content {
        height: 160px;
    }
    .Frame-banner {
        background-color: #CAEDF9;
    }
    .Frame-banner .Banner-content {
        display: flex !important;
    }
    .Banner-content__Container {
        padding: 16px 30px;
        background-size: 160px;
        background-position-y: calc(100% + 12px);
        z-index: 0;
    }
    .Banner-content h1 {
        padding: 0px 30px;
        font-size: 21px;
    }
    .followButton.isFollowing svg,
    .SocialIcon svg,
    .Options>a svg,
    .Options>a, .Options>span {
        height: 20px;
        margin-right: 0 !important;
    }
    span.ReactButtons a.ReactButton.ReactButton-Like {
        height: 20px;
        width: auto;
        min-width: 22px;
        margin-left: 10px;
    }
    span.ReactButtons a.ReactButton.ReactButton-Like .Count {
        font-size: 17px;
    }
    .Favorite-Icon.isLiked {
        background-image: url("../../../../themes/alloprof/design/images/icons/liked.svg") !important;
        background-repeat: no-repeat;
        background-size: 20px 20px !important;
    }
    .Favorite-Icon {
        background-image: url("../../../../themes/alloprof/design/images/icons/like.svg") !important;
        background-repeat: no-repeat;
        background-size: 20px 20px !important;
    }
    .Frame-header .Header .Header-logo,
    .Frame-header .Header .Header-right,
    .Frame-header,
    .Frame-header .Header .row {
        height: 64px;
        justify-content: left;
    }
    .Frame-header #MainHeader .Header-left,
    .FilterBanner,
    .sidebar {
        display: none !important;
    }
    div.Popup:not(.AddToConversationPopup) a.Close {
        position: absolute;
        right: 15px;
        top: 5px;
    }
    .Frame#page {
        margin-bottom: 64px;
    }
    .Frame-menubar {
        height: 64px;
        left: 0;
        position: fixed;
        top: calc(100% - 64px);
        max-width: 100%;
        width: 100%;
        z-index: 9;
    }
    .Frame-menubar .Question-submenu {
        padding-top: 6px;
        box-shadow: 0px -8px 16px rgba(26, 32, 44, 0.05);
        background: white;
        min-height: 64px;
        justify-content: space-around;
    }
    .Navigation-linkContainer {
        justify-content: center;
        margin: 0 !important;
    }
    .Navigation-linkContainer.mobile {
        display: flex;
    }
    .Navigation-linkContainer:after {
        content: none;
    }
    .Navigation-linkContainer,
    .Navigation-link {
        font-size: 10px !important;
        font-family: "ChromaticaRegular";
        color: #828282;
        flex: 1;
        white-space: nowrap;
        font-weight: normal !important;
        line-height: 1.5em !important;
    }
    .Navigation-link {
        margin-top: 8px !important;
    }
    .Navigation-link svg {
        margin-bottom: 0;
    }
    .Question-submenu .Count {
        display: none !important;
    }
    .Options-Icon {
        right: 15px;
    }
    .OptionsMenu .Flyout {
        top: auto;
    }
    .SpFlyoutHandle:before {
        font-size: 30px !important;
    }
    .MessageList .Item-BodyWrap .Message.userContent,
    .DataList.Discussions .Item-BodyWrap .Message.userContent,
    .Item-Search .Item-Body .Summary {
        font-size: 15px !important;
        padding: 15px;
    }
    .Frame-body {
        padding-top: 25px;
    }
    .Frame-body .Frame-content > .Container {
        padding-left: 0;
        padding-right: 0;
    }
    .Frame-contentWrap {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .not-published-badge.mobile {
        display: flex !important;
    }
    .not-published-badge.desktop {
        display: none !important;
    }
    .footer__newsletter h2 {
        font-size: 25px;
        line-height: 29.3px;
    }
    
    .back-btn {
        display: none !important;
    }
    .profile-content {
        margin-top: -30px;
    }
    .profile-content .Photo {
        width: 128px !important;
        height: 128px !important;
    }
    .Frame-header .Header .Header-logo a.Header-logo svg{
        width: 92px;
        height: 20px;
    }
    .MobileHeader {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    .MobileHeader a {
        margin-top: 3px;
        margin-right: 10px;
    }
    .MobileHeader .logo svg {
        height: 16px;
        width: 75px;
    }
    .d-mobile {
        display: initial !important;
     }
    .d-desktop {
        display: none !important;
    }
    .PageControls.PageControls {
        display: none;
    }
    .SearchResult {
        margin-left: 15px;
    }
}

@media screen and (max-width: 375px) {
    .Frame-body {
        margin-top: 150px;
        padding-top: 0;
    }

    body.hasContestBanner .Frame-body {
        margin-top: 230px;
    }
}
