@font-face {
    font-family: 'Aptos';
    src: url('./type/Aptos-Display.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'Aptos';
    src: url('./type/Aptos-ExtraBold.woff') format('woff');
    font-weight: bold;
}

@font-face {
    font-family: 'Playfair';
    src: url('./type/PlayfairDisplay-Bold.woff') format('woff');
    font-weight: bold;
}

@keyframes slide {
    from {
        transform: translate(-100%, 0);
    }
    to {
        transform: translate(-100%, -100%);
    }
}

* {
    font-family: Aptos, 'Calibri', Tahoma, sans-serif;
    text-rendering: geometricPrecision;
}

p {
    font-size: 1rem;
    line-height: 1.1rem;
    margin-bottom: 0.2rem;
}

button {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px;
    border-radius: 6px;
    color: #000;
    background-color: #bbb;
    position: relative;
    margin: 0.2rem;
    left: 100%;
    width: 50%;
    transform: translate(-150%, 0);
}

button:hover {
    background-color: #eee;
}

div.copy {
    position: absolute;
    top:200%;
}

#overlay { 
    width: 100%;
    height: 30%;
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translate(-100%, 0%);
    z-index: 10;
    background-color:rgba(0.1, 0.1, 0.1, 0.7);
    color: #fff;
    line-height: 1.4rem;
}

#overlay.active {
    transform: translate(-100%, -100%);
}

#overlay * {
    padding: 0 0.5rem 0 0.5rem;
}

#placeholder {
    width: 100%;
    height: 100%;
    display: flex;
}

.more {
    width: 25%;
    position: relative; 
    left: 65%;
    margin-top: 1rem;
}

.slide-in {
    animation: slide 0.5s ease-in-out;
}

.slide-out {
    animation: slide 0.5s reverse ease-in-out;
}

/* MindAR.js styles */

#reticle {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: transparent;
	z-index: 2;
}

@media (min-aspect-ratio: 1/1) {
	#reticle .inner {
	  width: 50vh;
	  height: 50vh;
    }
}

@media (max-aspect-ratio: 1/1) {
	#reticle .inner {
	  width: 80vw;
	  height: 80vw;
    }
}

#reticle .inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background:
	  linear-gradient(to right, white 2px, transparent 2px) 0 0,
	  linear-gradient(to right, white 2px, transparent 2px) 0 100%,
	  linear-gradient(to left, white 2px, transparent 2px) 100% 0,
	  linear-gradient(to left, white 2px, transparent 2px) 100% 100%,
	  linear-gradient(to bottom, white 2px, transparent 2px) 0 0,
	  linear-gradient(to bottom, white 2px, transparent 2px) 100% 0,
	  linear-gradient(to top, white 2px, transparent 2px) 0 100%,
	  linear-gradient(to top, white 2px, transparent 2px) 100% 100%;
	background-repeat: no-repeat;
	background-size: 22px 22px;
    opacity: 0.7;
}

#reticle.hidden {
	display: none;
}

#reticle img {
	width: 95%;
	align-self: center;
}

#reticle .inner .scanline {
	position: absolute;
	width: 100%;
	height: 6px;
	background: red;
	animation: move 3s ease-in-out infinite;
}

@keyframes move {
	0%, 100% { top: 0% }
	50% { top: calc(100% - 2px) }
} 

/* Embla styles */

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

button.embla__prev, button.embla__next {
    width: 30%;
}