/* Global */

html, body, .Container  {
    height: 100%;
}

body {
    font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
    background-color: #333;
    color: white;
}

a {
    text-decoration: initial;
    color: white;
}

/* Container */

.Container {
    display: flex;
    flex-direction: column;
    
    max-width: 1130px;
    margin: 0 auto;
    
    background-color: #383838;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

/* Header */

.Header {
    display: flex;
    border-bottom: 2px solid #33555E;
}

.Header a {
    padding: 10px 15px;
    font-size: 14px;
}

.Header a:hover {
    background-color: #33555E;
}

.Header--filename {
    align-items: center;

    min-width: 3px;
    padding: 6px 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.Header--filename:hover,
.Header--filename:focus,
.Header--filename.focus {
    background-color: #33555E;
}

.Header--filename .text {
    padding: 4px;
    cursor: pointer;
}

.Header--filename .text:focus {
    outline: none;
    cursor: text;
    border-radius: 3px;
    background-color: #333;
    box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.25);
}

.Header--users {
    display: flex;
    margin: 10px 7px;
    cursor: pointer;
    text-align: center;
}

.Header--users > .user {
    margin: 0 3px;
    width: 17px;
    height: 17px;
    border-radius: 2px;
    background: #ff7567;
}

.Header--users > .user > .writing {
    padding-top: 5px;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.Header--actions {
    display: flex;
    margin-left: auto;
}

/* Editor */

.Editor {
    flex: 1;
}

/* Footer */

.Footer {
    display: flex;
    align-items: center;

    padding: 10px;
    border-top: 2px solid #33555E;
}

.Footer a {
    margin-left: 10px;
    color: #686868;
}

.Footer a:hover {
    color: #B3B3B3;
}

.Footer--item {
    margin: 0 5px;
}

.Footer--item.m-about {
    flex: 1
}

/* Ace */

@media (min-width: 1130px) {
    .ace_content {
        width: 100% !important;
    }
    
    .ace_scrollbar {
        position: fixed !important;
        top: 0 !important;
        height: 100% !important;
    }
    
    .ace_scroller {
        right: 0 !important;
    }
}

/* Collaboration */

.collaboration-selection-wrapper {
    position: fixed;
    z-index: 1;
    cursor: pointer;
}

.collaboration-selection {
    width: 2px;
    height: 14px;
    background-color: #ff7567;
}

.collaboration-selection-tooltip {
    display: none;
    position: relative;
    height: 16px;
    top: -28px;
    padding: 0 3px;
    font-size: 14px;
    border-radius: 2px 2px 2px 0;
    background-color: #ff7567;
}

/* Extend Act theme */

.ace_content .ace_heading {
    color: #ff7567;
}

