.deck-snippet {
  padding-left: 8px;
  padding-right: 8px;
}

.no-overflow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.no-margin-top {
  margin-top: 0px;
}

.sm-p-well {
  padding: 15px
}

.folder-header {
  padding-left: 8px;
  padding-right: 8px;
}

.deck-btn-group {
  margin: 6px
}

.deck-group {
  margin-bottom: 15px;
}

a#report_ad_leaderboard_atf{text-align:center;}

div#desktop a.playwire_report_ad_link{ text-align: center !important; }

@media only screen and (max-width: 500px) {
   div#leaderboard_btf{
      display:none !important;
   }
}

@media screen and (max-width: 992px) {
    h2 {
        font-size:20px;
    }
}

#masthead {
  background-image: url('//tappedout.net/s/img/header-bg.png');
  background-repeat: repeat-x;
}

#submast-stroke {
  background-image: url('//tappedout.net/s/img/submast-stroke.jpg');
}

.popover-content {
    background-color: black;
}

.popover-content p {
  color: white;
}

div.cube-details    .date {
    font-size: 12px;
    font-weight: bold;
}

div.inventory_mana_cost > img {
    width: 15px;
    height: 15px;
}

div.more-alters {
    margin-top: 10px;
}

.rotate-90 {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
}

.rotate-180 {
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
}

.rotate-270 {
    -moz-transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
}
.card-modal-close {
    color:red;
    opacity: 1;
}

.popover-edit {
    background-color: transparent;
    border: none;
}

.popover-edit-content {
    border: none;
    background-color: rgba(0,0,0,0.7);
    border-radius: 5px;
}

.popover-edit-content>.well {
    margin-bottom: 0px;
}

.table .table {
    background-color: transparent;
}

h3.deck-wide-header {
    margin-top: 0px;
    font-size: 20px;
}

div.deck-wide-badge {
    text-align: center;
}

h5.deck-wide-header {
    margin-top: 0px;
}

div.deck-wide-stats {
    padding-left:10px;
}

@media (min-width: 1200px) {
    div.deck-wide-chart {
        margin-top: 25px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    div.deck-wide-chart {
        margin-top: 25px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    div.deck-wide-chart {
        margin-top: 25px;
    }
}

.comp-progress {
    height: 24px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.comp-progress-labels {
    height: 20px;
}

.comp-progress-label-casual {
    float: left;
    color: #5bc0de;
}

.comp-progress-label-comp {
    float: right;
    color: #f0ad4e;
}


.ui-autocomplete-loading {
    background-image: url("../img/spinner.7b9776076d5f.gif");
    background-repeat:no-repeat;
    background-position:98% center;
}

@media only screen and (max-width: 285px) {
    .visible-xxs {
        display: inline-block !important;
    }
}

.btn-block span {
    display: inline-block !important;
}



@media only screen and (min-width: 284px) {
    .hidden-xxs {
        display: inline-block !important;
    }
}

.deck-price-range {
    letter-spacing: 1.5px;
    margin-left: 5px;
}

.tapped-menu-navbar {
    height: 49px;
}

@media screen and (min-width: 768px) {
    .tapped-menu-navbar .navbar-nav.main-nav li:not(:first-child):not(:nth-child(2)) {
        background-image: url("../img/menu-divider.9b7375c7bfe3.png");
        background-repeat: no-repeat;
    }
}

.tapped-menu-navbar .navbar-nav.main-nav li, .tapped-menu-navbar .navbar-nav.main-nav li a {
    height: 49px;
    font-size: 13px;
}

.tapped-menu-navbar .navbar-nav.main-nav li:not(:first-child) a {
    padding: 14px 10px;
    font-weight: 200;
}

.navbar-inverse .navbar-nav.main-nav > li > a.to-logo {
    padding: 0px;
}

.icons-navbar>li:first-child>a {
    padding-left: 0px;
}

.tapped-menu-navbar .icons-navbar .no-icon-item {
    margin-top: -8px;
}

.tapped-menu-navbar .icons-navbar .no-icon-item a {
    padding: 13px 10px;
}

#desktop {
    padding-top: 18px;
    padding-bottom: 18px;
}

.margin-top-18 {
    margin-top: 18px;
}

.margin-bot-18 {
    margin-bottom: 18px;
}

.jumbotron {
    border-bottom: 1px solid #edd9b4;
}

.dropdown-menu.left-menu {
    right: 0px;
    left: initial;
}

.navbar-nav .open .dropdown-menu.tapped-menu {
    position: absolute;
}

.tapped-menu .navbar-form {
    margin-left: 0px;
    margin-right: 0px;
}

@media screen and (max-width: 768px) {
    .navbar-fixed-top .main-nav-collapse {
        float: none !important;
        max-height: initial;
        background-color: #101010;
        width: 250%;
    }
}

@media screen and (min-width: 769px) and (max-width: 835px) {
    .hidden-ssm, .nav>li.hidden-ssm {
        display: none;
    }
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid #999999/*{borderColorHover}*/;
    color : inherit;
}

.spinner-loader {
    animation: spin 2s linear infinite;
    border: 3px solid #f3f3f3; /* Light grey */
    border-top: 3px solid #333;
    border-radius: 50%;
    display: inline-block;
    height: 1em;
    width: 1em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.centered-modal {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .centered-modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
}

.centered-modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

.badge-success {
  background-color: #5cb85c;
}

.badge-info {
  background-color: #337ab7;
}

.banner-ad {
  min-height: 90px;

/* TODO: Deactivate this momentarily in order to check for some bugs
  height: 0;
  overflow: hidden;
  transition: height 0.66s ease-out;
  -moz-transition: height 0.66s ease-out;
  -o-transition: height 0.66s ease-out;
  -webkit-transition: height 0.66s ease-out;
*/
}

@media(max-width: 768px) {
  .banner-ad {
    min-height: 50px;
  }
}

.banner-ad div {
  margin: auto;
}

/* sticky ad footer */

.sticky-ad-footer {
  width: 100%;
  height: 50px;
  margin: 0px auto;
  background-color: rgba(0, 0, 0, 0);
  position: fixed;
  z-index: 99999;
  left: 0px;
  bottom: 0px;
  text-align: center;
}

.sticky-ad-footer .ad-close-button {
  position: absolute;
  cursor: pointer;
  background: rgb(169, 169, 169) none repeat scroll 0% 0%;
  text-align: center;
  width: 20px;
  height: 20px;
  line-height: 20px;
  left: 140px;
  margin-left: 50%;
  font-size: 20px;
  font-family: sans-serif;
  top: -20px;
}

@media only screen and (min-width: 992px) {
  .sticky-ad-footer {
    height: 90px;
  }

  .sticky-ad-footer .ad-close-button {
    left: 344px;
  }
}

.div-inline{
  display:inline-block;
}

#mtga-textarea {
  position: absolute;
  left: -1000px;
  top: -1000px;
}


.btn-circle {
    width: 20px;
    height: 20px;
    padding: 4px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 10px;
    line-height: 1.1;
}


th.order-column {
    cursor: pointer;
}

.select2-container .select2-selection--multiple {
    min-height: 34px;
}

.select2-container .select2-selection--single {
    height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.inline-form-btn {
    margin-top: 23px;
}

.groups-well {
    height: 150px;
}

.group-user-row {
    margin-top: 20px;
}

h3.groups-header {
    margin-top: 5px;
    margin-bottom: 20px;
}

.checkout-btn-group {
    overflow: hidden;
}

.deck-square-container {
    position: relative;
    min-height: 145px;
    max-width: calc(100% - 10px);
    overflow: hidden;
}

.deck-square-card-img {
    object-fit: cover;
    object-position: -29px -67px;
    width: 123%;
    height: 186px;
    max-width: none;
    margin: 10px;
}

.deck-square-card::after {
    display: block;
    position: relative;
    margin-top: -150px;
    height: 150px;
    width: 100%;
    content: '';
    left: 10px;
}

.deck-square-caption {
    position: absolute;
    z-index: 1002;
    bottom: 0;
    left: 10px;
    right: 0;
    width: auto;
    padding: 55px 18px 18px;
    background: linear-gradient(to bottom, transparent, rgba(20, 21, 24, .85) 55%, rgba(20, 21, 24, .97));
}

.deck-square-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.deck-square-name a {
    color: #f5f2ed;
    text-decoration: none;
}

.deck-square-name a:hover {
    color: #e5c58b;
}

.deck-square-user {
    margin-top: 5px;
    font-size: 15px;
    color: #ccc;
}

.deck-square-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}

.deck-square-labels,
.deck-square-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.deck-square-format,
.deck-square-featured {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.deck-square-format {
    background: rgba(90, 95, 105, .75);
    color: #e4e4e4;
    border: 1px solid rgba(255, 255, 255, .15);
}

.deck-square-featured {
    background: #bba05e;
    color: #211d15;
}

.deck-square-featured .glyphicon {
    margin-right: 3px;
}

.deck-square-stats {
    gap: 14px;
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
}

.deck-square-stats .glyphicon {
    margin-right: 3px;
    color: #aaa;
}

.deck-square-card:before {
    content: '';
    width: calc(100% - 10px);
    border: 1px solid #56483a;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1001;
    height: calc(100% - 10px);
}

.checkout-btn::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em;
}

.btn-group > .btn.checkout-btn {
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 15%;
    padding: 6px;
}

.checkout-btn-icon {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 320px) {
    .deck-square-card-img {
        object-position: -44px -55px!important;
        width: 122%!important;
        height: 230px!important;
    }
}

@media (min-width: 321px) and (max-width: 426px) {
    .deck-square-card-img {
        object-position: -44px -72px!important;
        width: 119%!important;
        height: 260px!important;
    }
}

@media (min-width: 426px) and (max-width: 767px) {
    .deck-square-card-img {
        object-position: -42px -70px!important;
        width: 119%!important;
        height: 225px!important;
    }
}

@media (min-width: 768px) and (max-width: 990px) {
    .deck-square-card-img {
        object-position: -30px -48px !important;
        width: 119% !important;
        height: 185px !important;
    }
}

@media (min-width: 991px) and (max-width: 1440px) {
    .deck-square-card-img {
        object-position: -30px -42px;
        width: 120%;
        height: 185px;
    }
}

@media (min-width: 1441px) and (max-width: 2000px) {
    .deck-square-card-img {
        object-position: -41px -58px;
        width: 120%;
        height: 185px;
    }
}

@media (min-width: 2001px) and (max-width: 2200px) {
    .deck-square-card-img {
        object-position: -51px -85px!important;
        width: 120%!important;
    }
}

@media (min-width: 2200px) {
    .deck-square-card-img {
        object-position: -51px -85px!important;
        width: 120%!important;
        height: 319px!important;
    }
}

@media (max-width: 426px) {
    .deck-square-caption {
        padding: 45px 15px 15px;
    }

    .deck-square-name {
        font-size: 20px;
    }

    .deck-square-user {
        font-size: 14px;
    }

    .deck-square-meta {
        margin-top: 14px;
    }
}

.custom-card-render {
    background-color: rgb(121, 27, 224, 70%)
}

.login-icon:before {
    content: "";
    width: 22px;
    height: 22px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: text-top;
    background-color: transparent;
    background-position : center center;
    background-repeat:no-repeat;
}

.msbtn:before{
    background-image : url("../img/ms-icon.319d9b9a39d5.svg");

}

.fbbtn:before{
    background-image : url("../img/fb-icon.38ed823b0203.svg");
}

.googlebtn:before{
    background-image : url("../img/google-icon.6756f6c6cdb2.svg");
    background-size: 22px
}

.mobile-modal a {
    color: white;
}


.loading {
    font-size: 30px;
}

.loading:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4,end) 900ms infinite;
    animation: ellipsis steps(4,end) 900ms infinite;
    content: "\2026"; /* ascii code for the ellipsis character */
    width: 0px;
}

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

@-webkit-keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

@media (max-width: 500px) {
    #card-add-board-btn {
        font-size: 14px;
        height: 46px;
    }
}

@media (max-width: 768px) {
  .nav-justified > li.deckform-board {
    display: table-cell;
    width: 1%;
  }
  .nav-justified > li.deckform-board > a  {
    border-bottom: 1px solid black !important;
    border-radius: 4px 4px 0 0 !important;
    margin-bottom: 0 !important;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
    #decks-chart-container {
        height: 70px;
        width: 70px;
        margin-top: -10px;
        margin-right: 5px;
    }
}

@media (min-width: 769px) {
    #decks-chart-container {
        height: 90px;
        width: 90px;
        margin-right: 10px
    }
}

.add-img-responsive {
  word-wrap: break-word;
}

.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top:0;
    left:100%;
    margin-top:-6px;
    margin-left:-1px;
    -webkit-border-radius:0 6px 6px 6px;
    -moz-border-radius:0 6px 6px 6px;
    border-radius:0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
    display:block;
}
.dropdown-submenu>a:after {
    display:block;
    content:" ";
    float:right;
    width:0;
    height:0;
    border-color:transparent;
    border-style:solid;
    border-width:5px 0 5px 5px;
    border-left-color:#cccccc;
    margin-top:5px;
    margin-right:-10px;
}
.dropdown-submenu:hover>a:after {
    border-left-color:#ffffff;
}
.dropdown-submenu.pull-left {
    float:none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
    left:-100%;
    margin-left:10px;
    -webkit-border-radius:6px 0 6px 6px;
    -moz-border-radius:6px 0 6px 6px;
    border-radius:6px 0 6px 6px;
}

.modal {
    z-index: 99998!important;
}

.select2-container--open {
    z-index: 99999!important
}

.popover {
    z-index: 99999!important
}

.btn-foil {
    background: linear-gradient(205deg, rgba(231,255,0,1) 0%, rgba(246,161,255,1) 42%, rgba(0,202,255,1) 78%)!important;
    color: white!important;
}

@media screen and (max-width: 768px) {
    .btn-mobile-block {
        width: 100%;
    }
}

.flip-btn {
    position: absolute;
    top: 14%;
    left: 73%;
    padding: 1px 4px!important;
    font-size: 15px!important;
    line-height: 1.5!important;
    border-radius: 3px!important;
    opacity: 0.8;
}


@media all and (max-width:767px) {
   .xs-btn-block {
      width: 100%;
      display:block;
      margin-bottom: 10px;
   }
}

.orange-message {
    background: #fcf8e3;
    color: black;
    margin-top: -10px;
    padding: 5px
}

