

.message {
	position: relative;
	z-index: 100;
	display: none;
	padding: 1em;
	text-align: center;
	color: var(--color-bg);
	background: var(--color-text);
}

/* Icons */
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}



.content {
	text-align: center;
}

/* Header */
.codrops-header {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	justify-items: center;
	color: var(--color-header);
	padding: 1rem 0;
}

.codrops-header__title {
	font-size: 1rem;
	line-height: 1;
	font-weight: normal;
	margin: 0 1rem;
}

.info {
	display: block;
	max-width: 260px;
	margin: 0 1rem;
	font-weight: bold;
}

.github {
	display: block;
	grid-area: github;
	justify-self: start;
}

/* Top Navigation Style */
.codrops-links {
	position: relative;
	display: flex;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
	font-size: 0.85rem;
}

.codrops-icon {
	display: inline-block;
	padding: 0.25em;
}

.page-header__title {
	font-size: 1rem;
	margin: 0;
}

.page-header__title-inner {
	position: relative;
	line-height: 1.25;
	margin: 0 0.5rem 0 0;
	padding: 0 1rem 0 0;
}

.page-header__title-inner::after {
	content: '';
	right: 0;
	width: 3px;
	height: 1.25rem;
	background: currentColor;
	position: absolute;
}

.page-header__title-sub {
	position: relative;
}

.social {
	display: none;
}

.social__item {
	display: block;
	font-size: 0.75rem;
	margin: 0 0.25rem;
}

.slideshow {
	position: relative;
}

.slideshow::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.4);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.4s;
}

.slideshow--details::after {
	opacity: 1;
}

.slide {
	width: 100%;
	height:100%;
	top: 0;
	left: 0;
	position: absolute;
	overflow-x: hidden;
	pointer-events: none;
	opacity: 0;
}

.slide--current {
	opacity: 1;
	z-index: 999;
	pointer-events: auto;
	position: relative;
}

.slide__wrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.slide__bg,
.slide__img {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-color: white;
	background-size: cover;
	background-position: 50% 50%;
	position: absolute;
	pointer-events: none;
}

.slide__bg {
	filter: grayscale(1) brightness(0.7);
}

.slide__title-wrap {
	padding: 2rem 1rem 0;
	text-align: center;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.slide__title {
	margin: 0;
	
}

.slide__title span {
	display: inline-block;
}

.slide__subtitle {
	
	font-weight: normal;
}

.boxnav {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	z-index: 1000;
	width: 100%;
}

.boxnav__item {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-nav-bg);
	border: 0;
	height: 4rem;
	flex: 1;
}

.boxnav__item--prev:hover,
.boxnav__item--next:hover {
	color: var(--color-nav-hover);
}

.boxnav__item:focus {
	outline: none;
}

.boxnav__label {
	padding: 0 0.5rem;
	font-size: 1.15rem;
	position: relative;
}

.boxnav__label--total::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 0;
	width: 2px;
	height: 1.45rem;
	background: #000;
	transform: rotate(22.5deg);
}

.icon--caret-rot {
	transform: rotate(180deg);
}

.category {
	font-weight: normal;
}

.details-wrap {
	position: relative;
	pointer-events: none;
	width: 100%;
	z-index: 10000;
}

.details {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	display: grid;
	grid-auto-rows: 80px;
	overflow: hidden;
}

.details-wrap--open .details--current {
	pointer-events: auto;
}

.details__item {
	overflow: hidden;
}

.details__item--addtocart {
	grid-row: 4;
}

.details__inner {
	width: 100%;
	height: 100%;
}

.details__inner {
	display: flex;
	align-items: center;
	justify-content: space-around;
	transform: translate3d(100%,0,0);
}

.details__item-img {
	display: none;
}

.details__inner--sizes {
	background: #d4d4d4;
}

.details__size {
	position: relative;
	cursor: pointer;
}

.details__size--selected::before {
	content: '';
	position: absolute;
	width: 2rem;
	height: 2rem;
	top: 50%;
	left: 50%;
	margin: -1rem 0 0 -1rem;
	border: 2px solid #333;
	border-radius: 50%;
}

.details__inner--price {
	background: #d42d2d;
	color: #fff;
	font-size: 1.25rem;
}

.details__inner--colors {
	background: #fff;
}

.details__color {
	width: 1.5rem;
	height: 1.5rem;
	overflow: hidden;
	color: transparent;
	border-radius: 50%;
	align-self: center;
    justify-self: center;
    cursor: pointer;
}

.details__color--white {
	border: 1px solid #ddd;
}

.details__color--red {
	background: red;
}

.details__color--black {
	background: black;
}

.details__color--blue {
	background: blue;
}

.details__color--beige {
	background: beige;
}

.details__color--sky {
	background: lightblue;
}

.details__inner--grid {
	display: grid;
	padding: 1rem;
	grid-template-columns: repeat(6,1fr);
}

.action {
	border: 0;
	padding: 0;
	flex: 1;
	align-self: stretch;
	background: none;
}

.action--addtocart {
	background: var(--color-cart-bg);
	color: var(--color-cart);
}

.action--close {
	background: var(--color-close-bg);
	color: var(--color-close);
	text-transform: lowercase;
}

.action--details {
	position: absolute;
	z-index: 3000;
	top: 100%;
	font-weight: bold;
	font-size: 1.15rem;
	width: 100%;
	background: #000;
	padding: 1rem;
	color: #fff;
}

