/*
 * Global styles _after_ Foundation resets have been applied.
 */
html, body {
    height: 100%;
}

/*
 * Override some F5 styles
 */
.row {
    max-width: 95%;
}

/*
 * Site-wide styles
 */
body:not(.modal) .content-main {
    margin-top: 1em;
    min-height: calc(100% - 4rem);
    /* equal to footer height */
    margin-bottom: -8em;
}

body:not(.modal) .content-main:after {
    content: "";
    display: block;
}

footer, .page-wrap:after {
    height: 3em;
}

/*
 * Header styling
 * templates/fragments/header.html
 */
.top-bar {
}
.top-bar .title-area .name {
    font-family: walkway_blackregular;
    font-size: 1.6em;
    margin-left: 0.25em;
}
.top-bar .title-area .name a {
    display: inline-block;
    color: white;
    align-items: center;
}
.top-bar .title-area .name img {
    height: 1em;
}

/*
 * Styling for user sidebar
 * templates/layouts/user.html
 */
.user-profile-sidebar .user-image img {
    width: 160px;
    height: 160px;
}
.user-profile-sidebar .user-name {
}
.user-profile-sidebar .user-bio {
    padding-bottom: 1em;
}
.user-profile-sidebar .user-link {
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position-y: center;
    padding-left: 24px;
}
.user-profile-sidebar .user-link-citsci {
    background-image: url("https://www.citsci.org//favicon.ico");
}
.user-profile-sidebar .user-link-inaturalist {
    background-image: url("http://www.inaturalist.org/favicon.ico");
}
.user-profile-sidebar .user-link-twitter {
    background-image: url("https://twitter.com/favicon.ico");
}
.user-profile-sidebar .user-link-zooniverse {
    background-image: url('https://static.zooniverse.org/www.zooniverse.org/favicon.ico');
}

/*
 * Project add page
 * templates/project/add.html
 */
#project-add-form {

}

/*
 * Project edit page
 * templates/project/edit.html
 */
#project-edit-form {

}

/* override default setting */
.tabs-content {
    margin: 0;
}
.tabs-content > .content {
    padding: 0;
}

/*
 * Project listing table
 * templates/fragments/project-list.html
 */
table.project-list tr {
    vertical-align: top;
}

/*
 * Project view page
 * templates/project/view.html
 */
.button-group.project-controls {
    margin: 2em 0;
}

/*
 * Model add page
 * templates/model/add.html
 */
#model-add-form {

}

/*
 * Model edit page
 * templates/model/edit.html
 */
.model-editor-frame {
    display: block;
    width: 100vw;
    height: 55vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0 none;
    box-sizing: border-box;
}
#model-operations {
    display: inline-block;
    padding-left: 1em;
}

/*
 * Model view page
 * templates/model/view.html
 */
.model-preview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #cfcfcf;
}

/*
 * Model listing grid
 * templates/fragments/model-list.html
 */
.model-list-grid-item {
    text-align: center;
    border: 1px solid #cfcfcf;
    padding: 1em;
}
.model-list-grid-item:hover {
    border: 1px solid black;
}
.model-list-render {
    padding-bottom: 20px;
    height: 170px;
    width: 150px;
    white-space: nowrap;
    text-align: center;
    margin: auto;
}
.model-list-render:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.model-list-render img {
    max-width:150px;
    max-height: 150px;
    vertical-align: middle;
}

/*
 * Login page
 */
.sso-link {
    display: inline-block;
    border: 1px solid transparent;
}
.sso-link:hover {
    border: 1px solid grey;
}
body:not(.modal) .login-option {
    border-left: 1px solid black;
}
body:not(.modal) .login-option:first-of-type {
    border-left: none;
}
body.modal .login-option {
    border-top: 1px solid black;
}
body.modal .login-option:first-of-type {
    border-top: none;
}

/*
 * Announcement content page
 */
#announcement-content .content {
    padding-bottom: 1em;
}
.announcement-summary-heading {
    font-weight: bold;
}
#announcement-content .announcement-summary {
    border-bottom: 1px solid lightgray;
    margin-bottom: 1em;
    padding-bottom: 0;
}
#announcement-operations {
    display: inline-block;
    padding-left: 1em;
}

/*
 * Announcement add/edit pages
 */
#textarea-announcement-summary .CodeMirror, #textarea-announcement-summary .CodeMirror-scroll {
    min-height: 5em;
}
#textarea-announcement-content .CodeMirror, #textarea-announcement-content .CodeMirror-scroll {
}

/*
 * Announcements admin page
 */
table.announcement-list tr {
    vertical-align: top;
}
.announcement-ops {
    visibility: hidden;
}
.announcement-ops ul {
    margin-bottom: 0;
    font-size: 1em;
    padding-top: .25em;
}
table.announcement-list tr:hover .announcement-ops {
    visibility: visible;
}

/*
 * Announcements listing page (not admin)
 */
.announcement-brief {
    padding-top: 1em;
    margin-top: 1em;
    border-top: 1px solid lightgray;
}
.announcement-brief:first-of-type {
    border-top: none;
}
.announcement-brief .announcement-title {
    font-size: 1.5em;
}

/*
 * Log lineup on home page (or anywhere else we want to use it)
 */
ul.logo-lineup li {
    line-height: 200px;
}

/*
 * Registration form
 */
.g-recaptcha {
    margin: 0 0 1rem 0;
}

/*
 * Modal styles
 */
.reveal-modal iframe {
    border: 0;
}

/*
 * Animated loader spinner
 * https://ihatetomatoes.net/create-css3-spinning-preloader/
 */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}

/**
 * User admin page
 */
.user-list {

}

/**
 * AskJill interface styles
 */

/* Message Styles */

.jw-notification::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right:60px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.6);
    border-bottom: 0;
    border-right: 0;
}

.jw-response::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right:60px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    border-bottom: 0;
    border-right: 0;
}

.jw-msg-inner {
    margin-right: 25px;
    width: 400px;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 0 3px #999;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: auto;
    max-height: 100%;
    overflow-y: auto;
}

.jw-response-inner {
    background-color: white;
    color: grey;
}

.jw-notification-inner {
    background-color:rgba(0, 0, 0, 0.6);
    color:white;
}

.jw-dialog-close {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.jw-dialog-close:hover {
    background-color: transparent;
}

#jw-close-response {
    color: #ccc;
}

#jw-close-notification {
    color: white;
}

/* misc helper classes */

.hidden {
    display: none;
}

/* make placeholder text italics */
.jw-chat-input::-webkit-input-placeholder {
    font-style: italic;
}

.jw-chat-input:-moz-placeholder {
    font-style: italic;
}

.jw-chat-input::-moz-placeholder {
    font-style: italic;
}

.jw-chat-input:-ms-input-placeholder {
    font-style: italic;
}

/* clear fix */
.jw-msg::after {
    content: "";
    clear: both;
    display: table;
}

.jw-top-margin {
    margin-top:200px;
}

.jw-full-height {
    height: 100%;
}

.jw-full-width {
    width: 100%;
}

.jw-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jw-flex-end {
    display: flex;
    justify-content: flex-end;
}

.jw-container {
    position: fixed;
    width: 100%;
    pointer-events: none;
}

/* other ask jill styles */

#jw-button-box div {
    height: 50px;
    width: 50px;
    pointer-events: auto;
}

.jw-feedback-btn {
    background-color: transparent;
    margin: 0;
    padding: 4px;
    color: grey;
    border: 1px solid grey;
    border-radius: 5px
}

/* ask jill popup interface */

#jw-popup-input-box {
    width: 80%;
    margin: 0 auto;
    pointer-events: auto;
}

#jw-popup-input-box-inner {
    height: 50px;
    width: 100%;
    background-color: #f2f2f2;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 3px 3px 3px 3px #ccca;
    transition:margin 0.3s ease-in;
}

/* bug with Handson table */

div.ht_clone_top, div.ht_clone_left, div.ht_clone_top_left_corner {
    z-index: 0 !important;
}

.hide-border {
    border: 0;
}

.hide-border:focus {
    outline: none;
}
