html {
    width: 100vw;
    height: 100%;
    overflow-x: hidden;
}

.select2-selection {
    white-space: nowrap;
}

.unbold {
    font-weight: normal;
}

.recipe-site {
    font-size: 1.6rem;
    min-height: 100%;
    background: #EEE;
}
.recipe-site .main-view {
    padding-top: 20px;
    text-align: center;
}

.recipe-site button {
    background: #DDD;
}

.recipe-site.state-recipe-home { /* activity feed */
    text-align: center;
}

.recipe-site .main-view > *:not(.has-centered) {
    text-align: left;
}

.recipe-site.logged-in .btn.login,
.recipe-site:not(.logged-in) .btn.new-recipe,
.recipe-site:not(.logged-in) a.change-password,
.recipe-site:not(.logged-in) a.logout,
.recipe-site:not(.logged-in) .recipe-edit,
.recipe-site:not(.logged-in) .recipe-delete,
.recipe-site:not(.logged-in) .comment-edit,
.recipe-site:not(.logged-in) .comment-delete {
    display: none;
}

.recipe-site-header .btn {
    background: #116792;
    color: #DDD;
    font-weight: bold;
}

.recipe-site-header {
    box-shadow: 0 0px 10px #000;
    position: relative;
    background: url("/assets/img/fork-spoon2.png") no-repeat #2C2C2C;
    background-size: contain;
}

.recipe-site-header .new-recipe,
.recipe-site-header .btn.login {
    position: relative;
    right: -4px;
    top: -4px;
}

.recipe-site-header .user-display {
    display: inline-block;
}

.recipe-site-header .user-account {
    position: absolute;
    right: 30px;
    top: 10px;
    color: #DDDDDD;
}

.recipe-site-header .user-link {
    display: inline-block;
    text-align: right;
    padding-left: 6px;
    margin-left: 4px;
    border-left: 1px solid #444;
}

.recipe-site-header .user-account a {
    opacity: 0.5;
    color: #FFFFFF;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: normal;
    text-decoration: underline;
}

.recipe-site-header .user-account a:hover {
    opacity: 1.0;
}

.recipe-site-header form.search {
    display: inline-block;
    margin-bottom: 10px;
}

.recipe-site-header a.home-link {
    color: #DDD;
    font-weight: bold;
    padding: 10px;
}

.recipe-site-header input.search-text {
    font-size: 2.4rem;
    line-height: 2.4rem;
    margin-right: -45px;
    padding-right: 45px;
}
.recipe-site-header input.search-text::-webkit-input-placeholder {
    line-height: 2.8rem;
}
.recipe-site-header .glyphicon-search {
    border: none;
    background: none;
    box-shadow: none;
    height: 45px;
    top: -3px;
    left: -5px;
    width: 45px;
    padding: 0;
    font-size: 2.2rem;
}
.recipe-site-header .glyphicon-search:hover {
    box-shadow: none;
}

.box-content {
    display: inline-block;
    padding: 20px;
    background: #FFF;
    color: #2C2C2C;
    border: 1px solid #CDCDCD;
    box-shadow: 0 0px 12px rgba(0,0,0,0.1);
    position: relative;
    margin: 15px 30px 30px 30px;
}

.state-recipe-view .recipe.box-content {
    margin-bottom: 0;
}

.recipe {
    text-align: left;
}

.recipe.box-content {
    padding: 0;
}

.recipe .recipe-sections {
    margin-top: 15px;
}

.recipe .recipe-section {
    margin-left: 20px;
    margin-right: 20px;
}

.recipe .recipe-title {
    font-size: 3.0rem;
    font-weight: bold;
    display: inline-block;
    /*margin: 0 10px 14px 0;*/

    position: relative;
    padding: 20px 80px 20px 26px;
    width: 100%;
    color: #EEE;
    background: #2c2c2c;
    box-shadow: 0 0 2px 0 #666 inset;
}

.recipe .recipe-photos {
    white-space: nowrap;
    display: block;
    overflow: hidden;
}
.recipe .recipe-photo {
    display: inline-block;
    vertical-align: top;
    box-shadow: 0 0 10px #888;
    margin-bottom: 8px;
    position: relative;
}
.recipe .recipe-photo img {
    max-height: 200px;
    max-width: 301px;
    cursor: pointer;
}
.recipe .recipe-photo .recipe-image-delete {
    position: absolute;
    right: 0;
    color: white;
    text-shadow: 1px 1px 2px #000,-1px 1px 2px #000,-1px -1px 2px #000,1px 1px 2px #000;
    opacity: 0;
    -webkit-transition: opacity 0.2s ease-in 400ms;
    -moz-transition: opacity 0.2s ease-in 400ms;
    transition: opacity 0.2s ease-in 400ms;
}
.recipe .recipe-photo:hover .recipe-image-delete {
    opacity: 1.0;
}
.recipe .recipe-photo:hover .recipe-image-delete:hover {
    text-shadow: none;
    color: black;
}

.recipe-attribution {
    display: block;
    font-size: 1.4rem;
    color: #4080A0;
    padding-left: 40px;
    font-style: italic;
}

.recipe .recipe-attribution a,
.recipe .recipe-attribution a:focus,
.recipe .recipe-attribution a:visited {
    opacity: 0.75;
    color: #76bbdd;
    font-weight: normal;
    text-decoration: underline;
}
.recipe .recipe-attribution a:hover {
    opacity: 1;
}

.recipe .recipe-attribution {
    background: #2C2C2C;
    padding-bottom: 10px;
    margin-top: -22px;
    position: relative;
}

.recipe-attribution .recipe-author-source-divider {
    box-shadow: 1px 0px 0px rgba(255,255,255,0.2);
    width: 1px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px;
}

.recipe .section-title {
    font-weight: bold;
    font-size: 1.7rem;
    color: #555555;
    display: block;
    margin-left: 20px;
    margin-bottom: 6px;
}

.recipe .recipe-section {
    margin-bottom: 8px;
}
.recipe .recipe-section:last-of-type {
    margin-bottom: 20px;
}

.recipe .recipe-section:not(:first-of-type) {
    margin-top: 16px;
}

.section-item-text {
    display: block;
    margin-bottom: 6px;
    margin-top: 6px;
}

.recipe .recipe-section.steps-section.has-title .steps {
    padding-left: 20px;
}

.recipe .recipe-section.ingreds-section .ingredients {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recipe .recipe-section.ingreds-section .section-item-text {
    white-space: nowrap;
}

.recipe .recipe-section.ingreds-section .section-item-text .ingredient-text.rendered-markdown {
    white-space: normal;
    vertical-align: top;
    max-width: calc(100% - 120px);
}

ol.steps {
    padding-left: 0;
    margin: 0 0;
}

li.step {
    margin-top: 6px;
    margin-bottom: 6px;
    list-style-type: none;
    line-height: 2.25rem;
    min-height: 2.25rem;
    position: relative;
}

li.step .step-num {
    font-size: 1.8rem;
    color: #555555;
    position: absolute;
    top: 0;
    bottom: 0;
    text-align: right;
    width: 30px;
}

li.step .step-text {
    display: block;
    margin-left: 40px;
}

.ingredient-amt {
    text-align: right;
    margin-right: 4px;
    width: 75px;
    display: inline-block;
}

.ingredient-text {
    text-align: left;
}

.fraction {
    font-style: italic;
    position: relative;
}

.fraction sup {
    font-style: normal;
    font-size: 70%;
    top: -0.45em;
    right: -0.1em;
}

.fraction sub {
    font-style: normal;
    font-size: 70%;
    bottom: -0.1em;
}

.hidden-space {
    font-size: 0;
    line-height: 0;
}

.search-results {
    background: #FFF;
    margin: 15px 0 30px 0;
}

.search-results .results-header {
    display: block;
    text-align: center;
    border-bottom: 2px solid #EEE;
    color: #2C2C2C;
    padding: 10px;
}
.search-results .results-header .title {
    display: block;
    margin: 2px;
    font-size: 2.5rem;
    font-weight: bold;
}
.search-results .results-header .hit-count-text {
    font-style: italic;
    color: #AAA;
}

.search-hit {
    font-size: 1.9rem;
    color: #2C2C2C;
    margin: 6px 0;
    padding: 10px;
}

.search-hit:not(:last-of-type) {
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.search-hit .title {
    padding: 10px;
    cursor: pointer;
}

.search-hit .title:hover {
    text-decoration: underline;
}

.has-centered {
    text-align: center;
}
.has-centered > .is-centered:not(.has-centered) {
    display: inline-block;
    text-align: left;
}

.edit-recipe {
    background: #EEE;
    font-size: 1.6rem;
    color: #2C2C2C;
    display: inline-block;
    width: 100%;
    margin-bottom: 90px;
}

.edit-recipe .field-recipe-source + .select2-container {
    width: 132px !important;
}
.recipe-site .main-view > .edit-recipe {
    text-align: center;
}

.edit-recipe .recipe-section .section-header {
    background: #ABCDEF;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-left: 10px;
    min-height: 46px;
}

.edit-recipe .recipe-section .section-header label {
    margin: 0;
}

.edit-recipe .recipe-section .section-header .field-label {
    width: auto;
    vertical-align: middle;
}

.edit-recipe .edit-recipe-fields {
    width: 730px; /* match the recipe width */
    text-align: center;
}

.edit-recipe .recipe-section .btn.glyphicon-trash:not(:hover) {
    background: none;
    box-shadow: none;
}

.edit-recipe .edit-recipe-fields .basic-info-fields {
    display: inline-block;
}

.edit-recipe .edit-recipe-fields > * {
    text-align: left;
}
.edit-recipe .edit-recipe-fields

.edit-recipe .button-container {
    display: inline-block;
    vertical-align: top;
}

.edit-recipe .button-container button {
    width: 75px;
    margin: 20px 10px;
}

.icon-button {
    cursor: pointer;
    padding: 6px;
}
.icon-button:hover,
.edit-recipe .icon-button.add-section-item {
    background-color: #DDD;
    box-shadow: 0 0 1px #DDD, 0 0 4px #000;
    -moz-box-shadow: 0 0 1px #DDD, 0 0 2px #000;
    -webkit-box-shadow: 0 0 1px #DDD inset, 0 0 2px #000;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    color: black;
    text-decoration: none;
}

.icon-button:focus {
    text-decoration: none;
    color: black;
}
a.home-icon.icon-button:not(:hover):focus,
.header-menu .icon-button:not(:hover):focus {
    color: #AAA;
}

.edit-recipe .add-section-item:hover {
    box-shadow: 0 0 3px 1px #19393B;
}

.recipe-actions {
    position: absolute;
    top: 28px;
    right: 20px;
}

.recipe-actions-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #fff;
}

.recipe-actions-menu .icon-button {
    font-size: 2.2rem;
}

.recipe-actions .icon-button {
    display: block;
    margin-bottom: 4px;
}

.edit-recipe .edit-recipe-fields #recipe-title,
.edit-recipe .edit-recipe-fields #recipe-source {
    width: 450px;
    margin: 8px 0;
}

.edit-recipe .edit-recipe-fields .section-title {
    width: 349px;
    margin: 8px 0;
    vertical-align: middle;
}

.edit-recipe .recipe-section .section-header .section-title-field {
    margin-left: 25px;
    margin-bottom: 0;
}

.edit-recipe .edit-recipe-fields .recipe-section {
    border-left: 5px solid #808080;
    padding: 0 0 15px 0;
    margin: 30px 0;
    position: relative;
}
.edit-recipe .edit-recipe-fields .recipe-section:first-of-type {
    margin-top: 20px;
}

.edit-recipe .edit-recipe-fields .recipe-section .delete-section {
    position: absolute;
    top: 9px;
    right: 10px;
}

.edit-recipe .edit-recipe-fields .recipe-section .delete-section,
.edit-recipe .edit-recipe-fields .recipe-section .delete-section-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.edit-recipe .recipe-section-item .icon-button {
    position: absolute;
    right: 10px;
    top: 2px;
}

.edit-recipe input[type="text"] {
    height: 32px; /* explicit height to correct in IE */
}
.edit-recipe input[type="text"]::-webkit-input-placeholder {
    line-height: 2.4rem;
}

.edit-recipe .recipe-section-item textarea,
.edit-recipe .recipe-section-item input[type="text"] {
    vertical-align: middle;
    width: calc(100% - 50px);
    width: -webkit-calc(100% - 50px);
    width: -moz-calc(100% - 50px);
}

.edit-recipe .ingreds-section-items .recipe-section-item textarea {
    white-space: nowrap;
    overflow: hidden;
    resize: none;
    height: 32px;
}

.edit-recipe ol.section-items {
    padding-left: 52px;
    margin: 10px 0;
    list-style-type: none;
}

.edit-recipe ol.section-items.steps-section-items {
    list-style-type: decimal;
}

.edit-recipe ol.section-items li.recipe-section-item {
    margin: 8px 0;
    position: relative;
}

.edit-recipe ol.section-items li.recipe-section-item.new-item {
    list-style: none;
}

.edit-recipe button.add-section-item {
    width: 150px;
    left: calc(50% - 150px/2);
    left: -webkit-calc(50% - 150px/2);
    left: -moz-calc(50% - 150px/2);
    position: relative;
}

.edit-recipe .footer {
    display: block;
    background: rgba(44, 44, 44, 0.9);
    position: fixed;
    width: 100%;
    bottom: 0;
}

.edit-recipe .labeled-field {
    display: inline-block;
    vertical-align: top;
    margin-left: -40px; /* shift a bit to the left to make it more visually pleasing with centering the input field rather than the label */
}

.edit-recipe .field-label {
    width: 60px;
    display: inline-block;
    font-weight: bold;
}
.edit-recipe label .select2,
.edit-recipe label input {
    font-weight: normal;
    margin: 8px 0;
    height: 30px;
}

.edit-recipe label .select2 .select2-selection {
    height: 30px;
}
.edit-recipe label .select2 .select2-selection .select2-selection__rendered {
    line-height: 30px;
}

.edit-recipe .field-label-optional {
    font-weight: normal;
    font-style: italic;
}

.edit-recipe .sections-label,
.edit-recipe .basic-info-label,
.edit-recipe .recipe-preview-label {
    text-align: center;
    display: block;
    font-size: 2.0rem;
}

.edit-recipe .sections-label {
    position: relative;
    margin-top: 30px;
}
.edit-recipe .btn.add-section {
    margin-bottom: 30px;
}

.edit-recipe .reecipe-section .icon-button {
    top: 3px;
}

.recipe-preview {
    text-align: center;
}

.recipe-preview .recipe-actions,
.recipe-preview .recipe-actions-menu {
    display: none;
}

.rendered-markdown > p {
    margin: 0;
}
.rendered-markdown.single-line {
    display: inline-block;
}

form.create-user label,
form.change-password label {
    display: block;
}
form.create-user label > span,
form.change-password label > span {
    text-align: left;
    display: inline-block;
}

form.create-user label > span {
    width: 150px;
}
form.change-password label > span {
    width: 188px;
}

.modal-dialog .confirm-prompt,
.modal-dialog .message {
    margin: 30px;
    display: block;
    font-size: 2.0rem;
    text-align: left;
}

.forgot-password-dialog .modal-dialog .message,
.resend-verify-dialog .modal-dialog .message,
.reset-password-dialog .modal-dialog .message {
    font-size: 1.8rem;
    margin-bottom: 15px;
}


@media print {
    .recipe-site .recipe-site-header,
    .icon-button,
    .btn,
    .new-comment,
    .comments-content.no-comments .comments-header,
    .modal,
    .modal-backdrop {
        display: none !important;
    }

    .box-content {
        border: none !important;
        margin: 0 !important;
    }

    a[href]:after { /* get rid of link urls in print */
        content: none !important;
    }
}

.modal-content .field-set {
    margin: 30px 30px 15px 30px;
}

.modal-content .message ~ .field-set {
    margin: 15px 30px;
}

.modal-content .field-set label {
    display: block;
}

label input[type="text"] {
    font-weight: normal;
}

.login-dialog .field-set a {
    display: block;
    text-align: right;
    margin: 5px 0;
    font-size: 1.3rem;
}

.login-dialog .modal-dialog {
    max-width: 400px;
}

.resend-verify-dialog .modal-dialog,
.forgot-password-dialog .modal-dialog,
.reset-password-dialog .modal-dialog {
    max-width: 450px;
}

.login-dialog .modal-dialog,
.resend-verify-dialog .modal-dialog,
.forgot-password-dialog .modal-dialog,
.reset-password-dialog .modal-dialog {
    margin: 30px auto;
}

.new-comment {
    text-align: center;
    position: relative; /*spinner*/
}

.new-comment textarea {
    resize: none;
    width: 100%;
    padding: 8px;
    min-height: 65px;
}

.new-comment .btn {
    width: 70px;
    margin-bottom: 4px;
}

.new-comment textarea:disabled {
    opacity: 0.3;
}
.new-comment textarea:disabled::-webkit-input-placeholder {
    color: black;
}
.new-comment textarea:disabled::-moz-placeholder {
    color: black;
}
.new-comment textarea:disabled:-moz-placeholder {
    color: black;
}
.new-comment textarea:disabled:-ms-input-placeholder {
    color: black;
}
.new-comment textarea:disabled::input-placeholder {
    color: black;
}

/* TODO
.new-comment textarea:focus {
    min-height: 150px;
}
*/

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-divider {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    opacity: 0.4;
    margin: 10px 20px 10px 20px;
}
.comment-divider:last-of-type {
    display: none;
}

.comment .timestamp {
    position: relative;
    left: -20px;
    top: -10px;
}

.timestamp {
    display: inline-block;
    font-family: "Verdana";
    font-size: 1.3rem;
    color: rgb(85,85,85);
    white-space: nowrap;
}
.timestamp-time {
    display: inline-block;
    width: 65px;
    text-align: right;
}

.comment-delete {
    opacity: 0.3;
    color: rgb(0,45,75);
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 5px;
}
.comment-delete:hover {
    opacity: 1.0;
}

.comment {
    position: relative;
    padding: 38px 25px 10px 35px;
    border-left: 5px solid #008860;
    margin-left: -20px;
}

.comments-content .comments-header {
    font-size: 2.3rem;
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

.comments-content:not(.no-comments) .new-comment {
    margin-top: 30px;
}

.user {
    font-size: 1.6rem;
    font-weight: bold;
    color: rgb(85,85,85);
}

.comment .user {
    font-family: "Verdana";
    position: absolute;
    top: 5px;
    left: 15px;
}

.activity-feed {
    margin-top: 20px;
}
.activity-feed-content {
    text-align: left;
}
.activity-feed .spinner {
    background: none;
}
.activity-feed .spinner img.no-animate {
    width: 250px;
    margin-top: 70px;
}
.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feed-item .timestamp {
    margin-right: 15px;
}

.header-menu,
.home-icon {
    color: #AAA;
    font-size: 2.8rem;
}

.header-menu .dropdown-menu,
.recipe-actions-menu .dropdown-menu {
    right: 0;
    left: auto;
}

.recipe-site.logged-in .header-menu .login-link,
.recipe-site:not(.logged-in) .header-menu .new-recipe-link,
.recipe-site:not(.logged-in) .header-menu .divider,
.recipe-site:not(.logged-in) .header-menu .change-password-link,
.recipe-site:not(.logged-in) .header-menu .logout-link {
    display: none;
}

.glyphicon-trash:before {
    position: relative;
    left: -1px;
}
.glyphicon-plus:before {
    position: relative;
    left: 1px;
}
.glyphicon-print:before {
    position: relative;
    top: 1px;
}

.state-recipe-view .recipe .recipe-actions-menu {
    display: inline-block;
}
.state-recipe-view .recipe .recipe-actions {
    display: none;
}

.preview-image img {
    max-height: 100px;
    max-width: 150px;
}

input[type="file"].files {
    display: none;
}

.photo-upload-content {
    padding: 20px;
}

.photo-upload-content .images {
    margin-bottom: 20px;
}

.photo-upload-content .images .preview-image {
    display: inline-block;
    box-shadow: 0 0 8px -2px #444;
    margin-left: 10px;
    margin-top: 10px;
}

.photo-upload-content .add-file-label {
    cursor: pointer;
    margin-left: 10px;
}
.photo-upload-content .add-file-label:hover {
    text-decoration: underline;
}

.lightbox-dialog.modal .modal-dialog {
    height: 100%;
    width: 100%;
    margin: 0;
}
.lightbox-dialog.modal .modal-dialog .modal-content {
    height: 100%;
    background: none;
    box-shadow: none;
    border: none;
}
.lightbox-dialog.modal .modal-dialog .modal-content .lightbox {
    height: 100%;
    line-height: 100vh; /* vertically center */
    outline: 0;
    background-color: rgba(0,0,0,0.7);
}
.lightbox .lightbox-content {
    position: relative;
    line-height: normal;
}
.lightbox .lightbox-image {
    max-width: -webkit-calc(100vw - 75px);
    max-width: -moz-calc(100vw - 75px);
    max-width: calc(100vw - 75px);
    max-height: -webkit-calc(100vh - 75px);
    max-height: -moz-calc(100vh - 75px);
    max-height: calc(100vh - 75px);
    box-shadow: 0 0 1px 1px rgba(255,255,255,0.1),0 0 2px 1px rgba(0,0,0,1.0);
}

.lightbox .spinner {
    background: none;
}
.lightbox .spinner img {
    width: 350px;
}

.spinner.vertCenteredOuter > img:not(.vertCenteredInner) {
    display: none;
}

.lightbox-dialog.modal .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
}

.lightbox .image-info {
    position: absolute;
    right: 20px;
    top: 66px;
    display: inline-block;
    line-height: normal;
    text-align: right;
    line-height: 2.0rem;
}
.lightbox .image-info .uploader {
    color: #888;
}
.lightbox .image-info .username {
    color: #bbb;
}
.lightbox .image-info .timestamp {
    display: block;
    color: #bbb;
}
.lightbox .below-image-content {
    display: inline-block;
    position: absolute;
    right: 0;
    bottom: -25px;
    line-height: normal;
}
.lightbox .image-actions {
    display: inline-block;
    position: absolute;
    top: 22px;
    right: 90px;
    line-height: normal;
    text-transform: uppercase;
    font-family: "Verdana";
    font-size: 1.3rem;
}
.lightbox .image-actions a {
    color: #bbb;
    -webkit-transition: color 0.15s;
    -moz-transition: color 0.15s;
    -ms-transition: color 0.15s;
    transition: color 0.15s;
}
.lightbox .image-actions a:hover,
.lightbox .image-actions a:focus {
    color: #eee;
    text-decoration: none;
    outline: 0;
}

.lightbox .close-x {
    fill: none;
    stroke: #aaa;
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
}
.lightbox .close-x:hover {
    stroke: #ddd;
}

.blur {
    filter:url(#blurFilter);
    /* ^ for Firefox and IE */
    -webkit-filter: blur(4px);
    /* ^ Webkit browsers */
    filter: blur(4px);
}

@-webkit-keyframes rotateBlade {
    0%   { -webkit-transform: rotate(135deg); }
    90% { -webkit-transform: rotate(1215deg); }
    100% { -webkit-transform: rotate(1215deg); }
}
@-moz-keyframes rotateBlade {
    0%   { transform: rotate(135deg); }
    90% { transform: rotate(1215deg); }
    100% { transform: rotate(1215deg); }
}
@-ms-keyframes rotateBlade {
    0%   { transform: rotate(135deg); }
    90% { transform: rotate(1215deg); }
    100% { transform: rotate(1215deg); }
}
@keyframes rotateBlade {
    0%   { transform: rotate(135deg); }
    90% { transform: rotate(1215deg); }
    100% { transform: rotate(1215deg); }
}

@-webkit-keyframes spinnerFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes spinnerFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@-ms-keyframes spinnerFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes spinnerFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.spinner {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background-color: rgba(255,255,255,0.85);
    z-index: 999;
    -webkit-animation: spinnerFade 1s linear;
    -moz-animation: spinnerFade 1s linear;
    -ms-animation: spinnerFade 1s linear;
    animation: spinnerFade 1s linear;
}
.spinner img:not(.no-animate) {
    -webkit-animation: rotateBlade 1.5s infinite ease;
    -moz-animation: rotateBlade 1.5s infinite ease;
    -ms-animation: rotateBlade 1.5s infinite ease;
    animation: rotateBlade 1.5s infinite ease;
}
.spinner-text {
    display: block;
    font-weight: bold;
    font-style: italic;
    font-size: 1.7rem;
    margin-top: 8px;
}

.spinner img.spinner-medium {
    width: 100px;
}

.comments-content.box-content {
    padding: 20px 0;
}
.comments-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}
.comments-content .spinner img {
    width: 200px;
    margin-top: -50px;
}

.page-spinner:not(.ng-hide) ~ .main-view {
    overflow: hidden;
}

.main-view.ng-leave.ng-leave-active,
.spinner.ng-hide {
    display: none;
}

.edit-tags-dialog .modal-dialog {
    width: 680px;
}
.tags-edit .tags-section + .tags-section {
    margin-left: 25px;
}
.edit-tags-dialog .modal-body {
    text-align: center;
    height: 330px;
}
.tags-edit .section-title {
    font-weight: bold;
}
.tags-edit .section-title,
.tags-edit .select2-container {
    display: block;
}

.tags-edit .tags-section {
    display: inline-block;
    text-align: left;
    vertical-align: top;
    height: 300px;
}

.tags-edit .select2-container .select2-search--inline {
    float: none;
    display: block;
}

.tags-edit .select2-container .select2-search--inline .select2-search__field {
    display: block;
    width: 100% !important;
}

.tags-edit .tags-section .select2-results__options {
    min-height: 230px;
    max-height: 230px;
}

.tags-edit .select2-container:not(.select2) {
    position: static !important;
}
.tags-edit .select2-container:not(.select2) .select2-dropdown {
    position: static;
}

.tags-edit .select2-container:not(.select2-container--focus) ~ .select2-container .select2-dropdown:not(:hover) .select2-results .select2-results__option--highlighted {
    background: none;
    color: black;
}

.tags-edit .select2-container {
    width: 300px !important;
}

.tags-edit .select2-selection__choice {
    display: none;
}


@media all and (min-width: 1385px) {
    .edit-recipe .edit-recipe-fields {
        box-shadow: 1px 0px 0px rgba(0,0,0,0.2);
        padding-right: 20px;
        margin-right: 20px;
    }
    .recipe-preview,
    .edit-recipe .edit-recipe-fields {
        display: inline-block;
        vertical-align: top;
    }
}

@media all and (max-width: 1384px) {
    .edit-recipe .edit-recipe-fields {
        box-shadow: 0px 1px 0px rgba(0,0,0,0.2);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .recipe-preview,
    .edit-recipe .edit-recipe-fields {
        display: block;
    }
}

@media screen and (max-width: 810px) {
    .search-results {
        display: inline-block;
        width: 100%;
        margin: 0 0 10px 0;
    }
}

@media screen and (min-width: 811px) {
    .search-results {
        width: 750px;
        display: inline-block;
        border: 1px solid #CDCDCD;
        box-shadow: 0 0px 12px rgba(0, 0, 0, 0.1);
    }
}

@media screen and (max-width: 710px) {
    .state-recipe-view .recipe,
    .state-recipe-view .comments-content {
        margin-left: 0;
        margin-right: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
        width: 100%;
    }
    .state-recipe-view .main-view > .has-centered > .is-centered {
        display: block;
    }
    /*
    .state-recipe-view .recipe .recipe-actions-menu {
        display: inline-block;
    }
    .state-recipe-view .recipe .recipe-actions {
        display: none;
    }
    */
    .state-recipe-view .recipe .recipe-actions-menu {
        right: 34px;
    }
    .state-recipe-view .recipe .recipe-title {
        margin-right: 44px;
    }
}

@media screen and (min-width: 711px) {
    .recipe, .comments-content {
        width: 650px;
    }
    /*
    .state-recipe-view .recipe .recipe-actions-menu {
        display: none;
    }
    .state-recipe-view .recipe .recipe-actions {
        display: block;
    }
    */
    .state-recipe-view .recipe .recipe-title {
        margin-right: 40px;
    }
}

@media screen and (max-width: 835px) {
    .recipe-site-header .header-menu {
        display: inline-block;
        margin: 0 10px;
    }
    .recipe-site-header .user-account {
        display: none;
    }
    .recipe-site-header input.search-text {
        width: -webkit-calc(100% - 5px);
        width: -moz-calc(100% - 5px);
        width: calc(100% - 5px);
    }
    .recipe-site-header form.search {
        width: -webkit-calc(100% - 65px);
        width: -moz-calc(100% - 65px);
        width: calc(100% - 65px);
        margin-bottom: 5px;
    }

    .recipe-site-header .header-action-content {
        display: inline-block;
        width: -webkit-calc(100% - 85px);
        width: -moz-calc(100% - 85px);
        width: calc(100% - 85px);
        vertical-align: top;
    }
    .recipe-site-header a.home-link {
        display: none;
    }
    .recipe-site-header .btn.new-recipe,
    .recipe-site-header .btn.login {
        display: none;
    }
    .recipe-site-header a.home-icon {
        vertical-align: top;
        margin: 0 10px;
    }
    .recipe-site-header .header-menu .icon-button {
        vertical-align: middle;
    }
    .recipe-site-header {
        padding: 20px 0 10px 0;
    }
}

@media screen and (min-width: 836px) {
    .recipe-site-header .header-menu {
        display: none;
    }
    .recipe-site-header .user-account {
        display: inline-block;
    }
    .recipe-site-header input.search-text {
        width: 600px;
    }
    .recipe-site-header .header-action-content {
        text-align: center;
        display: inline-block;
    }
    .recipe-site-header a.home-icon {
        display: none;
    }
    .recipe-site-header {
        padding: 40px 0 10px 0;
        text-align: center;
    }
}

@media screen and (min-width: 885px) {
    .recipe-site-header a.home-link {
        margin-left: 42px;
    }
    .recipe-site:not(.logged-in) a.home-link {
        margin-left: 2px;
    }
}

@media screen and (max-width: 420px) {
    .field-label input[type="text"],
    .field-label input[type="password"] {
        width: 100%;
    }
}
@media screen and (min-width: 421px) {
    .login-dialog .modal-dialog .modal-content .field-set label {
        text-align: right;
        white-space: nowrap;
    }
    .login-dialog .modal-dialog .field-label input[type="text"],
    .login-dialog .modal-dialog .field-label input[type="password"] {
        width: 225px;
    }
}

@media screen and (max-width: 479px) {
    .resend-verify-dialog .modal-dialog .field-label input[type="text"],
    .forgot-password-dialog .modal-dialog .field-label input[type="text"],
    .reset-password-dialog .modal-dialog .field-label input[type="text"],
    .reset-password-dialog .modal-dialog .field-label input[type="password"] {
        width: 100%;
    }
}
@media screen and (min-width: 480px) {
    .reset-password-dialog .modal-content .field-set label {
        text-align: right;
    }
    .forgot-password-dialog .modal-content .field-set label,
    .resend-verify-dialog .modal-content .field-set label {
        text-align: center;
    }
    .resend-verify-dialog .modal-dialog .field-label input[type="text"],
    .forgot-password-dialog .modal-dialog .field-label input[type="text"],
    .reset-password-dialog .modal-dialog .field-label input[type="text"],
    .reset-password-dialog .modal-dialog .field-label input[type="password"] {
        width: 225px;
    }
}


@media	only screen and (-webkit-min-device-pixel-ratio: 1.3),
only screen and (-o-min-device-pixel-ratio: 13/10),
only screen and (min-resolution: 120dpi)
{
    /* Your code to swap higher DPI images */
}