* {
    font-family: 'Avenir', sans-serif;
    /*font-weight: normal;*/
    box-sizing: border-box;
}

body {
    /*background-color: #fafafa;*/
    background: #E6EBF1;

}

h1, h2, h3, h4 {
    font-weight: 100;
}

.center {
    text-align: center
}
.row.title_row {
    text-align: center
}

.show_mobile {
    display: none !important;
}

.no-margin {
    margin:0px;
}
.menu_row.row .buttons {
    text-align: center;
}
button {
    cursor: pointer;
    font-size: 16px;
    color: #fafafa;
    word-spacing: 1.5px;
    background-color: #616161;
    color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.3em;
    padding-left: .7em;
    padding-right: .7em;
    margin: .7em;
    margin-left: 0.5em;
    margin-right: 0.5em;
    outline: none;
    letter-spacing: 1px;
    font-weight: 100;
}
button svg {
    display: block;
}

.no_drag {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
}

.bold {
    font-weight: bold;
}

/* Text buttons
*/
.text_button {
    cursor: pointer;
    letter-spacing: 1.0px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    margin: .35em;
    user-select: none;
    display: inline-block;
}
.text_button:hover {
    border-bottom: 1px solid #c0c0c0;
}
.text_button.selected {
    border-bottom: 1px solid black;
}
/* */

.primary_button {
    background-color: #5a4caf;
}

.inactive_text {
    color: #606060;
}

.disabled {
    opacity: .5;
    filter: blur(1px);
    cursor: not-allowed;
}
.disabled:hover {
    box-shadow: none;
}

a {
    color: black;
}

.hidden {
    display: none !important;
}
.invisible {
    visibility: hidden;
}
.template, .templates {
    display: none;
}

.gene {
    background-color: white;
    position: relative;
    width: 150px;
    max-width: 300px;
    display: inline-block;
    margin: 5px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    vertical-align:top;
}

.gene-container {
    overflow-y: auto;
}

.flex_row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.flex_column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}
/* OLD TAGS */
.image_tag {
    display: inline-block;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-decoration: none;
    margin: .25em;
    user-select: none;
    margin: 0.5em;
    font-size: 1.5em;
    padding: 2px;
}
.image_tag.selected {
    border-radius: 4px;
    background-color: #ddd;
}

/*  NEW TAGS */

.tag-button {
    background-size: 100% 100%;
    background-image: url(/svg/hash.svg);
}
.tag-button.has-tags {
    background-image: url(/svg/hash-checked.svg);
}

#image-tag-popup {
    position: absolute;
    top: 65%;
    z-index: 2;
    background-color: white;
    width: 96%;
    /* width: 250px; */
    text-align: center;
    left: 2%;
    padding: 12px;
    border-radius: 3px;
    /* box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2); */
    /* box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75); */
    -webkit-filter: drop-shadow(0px 4px 4px rgba(130,130,130,.4));
    filter        : drop-shadow(0px 4px 4px rgba(130,130,130,.4));
}

#image-tag-popup:before {
    content: '';
    height: 0;
    position: absolute; top: -10px; width: 0;
    left: 19%;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

#image-tag-popup input[type='text'] {
    background: lightgray;
    border-radius: 3px;
    border: 2px solid white;
    font-size: 16px;
    max-width: 100%;
}
#image-tag-popup input[type='text']:focus {
    outline: none !important;
    border:2px solid #5a4caf;
}

.current-tags {
    margin-top: 12px;
}
.image-tag {
    align-items: center;
    border-radius: 4px;
    color: #f5f5f5;
    background-color: gray;
    /* color: #4a4a4a; */
    display: inline-flex;
    font-size: 1em;
    height: 1.5em;
    justify-content: center;
    line-height: 1.7em;
    white-space: nowrap;
    overflow: hidden;
    padding-left: .4em;
    padding-right: .4em;

    margin: .2em;
}

.image-tag p {
    margin-right: .4em;
}
.image-tag .remove {
    display: flex;
    height: 100%;
    cursor: pointer;
    align-items: center;
}
.image-tag .remove img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    /* border: 1px solid black; */
    background-color: lightgray;
}
.recent-tags {
    max-height: 160px;
    overflow-y: scroll;
}
.recent-title {
    font-weight: 100;
    margin: .5em;
    border-bottom: 1px solid lightgray;
}

.recent-tag {
    background-color: rgb(226, 226, 226);
    color: rgb(50, 50, 50);
    cursor: pointer;
}



/******************************************************************************/
/* Children
*/
.children_row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.children_container {
    width: 96%;
    max-width: 1900px;
    text-align: center;
}
@media (max-width: 1000px) {
    .children_container {
        width: 100%;
        max-width: 100%;
    }
}
/* 
.children_row.row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.children_container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
} */

/* .children_container a { */
    /*padding-left: 20px;*/
/* } */


@media only screen and (max-width: 800px) {
    button {
        padding: 0.6em;
        margin: 0.4em;
        font-size: 16px;
        padding-top: .4em;
        padding-bottom: .4em;
    }
    h1 {
        font-size: 1.5em;
    }
    .show_mobile {
        display: initial !important;
    }
    .hide_mobile {
        display: none !important;
    }
}
@media only screen and (max-width: 700px) {
    body {
        /*margin-left: 0px;*/
        /*margin-right: 0px;*/
    }
    .children_container {
        width: 100%;
    }
    .button_column {
        right: 5px;
    }
    .menu_row.row .buttons p {
        margin-left: 8px;
        margin-right: 8px;
    }
}