/*********** VARIABLES *************/

:root {
	--dark-body-color: #dbdbdb;
	--dark-body-background: black;
	--dark-crt-color: yellowgreen;
	--dark-crt-bg0: #05321e;
	--dark-crt-bg1: #050505;
	--dark-crt-lingrad0: rgba(18, 16, 16, 0);
	--dark-crt-lingrad1: rgba(0, 0, 0, 0.25);


	--light-body-color: #3b3c38;
	--light-body-background: white;
	--light-crt-color: #3b3c38;
	--light-crt-bg0: #ffffff;
	--light-crt-bg1: #ffffff;
	--light-crt-lingrad0: rgba(18, 16, 16, 0);
	--light-crt-lingrad1: rgba(211, 211, 211, 0.25);
}

.theme-dark {
	background: black;
	color: white;
	--logo-outer: #373737;
	--logo-inner: #181818;
	--logo-details: #696969;
	--nav-icons: #373737;
	--sequence-text: white;
	--left-bkg: rgb(45 45 45);
	--left-border: black;
	--left-shadow: #4b4b4b;
	--cat-box: #404040;
	--crt-color: var(--dark-crt-color);
	--crt-bg0: var(--dark-crt-bg0);
	--crt-bg1: var(--dark-crt-bg1);
	;
	--crt-lingrad0: var(--dark-crt-lingrad0);
	--crt-lingrad1: var(--dark-crt-lingrad1);
	--crt-flash-bgd: yellowgreen;

}

.theme-light {
	background: white;
	color: #3b3c38;
	--logo-outer: black;
	--logo-inner: white;
	--logo-details: #FF0000;
	--nav-icons: #373737;
	--sequence-text: black;
	--left-bkg: rgb(241, 241, 241);
	--left-border: white;
	--left-shadow: #adadad;
	--cat-box: white;
	--crt-color: var(--light-crt-color);
	--crt-bg0: var(--light-crt-bg0);
	--crt-bg1: var(--light-crt-bg1);
	;
	--crt-lingrad0: var(--light-crt-lingrad0);
	--crt-lingrad1: var(--light-crt-lingrad1);
	--crt-flash-bgd: darkgray;
}


*,
*::before,
*::after {
	font-family: 'Roboto', sans-serif;
}

body.list {
	display: grid;
	grid-template: auto 1fr auto / auto 1fr;
}

header {
	border-bottom: 1px solid #626262;
	margin: 0 0 26px 0;
	padding: 11px 0 13px 0;
	justify-content: space-between;
	align-items: center;
	display: flex;
}

header.list {
	/*padding: 0.4rem 0 2rem 0;*/
	grid-column: 1 / 4;
}

.h1-home {
	border-bottom: 1px solid #d7d7d7;
	padding: 6px 0;
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 3px;
	text-align: right;
}


@media only screen and (max-width: 500px) {
	#icon-logo {
		display: none;
	}
}

.left-side {
	grid-column: 1 / 2;
}

main {
	grid-column: 2 / 4;
}

/*yuck. Think of something to avoid media query*/
@media only screen and (min-width: 800px) {
	main.view {
		padding: 0 0 0 100px;
	}
}

footer.list {
	grid-column: 1 / 4;

}

footer {
	margin: 80px 0;
	text-align: center;
	border-top: 1px solid #626262;
	padding: 20px 0;
	font-size: 0.9rem;
	color: #787878;

}

footer svg {
	margin: 5px;
}

.left-side {
	width: 0;
	transition: 0.5s;
}

.left-side > .title-collections {
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	margin-left: 14px;
	letter-spacing: 3px;
	display: none;
}

.left-side > .category-box {
    display: none;
}

@media only screen and (min-width: 600px) {
	.left-side {
		width: 300px;
		margin-right: 20px;
		background-color: var(--left-bkg);
		border-right: 3px solid var(--left-border);
		box-shadow: 3px 0 0 0 var(--left-shadow);
	}

	.left-side > .title-collections {
		display: block;
	}
	
    .left-side > .category-box {
        display: block;
    }	

	.menu-icon {
		display: none;
	}

}

.left-side.active {
	width: 91vw;
	transition: 0.5s;
}
.left-side.active > .category-box {
    display: block;
}

.left-side > div > a {
	color: black;
	text-decoration: none;
	font-size: 0.95rem;
}

.left-side > div {
	/* overflow:auto; */
	padding: 10px;
	height: 60px;
	margin-bottom: 15px;
}

.left-side > div > img {
	float: right;
	border: white solid 3px;
	width: 278px;
	height: 90px;
}

.left-side > div:hover > img {
	transform-origin: center left;
}

.title-collections {
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	margin-left: 14px;
	letter-spacing: 3px;
}

.category-box {
	display: block;
	margin: 11px 6px;
	padding: 5px;
	background: var(--cat-box);
	text-decoration: none;
}


.category-box-image-outer {
	height: 90px;
}

.category-box-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-box-text-outer {
	height: 18px;
	background: #545454;
	margin: 7px 0 0;
	padding: 8px;
}

.category-box-name {
	font-size: 0.9rem;
	color: white;
	font-weight: 700;
	text-transform: uppercase;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
	align-items: flex-start;
}

.card {
	--padding: 1rem;
	overflow: hidden;
}

.card-header {
	font-size: 1.5rem;
	padding: var(--padding);
	padding-bottom: 0;
	margin-bottom: .5rem;
}

.card-header.card-image {
	padding: 0;
	overflow: hidden;
}

.card-header.card-image>img,
.card-header.card-image>a>img {
	display: block;
	width: 100%;
	/* max-height: 200px; */
	/* aspect-ratio: 16 / 9; */
	object-fit: cover;
	object-position: center;
	transition: 200ms transform ease-in-out;
}

.card:hover>.card-header.card-image>img {
	transform: scale(1.025);
}

.card-body {
	font-size: .9rem;
	line-height: 1.2;
}

.card-image>a {
	position: relative;
}

.preview-button {
	position: absolute;
	bottom: 10px;
	right: 5px;
}

.preview-button svg {
	width: 38px;
	padding: 3px 0 5px;
}

.list-category-title {
	line-height: 0;
	font-size: 1.4rem;
	color: #999999;
	text-transform: uppercase;
}
@media only screen and (min-width: 500px) {
	.list-category-title {
    	font-size: 1.7rem;
	}
}


.list-category-title>span {
	color: #ffffff;
}

.list-category-description {
	font-size: 0.95rem;
	margin: 0 0 10px;
}

.list-item-title {
	margin: 0 0 3px 0;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.list-item-info {
	line-height: 1.4;
}

.list-item-info>span {
	color: #959595;
}

.list-item-price {
	float: right;
	font-size: 1.4rem;
	font-weight: 700;
	color: #FF0716;
}

.detail-metamask-box {
	display: flex;
	align-items: center;
}

.detail-metamask-logo {
	width: 50px;
	padding: 0 4px 0 0;
}

.detail-metamask-head {
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.5;
}

.detail-metamask-select-account {
	font-size: 0.9rem;
}

.detail-back-to-category {
	font-size: 1rem;
	font-weight: 700;
	color: #484848;
	text-decoration: none;
	line-height: 2;
}

.detail-item-price {
	float: right;
	font-size: 1.8rem;
	font-weight: 700;
	color: #FF0716;
}

.detail-item-title {
	margin: 3px 0 2px 0;
	font-size: 1.3rem;
}

.detail-item-description {
	font-size: 0.9rem;
	margin: 0 0 18px 0;
	font-style: italic;
}

.detail-item-info {
	line-height: 1.4;
}

.detail-item-info>span {
	color: #959595;
}

.detail-item-edition {
	line-height: 1.4;
}

.detail-item-artist {
	line-height: 1.4;
}

.detail-item-status {
	line-height: 1.4;
}

.detail-chain-block {
	background: #EBEBEB;
	width: 334px;
	height: 60px;
	margin: 10px 0;
}

.detail-chain-icon {
	display: flex;
	width: 50px;
	height: 100%;
	justify-content: center;
	align-items: center;
	float: left;
}

.detail-chain-icon>img {
	width: 25px;
}

.detail-chain-price {
	color: #606060;
	font-size: 1.3rem;
	font-weight: 700;
	padding-top: 7px;
}

.detail-chain-price > span {
    font-size: 1rem;
}

.detail-chain-price-info {
	color: #606060;
	font-size: 0.8rem;
}


/*computer screen
hints from https://dev.to/ekeijl/retro-crt-terminal-screen-in-css-js-4afh
*/

#updatebox::before {
	content: " ";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(to bottom,
			var(--crt-lingrad0) 50%,
			var(--crt-lingrad1) 50%);
	background-size: 100% 8px;
	z-index: 2;
	pointer-events: none;
}

#updatebox {
	display: block;
	position: relative;
	background: #05321e;
	background-image: radial-gradient(ellipse,
			var(--crt-bg0) 0%,
			var(--crt-bg1) 90%);
	font-family: monospace;
	/*white-space: pre;*/
	/*margin: 1em 0;*/
	caret-color: transparent;
	min-height: 250px;
	width: 320px;
	color: var(--crt-color);
	padding: 15px;
	width: 100vw;
	border-radius: 5%;
}

@media only screen and (min-width: 600px) {

	#updatebox {
		max-width: 320px;
	}

}

/* Puts a blinking square after the content as replacement for caret */
#updatebox::after {
	content: "■";
	animation: cursor 1s infinite;
	animation-timing-function: step-end;
	margin-left: 1px;
	line-height: 1rem;
	color: var(--crt-color);
	font-size: 20px;
}

.removeAfter::after {
	content: none !important;
}

#updatebox a {
	color: black;
	background: var(--crt-flash-bgd);
	text-decoration: none;
}


blink {
	animation: blink 1s step-start 0s infinite;
	margin-right: 10px;
}

@keyframes blink {
	50% {
		opacity: 0.0;
	}
}


@keyframes cursor {
	0% {
		opacity: 1;
	}

	25% {
		opacity: 0;
	}

	75% {
		opacity: 1;
	}

	100% {
		opacity: 1;
	}
}