/* Palette generated by Material Palette - materialpalette.com/red/grey */

.dark-primary-color {
    background: #D32F2F;
}

.default-primary-color {
    background: #F44336;
}

.light-primary-color {
    background: #FF7961;
}

.text-primary-color {
    color: #FFFFFF;
}

.accent-color {
    background: #9E9E9E;
}

.primary-text-color {
    color: #212121;
}

.secondary-text-color {
    color: #757575;
}

.divider-color {
    border-color: #BDBDBD;
}


/*  */

:root {
    --primary-dark: #D32F2F;
    --primary: #E54540;
    --primary-light: #E56767;
    --text: #FFFFFF;
    --accent: #9E9E9E;
    --primary-text: #212121;
    --secondary-text: #757575;
    --divider: #BDBDBD;
    --nav: rgb(13, 144, 239);
}

body {
    text-align: center;
}


/*toast*/

#toast {
    border-radius: 5px;
    border: 1px solid black;
    padding: 30px;
    width: auto;
    max-width: 50%;
    text-align: center;
    transition-duration: 1s;
    -webkit-transition-duration: 1s;
    position: fixed;
    top: -63px;
    opacity: .7;
    background-color: #333;
    color: white;
    z-index: 15;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.tab {
    padding-left: 2em;
}


/*nav-bar==================================================================*/

#nav-bar {
    /*This is the nav-bar*/
    position: fixed;
    top: 0;
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--primary);
    right: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    z-index: 5;
    height: 50px;
}

.nav-bar-item {
    float: left;
    display: block;
    height: 100%;
    min-width: 50px;
    width: auto;
    margin-right: 0px;
    padding: 0 8px;
    cursor: pointer;
}

.nav-bar-item.color-transform {
    transition: .4s ease-in-out;
}

.nav-bar-item.color-transform:hover {
    color: var(--primary);
    background: white;
}

.nav-bar-text {
    position: relative;
    top: 15px;
}

.nav-bar-item.right {
    float: right;
}

.nav-bar-item#sidebar-btn {
    padding: 5px;
    position: relative;
}

.hamburger-x div {
    display: block;
    position: absolute;
    left: 12px;
    right: 12px;
    height: 4px;
    background: white;
    transition: .2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.hamburger-x .top {
    top: 10px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    z-index: 4;
}

.hamburger-x .mid {
    top: 22px;
    opacity: 1;
}

.hamburger-x .bot {
    bottom: 21px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    z-index: 3s;
}

.hamburger-x .top.open {
    transform: translateY(12.5px) rotate(45deg);
    border-radius: 0;
}

.hamburger-x .mid.open {
    opacity: 0;
}

.hamburger-x .bot.open {
    transform: translateY(-12.5px) rotate(-45deg);
    border-radius: 0;
}


/*nav-bar==================================================================*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: rgb(233, 233, 233);
    background-color: #f5f5f5;
}

#navigation {
    top: 0;
    margin: auto;
    float: left;
    display: block;
    width: 100%;
    background-color: var(--nav);
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

#navigation div {
    padding: 20px;
}

#sidebarbtn {
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition-duration: .4s;
}

#sidebarbtn:hover {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
}

.centerTextHorz {
    text-align: center;
}

.holder {
    float: left;
}

.large {
    font-size: 2em;
}

#cards {
    position: relative;
    width: 100%;
    float: left;
    margin-top: 75px;
    text-align: center;
}

.card {
    position: relative;
    display: inline-block;
    margin: 10px;
    background-color: #fff;
    color: #222;
    height: 300px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition-duration: .4s;
    vertical-align: middle;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
    height: 320px;
    width: 320px;
    margin: 0;
}

.card h1 {
    font-weight: 400;
}

.cardArrow {
    position: relative;
    top: 100px;
    color: white;
    opacity: 0;
    transition-duration: .4s;
}

@keyframes pulse {
    0% {
        opacity: .9;
    }
    100% {
        opacity: .1;
    }
}

.pulse {
    animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.overlay::-webkit-scrollbar {
    display: none;
}

.content {
    position: relative;
    display: block;
    top: 50px;
    width: 100%;
}

.content .fill {
    position: absolute;
    top: 50%;
    left: 50%;
    min-height: 500px;
    display: block;
    background-color: #fff;
    color: #222;
    width: 90%;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transform: translateX(-50%) translateY(40px);
    margin-bottom: 15px;
}

.left-align {
    text-align: left;
}

.card img {
    position: absolute;
    width: 100%;
    border-radius: 5px;
    z-index: 1;
    display: block;
}

.overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    border-radius: 5px;
    transition-duration: .4s;
    z-index: 2;
    position: absolute;
    overflow: auto;
}

.overlay:hover {
    opacity: 1;
}

.title {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 70px;
    color: white;
}

.description {
    font-size: .75em;
    color: #d9d9d9;
    position: relative;
    top: -50px;
    margin-bottom: 10%;
}

#sidebar {
    color: #111;
    margin-top: 50px;
    margin-left: -300px;
    position: fixed;
    height: 100%;
    width: 300px;
    background-color: #E5E5E5;
    z-index: 3;
    transition: .2s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#sidebar.open {
    margin-left: 0;
}

#sidebar-content {
    margin-top: 0px;
    position: absolute;
    width: 100%;
    height: calc(100% - 90px);
    transition: .4s;
    background-color: #E5E5E5;
    font-size: 1.25em;
    text-align: left;
    overflow: auto;
    margin-bottom: 50px;
}

#sidebar-content::-webkit-scrollbar {
    display: none;
}

#sidebar-content .sidebar-item {
    left: 0px;
    position: relative;
    cursor: pointer;
    padding: 5px;
    padding-left: 23px;
    transition-duration: .4s;
    color: #555;
    height: 30px;
}

#sidebar-content .sidebar-item:hover {
    background-color: #AAA;
    color: #E5E5E5;
}

#sidebar-content .sidebar-text {
    position: relative;
    top: 3px;
    left: 15px;
    font-size: 18px;
    font-weight: 200;
}

#sidebar-content .line {
    position: absolute;
    display: block;
    left: 20px;
    right: 20px;
    background: var(--divider);
    height: 2px;
    transform: translateY(15px);
}

#sidebar-content .positionfix {
    margin-top: 32px;
}

#sidebar-content .friend-img {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    background: grey;
    border-radius: 15px;
    float: left;
}

#sidebar-content .online .friend-img {
    box-shadow: inset 0 0 0 2px rgba(57, 210, 58, 0.5);
}

#sidebar-content .friend-name {
    position: relative;
    left: 20px;
    top: 3px;
}

#sidebar-account {
    display: block;
    height: 175px;
    width: 100%;
    background-color: var(--primary-light);
    margin-bottom: 1px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) inset, 0 3px 6px rgba(0, 0, 0, 0.23) inset;
}

#sidebar-account .profile-pic {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: white;
}

#sidebar-account .profile-name {
    display: block;
    position: absolute;
    top: 10px;
    left: 80px;
    width: auto;
    height: 60px;
    border-radius: 30px;
    color: black;
}

#sidebar-account .profile-username {
    display: block;
    position: absolute;
    top: 30px;
    left: 80px;
    width: auto;
    height: 60px;
    border-radius: 30px;
    color: rgba(0, 0, 0, .7);
    font-size: 12px;
}

#sidebar-account .profile-actions {
    /*background: green;*/
    display: block;
    position: relative;
    top: 135px;
    left: 0;
    width: 100%;
    height: 20px;
    text-align: center;
}

#sidebar-account .profile-actions .action {
    display: inline-block;
    background: var(--primary);
    width: 120px;
    height: 100%;
    padding: 5px;
    margin: 0px 3px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    font-size: .7em;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: .4s ease-in-out;
}

#sidebar-account .profile-actions .action:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

#sidebar-account .profile-actions .action span {
    position: relative;
    top: 3px;
}

.noti-bar {
    position: absolute;
    bottom: 0;
    background: #999;
    width: 100%;
    height: 40px;
    padding: 0;
    transform: translateY(-100%)translateY(-10px);
}

.noti-bar .addfriend {
    cursor: pointer;
    color: white;
    float: left;
    height: 100%;
    display: inline-block;
    padding-top: 5px;
    padding-left: 5px;
}

.noti-bar .addfriend .add-icon {
    transition: 0;
}

.noti-bar .addfriend:hover .add-icon {
    transform: rotate(90deg);
    transition: .4s ease-in-out;
}

.noti-bar .addfriend .add-icon.spin {
    transform: rotate(135deg);
}

.noti-bar .dot {
    display: none;
}

.noti-bar .dot.active {
    display: block;
    height: 5px;
    width: 5px;
    position: relative;
    border-radius: 2.5px;
    background-color: var(--primary);
    left: 22px;
    top: 4px;
}

.noti-bar .bell-icon {
    cursor: pointer;
    color: white;
    height: 100%;
    display: inline-block;
    float: right;
    padding-top: 5px;
    padding-right: 5px;
    transition: .4s ease-in-out;
    /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);*/
}

.noti-bar .bell-icon:hover {
    /*text-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);*/
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-.5px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(1px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-2px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(2px, 0, 0);
    }
}

.friend-edit {
    display: flex;
    width: 90%;
    height: 90%;
    position: fixed;
    bottom: 5px;
    left: 5px;
    background: #eee;
    transform: scale(0);
    opacity: 0;
    transition: .4s ease-in-out;
    transform-origin: left bottom;
    border-radius: 5px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    z-index: 6;
}

.friend-edit.open {
    opacity: 1;
    bottom: 35px;
    left: 20px;
    transform: scale(1);
}

.friend-edit .friend-types {
    flex-grow: 1;
    position: relative;
    background: var(--primary-light);
    min-width: 90px;
    max-width: 20%;
    height: 100%;
    border-radius: 5px;
}

.friend-edit .friend-types .friend-type {
    position: relative;
    top: 4px;
    display: block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 0;
    margin-bottom: 1px;
    width: 100%;
    height: 30px;
    text-align: left;
    cursor: pointer;
    transition: .4s ease-in-out;
}

.friend-edit .friend-types .friend-type.active {
    background: rgba(255, 255, 255, 0.4);
}

.friend-edit .friend-types .friend-type:hover {
    background: rgba(255, 255, 255, 0.4);
}

.friend-edit .friend-types .friend-type span {
    position: relative;
    top: 5px;
    left: 15px;
    font-size: 1em;
}

.friend-edit .friend-viewer {
    padding: 15px;
    flex-grow: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-flow: column;
}

.friend-edit .friend-viewer .search {
    position: relative;
    border: rgba(0, 0, 0, 0.1) 1px solid;
    float: left;
    display: block;
    width: 100%;
    height: 20px;
    border-radius: 5px;
    padding: 3px 0;
    background: white;
    flex: 0 0 auto;
}

.friend-edit .friend-viewer .search form input[type="text"] {
    position: absolute;
    top: -1px;
    left: 0;
    background: 0;
    border: 0;
    vertical-align: top;
    color: black;
    margin: 0;
    margin-left: 3px;
    outline: none;
    width: 95%;
    height: 100%;
    font-size: 1.1em;
    font-weight: 300;
}

.friend-edit .friend-viewer .friend-content {
    border: rgba(0, 0, 0, 0.1) 1px solid;
    flex: .9 1 auto;
    background: white;
    width: 100%;
    border-radius: 5px;
    top: 10px;
    position: relative;
    padding: 0px;
    flex-basis: 30vh;
    height: 0;
}

.friend-edit .friend-viewer .friend-content .friend-wrapper {
    padding: 8px;
    position: relative;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.friend-edit .friend-viewer .friend-content .friend-wrapper .nofriends {
    position: absolute;
    left: 15px;
    color: #444;
}

.friend-edit .friend-viewer .friend-content .friend-box {
    position: relative;
    width: 100%;
    height: 70px;
    background: #eee;
    border: rgba(0, 0, 0, 0.1) 1px solid;
    border-radius: 3px;
    margin-bottom: 4px;
    overflow-x: hidden;
    transition: .3s ease-in-out;
    overflow-y: hidden;
}

.friend-edit .friend-viewer .friend-content .friend-box.open {
    height: 120px;
}

.friend-edit .friend-viewer .friend-content .friend-box:hover {
    background: #f9f9f9
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-image {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: white;
    position: relative;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.friend-edit .friend-viewer .friend-content .friend-box.online .friend-image {
    box-shadow: inset 0 0 0 2px rgba(57, 210, 58, 0.5);
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-name {
    position: absolute;
    top: 6px;
    left: 55px;
    color: black;
    font-weight: 300;
    font-size: .9em;
    white-space: nowrap;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-username {
    position: absolute;
    top: 21px;
    left: 55px;
    color: #444;
    font-size: .8em;
    white-space: nowrap;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-mutual {
    position: absolute;
    top: 55px;
    left: 55px;
    color: #444;
    font-weight: 500;
    font-size: .7em;
    white-space: nowrap;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown {
    position: absolute;
    top: 70px;
    height: 50px;
    width: 100%;
    float: left;
    box-sizing: border-box;
    padding-left: 55px;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .view-profile {}

.friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .friend-action {
    right: 10px;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .button {
    position: absolute;
    height: 50%;
    width: 115px;
    background: var(--primary-light);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    padding-top: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: .4s ease-in-out;
    cursor: pointer;
}

.friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .button:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.icon {
    font-size: 30px;
    float: left;
}

.clean {
    text-decoration: none;
}


/*login*/

#loginShield {
    transition: 1s ease-in-out;
    position: fixed;
    height: 90%;
    width: 70%;
    background: #f8f8f8;
    border-radius: 5px;
    z-index: 10;
    display: block;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    color: black;
    overflow: auto;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

#loginShield.open {
    visibility: visible;
    opacity: .9;
}

.loginSelect {
    width: 100%;
    margin: 0;
}

.loginSelect .line {
    position: relative;
    display: block;
    width: 25%;
    background: var(--divider);
    height: 2px;
    transform: translateX(150%);
}

.loginHeader {
    color: black;
    font-weight: 300;
    margin: 10px;
}

.login-form span {
    float: left;
    display: block;
    position: relative;
    left: 12%;
    font-size: .9em;
    transform: translateY(4px);
    font-weight: 300;
}

.login-btn {
    background-color: var(--primary-light);
    color: white;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    width: 100px;
    transition-duration: .4s;
    -webkit-transition-duration: .4s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: none;
}

.login-btn:hover {
    background-color: white;
    color: var(--primary-light);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.login-input {
    height: 20px;
    width: 80%;
    border-radius: 10px;
    border: 2px solid #B8B8B8;
    background: white;
    background-color: white;
    padding: 3px 5px;
    transition-duration: .4s;
    -webkit-transition-duration: .4s;
}

.login-input:focus {
    outline: none;
    border-color: rgba(184, 184, 184, 0);
    background: rgba(255, 90, 85, 0.9);
    color: white;
}

.login-input:focus::placeholder {
    color: white;
}

.input-error {
    border-color: #ff5757;
}

#clickout {
    visibility: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(150, 150, 150);
    z-index: 9;
    opacity: 0;
    transition: 1s ease-in-out;
}

#clickout.open {
    visibility: visible;
    opacity: .3;
}

#friends {
    display: block;
    position: fixed;
    right: 4px;
    bottom: 4px;
    height: 70px;
    width: 70px;
    background: white;
    border: #aaa solid 1px;
    border-top-left-radius: 35px;
    text-align: center;
}

#friends>div {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(10%) translateX(0%);
    color: black;
    font-size: 40px;
}

@media only screen and (max-width: 500px) {
    .friend-edit .friend-viewer .friend-content .friend-box.open {
        height: 150px;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .button {
        width: 90px;
        font-size: .8em;
        padding-top: 4px;
        box-sizing: border-box;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown .friend-action {
        left: 55px;
        right: unset;
        top: 60px;
    }
}

@media only screen and (min-width: 750px) {
    body {}
    #loginShield {
        width: 50%;
        height: 50%;
        margin-top: 100px;
    }
    .loginSelect {
        width: 50%;
    }
    .login-btn {
        width: 40%;
    }
    .friend-edit .friend-viewer .friend-content .friend-box {
        height: 50px;
    }
    .friend-edit .friend-viewer .friend-content .friend-box.open {
        height: 100px;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-name {
        top: 6px;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-username {
        top: 18px;
        font-size: .9em;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-mutual {
        position: absolute;
        top: 6px;
        right: 4px;
        left: unset;
        font-size: .85em;
    }
    .friend-edit .friend-viewer .friend-content .friend-box .friend-dropdown {
        top: 50px;
    }
}