/* Container that holds both the tab and the sidebar */
.textSizeWrapper {
    position: sticky;
    top: 50%;
    width: 200px;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
}

/* Small visible tab */
.textSizeTab {
    width: 12px;
    height: 80px;
    background: #666;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    position: absolute;
    left: 0;
}

/* Sidebar starts hidden */
.textSizeSelector {
    width: 200px;
    height: 200px;
    opacity: 1;
    overflow: hidden;
    background: white;
    transition: width 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    transform: translateX(-200px);
    transition: transform 0.4s ease;
}

/* When hovering the wrapper OR the tab OR the sidebar, expand */
.textSizeWrapper:hover .textSizeSelector {
    transform: translateX(0px);
    transition: transform 0.4s ease;
}

/* .textSizeTab:hover {
    transform: translateX(200px);
} */


.textSizeSelector button {
    width: 160px;
    margin-left: 20px;
    padding: 10px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


#scrolly {
    position: relative;
    background-color: #ffffff;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

article {
    position: relative;
    padding: 0;
    /* max-width: 20rem; */
    /* margin: 0 auto; */
    width: 100%;
}

section {
    pointer-events: none;
    background: none;
    width: 100%;
    box-sizing: border-box;

}

figure {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 1rem;
    width: 100%;
    margin: 0;
    background-color: #8a8a8a;

}

figure p {
    text-align: center;
    padding: 1rem;
    position: absolute;
    opacity: 0;
    font-size: 2rem;
    color: #000000;
    pointer-events: none;
    z-index: 999;

}

figure img {
    opacity: 0;
    width: 800px;
    object-fit: scale-down;
    max-height: fit-content;

}

figure p.is-current {
    opacity: 1;
    pointer-events: auto;
    z-index: 999;
}

.step-content {
    position: relative;
    width: 100%;
}

.left-location,
.right-location {
    position: absolute;
}

.left-location {
    left: 0%;
    width: 500px;
}

.right-location {
    right: 5%;
    width: 500px;
    object-fit: scale-down;
}

/* figure img.is-current {
    opacity: 1;
} */

.spacer {
    margin: 0;
    color: #ffffff;
    background-color: rgba(95, 68, 68, 0);
    opacity: 0;
    /* Adjust outline for debug help */
    /* outline: 10px solid red; */

}

.step {
    margin: 0;
    color: #ffffff;
    background-color: rgba(95, 68, 68, 0);
    opacity: 1;
    /* Centering <p> within <div> */
    /* display: flex;
    justify-content: center;
    align-items: center; */
    /* Adjust outline for debug help */
    /* outline: 10px solid red; */
    z-index: 0;
}

.step:last-child {
    margin-bottom: 5rem;
    /* I'm sure there's a way to programatically center the last child, but this works for now.*/
    opacity: 1;
}

.step.is-fading-in p {
    /* background-color: goldenrod;
    color: #3b3b3b; */
    position: sticky;
    place-items: center;
    top: 50%;
    /* transform: translateY(-50%); */
    margin: 0;
}

.step.is-active p {
    background-color: goldenrod;
    color: #3b3b3b;
    position: sticky;
    top: 50%;
    /* transform: translateY(-50%); */
    margin: 0;
}

.step.is-fading-out p {
    /* background-color: goldenrod;
    color: #3b3b3b; */
    position: sticky;
    top: 50%;
    /* transform: translateY(-50%); */
    margin: 0;
}

.step p {
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    background-color: #3b3b3b;
}

/* This section is used to move the highlighting squares
on the map. It take a bit of trial and error.
You can bind the CSS settings to the div on line 139 in the HTML file. */

.mapContainer {
    transform: translateX(-20%);
    /* transform: translateY(100%); */
    background-color: #000000;
    outline: 10px solid rgb(38, 0, 255);
    position: absolute;
    width: 700px;
    aspect-ratio: 700/482.797;
    right: 0%;
    opacity: 0;
    overflow: hidden;
}

.mapContainer img {
    position: relative;
    transform: translateX(5%);
    min-width: 100%;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.6s ease;
}

.mapContainer.transition.one img {
    transition: transform 0.6s ease;
    transform: scale(4) translateX(20%) translateY(15%);
}

.mapContainer.transition.two img {
    transition: transform 0.6s ease;
    transform: scale(2) translateX(25%) translateY(-10%);
}


.highlight {
    border: 2px solid blue;
    position: absolute;
    z-index: 1500;
    opacity: 0;
    transform: translate(-50%, -50%)
}

.highlight.one {
    width: 175px;
    /* height: 150px; */
    aspect-ratio: 175/150;
    top: 35%;
    left: 32.5%;
}

.highlight.two {
    width: 80px;
    height: 80px;
    top: 48%;
    left: 55.5%;
}

.highlight.three {
    width: 120px;
    height: 90px;
    top: 50%;
    left: 45%;
}

.highlight.four {
    width: 650px;
    height: 70px;
    top: 90%;
    left: 30%;
    rotate: 30deg;
}

.highlight.five {
    width: 0px;
    height: 0px;
}

.highlight.six {
    width: 275px;
    height: 190px;
    top: 55%;
    left: 23%;
}

.debug-crosshair {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.hanging-indent {
    padding-left: 2em;
    /* Indents the entire block */
    text-indent: -2em;
    /* Pulls the first line back to the left */
}

.debug-crosshair::before,
.debug-crosshair::after {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
}

/* Vertical line */
.debug-crosshair::before {
    width: 5px;
    height: 100%;
    left: 50%;
    transform: translateX(-0.5px);
}

/* Horizontal line */
.debug-crosshair::after {
    height: 5px;
    width: 100%;
    top: 50%;
    transform: translateY(-0.5px);
}