/* ═══════════════════════════════════════════════════════════════════════════
   Shared page chrome.
   Header, nav, modals, tiles, list rows, the new-collection wizard and print
   rules. Common to every page; extracted from the duplicated <style> blocks.
   ═══════════════════════════════════════════════════════════════════════════ */

.myTile:hover {
	opacity: 0.8;
	/*border: 1px solid #ccc !important;
	border-radius: 5px;*/
}

.modal-content {
	background: none;
	border: none;
}

.manImg {
  display: none;
}
.card-list-name:hover ~ .manImg {
  display: block;
  position: absolute;
}

.bg-dark {
	background-color: #121212 !important;
}

.sticky-top {
	top: 89px;
}

div#overlay {
    display: none;
    z-index: 2;
    background: #000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    text-align: center;
  }
  
  .bootstrap-autocomplete {
	  //display: block;
	  max-height: calc(100vh - 46px);
	  overflow-y: scroll;
	  background-color: #fff;
	  padding-top: 0;
	  padding-bottom: 0;
  }
  
  .bootstrap-autocomplete li {
	  padding: 10px; 
	  margin: 5px; 
	  border: 1px solid #ccc;
	  text-decoration: none;
	  background: #eee;
  }
  
  .bootstrap-autocomplete li:hover {
	  border: 1px solid #555;
	  background: #ddd;
	  cursor: pointer;
  }
  
  .bootstrap-autocomplete a {
	  text-decoration: none !important;
	  color: black;
  }
  
  .itemList {
	list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .itemList li {
	  padding: 10px; 
	  margin: 5px; 
	  border: 1px solid #ccc;
	  text-decoration: none;
	  background: #eee;
  }
  
  .itemList li:hover {
	  border: 1px solid #555;
	  background: #ddd;
	  cursor: pointer;
  }
  
  .itemList a {
	  text-decoration: none !important;
	  color: black;
  }
  
  /* Split the screen in half */
.split {
  height: calc(100% - 143px);
  width: 50%;
  position: fixed;
  z-index: 1000;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
  top: 143px !important;
}

/* Control the left side */
.left {
  left: 0;
  background-color: rgba(0,0,0,0.7);
}

/* Control the right side */
.right {
  right: 0;
  background-color: rgba(255,255,255,0.9);
}

/* If you want the content centered horizontally and vertically */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 60%;
}

.cardFullWidth {
	width: 100%;
    padding: 10px;
    margin: 10px;
	text-align: left;
    font-weight: bold;
	cursor: pointer;
	border: 2px solid #222;
}

.cardFullWidth:hover {
	background: #ccc;
}
  

#main-list {
	max-width: 1000px; 
	margin: auto; 
	background: white; 
	padding: 30px; 
	border-radius: 20px; 
	margin-top: 100px;
	margin-bottom: 100px;
}	

.searchBox {
	width: 50%;
}

.card-list-columns {
	column-count: 4; 
}

.cardSet {
	cursor: pointer; 
	margin: 10px; 
	width: 200px; 
	height: 200px; 
	background: #eee; 
	border-radius:5px; 
	padding: 5px; 
	text-align:center; 
	display: flex; 
	flex-wrap: wrap; 
	justify-content: space-around; 
	align-items: center;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #ccc;
}

.cardSetLogo {
	max-height: 140px; 
	max-width: 190px;
}

.cardSetIcon {
	max-height: 40px; 
	max-width: 40px; 
	position: absolute; 
	margin: 67px; 
	margin-top: 200px; 
	margin-left: 200px;
}

.selectedBinder {
	position: fixed; 
	right: 0; 
	border-radius: 0px 0px 0px 10px; 
	border: 1px solid #ccc;
	z-index: 100;
}

@media only screen and (max-width: 900px) {
	.card-list-columns {
		column-count: 2; 
	}
}

.Rarity { scroll-margin-top: 180px; }

@media only screen and (min-width: 768px) {
 .hideOnDesktop {
	 display: none;
  }
}

@media only screen and (max-width: 768px) {
  
  #navBarTop {
	  min-width: 100%;
	  padding: 5px;
	  margin-top:5px;
  }
  
  .actionBar {
	  padding: 8px !important; 
  }
  
  .cardSet {
	  width: 160px;
	  height: 160px;
  }
  
  .cardSetLogo {
	max-height: 120px; 
	max-width: 150px;
  }
  
  .cardSetIcon {
	margin-top: 160px; 
	margin-left: 160px;
  }
  
  .selectedBinder {
	  border-radius: 10px 0px 0px 0px;
	  bottom: 0;
	  transform: translateZ(50px);
  }
  
  #main-list {
	max-width: 100%; 
	margin: auto; 
	background: white; 
	padding: 0; 
	border-radius: 0; 
	margin-top: 30px;
	margin-bottom: 30px;
  }
  
  #snapshotResultsData {
	padding: 10px !important;  
	border-radius: none !important; 
	max-height: 80vh !important;
  }
  
  .hideOnMobile {
	 display: none !important;
  }
  
  .searchBox {
	width: 100%;
	margin: 10px;
  }
  
  .card-list-columns {
	column-count: 1; 
  }
  
  .split {
	  width: 100%;
	  z-index: 20;
	  overflow: scroll;
	  height: calc(100% - 208px);
	  top: 208px !important;
  }
  
  .centered {	  
	  padding-top: 0px;
	  padding-bottom: 0px;
	  width: 90%;
      height: 100%;
  }
  
  .cardFullWidth {
	  margin: 0;
	  margin-bottom: 10px;
  }
  
}

.book {
  cursor: pointer;
  display: block;
  position: relative;
  background: #222;
  z-index: 1;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 9px 20px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: box-shadow 0.3s linear;
}

.book img {
  width: inherit;
  height: inherit;
  transform-origin: 0 50%;
  transform: rotateY(0);
  transition: all 0.45s ease;
}

.book:hover {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25), 0 9px 20px 0 rgba(0, 0, 0, 0.45);
}
.book:hover img {
  transform: rotateY(-25deg);
  box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.2);
}

.book::after,
.book::before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  z-index: -1;
  top: 0;
  background: white;
  border: 1px solid #d9d9d9;
}

.book::before {
  left: -3px;
}

.book::after {
  left: -6px;
}

.book::after,
.book::before, .book img, .book {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.button_closed {
	content: "";
    height: 50px;
    width: 50px;
    overflow: hidden;
}

.button_closed:hover span {
    display: none;
}

.button_closed:hover {
    width: 180px;
    transition: width 0.5s;
}

.button_closed::after {
  content: "";
  width: 160px;
  display: none;
}

.button_closed:hover::after {
    content: "Browse Sets";
    display: inline-block;
}

.right-container .right-container-button span {
}
.right-container .right-container-button:hover {
	//transition: all 400ms cubic-bezier(.62, .1, .5, 1);
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}
.right-container .right-container-button .long-text {
	//transition: opacity 1000ms;
	opacity: 0;
	color: white;
	white-space: nowrap;
	font-size: 0;
	width: 0;
	margin: 0;
}
.right-container .right-container-button .long-text.show-long-text {
	//transition: opacity 700ms, width 1ms linear 270ms, font-size 1ms linear 270ms;
	opacity: 1;
	margin-left: 10px;
	font-size: 16px;
	width: auto;
}

.modal {
  display: none;
  position: fixed; 
  padding-top: 50px;
  left: 0; 
  top: 0;
  width: 100%;
  height: 100%; 
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: relative; 
  background-color: white;
  padding: 20px; 
  margin: auto; 
  width: 75%;  
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}
.close-btn {
  float: right; 
  color: lightgray; 
  font-size: 24px;  
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: darkgray;
}

.sp-colorize-container {
	min-width: 50px;
	border: none !important;
}
.card-list-row { background: #fff; padding: 5px; }
.card-list-row:nth-child(odd) { background: #eee; }

.card-list-name {
width: 120px; white-space: nowrap; overflow: hidden; line-height: 10px; text-overflow: ellipsis;
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
	
	.card-list-name {
		width: 70px;
		line-height: 10px;
	}
	
	#main-list {
		margin: 0;
	}
}

.videocontent {
  position: relative;
  margin: 0 auto;
  padding: 20px;
}
.videocontent:before {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/*  Rollover image styles  */
  .figure {
    position: relative;
    width: 360px; /* can be omitted for a regular non-lazy image */
    max-width: 100%;
  }
  .figure img.image-hover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    object-fit: contain;
    opacity: 0;
    transition: opacity .2s;
  }
  .figure:hover img.image-hover {
    opacity: 1;
  }

.pricingButton {
	height: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
}

/*form styles*/
#msform {
    text-align: center;
    position: relative;
    margin-top: 30px;
}

#msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 0px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;

    /*stacking fieldsets above each other*/
    position: relative;
}

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}

/*inputs*/
#msform input, #msform textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 0px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2C3E50;
    font-size: 13px;
}

#msform input:focus, #msform textarea:focus {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: 1px solid #ee0979;
    outline-width: 0;
    transition: All 0.5s ease-in;
    -webkit-transition: All 0.5s ease-in;
    -moz-transition: All 0.5s ease-in;
    -o-transition: All 0.5s ease-in;
}

/*buttons*/
.action-button {
    width: 100px;
    background: #ee0979;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

.action-button:hover, #msform .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #ee0979;
}

#msform .action-button-previous {
    width: 100px;
    background: #C5C5F1;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

#msform .action-button-previous:hover, #msform .action-button-previous:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #C5C5F1;
}

/*headings*/
.fs-title {
    font-size: 18px;
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

#progressbar li {
    list-style-type: none;
    color: white;
    text-transform: uppercase;
    font-size: 9px;
    width: 33.33%;
    float: left;
    position: relative;
    letter-spacing: 1px;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 24px;
    height: 24px;
    line-height: 26px;
    display: block;
    font-size: 12px;
    color: #333;
    background: white;
    border-radius: 25px;
    margin: 0 auto 10px auto;
}

/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    left: -50%;
    top: 9px;
    z-index: -1; /*put it behind the numbers*/
}

#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}

/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before, #progressbar li.active:after {
    background: #ee0979;
    color: white;
}


/* Not relevant to this form */
.dme_link {
    margin-top: 30px;
    text-align: center;
}
.dme_link a {
    background: #FFF;
    font-weight: bold;
    color: #ee0979;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 5px 25px;
    font-size: 12px;
}

.dme_link a:hover, .dme_link a:focus {
    background: #C5C5F1;
    text-decoration: none;
}

@media (min-width: 768px) {
.modal-dialog {
    max-width: 90% !important;
    margin: 1.75rem auto;
}
}

.legality {
	border: 1.4px solid #000;
	background: white;
	padding: 1px;
	padding-left: 2px;
	padding-right: 2px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 12px;
	vertical-align: baseline;
}

        /* Namespace: cg- (Clean Gallery) */
        
        /* Using a wrapper or specific classes to avoid tag selectors like 'header' or 'nav' */
        .cg-main-wrapper {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
			font-family: 'Open Sans', sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }

        .cg-gallery-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 3rem;
            background-color: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-sizing: border-box;
			min-height: 89px;
        }

        /* Left: Logo/Breadcrumbs */
        .cg-brand {
			font-family: 'Open Sans', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            letter-spacing: -0.025em;
            color: #1e293b;
        }

        .cg-brand-separator {
            color: #cbd5e1;
            font-weight: 300;
            margin: 0 0.5rem;
        }

        .cg-user-context {
            font-weight: 400;
            color: #64748b;
        }

        /* Center: Navigation Links */
        .cg-nav-menu {
			font-family: 'Open Sans', sans-serif;
            display: flex;
            list-style: none;
            gap: 2.5rem;
            padding: 0;
            margin: 0;
        }

        .cg-nav-item {
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            color: #64748b;
            position: relative;
            padding-bottom: 0.25rem;
            transition: color 0.2s ease;
        }

        .cg-nav-item:hover {
            color: #0f172a;
        }

        .cg-nav-item.cg-active {
            color: #0f172a;
        }

        .cg-nav-item.cg-active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #0f172a;
        }

        /* Right: Actions */
        .cg-actions-area {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        /* Avatar Group */
        .cg-avatar-group {
            display: flex;
            align-items: center;
        }

        .cg-avatar-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid #ffffff;
            background-color: #e2e8f0;
            margin-left: -8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 700;
            color: #475569;
        }

        .cg-avatar-circle:first-child {
            margin-left: 0;
        }

        .cg-avatar-circle.cg-more {
            background-color: #0f172a;
            color: #ffffff;
            border-color: #ffffff;
        }

        /* Primary Button */
        .cg-btn-save {
            background-color: #0f172a;
            color: #ffffff;
            padding: 0.625rem 1.25rem;
            border-radius: 6px;
            font-size: 0.875rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background-color 0.2s ease;
        }

        .cg-btn-save:hover {
            background-color: #1e293b;
        }

        /* Icon Helper */
        .cg-svg-icon {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .cg-gallery-header {
                padding: 1rem 1.5rem;
            }
            .cg-avatar-group {
                display: none;
            }
        }
		
		#copyMessage {
			color: #4caf50;
			font-weight: 600;
			transition: opacity 0.3s ease;
		}
		
		@media (max-width: 768px) {
    #mobileNav {
        display: none;
        position: absolute;   /* dropdown style */
        top: 89px;            /* below header/logo */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
		width: 100%;
		border-top: 1px solid #ccc;
    }
	
	/* Show menu when active class is added */
    #mobileNav.active {
        display: block;
    }
	
	.navbar.open {
		visibility: hidden;
	}
	
	.cg-nav-menu {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

    .cg-nav-menu ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .cg-nav-menu li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .cg-nav-menu li a {
        display: block;
        color: #333;
        text-decoration: none;
    }

    .cg-brand {
        cursor: pointer; /* indicate clickable */
    }
}

.category-header { cursor: pointer; padding: 8px; margin-top: 5px; padding: 20px; }
    .binder-list { margin-left: 20px; }
    .binder-item { padding: 5px 0; }
