.inner-deck-text {
    position: relative;
    max-height: 150px;
    overflow: hidden;
}

.inner-deck-text:not(.collapsed) {
    max-height: none;
}

.cta-bg-fade-out {
    bottom: -1px;
    right: 0;
    padding: 16px 8px 32px 8px;
}
.inner-deck-text:not(.collapsed) .cta-bg-fade-out {
    background: none;
    padding: 8px;
}
.btn-read-more {
    padding: 4px 8px;
    background: #177E89;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.10), 0px 2px 5px 0px rgba(0, 0, 0, 0.10), 0px 9px 9px 0px rgba(0, 0, 0, 0.09), 0px 21px 13px 0px rgba(0, 0, 0, 0.05), 0px 37px 15px 0px rgba(0, 0, 0, 0.01), 0px 59px 16px 0px rgba(0, 0, 0, 0.00);
}
.btn-read-less {
    display: flex;
    padding: 4px 8px;
    border: 1px solid #177E89;
    background: #F8F9FA;
    gap: 4px;
    color: #177E89;
    transition: all 0.2s ease-in-out;
}
.btn-read-less:hover {
    background: #177E89;
    color: white;
}
.ban-icon-img {
    max-width: 30px;
}
.ban-icon-card {
    position: absolute;
    text-align: center;
    left: 36%;
    top: 66%;
    font-size: 25px;
    color: #f44336;
    stroke: #000;
}
.price-set-name {
    text-transform: capitalize;
}
.ygodeckgrid{
    display: grid;
    grid-gap: 4px;
    padding: 2px 0;
    justify-content: space-between;
    grid-template-columns: repeat(max(9, calc(var(--num-cards) / var(--target-rows) - 0.51)),1fr) 100px;
}

#main_deck > .ygodeckgrid {
    --target-rows: 4;
}
#extra_deck > .ygodeckgrid , #side_deck > .ygodeckgrid {
    --target-rows: 1;
}
.ygodeckcard > img {
    max-width: 100px; /* this needs to always be the same regardless of parent size to allow overlapping */
    border-radius: 2%;
}
@media screen and (max-width: 770px) {
    #main_deck > .ygodeckgrid, #extra_deck > .ygodeckgrid, #side_deck > .ygodeckgrid {
        grid-template-columns: repeat(5, 1fr);
    }
    .ygodeckcard > img {
        max-width: 100%;
    }
}

.ygodeckcard {
    position: relative; /* to allow position: absolute; on banlist numbers */
    min-width: 0; /* to allow overlapping */
}
.deck-bgimg{
    --bg-gradient: linear-gradient( to left, transparent, #ffffff 75% );
    background-image: var(--bg-gradient), var(--cover-card);
    background-repeat:no-repeat;
    background-size: 69%;
    background-position: 105% 22%;    
}
[data-bs-theme="dark"] .deck-bgimg {
    --bg-gradient: linear-gradient( to left, transparent, #27292d 75% );
}

.md-card-breakdown-list {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
}
.md-card-breakdown-img {
    max-width: 50px;
}
.sixth-card {
    border: 3px solid red;
}
.flex-button-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top:10px;
}
.flex-button-row button, .flex-button-row #deckbuilderButton {
    width: 150px;
    font-size: 0.9em;
    margin-top: 0px !important;
    height: 35.61px;
}
#deckrow {
    min-height: 413.59px;
}
.deck-metadata-desc {
    min-width: 100%;
    min-height: 95.19px;
}
.stream-container-title {
    max-width: 450.33px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: white;
}
#stream-container{
    background-color: transparent;
}
.deckbuilder-list-item {
    cursor: pointer;
    border-bottom: 1px solid #cecece;
    margin-bottom: 5px;
    background-position: 131% 19%;
    background-size: 67%;
    background-repeat: no-repeat;
    text-align: left;
    margin-bottom: 5px;
    list-style: none;
    background-color: #000;
    color: #fff;
    padding: 10px;
    height: 60px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 450.33px;
    border-radius: 5px;
}
.deckbuilder-list-item-name {
    width: 150px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
    font-size: 17px;
}
.deckoverlay-img-container{
    width: 450.33px;
    display: block;
}
.deckoverlay-img {
    display: block;
    width: 100%;
}
.deckbuilder-list-item-stats{
    vertical-align: middle;
}
.changelog-line {
    display: block;
}
.changelog-line-green {
    color: #5bb35b;
    font-size: 1.1em;
    font-weight: bold;   
    width: 30px;
    display: inline-block;
    margin-right: 5px;    
}
.changelog-line-red {
    color: #da5f5f;
    font-size: 1.1em;
    font-weight: bold;    
    width: 30px;
    display: inline-block;
    margin-right: 5px;    
}
.deck-metadata-container{
    padding: 10px;
    min-height:200px;
    border:1px solid #999898;
    border-radius:5px;
    margin-bottom: 10px;
}
.deck-user-avatar{
    width: 60px;
    height: 60px;
    border: 2px solid #007bff;
    border-radius: 5px;
    object-fit: cover;
    background-color: #000;
}
.deck-metadata-info{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    column-gap: 1rem;
    margin-top:10px;
    margin-bottom: 10px;
}
.similarArticle {
    text-align: center;
}
#chartContainer, #chartContainer2{
    height: 250px;
}
.deck-breakdown{
    text-align:center;
}
.deck-breakdown .heading-section{
    text-align:left;
}
.text-list-maindeck{
    list-style:none;
    padding-left: 0px
}
#deckSource {
    border: 1px solid #00000026;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto;
    background-color: #00000026;
    margin-right: auto;
}
.deckSource-header {
    display: block;
}
.deckCover {
    float: left;
    margin-right: 15px;
}
#deck-meta {
    margin-top: 20px;
}
.deckcountnumber {
    position: absolute;
    bottom: 30px;
    left: 10px;
    font-size: 15px;
    width: 25px;
    height: 25px;
    text-align: center;
    z-index: 999;
    overflow: hidden;
    background: #00000099;
    color: #fff;
    border: 1px solid #ffffff44;
    border-radius: 5px;
}
.deck-filter {
    float: right;
    margin-right: 25px;
    cursor: pointer;
    color: #7d3e12;
}
.cardimg {
    width: 115px;
    height: 87px;
    border-radius: 10px;
    min-width: 115px;
    min-height: 159.74px;
    object-fit: contain;
}
.master-duel-card-highlight{
    /*
    border: 2px solid #ff444c !important;
    box-sizing: border-box;
        background-color: #ff444c;
    */
}
.cardGroup{
    position: relative;
    float: left;
    min-height: 180px;
    min-width:115px;
    margin: 10px;
}
.cardGroupSingle {
    position: relative;
    min-height: 180px;
    min-width: 115px;
    margin: 10px;
    display: inline-block;
}
.visualView, .visualCard{
    position: absolute;
}
.visualCard2{
    position: relative;
}
.copyButton {
    font-size: 14px;
    margin-left: 10px;
    color: #007bff;
    border-bottom: 1px dotted;
    cursor: pointer;
}
a.purchaseDeck {
    text-decoration: unset;
}
a.purchaseDeck:hover {
   color:white;
}
.cardcounts {
    display: block;
    margin-top: 15px;
}
.test-hand-security, .test-hand-main, .prize-hand-main{
    min-height:50px;
    text-align: center;
}
.deck-error {
    margin-top: 10px;
    display: block;
    color: red;
}
.exportCSV, .purchaseDeck {
    margin-top:5px;
    margin-bottom:5px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    color: white;
    background-color: #007bff;
}
.exportCSV:hover{
    color:white;
    text-decoration: none;
}
.not-found span {
    margin-right: 10px;
    font-size: 12px;
}
.total-price {
    font-weight: bold;
    text-decoration: underline;
}
#hand-test button {
    display: inline-block;
    margin: auto;
}
table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: #eee; 
}
th { 
  background: #333; 
  color: white; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left; 
}
.moderator {
    color: #7d3e12;
}
.export-deck-list-tts, .export-deck-list-list, .export-deck-list-dcg {
    width: 100%;
    height: 150px;
    background-color: #d0d0d0;
}
.hand-msg {
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
}
.hand-test-card {
    width: 180px;
    margin: 3px;
    /* border: 1px solid #000; */
    border-radius: 10px;
    max-width: 100%;
    height: 240px;
    object-fit: fill;
}
.hand-test-card-additional {
    width: 90px;
    margin: 3px;
    /* border: 2px solid #f44141; */
    border-radius: 10px;
    max-width: 100%;
    height: 135.65px;
    object-fit: cover;    
}
#hand-test{
    margin-top:20px;
}
#share-area{
    margin-top:20px;
    margin-bottom:20px;
}
.fa {
    padding: 10px;
    font-size: 20px;
    width: 40px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
    text-decoration:none;
}
.fa-facebook {
  background: #3B5998;
  color: white;
}

.fa-reddit {
  background: #ff5700;
  color: white;
}
.inner-deck-text {
    color: #404040;
    background-color: #a7a4a42e;
    padding: 10px;
    border-radius: 5px;
    word-break: break-word;
}
.inner-deck-text p{
    margin-bottom: 0.6rem;
}
.inner-deck-text iframe{
    margin-left: auto;
    margin-right: auto;
    display: block;  
    max-width: 100%;
}
.inner-deck-text img {
    max-width: 100%;
}
.heading-section{
    margin-top: 20px;
}
.tooltip-meta{
    font-size: 12px;
}
.tooltip-effect{
    font-size: 11px;
}
.tooltip-set{
    font-size: 10px;
    font-style: italic;
}
.meta-line {
    margin: 10px;
    font-size: 14px;
    margin-top:15px;
}
.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.meta-line-inner {
    margin-right: 20px;
}
.img-container img {
    max-width: 75px;
    border-radius: 5px;
    margin: 5px;
    max-height: 140px;
    min-width: 75px;
    min-height: 107px;
    background-size: 40px 40px;
}
.deckmsg {
    text-align: center;
    font-size: 18px;
}
.notfound{
    font-weight: bold;
}
/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
  background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.success-msg{
    color:green;
}
.warning-msg{
    color:red;
}
.form-group {
    display: flex;
    width: 100%;
}
.divider-text {
    position: relative;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.divider-text span {
    padding: 7px;
    font-size: 12px;
    position: relative;   
    z-index: 2;
}
.divider-text:after {
    content: "";
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #ddd;
    top: 55%;
    left: 0;
    z-index: 1;
}
.resources p {
    margin-bottom: 10px;
}
.resources {
    margin-top: 25px;
}
.card-area:after {
  content: "";
  display: table;
  clear: both;
}
.card-area {
    margin-top: 30px;
}
#item-area {
    margin-top: 5px;
	display: inline-block;
    width: 100%;
    margin-bottom: 20px;	
}
.item-img {
    float: left;
    padding-right: 20px;
	max-width: 240px;
	min-width: 240px;
	text-align: center;
}
.item-img img {
    max-width: 140px;
    width: 140px;
    object-fit: contain;	
}
.item-misc {
    padding-bottom: 5px;
    display: block;
}
.item-desc p {
    overflow: hidden;
}
input#filter-dq {
    margin-bottom: 15px;
}
@media screen and (max-width: 995px) {
.hand-test-card {width: 90px;height:unset;}    
.ygodeckrow{justify-content: center;}
}
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	    font-size: 12px;
	}
	
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	td:nth-of-type(1):before { content: "Card"; }
	td:nth-of-type(2):before { content: "Q"; }
	td:nth-of-type(3):before { content: "Price"; }
	td:nth-of-type(4):before { content: "Card Set"; }
}
@media screen and (max-width: 1100px) {


}
@media screen and (max-width: 770px) {
.flex-button-row{
    justify-content: center;
}
.deck {
    height: 150px;
    width: 150px;
}
.item-img, .item-name {
    float:none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.videoWrapper iframe {width: 100%;height: 100%;}
.meta-line-inner {font-size:11px;margin-bottom: 5px;}
.info-area {
    text-align: center;
}
.inner-deck-text{
    text-align: left;
}
.deck-breakdown .heading-section {text-align:center;}
#hand-test button {font-size: 13px;}
.deckCover {float:unset;}
#deck-meta {margin-top: 0px;}
.deckcountnumber {left: 50%;}
.cardGroupSingle .deckcountnumber {left: 0px;}
.cardGroupSingle .cardimg {left: 0px;}
#share-area {text-align: center;}
}

@media screen and (max-width: 600px) {
.hand-test-card {width: 60px;height: unset;}
.deck-filter {margin-right:10px;}
.deck-metadata-container {background-size: 199% !important;background-position: 23% 19% !important;}
}
@media screen and (max-width: 480px) {
	.card-name h1 {
		font-size: 28px;
	}
	.dp-text{
		font-size: 15px;
	}
}
.h-100 {
height: auto !important;
min-height: 100% !important;
}