@font-face {
    font-display: swap;
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/ibm-plex-sans-v22-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/ibm-plex-mono-v20-latin-300.woff2') format('woff2');
}

@media (max-width: 800px) {
    @font-face {
        font-display: swap;
        font-family: 'Cascadia Mono';
        font-style: normal;
        font-weight: 300;
        src: url('fonts/cascadia-mono-v5-braille-300.woff2') format('woff2');
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}



#intro {
    height: 100vh;
    position: relative;
    width: 100vw;
}

@media (max-width: 800px) {
    #intro {
        height: 50vh;
    }
}

#container {
    height: 100%;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;

}

.overlay {
    font-family: 'IBM Plex Mono';
    font-size: 19.3px;
    opacity: 0;
}

#top {
    display: flex;
    gap: 50px;
    position: absolute;
    top: 17.5vh;
    right: 30vw;
    overflow: hidden;
    -webkit-text-stroke: 1px;
}

@media (max-width: 800px) {
    #top {
        top: 5vh;
        right: 7.5vw;
        font-size: 2.5rem;
    }
}

#middle {
    display: flex;
    gap: 50vw;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-text-stroke: 1px;
    font-size: 2rem;
}

@media (max-width: 800px) {
    #middle {
        gap: 80vw;
    }
}

#middle {
    cursor: pointer;
}

.overlay {
    z-index: 999;
}

#info_text {
    display: grid;
    position: absolute;
    bottom: 70px;
    width: 100vw;
    text-align: center;
}

#info_text>* {
    grid-area: 1/1/2/2;
    opacity: 0;
    width: 100%;
    z-index: 999;
}

#bottom {
    display: grid;
    position: absolute;
    bottom: 10px;
    width: 100vw;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "a b c";
}

#left {
    grid-area: a;
    justify-self: start;
    padding-left: 10px;
    display: flex;
    cursor: pointer;
}

#centre {
    grid-area: b;
    justify-self: center;
    display: flex;
}

#right {
    grid-area: c;
    justify-self: end;
    padding-right: 10px;
    display: flex;
    cursor: pointer;
}

.frame {
    display: grid;
    justify-items: center;
    align-self: center;
    grid-area: 1/1/2/2;
    row-gap: 50px;
    width: 100vw;
    opacity: 0;
}

.caption_outer {
    display: grid;
}

.caption_outer>* {
    grid-area: 1/1/2/2;
}

.frame .img,
.frame video {
    opacity: 0;
}

/* @media (max-width: 800px) {
    .frame {
        padding-bottom: 12.5vh;
    }
} */

#fr1 {
    z-index: 1;
}

#fr2 {
    z-index: 2;
}

#fr4 {
    z-index: 3;
}

#fr5 {
    z-index: 4;
}

#fp_grid,
#br_grid {
    display: grid;
    justify-items: center;
}

.frame img,
.frame video {
    display: block;
    max-inline-size: 100%;
    max-height: 300px;
    object-fit: contain;
    grid-area: 1/1/2/2;
}

@media (max-width: 800px) {

    .frame img,
    .frame video {
        max-height: 300px;
    }
}

/* #video_grid {
    display: grid;
    width: fit-content;
    height: fit-content;
}

#video_grid>* {
    grid-area: 1/1/2/2;
} */

.alt {
    opacity: 0;
}

.caption {
    /* margin-top: 50px; */
    font-family: 'IBM Plex Sans';
    font-size: 29px;
    font-weight: 500;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 800px) {
    .caption {
        font-size: 1.5rem;
        /* width: 28ch; */
        text-transform: uppercase;
        overflow-wrap: normal;
    }
}

@media (max-width: 800px) {
    .braille {
        font-family: 'Cascadia Mono', 'Segoe UI';
        -webkit-text-stroke: 0.2px;
    }
}


#braille {
    font-size: 1.25vw;
    width: 30%;
    text-align: justify;
}

/* #braille2 {
    font-size: 41.1px;
} */

@media (max-width: 800px) {
    #braille {
        font-size: 1.5rem;
        width: 70%;
        text-align: justify;
    }
}

.fr2 {
    grid-area: 1/1/2/2;
}

#cost_wrapper {
    display: grid;
    justify-self: center;
}

@media (min-width:801px) {
    #cost_wrapper {
        justify-self: center;
    }
}

#cost_wrapper>* {
    grid-area: 1/1/2/2;
}

#cost1980 {
    width: fit-content;
}

/* @media (max-width: 800px) {
    #cost1980 {
        justify-self: center;
    }
} */

#cost2,
#cost3 {
    opacity: 0;
    width: fit-content;
}



#strike {
    width: 1px;
    height: 5px;
    background-color: red;
    opacity: 0;
    z-index: 1;
    align-self: center;
    justify-self: start;
}

#costToday {
    opacity: 0;
}

.box {
    height: min-content;
    width: fit-content;
    justify-self: center;
}

/* #cost2,
#cost3,
#costToday,
#strike {
    opacity: 0;
} */


#caption4 {
    display: flex;
    overflow: visible;
}

.box {
    overflow: hidden;
}

.imgbox {
    width: fit-content;
    height: fit-content;
    overflow: hidden;
}

#container2 {
    position: absolute;
    top: 2.5vh;
    left: 10vw;
    width: 80vw;
    height: 80vh;
    justify-self: center;
    display: grid;
    background-color: #00B050;
    visibility: hidden;
    overflow: hidden;
    border: 3px solid black;
    opacity: 0;
    z-index: 8;
}

@media (max-width: 800px) {
    #container2 {
        height: 35vh;
    }
}

#container3 {
    grid-area: 1/1/2/2;
    width: 160vw;
    height: 160vh;
    opacity: 0;
    visibility: hidden;
    z-index: 8;
    border: 3px solid transparent;
    display: grid;
    /* border: 1px solid red; */
}

@media (max-width: 800px) {
    #container3 {
        height: 70vh;
    }
}

#braille2 {
    width: 100%;
    align-self: start;
    text-align: justify;
    will-change: transform;
    z-index: 10;
}

#canvas,
#canvasStatic {
    grid-area: 1/1/2/2;
}

.floating_text {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
    display: grid;
    width: 100vw;
    height: 100%;
    /* -webkit-text-stroke: 2px; */
    visibility: hidden;

}

#text3 {
    align-self: end;
    line-height: 10px;
    display: grid;

}

/* @media (max-width: 800px) {
    #text3 {
        margin-bottom: 15vh;
    }
} */

#fifty_k {
    width: 500px;
    height: 100px;
    justify-self: center;
    margin-bottom: 10px;

}

@media (min-width: 801px) {
    #fifty_k {
        margin-top: 20vh;
    }
}

@media (max-width: 800px) {
    #fifty_k {
        width: fit-content;
        height: fit-content;
        margin-bottom: 35px;
    }
}

#amount {
    font-size: 80px;
    font-family: "IBM Plex Sans";
    paint-order: stroke;
    stroke: black;
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 800px) {
    #amount {
        font-size: 50px;
        stroke-width: 5.5px;
    }
}

@media (max-width: 800px) {
    .piezo {
        width: 90%;
    }
}

#machines {
    will-change: transform;
}

#fr1,
#caption1,
#fp_grid,
#fp1,
.overlay {
    opacity: 1;
}

#fr6 {
    justify-items: center;
}

#caption3 {
    opacity: 0;
}

#cap9box {
    background-color: #fff;
}

/* #fr9_top {
    border: 1px solid blue;
}

#fr9_top_box {
    border: 1px solid red;
    align-self: end;
} */

/* #piezo_img5 {
    opacity: 0;
} */

/* #fr10 {
    text-align: center;
    letter-spacing: 0.2rem;
    line-height: 1.5;
} */

/* #fr1,
#fr6,
#fr2,
#fr3,
#fr9,
#fr5,
#fr4,
#fr7,
#fr8 {
    opacity: 0;
}

.container2,
#container3 {
    opacity: 1;
    visibility: visible;
} */