.left-align {
  text-align: left; 
}

.right-align {
  text-align: right; 
}

.center, .center-align {
  text-align: center; 
}

.left {
  float: left !important; 
}

.right {
  float: right !important; 
}

.truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}

.clearfix {
  clear: both; 
}

.no-padding {
  padding: 0 !important; 
}

/*************************/

#app .main {
  width: 100%;
  height: 100%;
}

@media (min-width: 600px) {
  #app .main {
    z-index: 60;
  }
}

/* footer */
#app .footer {
  padding-top:0px; 
  margin-top: 0px;
}

#app .footer .footer-copyright {
  /*padding-left: 18px; */
  padding-right: 12px; 
  height: 24px; 
  line-height: 30px; 
  color: rgba(255,255,255,0.54); 
  background-color: #ECEFF1; /* Blue Grey 100 */
  font-size: 0.8em;
  border-top: 1px solid rgba(255,255,255,0.12);
}

#app .footer .footer-copyright a {
  color: rgba(0,0,0,0.54); 
  text-decoration: none;
}

#app .main md-toolbar {
  min-height: 51px;
  background-color: #ECEFF1;
  color: rgba(0,0,0,0.87);
}

#app .main md-toolbar .loading {
  position: absolute; 
  width: 100%; 
  z-index: 1; 
  bottom: -1px;
}

#app .main md-toolbar .md-toolbar-tools{
  height: 50px;
}

#app .main md-toolbar .md-toolbar-tools button {
  color: #0288D1;
}

/* */

/*div.mailfs-content section {
  padding-top: 40px !important;
  min-height: 500px;
}*/



/*.list-group-item.active>.badge {
	color: green;
}*/

.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
	color: #000;
	background-color: #BDCEDB;
	border-color: #337ab7;
}

.list-group-item>.badge {
	background-color: #ccc;
}

.list-group-item>.active-badge {
	color: white;
	background-color: #4cae4c;
}

button.list-group-item-info:hover, button.list-group-item-info:focus {
  color: #31708f;
  background-color: #c4e3f3;
}

button.list-group-item:disabled {
  color: #fff;
  background-color: #bbb;
}

.menu-badge-add, .menu-badge-remove {
	-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
	-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
	-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
	transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s;
}

.menu-badge {
	background-color: #ccc;
	font-size: 100%;
}

.menu-badge-add.menu-badge-add-active {
	background-color: #4cae4c;
	font-size: 120%;
}

.menu-badge-remove.menu-badge-remove-active {
	background-color: #ccc;
	font-size: 100%;
}


.animated {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
}

@-webkit-keyframes shake {
  0%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translate3d(-5px, 0, 0);
            transform: translate3d(-5px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    -webkit-transform: translate3d(5px, 0, 0);
            transform: translate3d(5px, 0, 0);
  }
}

@keyframes shake {
  0%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translate3d(-5px, 0, 0);
            transform: translate3d(-5px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    -webkit-transform: translate3d(5px, 0, 0);
            transform: translate3d(5px, 0, 0);
  }
}

.shake {
  -webkit-animation-name: shake;
          animation-name: shake;
}

/*****************/

.form-control[disabled], 
.form-control[readonly] {
  cursor: default;
}

/*#app .main-menu md-sidenav {
  width: 100%;
  min-width: 100%;
  max-width: 100%;

  height: 100%;
  min-height: 100%;
  max-height: 100%;
}*/

#app .main-menu md-list .main-menu-1 md-icon {
  color: rgba(255,255,255,0.38);
}

#app .main-menu md-list .main-menu-1 md-icon.logged {
  /*color: #4CAF50;*/
  color: rgba(255,255,255,0.87);
}

#app .main-menu md-list-item:hover button {
  background-color: #546E7A; /*600*/
}

#app .main-menu md-list-item.active button {
  background-color: #37474F;
}


#app .main-menu md-list-item button {
  border-radius: 0px;
}

#app .main-menu md-list-item {
  border-left: 2px solid #455A64; /*700*/
}

#app .main-menu md-list-item:hover {
  border-left: 2px solid #546E7A; /*600*/
}

#app .main-menu md-list-item.active {
  border-left: 2px solid #607D8B;
}



#app .main-menu md-list-item.inbox-status {
  border-right: 3px solid #455A64;
}

#app .main-menu md-list-item.inbox-status.status-unknown {
  border-right: 3px solid black;
}

#app .main-menu md-list-item.inbox-status.status-ok {
  border-right: 3px solid #43A047;
}

#app .main-menu md-list-item.inbox-status.status-err {
  border-right: 3px solid #E65100;
}

#app .main-menu .main-menu-settings {
  border-top: 1px solid #607D8B;
  /*margin-bottom: 10px;*/
}

#app .main-menu .main-menu-settings md-icon {
  color: rgba(255,255,255,0.87);
}


/*#app .main-menu md-list-item.active:hover button {
  background-color: #37474f;
}*/

#app .main-menu .my-list-icon {
  margin-left: 0px;
  margin-right: 5px;
  width:18px;
  height:18px;
}

#app md-content .emls .my-icon {
  margin-left: 0px;
  margin-right: 5px;
  width:18px;
  height:18px;
}

#app .main-menu .badge-expired {
  /*float: right;*/
  padding: 5px;
  font-size: 75%;
  line-height: 1;
  color: #e65100;
  text-align: right;
  vertical-align: baseline;
  border-radius: 0.25em;
  /*background-color: #e65100;*/
  white-space: nowrap;
}

#app .main-menu .badge-emls {
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
  background-color: #43A047;
  color: rgba(255,255,255,0.87);
}

#app .main-menu md-list-item.active .badge-emls {
  background-color: #fff;
  color: rgba(0,0,0,0.87); 
}

#app .main-menu md-list-item:hover span.badge-emls {
  display: none;
}

#app .main-menu md-list-item button a.badge-delete {
  display: none;
}

#app .main-menu md-list-item:hover button a.badge-delete {
  display: inline-block;
}


#app .main-menu md-divider {
  margin-top: 10px;
  margin-bottom: 10px;
}

#app .main-menu .new-email[disabled] * {
  color: rgba(255,255,255,0.2) !important;
}

/*** Settings ***/

#app #settings .setting-name h3 {
  margin-left: 20px;
  min-width: 160px;
}

#app #settings .setting-name md-switch {
  margin-top: 20px;
}

/******** Settings ************/

#app md-switch.md-checked .md-bar {
  background-color: rgba(129,199,132,0.5);
}

#app md-switch.md-checked .md-thumb {
  background-color: rgb(129,199,132);
}

#app md-switch.md-checked.md-focused .md-thumb:before {
  background-color: rgba(129,199,132,0.26);
}

#app md-input-container:not(.md-input-invalid).md-input-focused .md-input {
  /*border-color: #81c784;*/
}

#app md-input-container:not(.md-input-invalid).md-input-focused label {
  /*color: #81c784;*/
}

#app md-input-container.md-input-invalid [ng-message] {
  color: #e65100;
}

md-input-container.md-input-invalid .md-input {
  border-color: #e65100;
}

#app error-color {
  color: #e65100;
}


/********************/

#app .emls {
  padding-top: 1em;
  padding-bottom: 1em;
}

#app .emls md-list-item > a {
  margin: 1px 0px 1px 0px;
  padding-left: 10px;
  padding-right: 18px;
}

#app .emls md-list-item > a:hover {
  background-color: #E1F5FE;
}

#app .emls .eml-status-unread, #app .emls .eml-status-unread md-icon {
  color: rgba(0,0,0,0.87);
}

#app .emls .eml-status-read, #app .emls .eml-status-read md-icon {
  color: rgba(0,0,0,0.54);
}

#app .emls md-list-item:hover .eml-icon-status {
  display: none;
}

#app .emls md-list-item .eml-icon-destroy {
  display: none;
  margin-right: 5px;
}

#app .emls md-list-item:hover .eml-icon-destroy {
  display: inline-block;
}

/************************/

#app md-toast {
    background-color: #78909c;
}

/********* IPHONE ***********/

@media (min-width: 600px) {
  /* MENU */
  #app .main-menu {
    max-width: 220px !important; 
    min-width: 150px !important; 
    width: 20% !important;
  }

  /* settings */
  #app #settings {
    padding: 20px 20px 20px 20px; 
  }

  #app #settings .setting-name md-content {
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 16px;
  }
}

@media (max-width: 599px) {
  /* MENU */
  #app .main-menu {
    width: 75% !important;
  }

  /* settings */
  #app #settings {
    padding: 5px; 
  }

  #app #settings .setting-name md-content {
    min-width: 100%;
  }

  #app #settings .my-switch {
    width: 100%;
  }
}

#app .eml #eml-parts pre {
  white-space: pre-wrap;       
  white-space: -moz-pre-wrap;  
  white-space: -pre-wrap;      
  white-space: -o-pre-wrap;    
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/*** rotate an element ***/
#app .md-button[disabled] md-icon.rotate.rotateStart {
  color: #43A047 !important;
}

#app .rotateStart {
  -webkit-animation-play-state: running;
  -moz-animation-play-state: running;
  -ms-animation-play-state: running;
  animation-play-state: running;
}

#app .rotateEnd {
  -webkit-animation-play-state: paused;
  -moz-animation-play-state: paused;
  -ms-animation-play-state: paused;
  animation-play-state: paused;
}

#app .rotate {
    -webkit-animation-name: spin;
    -webkit-animation-duration: 1200ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 1200ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 1200ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    
    animation-name: spin;
    animation-duration: 1200ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@-ms-keyframes spin {
    from { -ms-transform: rotate(0deg); }
    to { -ms-transform: rotate(360deg); }
}
@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

#app input#inbox-name::selection {
  background-color: #CFD8DC;
}

#app input#inbox-name::-moz-selection {
  background-color: #CFD8DC; 
}


#app md-menu-content md-menu-item md-icon {
  margin: auto 5px auto 0;
}



#app .loading svg path,
#app .loading svg rect{
  fill: #3F51B5;
}

#app .loading-green svg path,
#app .loading-green svg rect{
  fill: #81c784;
}

#app md-progress-linear {
  overflow: hidden;
  height: 3px;
}

#app md-progress-linear .md-container {
    background-color: rgb(69,90,100);
}

#app md-progress-linear .md-bar {
    background-color: #78909C;
}

#app .email-in-content {
  background-image: url(/media/img/mailfs-content-bkg.png);
  background-position: right bottom;
  background-repeat: no-repeat;
  min-height: 92px;
}

/*****************/

#app ng-md-icon {
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  background-repeat: no-repeat;
  color: rgba(0, 0, 0, 0.541176);
  cursor: pointer;
  display: inline-block;
  fill: rgba(0, 0, 0, 0.541176);
  font-family: Roboto, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  height: 24px;
  letter-spacing: 0.14px;
  line-height: 48px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  text-align: center;
  text-indent: 0px;
  text-shadow: none;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  width: 24px;
  word-spacing: 0px;
}

#app ng-md-icon svg {
  pointer-events: none;
  display: block;
}

#app .main-menu .main-menu-settings ng-md-icon {
  fill: rgba(255,255,255,0.87);
}

/************************/

#app ng-md-icon {
    -webkit-transition: fill 750ms ease-in-out;
    -moz-transition: fill 750ms ease-in-out;
    -o-transition: fill 750ms ease-in-out;
    transition: fill 750ms ease-in-out;
}
#app ng-md-icon > svg {
    -webkit-transition: width 350ms ease-in-out, height 350ms ease-in-out;
    -moz-transition: width 350ms ease-in-out, height 350ms ease-in-out;
    -o-transition: width 350ms ease-in-out, height 350ms ease-in-out;
    transition: width 350ms ease-in-out, height 350ms ease-in-out;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

/*.menu-emails.ng-enter {
  animation: fadeIn 1s;
}

.menu-emails.ng-leave {
  animation: fadeOut 1s;
}*/

/* menu-emails ng-animate ng-hide-animate ng-hide-remove ng-hide-remove-active */

.menu-emails.ng-hide-add ,
.menu-user.ng-hide-add
 {
  /*-webkit-transition-delay: 1s; 
  transition-delay: 1s;*/

  /*opacity: 1;
  display: block !important;
  transition: opacity 1s;*/

  /*animation: fadeIn 1s;*/
}

.menu-emails.ng-hide-remove ,
.menu-user.ng-hide-remove 
{
  /*opacity: 1;
  display: block !important;
  transition: opacity 1s;*/
}

/************************/

#app fieldset.standard {
    border-style: solid;
    border-width: 1px;
}

#app fieldset.standard legend {
  padding-left: 10px; 
  padding-right: 10px;
}

/********* PRICE TABLE **********/

#app .pricing-col {
  padding: 20px 15px 20px 15px;
}

#app .pricing-card {
  border: 1px solid #CFD8DC;
  -webkit-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
  outline: none;
}

#app .pricing-card.selected {
  border-color: #BBDEFB;
  outline: none;
}

#app .pricing-header {
  border-bottom: none;
  margin: 0;
  /*height: 160px;*/
  /*background: #fff;*/
  text-align: center;
}

#app .pricing-header h5 {
  color: #424242;
  margin: 0 auto;
  padding: 12px 20px;
  text-transform: uppercase;
}

#app .pricing-header .price-box {
  padding: 20px 0px;
  border-bottom: 1px solid #CFD8DC;
  border-top: 1px solid #CFD8DC;
  -webkit-transition: all 0.5s linear 0s;
  transition: all 0.5s linear 0s;
}

#app .selected .pricing-header .price-box {
  border-color: #BBDEFB;
}

#app .pricing-header .price-box .price {
  color: #0277BD;
  font-size: 200%;
}

#app .pricing-features {
  text-align: left;
}

#app .pricing-features ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

#app .pricing-features ul li {
  background: #ECEFF1;
  border-bottom: 1px solid #CFD8DC;
  /*border-bottom: 1px solid #ddd;*/
  padding: 13px 0;

  /*border-color: #546e7a;
  border-bottom: 1px solid #546e7a;*/
}

#app .selected .pricing-features ul li {
  background: #E3F2FD;
  border-color: #BBDEFB;
}

#app .pricing-features ul li span {
  padding: 0 20px;
}

#app .pricing-footer {
  /*border-top: 1px solid #CFD8DC;*/
  border: none;
  padding: 0 20px;
  text-align: center;
  transition: height 0.2s linear 0s;
  height: 50px;
}

/************************/
/* Social Sharing Icons */
#app .share-buttons {
  /*list-style: none;*/
  /*padding: 0;*/
}
#app .share-buttons a {
  display: inline;
  margin: 0px 5px 0px 5px;
}
