

.blackScreen {
    width: 100vw;
    height: calc(100vh - 40px);
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 40px;
    left: 0;
    z-index: 1400;
}

.startModal {
    background-color: var(--light-color);
    width: 300px;
    height: 200px;
    padding: 60px 40px;
    max-width: calc(80% - 80px);
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 5px #000 ;
    background-image: url(images/bg-texture.png);
    background-repeat: repeat-x;
    background-size: 100%;
    background-position-y: 3px;
    color: #2f5024;
    line-height: 1.5em;
    font-family:var(--font-Baskerville:);
    border: var(--light-color) solid 1px;
}

.startModal img {
    width: 130px;
    display: block;
    margin: 20px auto;
}

.startModal::before {
    content: "";
    width: 100%;
    height: 20px;
    background-image: url(images/money-frame.png);
    background-repeat: repeat-x;
    background-size: 100%;
    position: absolute;
    top: 5px;
    left: 0;
}

.startModal::after {
    content: "";
    width: 100%;
    height: 20px;
    background-image: url(images/money-frame_USD.png);
    background-repeat: repeat-x;
    background-size: 100%;
    position: absolute;
    bottom: 5px;
    left: 0;
}

.wrapper {
    width: 100%;
    height: calc(100% - 120px);
    padding: 80px 0;
    z-index: -1000;
}

.character {
    width: 540px;
    min-height: 600px;
    height: fit-content;
    margin: 0 auto;
    border-radius: 14px;
    padding: 0;
    position: relative;
    pointer-events: none;
    z-index: 50;
}

.card-corners {
    width: 100%;
    height: 60px;
    background-image: url(images/frames/frame-side3.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: none;
    outline: none;
    box-shadow: none;
    display: block;
}
.card-corners.top {
    transform: scaleY(-1);
}

.share-btn {
    height: 60px;
    display: inline-block;
    z-index: 1000;
    transform: scaleY(-1);
    cursor: pointer;
    font-family: 'UnitedStates';
    font-size: 1em;
    color: #9e9d8f;
    box-shadow: none;
    border: none;   
    background-color: #111;
    padding: 5px 10px 20px 10px;
    border-radius: 15px;
    pointer-events: visible;
}

@media (hover: hover) {
    .share-btn:hover {
        color: #9e9d8f88;
        transition-duration: 200ms;
    }
}

#financeCard {
    background-color: #111111;
    box-shadow: 0 0 8px #000 ;
    border: #53514c solid 1px;
}


.charPic {
    width: 480px;
    height: 480px;
    margin: 10px;
    padding: 20px;
    position: relative;
}

.charImg, #shuffleGIF {
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    position: absolute;
    border-radius: 10px;
    top: 40px;
    left: 40px;
    pointer-events: none;
    /* z-index: 0; */
}

#frame {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#shuffleGIF {
    display: none;
}

.charTxt {
    width: 100%;
    height: auto;
    margin-top: 50px;
    margin-bottom: 10px;
    text-align: center;
}

.charTxt h2 {
    color: #9e9d8f;
    margin: 0;
    font-family: 'DEATH FONT';
    font-size: 3em;
    letter-spacing: 0.01em;
}

.turdBubble {
    position: absolute;
    width: 200px;
    min-height: 100px;
    /* z-index: -1; */
    text-align: center;
    line-height: 1.5em;
}
.turdBubble {
    box-shadow: 0 0 8px #000 ;
    padding: 60px 40px 40px 40px;
    background-image: url(images/bg-texture.png);
    background-repeat: repeat-x;
    background-size: 100%;
    background-position-y: 3px;
    background: var(--light-color);
    color: #2f5024;
    font-family: var(--font-Baskerville:);
    border: var(--light-color) solid 1px;
    top: 50%;
    transition-duration: 200ms;
}

.turdBubble::before {
    content: "";
    width: 100%;
    height: 15px;
    background-image: url(images/money-frame.png);
    background-repeat: repeat-x;
    background-size: auto 15px;
    position: absolute;
    top: 3px;
    left: 0;
}
.turdBubble::after {
    content: "";
    width: 100%;
    height: 15px;
    background-image: url(images/money-frame_USD.png);
    background-repeat: repeat-x;
    background-size:  auto 15px;
    position: absolute;
    bottom: 3px;
    left: 0;
}

#turdR .topImg, #turdL .topImg {
    display: block;
    width: 60px;
    height: 90px;
    position: absolute;
    top: 0;
    z-index: 10;
}
#turdR .bottomImg, #turdL .bottomImg {
    display: block;
    width: auto;
    height: 120px;
    position: absolute;
    bottom: 0;
    z-index: 8;
    pointer-events: none;
}
#turdR img {
    right: 0;
}
#turdL img {
    left: 0;
}
#turdR{
    transform: translate(-50%, -50%);
    right: calc(50% - 390px);
    border-radius: 0 2px 2px 0;
}
#turdL {
    transform: translate(50%, -50%);
    left: calc(50% - 390px);
    border-radius: 2px 0 0 2px;
}

.charTxt p {
    display: block;
    font-family: var(--font-Baskerville:);
    line-height: 1.2em;
    margin-top: 50px;
}

.cite-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: #8f2728 2px solid;
    color:#8f2728;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin: 0 3px 0 0;
    cursor: pointer;
}

/* Buttons */

.randomizer, .randomFact, .controlMain, .stems {
    width: 60px;
    height: 60px;
    position: fixed;
    border-radius: 50%;
}

.financeBtn {
    background-color: var(--light-color);
    border: #2f5024 double 4px;
    box-shadow: 0 0 5px #000 ;
    color: #2f5024;
    font-family: 'UnitedStates';
}

@media (hover: hover) {
    .financeBtn:hover {
        background-color: #8b8b7f;
        transition-duration: 200ms;
    }
}

.randomizer img, .randomFact img {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.randomizer::after, .randomFact::after {
    content: "Facts";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 40%;
    left: -150%;
    border-radius: 50%;
    color: #9e9d8f;
}
.randomizer::after {
    content: "Cards";
}

.controlMain {
    left: 20px;
    bottom: 20px;
}

#finance {
    left: 20px;
    bottom: 100px;
}

.stems {
    font-size: 1.2em;
    line-height: 3.4em;
    text-align: center;
}
.randomizer {
    right: 20px;
    bottom: 20px;
}

.randomFact {
    right: 20px;
    bottom: 100px;
}

.muted {
    display: block;
}

.unmuted {
    background-color: #203618;
    color: #747160;
    display: none;
}

@media only screen and (max-width: 1100px) {
        .turdBubble {
            position: fixed;
            top: 50%;
            z-index: 1000;
        }
            .turdBubble {
        max-height: calc(100% - 240px);
        width: calc(100% - 130px);
        padding: 70px 50px 40px 50px;
    }
    #turdR{
        /* display: none; */
        right: unset;
        left: -150%;
        transform: translate(0, -50%);

    }
    #turdL {
        transform: unset;
        left: unset;
        right: -150%;
        transform: translate(0, -50%);
    }
}
@media only screen and (max-width: 800px) {
    .wrapper {
        padding: 20px 0;
        height: calc(100% - 80px);
        overflow-y: scroll;
    }
    .character {
        max-width: calc(100% - 60px);
        min-height: unset;
        margin-bottom: 80px;
    }
    .charPic, .charImg, #shuffleGIF {
        margin: 20px auto;
    }
    .charImg, #shuffleGIF {
        margin: 0 auto;
    }
    
    .charTxt {
        width: calc(100vw - 60px);
        max-width: 500px;
        margin-bottom: 0;
    }
    .charTxt h2 {
        font-size: 2.4em;
    }

    .randomizer::after, .randomFact::after {
        display: none;
    }
        /* top: unset;
        right: unset;
        /* min-height: unset;
    }
    .turdBubble {
        background: none;
        padding: 0;
        border: none;
        box-shadow: none;
        color: #9e9d8f;
        transform: unset;
        width: inherit;
    } */
    /* .turdBubble::after {
        background: none;
    }
    .turdBubble::before {
        content: "";
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        margin: 10px auto;
        background-image: url(images/factIcon-wht.svg);
    }

    #turdL img.topImg, #turdL img.bottomImg {
        display: none;
    } */
    p.charFact {
        margin-top: 0;
    }
    .randomizer, .randomFact, .controlMain, .stems {
        width: 40px;
        height: 40px;
    }

    .randomFact {
    right: 80px;
    bottom: 20px;
    }

    #finance  {
        left: 80px;
        bottom: 20px;
    }
    
    .stems {
        font-size: 1.2em;
        line-height: 2.4em;
    }
    .randomizer img, .randomFact img {
        width: 30px;
        height: 30px;
        top: 5px;
        left: 5px;
    }
    
}
@media only screen and (max-width: 600px) and (min-height: 700px) {
    #turdL{
        /* display: none; */
        left: unset;
        right: -150%;
        top: unset;
        bottom: 0;
        transform: translate(0, -50%);

    }
    #turdR {
        right: unset;
        left: -150%;
        top: unset;
        bottom: 0;
        transform: translate(0, 50%);
    }
}

@media only screen and (max-width: 600px) {
    .charPic {
        width: calc(100vw - 100px);
        height: calc(100vw - 100px);
    }
    .charImg, #shuffleGIF {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        top: 20px;
        left: 20px;
    }
    #turdL{
        /* display: none; */
        left: unset;
        right: -150%;
        transform: translate(0, -50%);

    }
    #turdR {
        right: unset;
        left: -150%;
        transform: translate(0, -50%);
    }

    .card-corners {
        height: 40px;
    }
    .share-btn {
        height: 40px;
        padding: 10px 10px 20px 10px;
        font-size: 0.8em;
    }
}
@media only screen and (max-width: 400px) {
    .wrapper {
        padding: 0;
        height: calc(100% - 40px);
    }

    .character {
        width: calc(100% - 40px);
        max-width: unset;
        /* height: calc(100% - 120px); */
        margin: 10px auto 80px auto;
        padding: 5px;
        overflow-y: scroll;
    }
    .charPic, .charImg, #shuffleGIF {
        width: calc(100vw - 80px);
        height: calc(100vw - 80px);
        margin: 5px auto;
    }
    .charImg, #shuffleGIF {
        margin: 0 auto;
    }
    .charImg, #shuffleGIF {
        position: unset;
    }
    
    .charTxt {
        width: calc(100vw - 40px);
        /* margin: 10px auto 0 auto; */
    }
    /* #turdL {
        width: calc(100vw - 40px);
        margin: 0 auto;
    } */
    .charTxt h2 {
        font-size: 1.8em;
    }
}

.displaynone {
    display: none;
}