
@font-face {
  font-family: Norwester;
  src: url('/assets/fonts/norwester.ttf');
}

:focus {
  outline: none;
}

.login-area{
	text-align: center;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 3px;
}

.login-area md-toolbar {
  border-radius: 3px 3px 0px 0px;
}

.login-area md-content {
  border-radius: 0px 0px 3px 3px;
}

.login-area h2 {
  margin: auto auto;
  font-size: 36px;
  line-height:42px;
}
@media (min-width:801px) {
  .login-area {
    width: 450px;
    height: auto;
  }
  .login-area h2 {
    margin: 18px auto;
    font-size: 45px;
    line-height:64px;
  }
}
@media (min-height:0px) and (max-height:420px) {
  .login-area h2 {
    font-size: 28px;
    line-height:28px;
  }
}

section.login-area md-content.login-body{
  background-color: #ffffff;
}

.remove-saving-throw {
  position: relative;
  height: 24px;
  width: 24px;
  line-height: 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  transition: background 0.15s linear;
  display: inline-block;
}

.remove-saving-throw md-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.7);
  color: white;
  fill: white;
}

.remove-saving-throw:hover, .remove-saving-throw:focus {
  background: rgba(0, 0, 0, 0.2);
}

md-content.creature-clipboard {
  overflow-y: auto;
  overflow-x: hidden;
}

md-content.creature-clipboard .container {
  display: inline-block;
  position: relative;
  width: calc(100% - 16px);
  top: 0;
  overflow-y: auto;
}

md-content.creature-clipboard .action-bar {
  position: absolute;
  bottom: 0px;
}

md-content.creature-clipboard div.mini-statblock-item {
  position: relative;
}

md-content.creature-clipboard .remove-mini-statblock {
  position: absolute;
  right: -5px;
  top: 0px;
  width: 16px;
  height: 16px;
}

.md-icon-button div.counter {
  position: absolute;
  height: 16px;
  width: 16px;
  line-height: 12px;
  font-size: 12px;
  text-align: center;
  background: rgb(255,110,64);
  border-radius: 50%;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  top: 50%;
  left: 50%;
  color: white;
  padding-top: 2px;
  padding-left: 1px;
}

.fallingColumns {
  position: relative;
  -webkit-column-width: 341.375px;
  -moz-column-width: 341.375px;
  column-width: 341.375px;
  -webkit-column-gap: 0px;
  -moz-column-gap: 0px;
  column-gap: 0px;
  -webkit-column-fill: balance;
  -moz-column-fill: balance;
  column-fill: balance;
  -webkit-column-fill: auto;
  -moz-column-fill: auto;
  column-fill: auto;
  padding: 3px 3px;
}

.fallingColumnsItem {
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
}

.stat-block-overlay {
  z-index: 1;
  opacity: 0;
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  max-width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-color: rgba(0,0,0,0.0);
  transition: background-color 0.25s ease-out;
}

.stat-block-overlay-mobile,
.stat-block-overlay:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.25);
}

.stat-block-overlay-mobile section.side-menu,
.stat-block-overlay:hover section.side-menu {
  background-color: rgba(0,0,0,0.70) !important;
}

.stat-block-overlay section.side-menu {
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  width: 56px;
  height: 100%;
  background-color: rgba(0,0,0,0.0);
  transition: background-color 0.25s ease-out;
}
.stat-block-overlay section.side-menu button {
  min-width: 100%;
  padding: 6px 6px;
  margin: 0px 0px;
}

.stat-block-overlay section.side-menu button md-icon {
  transition: 0.10s ease-out all;
}

.stat-block-overlay section.side-menu button md-icon:not(.md-accent) {
  color: #fff;
}

.stat-block-overlay section.side-menu button md-icon.disabled {
  color: rgba(255,255,255,0.26);
}

.stat-block-overlay section.secondary-menu {
  position: absolute;
  right: 56px;
  top: 0px;
  bottom: 0px;
  width: 200px;
  max-width: calc(100% - 56px);
  height: 100%;
  background-color: rgba(0,0,0,0.0);
  transition: 0.10s ease-out all;
}
.stat-block-overlay section.secondary-menu.ng-enter {
  width: 0px;
  opacity: 0;
}
.stat-block-overlay section.secondary-menu.ng-enter-active {
  width: 200px;
  opacity: 1.0;
}
.stat-block-overlay section.secondary-menu.ng-leave-active {
  width: 0px;
  opacity: 0;
}

.stat-block-overlay section.secondary-menu button {
  min-width: 100%;
  padding: 6px 6px;
  margin: 0px 0px;
  border-radius: 0px;
  color: #fff;
  text-align: right;
  transition: background-color 0.25s ease-out;
  background-color: rgba(0,0,0,0.50);
}
.stat-block-overlay section.secondary-menu button:hover {
  background-color: rgba(0,0,0,0.70);
}

.stat-block-overlay section.secondary-menu button md-icon {
  color: #fff;
  margin-left: 4px;
}

.stat-block-overlay section.side-menu button.expand {
  height: 100%;
  padding: 0px;
}

.stat-block-overlay section.side-menu button.expand md-icon {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

.stat-block-overlay section.side-menu.mini-menu {
  width: auto;
}

.stat-block-overlay section.side-menu.mini-menu button {
  min-width: 0% !important;
  width: 56px;
  height: 100%;
}

md-toolbar.inner-header {
  background-color: #fafafa;
}

md-toolbar.inner-header h2 {
  margin-left: 8px;
  max-width: calc(100% - 125px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

md-toolbar.inner-header span {
  color: #212121;
}

md-toolbar.inner-header div.controls {
  width: 100%;
  max-width: 1200px;
  position: relative;
}

md-toolbar.inner-header div.right-side-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
}
md-toolbar.inner-header div.right-side-controls button {
  margin-right: 2px;
  margin-left: 2px;
}

md-toolbar.inner-header button.main-button {
  position: fixed;
  right: 21px;
  bottom: 14px;
}

div.body-area {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  top: 128px;
}

div.body-area md-content.background{
  height:100%;
}

div.body-area section.sidenav-wrapper {
  height:100%;
}

div.body-area section.content-section {
  width: 100%;
  max-width: 1200px;
}

div.body-area .content-section {
  background-color: #ffffff;
}

div.body-area md-card {
  width: 100%;
  max-width: 1200px;
  display: inline-block;
}

div.body-area md-card span.md-body-1 {
  max-height: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}

div.body-area md-sidenav.bestiary-sidenav.md-locked-open {
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: absolute;
  left: 0px;
}
@media (min-width:801px) {
  div.body-area md-sidenav.bestiary-sidenav.md-locked-open {
    width: 600px;
    left: 100%;
    position: static;
  }
}

div.body-area.no-inner-header {
  top: 64px;
}

div.body-area .create-creature-area {
  min-width: 100%;
  width: 100%;
}
@media (min-width:960px) {
  div.body-area .create-creature-area {
    width: 60%;
    min-width: 60%;
  }
}

.sidenav-wrapper md-backdrop.md-sidenav-backdrop {
  display: none;
}

md-sidenav.edit-sidenav md-input-container {
  margin-bottom: 0px;
  margin-top: 18px;
}

button.create-continue {
  margin-left: 0px;
  margin-top: 15px;
}

.stats-form section.subsection {
  background-color: #f7f7f7;
  border-radius: 3px;
  position: relative !important;
  padding-bottom: 10px;
}

.stats-form section.subsection div.controls {
  height: 50px;
  margin-top: 23px;
}
@media (min-width: 500px) {
  .stats-form section.subsection div.controls {
    margin-top: 0px;
  }
}

.stats-form section.subsection div.label {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: 14px;
  opacity: 0.64;
}

.stats-form section.subsection md-input-container.sub-number {
  position: absolute;
  top: -2px;
  right: 7px;
  width: 25%;
  font-size: 14px;
}

.stats-form section.subsection md-checkbox {
  margin: 18px 10px 0px 10px;
  /*background-color: rgba(0,0,0,0.075);*/
  border-radius: 4px;
  height: 40px;
  padding: 10px 10px;
  transition: background-color 0.4s ease-out;
}

.stats-form section.subsection md-checkbox:hover {
  background-color: rgba(0,0,0,0.075);
}

.stats-form section.subsection md-checkbox div.md-container {
  left: 10px;
}

.stats-form section.subsection button.remove-saving-throw {
  margin: 22px 8px 0px 6px;
}

.stats-form section.subsection div.saving-throw-row {
  width: 100%;
  height: 60px;
}

.stats-form section.subsection div.saving-throw-row div.move-controls {
  padding-top: 12px;
}

.stats-form section.subsection div.saving-throw-row div.move-controls button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0px;
}

.stats-form section.subsection div.saving-throw-row div.move-controls md-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

div.calculate-challenge-rating-row {
  height: 50px;
  margin-bottom: 5px;
}

div.challenge-rating-row {
  width: 100%;
}

button.continue-button {
  float: right;
}

.defense-form md-chips-wrap {
  margin-top: 20px;
}

.header button.user-dropdown {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0px;
  min-width: 30px;
}

.header button.user-dropdown md-icon {
  margin-top: -3px;
}

.header .logo-button {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.header .logo {
  margin-left: 20px;
  margin-right: 20px;
  font-family: Norwester, Sans-Serif;
  color: #fff;
}

.header .logo-icon {
  color: #fff;
  width: 36px;
  height: 36px;
  margin-top: -4px;
  margin-left: 0px;
  transition: margin-top .75s ease-out;
}

.header .header-button {
  margin-left: 25px;
  margin-right: 25px;
  font-size: 20px;
}

.header .menu-button {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}

div.no-creatures-area {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/* COLORS */
/*https://www.materialpalette.com/blue-grey/deep-orange*/
.bg-color-primary-dark {
  background-color: #455A64;
}
.bg-color-primary {
  background-color: #607D8B;
}
.bg-color-primary-light {
  background-color: #CFD8DC;
}
.bg-color-accent {
  background-color: #FF5722;
}
.bg-color-content {
  background-color: #FFFFFF;
}
.text-color-primary {
  color: #FFFFFF;
}
.text-color-secondary {
  color: #727272;
}
.text-color-content {
  color: #212121;
}
.bg-color-divider {
  background-color: #B6B6B6;
}

@media (min-width: 0) and (max-width: 959px) and (orientation: portrait) {
  div.body-area {
    top: 112px;
  }
  div.body-area.no-inner-header {
    top: 56px;
  }
}
@media (min-width: 0) and (max-width: 959px) and (orientation: landscape) {
  div.body-area {
    top: 96px;
  }
  div.body-area.no-inner-header {
    top: 48px;
  }
}

md-dialog.generate-attack-dialog form {
  /*width: 600px;
  max-width: 100%;*/
}

md-dialog.generate-attack-dialog md-checkbox {
  margin: 4px 4px 0px 1px;
}
@media (min-width: 460px) {
  md-dialog.generate-attack-dialog md-checkbox {
    margin: 8px 4px 0px 1px;
  }
}

md-dialog.generate-attack-dialog md-checkbox span {
    font-size: 12px;
}
@media (min-width: 350px) {
  md-dialog.generate-attack-dialog md-checkbox span {
    font-size: 14px;
  }
}
@media (min-width: 390px) {
  md-dialog.generate-attack-dialog md-checkbox span {
    font-size: 16px;
  }
}

div.save-image-stat-block {
  display: block;
}

.and-filter {
  background-color: rgba(207,216,220,0.20);
}

md-dialog-content.generate-spellcasting-content md-input-container {
  width: 450px;
}

md-dialog-content.generate-spellcasting-content div.sub-area {
  position: relative;
  background-color: #f7f7f7;
  margin: 8px;
  padding: 0px;
}

md-dialog-content.generate-spellcasting-content div.sub-area span.label {
  position: absolute;
  top: 0px;
  left: 6px;
  transform: matrix(0.75,0,0,0.75,0,6);
  transform-origin: 0px 0px;
  color: rgba(0,0,0,0.541176);
  font-family: Roboto, 'Helvetica Neue', sans-serif;
}

md-dialog-content.generate-spellcasting-content md-input-container.per-day {
  width: 0px;
}

md-dialog-content.generate-spellcasting-content div.spell-row {
  margin-bottom: 22px;
}

md-dialog-content.generate-spellcasting-content div.spell-row:first-child {
  margin-top: -10px;
}

md-dialog.export-modal {
  width: 500px;
}

md-dialog.export-modal section.row {
  width: 100%;
}

md-dialog.export-modal md-input-container {
  width: 100%;
}

md-dialog.export-modal textarea {
  max-height: 400px;
}

md-dialog.share-modal {
  width: 600px;
}

md-dialog.share-modal section.row {
  width: 100%;
}

md-dialog.share-modal md-input-container {
  width: 100%;
}

md-dialog.share-modal textarea {
  max-height: 400px;
}

md-dialog.share-modal md-dialog-content {
  padding: 40px 10px 28px 10px;
}

md-dialog.share-modal md-dialog-content {
  padding: 40px 10px 28px 10px;
}

md-dialog.share-modal md-dialog-content div[layout="column"] {
  position: relative;
  margin: 0 auto;
}

div.body-area .published-bestiary-details h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  margin: 32px 0 18px 0;
}

div.body-area .published-bestiary-details span.caption {
  font-size: 12px;
  margin-left: 8px;
  color: #727272;
}

md-list-item.comment div.md-list-item-text span.published-date {
  float: right;
  margin-right: 2px;
}

md-list-item.comment div.md-list-item-text {
  margin-top: 14px;
  margin-bottom: 14px;
}

md-list-item.comment div.md-list-item-text h4 {
  white-space: pre-wrap;
}

md-list-item.comment span.controls button {
  height: 24px;
  width: 24px;
  min-height: 24px;
  line-height: 16px;
  padding: 0px;
}

md-list-item.comment span.controls md-icon {
  font-size: 16px;
  line-height: 1.35;
}

div.body-area .published-bestiary-details md-icon.comments-icon {
  margin-right: 8px;
}

div.body-area .published-bestiary-details span.comments-header {
  font-size: 18px;
}

div.body-area .published-bestiary-details .action-bar {
  float: right;
  margin-top: -6px;
}

div.body-area .published-bestiary-details .action-bar button {
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

div.body-area .published-bestiary-details .action-bar button.like md-icon {
  font-size: 23px;
  height: 23px;
  width: 23px;
}

.action-bar md-icon.commented {
  color: darkcyan;
}

.action-bar md-icon.liked {
  color: #ed4956;
}

.action-bar md-icon.favorite {
  color: #FFD700;
}

div.body-area .published-bestiary-card .action-bar {
  float: right;
}

div.body-area .published-bestiary-card .action-bar md-icon {
  height: 20px;
  width: 20px;
  font-size: 20px;
  line-height: 20px;
}

div.body-area .published-bestiary-card .bestiary-name {
  display: inline-block;
  max-width: calc(100% - 110px);  /*110px is width of action bar*/
}

a.username {
  text-decoration: none;
}

a.username:hover {
  text-decoration: underline;
}

md-menu.bestiary-list button.open-menu {
  text-transform: none;
  font-size: 20px;
  margin-left: 0;
  padding: 0 2px;
}

md-menu.bestiary-list button.open-menu md-icon.drop-down {
  line-height: 22px;
  width: 20px;
  margin-left: -4px;
}

md-content.post-comment textarea {
  min-height: 52px;
}

md-content.post-comment md-input-container {
  margin-bottom: 0;
}

md-content.post-comment button {
  float: right;
}

md-content.edit-comment md-input-container {
  margin-top: 0px;
  margin-bottom: 0px;
}

md-content.edit-comment button {
  float: right;
}

.search-bestiaries form.search-input {
  min-height: 124px;
}

.search-bestiaries form.search-input md-input-container {
  margin-top: 48px;
}

div.body-area .home-page-left {
  min-width: calc(70% - 28px);
  margin-left: 7px;
  margin-right: 7px;
}

div.body-area .home-page-right {
  min-width: 30%;
  margin-left: 7px;
  margin-right: 7px;
}

div.body-area .home-page-left .published-bestiary-details {
  width: 100%;
  margin-top: 8px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

div.body-area .home-page-left .published-bestiary-details h1 {
  margin-top: 6px;
  padding-right: 88px;
}

div.body-area .home-page-left .published-bestiary-details h1 .md-button {
  position: absolute;
  right: 0px;
  top: 14px;
  margin-top: 0px;
}
@media (min-width:960px) {
  div.body-area .home-page-left .published-bestiary-details h1 .md-button {
    top: 24px;
  }
}

div.body-area .home-page-left .published-bestiary-creatures {
  width: 100%;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

div.toggle-bestiary-view-area {
  margin-left: 50%;
  transform: translateX(-50%);

  width: 60px;
  height: 25px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background-color: #fdfdfd;
  z-index: 100;

  -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.6);
  -moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.6);
  box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.6);
}

div.toggle-bestiary-view-area .md-button.md-icon-button {
  width: 25px;
  height: 25px;
  padding: 0;
  min-height: 25px;
  margin: 0 2.5px;
}

div.toggle-bestiary-view-area button md-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.create-creature-dialog-container {
  width: 100%;
  height: 100%;
  padding: 0;
}

.challenge-rating-table {
  margin-bottom: 15px;
}
.challenge-rating-table table.md-table tbody.md-body>tr.md-row {
  height: 26px;
}
.challenge-rating-table table.md-table tbody.md-body>tr.md-row:nth-child(odd) {
  background-color: #C5CBCF;
}
.challenge-rating-table table.md-table th.md-column {
  text-align: center;
}
.challenge-rating-table table.md-table td.md-cell {
  text-align: center;
}
.challenge-rating-table table.md-table:not(.md-row-select) th.md-column:first-child {
  padding: 0 24px;
}
.challenge-rating-table table.md-table:not(.md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2) {
  padding: 0 20px 0 0;
}

.challenge-rating-table table.md-table:not(.md-row-select) td.md-cell:first-child {
  padding: 0 24px;
}
.challenge-rating-table table.md-table:not(.md-row-select) td.md-cell:nth-child(n+2):nth-last-child(n+2) {
  padding: 0 20px 0 0;
}

.previewList .creatures {
  float: left;
  width: 100%;
  overflow-x:hidden;
}

@media (min-width:600px) {
  .previewList .creatures {
    width: 50%;
  }
}

.previewList .preview {
  position: relative;
  float: right;
  width: 50%;
}

.about-page img {
  width: 80%;
  transform: translateX(-50%);
  margin: 20px 0px 20px 50%;

  -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
}

.read-only input {
  background-color: #d3d3d3;
}

div.view-creature-container {
  width: 100%;
  margin-top: 6px;
}

div.view-creature-container > div {
  max-width: 440px;
  margin: 0 auto;
}

@media screen
{
  .no-screen, .no-screen *
  {
    display: none !important;
  }
}

@media print
{
  /* not sure why we have to do this but it seems to be mostly working?
    I suspect some stat blocks may still cut between pages. Adjusting the
    zoom level further may help if so. Chrome's css for printing is janky.
  */
  body
  {
    width: 100% !important;
    zoom: 70% !important;
  }

  .fallingColumns {
    -webkit-column-width: auto !important;
    -moz-column-width: auto !important;
    column-width: auto !important;
    
    -webkit-column-count: 3 !important;
    -moz-column-count: 3 !important;
    column-count: 3 !important;
  }

  .no-print, .no-print *
  {
    display: none !important;
  }

  .no-page-break
  {
    page-break-inside: avoid;
  }

  md-tooltip
  {
    opacity: 0;
  }

}
