#app
{
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    padding-bottom: 100px;
}

#app-content
{
    // Limit max width
    max-width: 1300px;
    text-align: center;
    margin: auto;
}

.theme-default
{
    --unread: #ff6c00;
    --main: #0c6dad;

    --assignment-type-2: #3f991e;
    --assignment-type-3: #ff9900;
    --assignment-type-4: #b02b02;

    //--font: 'Avenir', Helvetica, Arial, sans-serif;
    --font: -apple-system, Nunito Sans, Avenir, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
    Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, Helvetica, Arial, sans-serif;
}

.dark
{
    --dark-layer-1: #383838;
    --dark-layer-2: #525252;
    --dark-layer-3: #6c6c6c;
    --dark-foreground: #e9e9e9;

    background: var(--dark-layer-1) !important;

    div, ul
    {
        background: var(--dark-layer-2) !important;
        color: var(--dark-foreground) !important;
    }

    span, button
    {
        color: var(--dark-foreground) !important;
    }

    .el-card
    {
        border: none !important;
    }

    // Overall
    #app-inner, #overall, #overall-course, .overall-span, #app-content
    {
        background: var(--dark-layer-1) !important;
    }

    // Course card
    .entry-box, .none .unread-number {background: #797979 !important}
    .entry-box.max {background-color: #949494 !important}
    .entry-box.percent {background-color: #a7a490 !important}
    .course-name {color: #cffff6 !important}
    #block-grade #updates.none #unread-number {background: #757575 !important}

    .course-card-content.expand, .assignment-entry, .unread-row,
    .unread-row .el-col, #assignment-type-head, .course-page-graph.el-col
    {
        background-color: var(--dark-layer-3) !important;
    }

    // Nav bar
    .el-menu--horizontal>.el-menu-item.is-active {color: var(--dark-foreground) !important;}
}

// ##############
// # Global CSS #
// ##############

.el-card
{
    margin: 10px;
    padding: 0;
}

.el-card.large
{
    height: 494px;
}

// Fix padding
.el-card__body
{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

// Vertical centering
.vertical-center
{
    // Vertical center
    display: flex;
    justify-content: center;
    flex-direction: column;
}

// Remove card padding for styling issues
div.el-card.course-card > div.el-card__body
{
    padding-right: 0 !important;
    padding-left: 0 !important;
}

// Clickable text
.clickable:hover
{
    text-decoration: underline;
    cursor: pointer;
}

// Non-selectable text
.unselectable
{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.el-dropdown-menu__item
{
    font-family: Nunito Sans, Helvetica Neue, Microsoft YaHei, "微软雅黑", Arial, sans-serif;
}

// Fix word breaking
.el-dialog__body
{
    word-break: unset !important;
}
