/* ----- STRUCTURE ----- */
#sizer {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.AspectConstraint {
    width: 100%;
    height: 100%;
    position: relative;
}

#screen {
    overflow: hidden;
}

#page {
    width: 100%;
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url("image/background-page-landscape.jpg");
}

#frameContent {
    width: 100%;
    height: 100%;
}

.PageBackground {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 7.4rem 4.5rem;
}

/* ----- HEADER ----- */
#header {
    position: absolute;
    width: 100%;
    top: 0;
    height: 7.4rem;
    line-height: 7.4rem;
    color: #fff;
    z-index: 15;
    padding: 0 7.4rem;
}

.Trip #header {
    z-index: auto;
}

#header .Brand,
#header .NavbarToggle,
#header .NotificationToggle {
    display: block;
    width: 7.4rem;
    height: 7.4rem;
    cursor: pointer;
    font-size: 0;
    color: transparent;
    background-color: #1b1d1e;
    position: absolute;
    top: 0;
}

#header .Brand {
    background-image: url("../image/brand.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 5.4rem;
    right: 7.4rem;
    border-bottom-left-radius: 0.5rem;
}

#header .Brand:hover {
    background-color: #e30613;
}

#header .NavbarToggle,
#header .NotificationToggle {
    text-align: center;
}

#header .NavbarToggle {
    left: 0;
}

#header .NotificationToggle {
    right: 0;
}

#header .NotificationToggle.Inactive {
    cursor: default;
}

#header .NavbarToggle i,
#header .NotificationToggle i {
    color: #4ffbf1;
    font-size: 3.6rem;
    margin: 0;
}

#header .NotificationToggle.Inactive i {
    color: rgba(255,255,255,0.25) !important;
}

#header .NavbarToggle.Open i,
#header .NavbarToggle i + i,
#header .NavbarToggle.Open .UnreadCount {
    display: none;
}

#header .NavbarToggle.Open i + i {
    display: inherit;
}

#header .NavbarToggle:hover i,
#header .NotificationToggle:hover i {
    color: #fff;
}

#header .NavbarToggle .UnreadCount {
    position: absolute;
    top: 1.75rem;
    right: 1.2rem;
    width: 1.4rem;
    height: 1.4rem;
    background-color: #e04646;
    border-radius: 50%;
}

#header .NavbarToggle .UnreadCount.Hidden {
    display: none;
}

#header .Points {
    display: inline-block;
    min-width: 45.1rem;
    height: 100%;
    background-color: #1b1d1e;
    padding: 0 2rem;
    text-align: right;
    border-bottom-right-radius: 0.5rem;
    white-space: nowrap;
}

#header .Points .ObjectQuantity {
    padding: 0 2rem;
    vertical-align: top;
}

#header .Points .ObjectQuantity i {
    margin-left: 0;
}

/* ----- SIDEBAR ----- */
#sidebar {
    position: absolute;
    width: 52.5rem;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 14;
    background-color: #282c2d;
    will-change: transform;
    transform: translateX(-100%);
    transition: transform 0.4s;
}

#sidebar.Open {
    transform: translateX(0);
}

#sidebar .Header {
    height: 21.8rem;
    background-color: #1c1d1f;
    padding-top: 7.4rem;
}

#sidebar .Middle {
    position: absolute;
    width: 100%;
    top: 21.8rem;
    bottom: 8.3rem;
}

#sidebar .Middle .Scrollable {
    height: 100%;
    overflow: auto;
}

/* SIDEBAR - Profile */
#sidebar .Header .Profile {
    display: table;
    table-layout: fixed;
    width: 100%;
    padding: 2rem;
}

#sidebar .Header .Profile > div {
    display: table-cell;
    vertical-align: middle;
}

#sidebar .Header .Profile .Avatar {
    width: 12rem;
    padding-right: 2.4rem;
}

#sidebar .Header .Profile .Avatar .Image {
    width: 9.6rem;
    height: 9.6rem;
    border-radius: 50%;
    overflow: hidden;
}

#sidebar .Header .Profile .Avatar .Image img {
    display: block;
    width: 100%;
    height: 100%;
}

#sidebar .Header .Profile .Data > div {
    font-family: "Roboto Condensed";
    color: #ebebeb;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
}

#sidebar .Header .Profile .Name {
    font-size: 3.2rem;
    font-weight: bold;
}

#sidebar .Header .Profile .Email {
    font-size: 1.8rem;
}

#sidebar .Header .Profile .Buttons {
    width: 7.2rem;
    padding-left: 2.4rem;
}

#sidebar .Header .Profile .Setting {
    display: block;
    width: 4.8rem;
    height: 4.8rem;
    line-height: 4.8rem;
    text-align: center;
    background-color: #272a2e;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    float: right;
}

#sidebar .Header .Profile .Setting i {
    font-size: 3.2rem;
    color: #52fef4;
}

#sidebar .Header .Profile .Setting:hover i {
    color: #fff;
}

/* SIDEBAR - Menu */
#sidebar .Menu {
    font-size: 3.2rem;
    text-transform: uppercase;
    padding-right: 4.2rem;
    width: 100%;
    overflow: hidden;
}

#sidebar .Menu ul {
    position: relative;
}

#sidebar .Menu ul li {
    border-bottom: 1px solid #3e4243;
}

#sidebar .Menu ul ul {
    display: none;
}

#sidebar .Menu ul > li:last-child,
#sidebar .Menu ul li.Current {
    border-bottom: 0 none;
}

#sidebar .Menu ul li a {
    position: relative;
    display: block;
    line-height: 1;
    padding: 2.6rem 4.2rem;
    margin-right: -4.2rem;
    color: rgba(255,255,255,0.75);
}

#sidebar .Menu ul li.Inactive a {
    color: rgba(255,255,255,0.25) !important;
    cursor: not-allowed;
}

#sidebar .Menu ul li.Current > a,
#sidebar .Menu ul li a:hover {
    background-color: rgba(27,29,30,0.5);
    border-top: 1px solid #3e4243;
    border-bottom: 1px solid #3e4243;
}

#sidebar .Menu ul li a:hover {
    color: #fff;
    background-color: rgba(27,29,30,0.5);
    margin-top: -1px;
    margin-bottom: -1px;
}

#sidebar .Menu ul li.Current > a {
    color: #52fef4 !important;
    border-left: 0.8rem solid;
    margin-top: 0;
    margin-bottom: 0;
}

#sidebar .Menu ul li a:active {
    color: #52fef4;
    background-color: rgba(27,29,30,1);
}

#sidebar .Menu ul li a i:not(.ToggleButton) {
    float: left;
    margin-right: 1rem;
}

#sidebar .Menu ul li a .Name {
    display: block;
    padding-left: 4.8rem;
}

#sidebar .Menu ul li.Parent > a .Name {
    padding-right: 3.2rem;
}

#sidebar .Menu ul li a .Label {
    display: block;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    text-align: center;
    background-color: #e04646;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255,255,255,0.75);
    margin: 0.2rem 0;
    float: right;
    vertical-align: top;
}

#sidebar .Menu ul li a .Label.Hidden {
    display: none;
}

#sidebar .Menu ul li a .ToggleButton {
    font-size: 2rem;
    margin: 0.6rem 4.2rem 0 0;
    position: absolute;
    top: 2.6rem;
    right: 0;
}

#sidebar .Menu ul li.Current a .ToggleButton {
    transform: rotate(180deg);
}

/* SIDEBAR - Footer */
#sidebar .Footer {
    position: absolute;
    left: 0;
    right: 4.2rem;
    bottom: 0;
    border-top: 0.1rem solid rgba(255,255,255,0.25);
    padding: 2.2rem 0 2.8rem 4.2rem;
}

#sidebar .Footer a {
    font-size: 3.2rem;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    color: rgba(255,255,255,0.75);
}

#sidebar .Footer a:hover {
    color: #fff;
}

#sidebar .Footer a:active {
    color: #52fef4;
}

#sidebar .Footer a i {
    margin: 0 1rem 0 0.5rem;
}

/* ----- FOOTER ----- */
#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7.4rem;
    padding: 0 7.4rem;
    z-index: 13;
}

.Trip #footer {
    z-index: auto;
}

#footer > div {
    height: 100%;
}

#footer .Copyright {
    float: left;
}

#footer .Menu {
    float: right;
}

#footer ul {
    display: table;
    table-layout: fixed;
    height: 100%;
}

#footer ul li {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.6rem;
    position: relative;
    color: #fff;
}

#footer ul li a {
    color: #fff;
    text-decoration: none;
}

#footer ul li:not(:first-child):before {
    content: '\0000a0\0000a0|\0000a0\0000a0';
}

/* ----- BROWSER CHECK ----- */
#browserCheck {
    font-family: "Roboto Condensed","Arial","Verdana";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7.4rem;
    background-color: #e04646;
    z-index: 101;
    padding: 0 7.4rem;
    transition: all 0.5s;
    line-height: 7.4rem;
}

#browserCheck.Hidden {
    opacity: 0;
    top: -7.4rem;
}

#browserCheck a {
    cursor: pointer;
}

#browserCheck .Icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 7.4rem;
    height: 7.4rem;
    background-color: rgba(0,0,0,0.25);
    text-align: center;
}

#browserCheck .Icon i {
    font-size: 4.8rem;
    margin: 0;
}

#browserCheck .Close {
    position: absolute;
    right: 0;
    top: 0;
    margin: 1.7rem;
}

#browserCheck .Message {
    display: table;
    float: left;
    height: 100%;
    table-layout: fixed;
    width: 61.7%;
}

#browserCheck .Message .Text {
    display: table-cell;
    color: #fff;
    font-size: 2rem;
    vertical-align: middle;
    line-height: 1.25;
    padding: 0 2rem;
    background-color: rgba(0,0,0,0.125);
}

#browserCheck .Message .Text a {
    color: #fff;
}

#browserCheck .Message .Text a i {
    font-size: 0;
    color: transparent;
}

#browserCheck .Message .Text a:hover {
    text-decoration: underline;
}

#browserCheck .Recommendation {
    padding: 0 2rem;
    float: left;
    position: relative;
    height: 100%;
}

#browserCheck .Recommendation a {
    display: block;
    float: left;
    height: 7.4rem;
    margin-right: 1.5rem;
    font-size: 0;
    color: transparent;
}

#browserCheck .Recommendation a i {
    font-size: 4rem;
    color: #fff;
    margin: 0;
}

/* ----- COOKIE POLICY ----- */
#cookiePolicy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7.4rem;
    padding: 0 7.4rem;
    z-index: 101;
    background-color: rgba(0,0,0,0.9);
    transition: all 0.5s;
    text-align: center;
}

#cookiePolicy.Hidden {
    opacity: 0;
    bottom: -7.4rem;
}

#cookiePolicy .Message {
    display: table;
    table-layout: fixed;
    margin: 0 auto;
    height: 100%;
}

#cookiePolicy .Text {
    display: table-cell;
    vertical-align: middle;
}

#cookiePolicy .Text .FeedBackMessage {
    font-size: 1.6rem;
}

#cookiePolicy .Buttons {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
    padding-left: 2rem;
}

#cookiePolicy .Buttons button {
    font-size: 1.6rem;
    height: 2.4rem;
    padding: 0 1rem;
    background-color: #f9cb4b;
    color: rgba(0,0,0,0.9);
}

#cookiePolicy .Buttons button:not(:last-child) {
    margin-right: 0.5rem;
}

/* ----- PROGRESS ----- */
#progress {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 6.4rem;
    height: 6.4rem;
    display: none;
    z-index: 1000;
    background-color: transparent;
    background-image: url("../image/loader.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ----- NOTIFICATION ----- */
#notification {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 101;
    width: 44.5rem;
    height: 0;
}

#notification.Opened {
    height: 100%;
}

#notification,
#notification .Objects.Sidebar {
    will-change: transform;
    transition: transform 0.4s;
}

#notification.Hidden {
    transform: translate(100%, 0);
    height: 100%;
}

#notification.Hidden.AutoClosed {
    height: 0;
}

/* Navigation */
#notification .NotificationNavigation {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 7.4rem;
    height: 7.4rem;
    line-height: 7.4rem;
    background-color: #1b1d1e;
    text-align: center;
    z-index: 103;
    transition: opacity 0.25s, visibility 0.25s;
}

#notification .NotificationNavigation i {
    font-size: 3.6rem;
    margin: 0;
}

#notification.Opened .NotificationNavigation.Open,
#notification:not(.Opened) .NotificationNavigation.Close {
    opacity: 0;
    visibility: hidden;
}

/* Overflow */
#notification .Objects .ObjectOverflow {
    position: absolute;
    width: 5.5rem;
    height: 4.4rem;
    line-height: 4.4rem;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border-left: 0.1rem solid rgba(255,255,255,0.25);
    text-align: center;
}

#notification .Objects .ObjectOverflow.Hidden {
    display: none;
}

#notification .Objects .ObjectOverflow .Number {
    display: inline-block;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    background-color: #4ffbf1;
    border-radius: 50%;
    color: #344a68;
    font-size: 1.6rem;
    font-weight: bold;
    vertical-align: middle;
}

/* Objects common */
#notification .Objects {
    width: 100%;
}

#notification .Objects .Object.Hidden {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
}

#notification .Objects .Object .Thumbnail,
#notification .Objects .Object .Title,
#notification .Objects .Object .Description {
    transition: opacity 0.4s, color 0.4s;
}

#notification .Objects .Object.Inactive .Thumbnail {
    opacity: 0.3;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

#notification .Objects .Object .Title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #fff;
}

#notification .Objects .Object.Inactive .Title {
    color: #ababab;
}

#notification .Objects .Object .Description {
    font-size: 2.2rem;
    color: #8bb6e5;
    margin-top: 0.2em;
}

#notification .Objects .Object.Inactive .Description {
    color: #567eb3;
}

#notification .Object .Thumbnail img {
    display: block;
}

/* Objects compacts */
#notification .Objects.Compact {
    background-color: #1b1d1e;
    height: 7.4rem;
    margin-right: 7.4rem;
    z-index: 102;
    width: calc(100% - 7.4rem);
    padding-right: 5.5rem;
    overflow: hidden;
    position: relative;
}

#notification .Objects.Compact .Object {
    float: left;
    margin: 1.1rem 0;
    width: 20%;
    text-align: center;
    transition: opacity 0.5s, transform 0.4s, visibility 0.4s;
    transition-timing-function: cubic-bezier(0.680, -0.550, 0.265, 1.550);
}

#notification .Objects.Compact .Object .Thumbnail {
    width: 5.2rem;
    height: 5.2rem;
    display: inline-block;
}

#notification .Objects.Compact .Thumbnail img {
    width: 100%;
    height: 100%;
}

#notification .Objects.Compact .Text {
    display: none;
}

/* Objects sidebar */
#notification .Objects.Sidebar {
    position: absolute;
    background-color: rgba(0,0,0,0.9);
    top: 7.4rem;
    bottom: 0;
    transform: translate(0, -100%);
    overflow: hidden;
}

#notification.Opened .Objects.Sidebar,
#notification.Hidden .Objects.Sidebar {
    transform: translate(0, 0);
}

#notification .Objects.Sidebar .Scrollable {
    height: 100%;
}

#notification .Objects.Sidebar .ScrollableContent {
    padding: 6rem 3rem;
}

#notification .Objects.Sidebar .Object {
    width: 100%;
    display: table;
    table-layout: fixed;
    margin-bottom: 4.2rem;
    transition: opacity 0.5s, transform 0.5s, visibility 0.5s;
    position: relative;
}

#notification .Objects.Sidebar .Object.Clickable {
    cursor: pointer;
}

#notification .Objects.Sidebar .Object.Clickable:after {
    content: "\e811";
    font-family: "g4b-icon-font";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    width: 3rem;
    text-align: center;
    color: #4ffbf1;
}

#notification .Objects.Sidebar .Object.Clickable:hover:after {
    color: #fff;
}

#notification .Objects.Sidebar .Object.Hidden {
    display: none;
}

#notification .Objects.Sidebar .Object:last-child {
    margin-bottom: 0;
}

#notification .Objects.Sidebar .Object .Thumbnail {
    width: 7.4rem;
    display: table-cell;
    vertical-align: top;
}

#notification .Objects.Sidebar .Thumbnail img {
    width: 100%;
    height: auto;
}

#notification .Objects.Sidebar .Object .Text {
    display: table-cell;
    vertical-align: middle;
    line-height: 1.1;
    padding-left: 2.5rem;
    width: 100%;
}

.Overlay.Notification {
    z-index: 102;
}

.Dialog.NotificationDialog {
    width: 59rem;
    margin-top: 28rem;
}

.Dialog.NotificationDialog .Header {
    background: transparent;
    height: auto;
    box-shadow: none;
}

.Dialog.NotificationDialog .Header .Assistant {
    width: 37.4rem;
    height: 28rem;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -18.7rem;
}

.Dialog.NotificationDialog .Header .Assistant:before,
.Dialog.NotificationDialog .Header .Assistant:after {
    content: "";
    position: absolute;
    width: 59rem;
    left: 50%;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
}

.Dialog.NotificationDialog .Header .Assistant:before {
    height: 32.4rem;
    margin-left: -29.5rem;
    bottom: 0;
    background-image: url("image/assistant-decoration-2.png");
    background-position: center bottom;
    animation-name: fade-in-grow ;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.680, -0.550, 0.265, 1.550);
    animation-fill-mode: forwards;
    transform-origin: center bottom;
}

.Dialog.NotificationDialog .Header .Assistant:after {
    height: 64.8rem;
    background-image: url("image/assistant-decoration-1.png");
    background-position: center;
    transform: translateX(-50%);
}

.Dialog.NotificationDialog .Middle > .Panel {
    margin: 0;
    padding: 5rem 3rem 16.8rem 3rem;
    text-align: center;
}

.Dialog.NotificationDialog .Middle .Title {
    margin-bottom: 0.5em;
}

.Dialog.NotificationDialog .Footer {
    padding: 0;
    background: transparent;
}

.Dialog.NotificationDialog .Footer .Thumbnail {
    position: relative;
    width: 33.6rem;
    height: 16.8rem;
    border-bottom-left-radius: 16.8rem;
    border-bottom-right-radius: 16.8rem;
    margin: 0 auto;
    background-color: rgba(86,126,179,0.4);
}

.Dialog.NotificationDialog .Footer .Thumbnail:before {
    content: "";
    position: absolute;
    width: 59rem;
    height: 59rem;
    z-index: -1;
    transform: translate(-50%,-50%);
    left: 50%;
    background-image: url("image/badge-decoration.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.Dialog.NotificationDialog .Footer .Thumbnail img {
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    width: 19rem;
    height: 19rem;
    margin: -9.5rem 0 0 -9.5rem;
    animation-name: fade-in-grow ;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.680, -0.550, 0.265, 1.550);
    animation-fill-mode: forwards;
}

@media screen and (orientation:portrait) {
    #page {
        background-image: url("image/background-page-portrait.jpg");
    }

    .PageBackground {
       padding: 9.6rem 0 0 0;
    }

    /* tmp */
    /*#sidebar { display: none !important; }
    #page { background-image: url("image/landscape-view-alert.jpg"); }
    #page * { display: none !important; }*/

    #header {
        height: 9.6rem;
        line-height: 9.6rem;
        padding: 0 9.6rem;
        text-align: center;
        background-color: rgba(41,44,45,0.9);
        box-shadow: 0 0.25rem 0.5rem 0 rgba(0,0,0,0.25);
    }

    #header .Brand,
    #header .NavbarToggle,
    #header .NotificationToggle {
        width: 9.6rem;
        height: 9.6rem;
        background-color: transparent;
    }

    #page.Sidebar #header .NavbarToggle {
        left: auto;
        right: 0;
        background-color: rgba(41,44,45,1);
    }

    #header .Brand {
        display: none;
    }

    #header .Points {
        width: calc(100% - 9.6rem);
        position: absolute;
        left: 0;
        text-align: center;
        will-change: transform;
        transform: translateX(-100%);
        transition: transform 0.4s;
    }

    #page.Sidebar #header .Points {
        transform: translateX(0);
    }

    #sidebar {
        width: calc(100% - 9.6rem);
        z-index: 16;
    }

    #page.Sidebar #header {
        z-index: 17;
    }

    #sidebar .Header {
        padding-top: 9.6rem;
        height: 24rem;
    }

    #page.Sidebar #header {
        margin-left: 0;
    }

    #sidebar .Middle {
        top: 24rem;
    }

    #footer {
        display: none;
    }

    #browserCheck .Message {
        width: 100%;
    }

    #browserCheck .Message .Text {
        font-size: 1.4rem;
    }

    #browserCheck .Recommendation {
       display: none;
    }

    #cookiePolicy {
        height: auto;
        padding: 1rem 2rem;
    }

    #notification {
        width: calc(100% - 9.6rem);
    }

    #notification .NotificationNavigation {
        width: 9.6rem;
        height: 9.6rem;
        line-height: 9.6rem;
    }

    #notification .Objects.Compact {
        height: 9.6rem;
        margin-right: 9.6rem;
        width: calc(100% - 9.6rem);
    }

    #notification .Objects.Compact .Object {
        margin: 2.2rem 0;
    }

    #notification .Objects.Sidebar {
        top: 9.6rem;
    }

    .Dialog.NotificationDialog {
        display: inline-block;
        vertical-align: middle;
        height: auto !important;
    }

    .Dialog.NotificationDialog .Middle {
        position: relative;
        top: auto;
        bottom: auto;
        padding-top: 0;
        padding-bottom: 0;
    }

    .Dialog.NotificationDialog .Footer {
        position: relative;
    }

    .Dialog.NotificationDialog .CloseButton {
        top: auto;
    }
}
