html, body {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.spread {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: start;
    align-content: center;
    min-height: 100vh;
}

.spread img {
    width: 100%;
    height: auto;
    display: block;
}

.text {
    position: relative;
}

.anim {
    /*width: 75%;*/
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
}

.frame {
    grid-area: 1 / 1;
    visibility: hidden;
}

.frame img {
    width:  80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#special {
    top: 40%;
}

.anim:not(.spread .anim) {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body:has(> .big-quote), body:has(> #tiled-quote), body:has(> #title-page){
    min-height: 100vh;
    display: grid;
    place-items: center;
}

/* title */

#title-page {
    display: grid;
    width: 50%;
}

#title{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

#title:hover {
    cursor: crosshair;
}

#title-page img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

img#title-cap {
    width: 70%;
    justify-self: center;
}

/* page 1 */

#press-and-hold-hover {
    border: 0px;
    height: 10%;
    width: 46%;
    position: absolute;
    bottom: 5%;
    left: 32%;
    border-radius: 30px;
    transform: rotate(-1deg);
}

#press-and-hold-hover:hover {
    box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);
    cursor: crosshair;
}

/* page 2 */

#notes img:hover {
    transform: rotate(4deg);
    cursor: crosshair;
    /*box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);*/
}

#notes .frame img:hover {
    /*transform: rotate(4deg);*/
    cursor: crosshair;
    /*box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);*/
}

/* page 3 */

#identify-input {
    left: 20%;
    top: 50%;
    width: 66%;
    height: 31%;
    font-family: 'Arial', sans-serif;
    font-size: 1.4em;
    padding: 10px;
}

.type-input {
    position: absolute;
    box-sizing: border-box;
    border: 0px;
    outline: none;
    background: transparent;
    font-family: inherit;
}

.type-input:focus {
    outline: none;
    background: transparent;
    box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);
}

/* page 4 */

#right-side {
    position: relative;
}

#traffic-id {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    width: 80%;
}

.traffic {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.traffic .frame img {
    width: 100%;
}

.clickable:hover img {
    box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);
    cursor: crosshair;
}

/* page 5 */

#receipt-wrap{
    position: relative;
    width: 50%;
    margin: 0 auto;
}

#receipt {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.option {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

#receipt .frame img, #option .frame img {
    width: 100%;
}

#receipt-hover {
    position: absolute;
    /*background-color: red;*/
    height: 11%;
    width: 66%;
    top: 65%;
    left: 5%;
}

#dropdown {
    display: none;
    position: absolute;
    z-index: 20;
    top: 65%;
    left: 5%;
    width: 66%;
}

#dropdown.open {
    display: block;
}

#option-0 {
    position: relative;
    opacity: 1;
}

.hover-area {
    position: absolute;
    z-index: 10;
}

#area-1:hover, #area-2:hover, #area-3:hover {
    cursor: crosshair;
}

#area-1 {
    top: 26%;
    left: 2%;
    width: 98%;
    height: 22%;
    /*background-color: rgba(132, 245, 149, 0.466);*/
}

#area-2 {
    top: 48%;
    left: 2%;
    width: 98%;
    height: 22%;
    /*background-color: rgba(132, 162, 245, 0.466);*/
}

#area-3 {
    top: 71%;
    left: 2%;
    width: 98%;
    height: 24%;
    /*background-color: rgba(231, 231, 49, 0.466);*/
}

.selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: absolute;
    width: 34%;
    top: 65%;
    left: 27%;
}

/*page 6 */

.big-quote {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.big-quote img, .big-quote .frame img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

#pretending {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
}

#pretending:hover {
    cursor: crosshair;
}

/*page 7 */

#tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: absolute;
    top: 30%;
    left: 16%;
    width: 10%;
}

#tiles .frame img {
    width: 100%;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 0 8px rgba(91, 91, 91, 1))
        drop-shadow(0 0 8px rgba(91, 91, 91, 0.8));
}

#tiles:hover {
    cursor: grab;
}

#tiles:hover .frame img {
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 1))
        drop-shadow(0 0 8px rgba(0, 255, 247, 0.8));
}

#tiles img {
    pointer-events: none;
}

.next-btn, .verify-btn {
    position: absolute;
    bottom: 0%;
    right: 10%;
    display: grid;
    width: 20%;
}

.next-btn:hover, .verify-btn:hover {
    cursor: crosshair;
}

.next-btn img, .verify-btn img {
    width: 100%;
    height: auto;
    grid-area: 1 / 1;
}

.next-btn img:last-child, .verify-btn img:last-child {
    opacity: 0;
}

.next-btn:hover img:last-child, .verify-btn:hover img:last-child {
    opacity: 1;
}

.next-btn:hover img:first-child, .verify-btn:hover img:first-child{
    opacity: 0;
}

/* page 8 */

#slide-strip {
    position: absolute;
    top: 66%;
    left: 18%;
    width: 64%;
    clip-path: inset(0 100% 0 0);
    pointer-events: none;
}

#slide-btn {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: absolute;
    top: 67%;
    left: 18%;
    width: 10%;
}

#slide-btn .frame img {
    width: 100%;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 0 8px rgba(91, 91, 91, 1))
        drop-shadow(0 0 8px rgba(91, 91, 91, 0.8));
}

#slide-btn:hover {
    cursor: grab;
}

#slide-btn:hover .frame img {
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 1))
        drop-shadow(0 0 8px rgba(0, 255, 247, 0.8));
}

#slide-btn img {
    pointer-events: none;
}

#piece {
    position: absolute;
    width: 10%;
    top: 37%;
    left: 50%;
}

/* page 9 */

.objects {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: absolute;
    width: 21%;
}

#shape-1{ top: 44%; left: 13%; }
#shape-2{ top: 31%; left: 63%; }
#shape-3{ top: 73%; left: 10%; }
#shape-4{ top: 55%; left: 50%; }
#shape-5{ top: 71%; left: 32%; }
#shape-6{ top: 69%; left: 67%; }

.objects:hover .frame img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 1))
        drop-shadow(0 0 8px rgba(0, 255, 247, 0.8));
}

.objects:hover {
    cursor: grab;
}

.objects.selected .frame img {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 1))
        drop-shadow(0 0 8px rgba(0, 255, 247, 0.8));
}

/* page 10 */

#tiled-quote {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 1px;
    width: 80%;
    margin: 0 auto;
}

.tiled-quote-piece {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.tiled-quote-piece img {
    width: 100%;
    height: auto;
    display: block;
}

.tiled-quote-piece:hover {
    box-shadow: 0 0 8px 2px rgba(0, 255, 247, 0.8);
    cursor: crosshair;
    z-index:10;
    transform: scale(1.02);
}

.front-tile, .flipped-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-area: 1 / 1;
}

.flipped-tile {
    opacity: 0;
}

.tiled-quote-piece.flipped .front-tile {
    opacity: 0;
}

.tiled-quote-piece.flipped .flipped-tile{
    opacity: 1;
}

.verify-btn {
    display: none;
}

.verify-btn.show {
    display: grid;
}

/* page 11 */
.credit-hovers {
    position: absolute;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    opacity: 0;
}

.credit-hovers:hover {
    opacity: 1;
    cursor: crosshair;
}

.credit-hovers .frame img {
    width: 100%;
}

#hover-1 { /*nicci*/
    top: 13%;
    left: 43.5%;
    width: 20%;
}

#hover-2 { /*il-verse*/
    top: 15%;
    left: 1%;
    width: 75%;
}

#hover-3 { /*agof*/
    top: 30%;
    left: 1%;
    width: 76%;
}

#hover-4 { /*jackie*/
    top: 42%;
    left: 7%;
    width: 85%;
}

#hover-5 { /*are.na*/
    top: 66%;
    left: 12%;
    width: 26%;
}

#hover-6 { /*iomu*/
    top: 70%;
    left: 20%;
    width: 64%
}

/* ---- */
.laptop {
    z-index: -1;
    position: absolute;
    background-color: #000;
}

.laptop img {
    width: 100%;
    height: auto;
}