body {
    margin: 0;
    background-color: var(--cbg);
    color: var(--t3);
    scroll-behavior: smooth;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}

.stop-bounce{
    overflow: hidden;
}

a{
    text-decoration: none;
    color: unset;
}

input{
    -webkit-appearance: none;
}

select{
    -webkit-appearance: none;
}

body:not(.bLoaded){
    display: none;
}

.h-left-m-exit, .h-left-m-top, .h-left-m-footer {
    display: none;
}

.h-left-fixed {
    width: var(--left-area);
    height: calc(100% - 10px); /* must subtract the p margin height */
    position: fixed;
}

.h-left p {
    margin: 10px 0 0 10px;
}

.h-left {
    flex: 0 1 auto;
    min-width: var(--left-area);
    padding: 0 2rem;
    height: calc(100vh - var(--h-top-hgt) - 2.5rem - 2px); /* 100vh - top height, - unused height - 2px extra */
    font-size: 1.4rem;
    font-family: Quicksand;
    position: relative;
    letter-spacing: 1px;
}

/* Constants */

:root {
    font-size: 10px; /* This sets the entire size standard of the site */
    --max-width: 1920px;
    --container-left-margin: 1.5rem;
    --prof-clip: calc(6rem + 17px);
}

a{
    text-decoration: none;
}

/* Globals */

.flipx {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    -webkit-transform-origin: left;
    transform-origin: left;
}

.white{
    color: white;
}

.show{
    display: initial !important;
}

.hide{
    display: none !important;
}

/* END */

/* TR Notifications */

#TRMessage{
    position: fixed;
    right: 5rem;
    top: calc(var(--h-top-hgt) + 0rem);
    z-index: 10001;
    width: 30rem;
    max-width: 80%;
}

#TRMessage > div{
    border-radius: 1rem;
    background-color: var(--a2);
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--a2t);
    user-select: none;
    box-shadow: 0 0 5px var(--cbg2);
    opacity: 0;
    -webkit-animation: tr-in 6.5s ease forwards;
    animation: tr-in 6.5s ease forwards;
    position: relative;
}

#TRMessage > div > i{
    font-size: 1.8rem;
    margin: 0;
    padding: 0 1rem;
}

#TRMessage > div > p{
    font-size: 1.5rem;
    font-family: 'Open Sans';
    padding: .5rem 1rem;
    border-radius: 1rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

#TRMessage > div > i:first-child{
    opacity: .5;
}

#TRMessage > div > i:last-child{
    cursor: pointer;
    opacity: .4;
}

@-webkit-keyframes tr-in{
    0%{
        opacity: 0;
        left: 5rem;
    }
    15%{
        opacity: 1;
        left: 0;
    }
    70%{
        opacity: 1;
    }
    85%{
        left: 0;
    }
    100%{
        opacity: 0;
        left: 5rem;
    }
}

@keyframes tr-in{
    0% {
        opacity: 0;
        left: 5rem;
    }
    15% {
        opacity: 1;
        left: 0;
    }
    70% {
        opacity: 1;
    }
    85% {
        left: 0;
    }
    100% {
        opacity: 0;
        left: 5rem;
    }
}

@-webkit-keyframes tr-out{
    0%{
        opacity: 1;
        left: 0;
    }
    100%{
        opacity: 0;
        left: 5rem;
    }
}

@keyframes tr-out {
    0% {
        opacity: 1;
        left: 0;
    }
    100% {
        opacity: 0;
        left: 5rem;
    }
}

/* END */

.h-top-w {
    width: 100%;
    position: fixed;
    text-align: center;
    background-color: var(--cbg);
    z-index: 999;
    border-bottom: 1px solid var(--c2);
}

.h-top {
    display: inline-flex;
    height: var(--h-top-hgt);
    width: 100%;
    max-width: var(--max-width);
}

#create-m {
    display: none;
}

.logo {
    width: 100%;
    max-width: var(--left-area);
    padding: 0 2rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 80%;
}

#mobile-menu {
    display: none;
}

.search {
    width: 100%;
    flex-shrink: 1;
    max-width: 37.5rem;
    display: flex;
    align-items: center;
    min-width: 12rem;
    position: relative;
}

.search input {
    margin: 0 5% 0 var(--container-left-margin);
    border-radius: 4px;
    border-width: 1px;
    height: 3rem;
    width: calc(100% - 5% - var(--container-left-margin));
    border-color: var(--c2);
    border-style: solid;
    text-indent: 3.5rem;
    min-width: 12rem;
    font-size: 1.4rem;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background-color: var(--cbg2);
    color: var(--t3);
}

#search-icon {
    position: absolute;
    left: calc(var(--container-left-margin) + 1rem);
    font-size: 1.4rem;
    pointer-events: none;
}

#mode {
    min-width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#mode input {
    width: 100%;
    height: 3rem;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid var(--c2);
    font-size: 1.4rem;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#mode-icon {
    position: absolute;
    width: 100%;
    font-size: 1.2rem;
    pointer-events: none;
    color: var(--t3);
}

.stretch {
    flex: auto;
}

#create {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

#create input{
    font-family: Arial;
    border: none;
    background-color: var(--cbg100blue);
    color: white;
    padding: .5rem 1.75rem;
    border-radius: 3px;
    cursor: pointer;
}

#notif {
    width: 100%;
    max-width: 3rem;
    height: 100%;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem 0 1rem;
}

#profile {
    width: 100%;
    max-width: 5rem;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 0 1rem 0 1rem;
    box-sizing: content-box;
}

#profile img {
    width: 90%;
    border-radius: 50%;
}

#login p{
    margin: 0;
    width: 90%;
}

select{
    background-color: var(--cbg);
}



.footer-main{
    background-color: var(--cbg3);
    width: calc(100% + 5rem);
    margin: 5rem 0 0 -2.5rem;
    border-top-left-radius: 10px;
}

.footer-main p{
    font-size: 1.4rem;
    font-family: 'Open Sans';
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 1rem 0;
    color: var(--t3);
}

.main-social-media-w {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--a1);
}

.main-social-media-w img{
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 1rem 6px 1rem 6px;
    opacity: .7;
}

.main-social-media-w img:hover{
    opacity: 1;
    cursor: pointer;
}

.footer-company{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: calc(100% - 5rem);
    margin-left: 2.5rem;
}

.footer-company p {
    display: inline-block;
    color: var(--t3);
}

.footer-company p:hover{
    color: var(--t3);
}

.no-display-mobile{
    display: none;
}

/* Profile */

#profile{
    cursor: pointer;
}

#profm-exit {
    position: fixed;
    z-index: 1001;
    background-color: var(--m1);
    opacity: .7;
    width: 100%;
    height: 100vh;
    display: none;
    /* clip-path: polygon(0 0, calc(100% - var(--prof-clip)) 0, calc(100% - var(--prof-clip)) 10rem, 100% 10rem, 100% 100%, 0 100%); */
}

#profm-c {
    position: fixed;
    background-color: var(--cbg);
    top: 0;
    right: 0;
    width: 33rem;
    max-width: 85%;
    height: 100%;
    z-index: 1001;
    display: none;
}

.profm-show{
    display: block !important;
}

.profm-top{
    display: flex;
    justify-content: flex-end;
    height: var(--h-top-hgt);
    align-items: center;
    font-size: 0;
}

.profm-h{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profm-img{
    font-size: 0;
    justify-content: end;
    padding: 0 calc(1rem + 2px) 0 1rem;
    margin: 0;
    max-width: 5rem;
    text-align: right;
    cursor: pointer;
}

.profm-img img{
    width: 90%;
    border-radius: 50%;
}

.profm-un{
    flex: 1;
}

.profm-un > p{
    font-size: 1.6rem;
    color: var(--t3);
    font-family: 'Open Sans';
    letter-spacing: .07rem;
    font-weight: 600;
    text-align: center;
    font-size: 1.8rem;
    margin-left: 4rem;
}

.profm-btns{
    margin: 2.5rem auto 0 auto;
    display: flex;
    width: 90%;
    justify-content: space-evenly;
}

.profm-btn{
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.profm-btn:hover{
    color: var(--cbg100blue);
}

.profm-btn i{
    font-size: 2.3rem;
}

.profm-btn p{
    font-size: 1.5rem;
    font-family: Verdana;
}

.profm-library{
    margin-top: 2rem;
    border-top: 2px solid var(--cbg2);
}

.profm-library > p{
    margin: 2rem 0 0 1rem;
    font-size: 1.5rem;
    color: var(--t3);
    opacity: .7;
    font-family: 'Open Sans';
    font-weight: 100;
}

.profm-l-books{
    width: 90%;
    margin: 2rem auto 0 auto;
    display: flex;
    white-space: nowrap;
    overflow: auto;
}

.plb-book {
    display: inline-block;
    margin-right: 1.25rem;
    margin-bottom: 2rem;
    min-width: 10.5rem;
    width: 8vw;
    max-width: 12rem;
    vertical-align: top;
    cursor: pointer;
    user-select: none;
}

.profm-l-books::-webkit-scrollbar-track {
    background-color: var(--cbg1);
    border-radius: 2rem;
}

.profm-l-books::-webkit-scrollbar {
    background-color: transparent;
    height: 1.2rem;
}

.profm-l-books::-webkit-scrollbar-thumb {
    border-radius: 1.2rem;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: var(--cbg3);
}

.plb-w {
    min-height: 16.8rem;
    height: 12.8vw;
    max-height: 19.2rem;
    display: block;
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

.plb-w img {
    height: 100%;
    min-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.profm-level-c{
    margin: 7rem auto 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    width: 60%;
}

.profm-level-c > p{
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    font-family: 'Open Sans';
    font-weight: 100;
    letter-spacing: .75px;
    opacity: .85;
}

.profm-level {
    border: 2px solid var(--cbg3);
    display: flex;
    height: 6.75rem;
    width: 6.75rem;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.profm-level p{
    margin: -3px 0 0 0;
    font-size: 3rem;
    font-family: Times 'Times New Roman';
    font-weight: 600;
}

.profm-cur{
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: auto;
    flex: 1;
    justify-content: center;
}

.profm-cur > div{
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.profm-snow > i{
    color: var(--snow);
    font-size: 2.4rem;
    margin-right: 1.5rem;
}

.profm-cur > div > p{
    font-size: 1.8rem;
    margin: 0;
    font-family: Verdana;
}

.profm-coin > i{
    font-size: 2.2rem;
    color: var(--coin);
    margin-right: 1.5rem;
}

.profm-help{
    width: 100%;
    text-align: center;
}

.profm-help i{
    cursor: pointer;
    font-size: 1.6rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.tut-c{
    position: fixed;
    z-index: 1002;
    font-size: 1.5rem;
    font-family: 'Open Sans';
    background-color: var(--a2);
    color: var(--a2t);
    padding: 5px 10px;
    width: 175px;
    border-radius: .5rem;
    max-height: 110px;
}

.tut-c > p{
    margin: 0;
}

.tut-b{
    display: flex;
    margin: 1rem 0 0 0;
    justify-content: space-evenly;
}

.tut-b > p{
    margin: 0;
    padding: .25rem 2rem;
    font-size: 1.4rem;
    color: var(--t3);
    border-radius: .5rem;
    user-select: none;
    cursor: pointer;
}
.tut-b > p:first-child{
    background-color: var(--m2);
    opacity: .85;
}

.tut-b > p:last-child{
    background-color: var(--m2);
    opacity: .85;
}

.tut-b > p:hover{
    opacity: 1;
}

.tut-o::after {
    position: absolute;
    content: '';
    top: -15px;
    left: -15px;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: linear-gradient(90deg, var(--cbg100blue) 50%, transparent 50%), linear-gradient(90deg, var(--cbg100blue) 50%, transparent 50%), linear-gradient(0deg, var(--cbg100blue) 50%, transparent 50%), linear-gradient(0deg, var(--cbg100blue) 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;
    padding: 10px;
    animation: border-dance 96s infinite linear;
    pointer-events: none;
}

@media screen and (min-width: 0px) and (max-width: 1023px) {
    :root{
        font-size: 11px;
        --h-top-hgt-mobile: 50px;
    }

    .no-display-mobile {
        display: inline-block;
    }

    #TRMessage {
        position: fixed;
        right: 1rem;
        top: calc(var(--h-top-hgt-mobile) + 0rem);
        z-index: 10001;
        width: 20rem;
        max-width: 60%;
    }

    #TRMessage > div > p{
        font-size: 1.4rem;
        padding: .5rem 1rem;
    }

    #TRMessage i:first-child{
        display: none;
    }

    #TRMessage i:last-child{
        padding-left: 0;
    }

    #top-blank {
        height: calc(var(--h-top-hgt-mobile) * 2);
        background-color: var(--cbg);
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        min-height: calc(var(--h-top-hgt-mobile) * 1);
        max-height: calc(var(--h-top-hgt-mobile) * 2);
        -webkit-transition: height .4s ease;
        transition: height .4s ease;
    }

    .logo {
        all: unset;
        width: 100%;
        height: var(--h-top-hgt-mobile);
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .h-top-w {
        height: calc(var(--h-top-hgt-mobile) * 1) !important;
        background-color: var(--cbg);
    }

    .h-top {
        align-items: center;
        height: var(--h-top-hgt-mobile) !important;
        opacity: 1;
    }

    .h-top > *:not(.logo){
        all: unset;
        position: relative;
        top: var(--h-top-hgt-mobile);
        vertical-align: middle;
        text-align: left;
    }

    #mobile-menu {
        font-size: 2rem;
        position: absolute !important;
        display: flex;
        height: var(--h-top-hgt-mobile);
        justify-content: space-between;
        align-items: center;
        top: 0;
        margin-left: calc(calc(var(--container-left-margin) / 2));
        z-index: 1;
    }

    #mobile-menu > *:first-child {
        padding: .5rem .85rem !important;
    }

    #profile {
        width: 3.5rem;
        height: var(--h-top-hgt-mobile);
        position: absolute;
        top: 0;
        right: 0;
        margin-right: calc(calc(var(--container-left-margin) / 2));
        padding: 0;
    }

    #create-m {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: var(--h-top-hgt-mobile);
        font-size: 1.4rem;
        position: relative;
        padding-left: calc(calc(var(--container-left-margin) / 2));
        -webkit-transition: top .4s ease, opacity .4s ease !important;
        transition: top .4s ease, opacity .4s ease !important;
    }

    #create-m input {
        width: 100%;
        height: 3rem;
        background-color: transparent;
        border-radius: 4px;
        border-width: 1px;
        border-color: var(--c2);
        border-style: solid;
        font-size: 1.4rem;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        background-color: var(--cbg);
    }

    #create-m-icon {
        position: absolute;
        text-align: center;
        width: 100%;
        font-size: 1.2rem;
        pointer-events: none;
        -webkit-transition: top .4s ease, opacity .4s ease !important;
        transition: top .4s ease, opacity .4s ease !important;
    }

    .search {
        flex: 1 !important;
        -webkit-transition: top .4s ease !important;
        transition: top .4s ease !important;
        height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
    }

    .searchUp .search, .searchUp #mode, .searchUp #create-m{
        top: 0px !important;
    }

    .searchUp .logo, .searchUp #mode, .searchUp #create-m{
        opacity: 0 !important;
        pointer-events: none;
    }

    .search input {
        margin-left: calc(2.5% + calc(var(--container-left-margin) / 2));
        width: calc(100% - 5% - var(--container-left-margin));
        text-indent: 3.5rem;
        min-width: unset;
        background-color: var(--cbg);
    }

    #search-icon {
        position: absolute;
        font-size: 1.4rem;
        pointer-events: none;
    }

    #mode {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: var(--h-top-hgt-mobile);
        font-size: 1.4rem;
        position: relative;
        margin-right: calc(calc(var(--container-left-margin) / 2));
        -webkit-transition: top .4s ease, opacity .4s ease !important;
        transition: top .4s ease, opacity .4s ease !important;
    }

    #mode > input {
        width: 100%;
        background-color: var(--cbg);
    }

    #mode-icon {
        position: absolute;
        width: 100%;
        font-size: 1.2rem;
        pointer-events: none;
        text-align: center;
        -webkit-transition: top .4s ease, opacity .4s ease !important;
        transition: top .4s ease, opacity .4s ease !important;
    }

    #upgrade, #create, #notif{
        display: none;
    }

    .logo {
        -webkit-transition: opacity .4s ease !important;
        transition: opacity .4s ease !important;
    }

    .logo img{
        width: 65%;
        margin-top: 5px;
    }

    .h-left {
        display: none;
    }

    .h-left{
        position: fixed;
        flex-direction: column;
        z-index: 1001;
        background-color: var(--m2);
        top: 0;
        left: 0;
        height: 100%;
        width: 33rem;
        max-width: 85%;
        padding: 0;
    } .h-left-show {
        display: flex !important;
    }

    .h-left-m-exit{
        width: 100%;
        height: 100%;
        position: fixed;
        background-color: var(--m1);
        z-index: 1000;
        opacity: .7;
        top: 0;
        left: 0;
    } .hlm-exit-show{
          display: initial;
      }

    .h-left-m-top{
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
        border-bottom: 2px solid var(--m1);
        margin-bottom: 1rem;
    }

    #h-left-times{
        position: fixed;
        top: .20rem;
        left: .95rem;
        font-size: 2rem;
    }

    .h-left-m-top img{
        height: 6rem;
    }

    .h-left-fixed{
        position: initial;
        flex: 1;
    }

    .h-left-fixed > p{
        margin-left: 2rem;
    }

    .h-l-fixed-active{
        color: var(--t3) !important;
    }

    .h-l-fixed-active::after{
        width: 100%;
        height: 2rem;
        background-image: linear-gradient(to right, var(--cbg) 20%, var(--maccent));
        content: '';
        position: absolute;
        left: -7.5%;
        margin-top: -.5rem;
        padding: .5rem 0;
        z-index: -1;
        opacity: .7;
    }

    .h-left-m-footer{
        height: 5rem;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        border-top: 3px solid var(--cbg3);
    }

    .h-left-m-footer img{
        height: 24px;
    }

    .unused {
        top: calc(var(--h-top-hgt-mobile) * 2);
    }

    .footer-main{
        width: calc(100% + 1.5rem);
        margin: 5rem 0 0 -.75rem;
    }

    .footer-company{
        width: calc(100% - 2.5rem);
        margin: 0 0 0 1.25rem;
    }

    .main-social-media-w img {
        margin: 1rem 12px 1rem 12px;
        opacity: .8;
    }

    .plb-book {
        display: inline-block;
        margin: 0 .65rem;
        min-width: 10rem;
        max-width: 10rem;
        vertical-align: top;
    }

    .plb-w {
        min-height: 16rem;
        max-height: 16rem;
        display: block;
        position: relative;
        overflow: hidden;
    }

    .plb-w img {
        height: 100%;
        min-width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .profm-l-books{
        overflow-x: scroll;
    }

    .profm-l-books::-webkit-scrollbar-track {
        all: unset;
    }

    .profm-l-books::-webkit-scrollbar {
        all: unset;
    }

    .profm-l-books::-webkit-scrollbar-thumb {
        all: unset;
    }

    .profm-top{
        height: var(--h-top-hgt-mobile);
    }

    .profm-img {
        padding: 0 calc((var(--container-left-margin) / 2) + 2px) 0 1rem;
        max-width: 3.5rem;
    }

    .profm-un > p{
        letter-spacing: .07rem;
        font-size: 1.7rem;
        margin-left: 4rem;
    }

    .profm-btns{
        margin: 3rem auto 0 auto;
    }

    .profm-btn i{
        font-size: 2.2rem;
    }

    .profm-btn p{
        font-size: 1.1rem;
    }

    .profm-library{
        margin-top: 1.5rem;
    }

    .profm-library > p{
        margin: 1.5rem 0 0 1rem;
        font-size: 1.4rem;
    }

    .profm-level-c{
        margin: 4rem auto 4rem auto;
        width: 70%;
    }

    .profm-snow > i{
        font-size: 2.1rem;
    }

    .profm-cur > div > p{
        font-size: 1.6rem;
    }

    .profm-coin > i{
        font-size: 1.8rem;
    }

    .profm-help i{
        margin-bottom: 2rem;
    }

    .tut-o::after {
        top: -5px;
        left: -5px;
        background-size: 10px 3px, 10px 3px, 3px 10px, 3px 10px;
        padding: 5px;
        animation: border-dance 64s infinite linear;
    }
}

@-webkit-keyframes border-dance {
    0% {
        background-position: 0px 0px, 300% 100%, 0px 150%, 100% 0px;
    }

    100% {
        background-position: 300% 0px, 0px 100%, 0px 0px, 100% 150%;
    }
}

@keyframes border-dance {
    0% {
        background-position: 0px 0px, 300% 100%, 0px 150%, 100% 0px;
    }

    100% {
        background-position: 300% 0px, 0px 100%, 0px 0px, 100% 150%;
    }
}