*,*::after,*::before {
    box-sizing: border-box;
    user-select: none;
    margin: 0;
    padding: 0;
    font-family: DynaPuff, Tahoma, sans-serif;
}

:root {
    --standard-shadow: 1px 1px 3px 1px black;
    --button-background: rgba(255, 255, 255,0.9);
}

body {
    height: 99vh;
    height: calc(var(--vh,1vh) * 99);
    width: 100vw;
    padding-top: 1%;
    overflow: hidden;
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: -1;
    overflow: hidden;
}
.background-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.grids-and-alt-buttons {
    width: 100%;
    height: 50%;
    display: flex;
}
.grids-and-alt-buttons.block {
    height: 60%;
}
.all-grids-container {
    position: relative;
    margin-top: 1%;
    margin-left: 5%;
    height: 100%;
    width: 60%;
}
.all-grids-container.block {
    margin-left: 15%;
    width: 70%;
}
.alt-buttons-container {
    height: 100%;
    width: 25%;
    margin-left: 5%;
    padding-top: 4%;
}
.main-menu-container, .game-menu-container, .stats-container {
    height: 77vh;
    width: 40vw;
    min-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    border: 3px solid silver;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);   
    opacity: 0; 
    z-index: 20;
    overflow: hidden;
    transition: opacity 300ms ease-in-out;
}
.main-menu-container.show, .game-menu-container.show, .stats-container.show {
    opacity: 1;
}
.main-menu-interior {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.main-menu-upper {
    position: relative;
    height: 60%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 23;
    background-color: white;
    transition: transform 500ms ease-in-out;
}
.challenge-menu, .free-play-menu {
    position: absolute;
    top: 0%;
    height: 60%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
.challenge-menu .menu-go {
    font-size: 2rem;
}
.main-menu-upper.translate-up {
    transform: translateY(-100%);
}
.main-menu-lower {
    position: relative;
    width: 100%;
    height: 30%;
    padding: 2%;
}
.main-menu-button {
    position: relative;
    width: 80%;
    font-size: 2rem;
    border-radius: 50px;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--standard-shadow);   
}
.menu-cover {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgb(235, 250, 254);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: height 500ms ease-in-out;
    overflow: hidden;
    cursor: pointer;
}
.menu-go {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    color: var(--button-background);
    background-color: green;
    cursor: pointer;
}
.menu-cover-retract {
    height: 0;
}
.choose-overview {
    text-align: center;
    font-size: 1.5rem;
    height: 100%;
}
.game-overview {
    font-size: 1.2rem;
    text-align: center;
}
.challenge-button, .free-play-button {
    position: relative;
    width: 80%;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    box-shadow: var(--standard-shadow);   
}
.challenge-easy-cover, .free-play-1-cover {
    background-color: greenyellow;
}
.challenge-medium-cover, .free-play-2-cover {
    background-color: yellow;
}
.challenge-hard-cover, .free-play-3-cover {
    background-color: orangered;
}
.challenge-extreme-cover {
    background-color: red;
}
.challenge-back-button, .free-play-back-button{
    width: 50%;
    height: 6%;
    background-color: var(--button-background);
    box-shadow: var(--standard-shadow);   
    border-radius: 50px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.game-guide-container {
    height: 100%;
    width: 100%;
    background-color: rgba(171, 198, 207, 0.753);
}
.game-guide-header, .game-guide-footer {
    height: 6%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.game-guide-body {
    height: 88%;
    width: 100%;
    overflow-y: scroll;
}
.game-guide-body section {
    width: 100%;
    height: fit-content;
    padding: 3%;
}
.game-guide-button, .game-guide-button2 {
    margin: 0 auto;
    margin-top: 10%;
    height: 40%;
    width: 30%;
    border-radius: 8px;
    box-shadow: var(--standard-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.game-guide-button2 {
    margin: 0;
    height: 30%;
    width: 45%;
}
.autosave-toggle {
    position: relative;
}
.autosave-toggle::after {
    position: absolute;
    bottom: 5%;
    font-size: x-small;
    content: var(--autosave-state, "");
    text-align: center;
}
.manual-save, .delete-save {
    position: relative;
}
.manual-save::after {
    position: absolute;
    bottom: 5%;
    font-size: x-small;
    content: var(--manual-save, "");
    text-align: center;
}
.delete-save::after {
    position: absolute;
    bottom: 5%;
    font-size: x-small;
    content: var(--delete-save, "");
    text-align: center;
}
section > ul {
    margin-left: 5%;
}
h3, h4 {
    color: green;
}
.game-guide-close {
    width: 30%;
    border-radius: 8px;
    box-shadow: var(--standard-shadow);
}
.stats-header {
    height: 6%;
    width: 100%;
    display: flex;
}
.stats-header-left {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stats-header-right {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
}
.stats-header-button-left, .stats-header-button-right {
    width: 20%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.stats-header-showing {
    width: 60%;
    min-width: fit-content;
    padding: 2px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stats-outer {
    width: 100%;
    height: 6%;
    display: flex;
}
.stat-title {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stat-content {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stats-longest, .stats-highest {
    height: 8%;
}
.longest, .highest {
    font-size: 0.8rem;
}
.stats-close {
    height: 5%;
    margin: 0 auto;
    margin-top: 0.5%;
    margin-bottom: 0.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: var(--standard-shadow);
    width: 40%;
    cursor: pointer;
}
.round-display {
    position: absolute;
    top: 5%;
    left: -300px;
    width: 16vw;
    min-width: fit-content;
    height: 10vh;
    background-color: var(--button-background);
    box-shadow: var(--standard-shadow);   
    border-radius: 10px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 25;
    transition: transform 800ms ease-in-out;
}
.round-display.moving {
    font-style: italic;
}
.round-display.center {
    transform: translateX(calc(27vw + 300px));
}
.round-display.exit {
    transform: translateX(calc(127vw + 300px));
}
.scores-display-container {
    height: 40%;
    max-height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.scores-display {
    height: 90%;
    width: 45%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    background: var(--button-background);
}
.scores-display .text {
    width: 100%;
    height: 20%;
    min-height: fit-content;
    text-align: center;
}

.coins-display {
    display: flex;
    justify-content: center;
    align-items: center;
}
.coins-display .text {
    height: 75%;
    display: flex;
    justify-content: flex-start;
    align-items:flex-end;
    width: fit-content;
}
.scores-display .display-value {
    height: 70%;
    width: 100%;
    font-size: xx-large;
    display: flex;
    justify-content: center;
    align-items: center;
}
.display-value.low-points {
    color: red;
}
.display-value.enough-points {
    color: green;
}
.round-counter-display {
    height: 20%;
    font-size: 0.9rem;
    text-align: center;
}
.coins-display .display-value {
    justify-content: flex-start;
    align-items: flex-end;   
    width: fit-content;
}
.points-display .display-value {
    height: 60%;
}
.coin-image {
    width: 50%;
    height: auto;
    max-height: 75px;
    max-width: 72px;
}
.mini-coin {
    max-height: 30px;
}
.show-change, .show-change-block {
    position: absolute;
    top: 12%;
    width: 4vw;
    height: 4vw;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 1;
    z-index: 21;
    transform: translateY(0);
    transition: all 800ms ease-in-out;
}
.show-change-image {
    height: 100%;
    width: 100%;
}
.show-change-text {
    font-size: 3rem;
    font-weight: bold;
    color: green;
}
.show-coins-change {
    right: 19%;
}
.show-coins-change-block {
    left: 50%;
    top: 85%;
}
.show-coins-change.spend > *{
    color: red;
}
.show-coins-change-block.spend > *{
    color: red;
}
.show-points-change {
    right: 8%;
}
.show-change.shown, .show-change-block.shown {
    opacity: 0;
    transform: translateY(-30px);
}

.inv-select, .inv-select-replace {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.inv-select-replace {
    position: absolute;
    top: 0%;
    z-index: 21;
}
.inv-select img, .inv-select-replace img {
    max-height: 40px;
}
.other-buttons-container {
    margin-top: 10%;
    height: 20%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.show-store-button,.show-log-button {
    height: 100%;
    width: 40%;
    box-shadow: var(--standard-shadow);
    background: var(--button-background);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.show-store-button:hover,.show-log-button:hover {
    background-color: yellowgreen;
}
.box-grid-container,.buy-words-grid-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
}
.box-grid-container.block {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.buy-specials-grid-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
}

.buy-words-grid-container,.buy-specials-grid-container {
    position: absolute;
    margin-top: 0;
}
.grid-box,.buy-grid-box,.buy-specials-box {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 82px;
}
.fake-grid-box {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in;
}
.word-box,.buy-word-box,.inv-word-box,.specials-box {
    width: 100%;
    padding-left:2px;
    padding-right:2px; 
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    background-color: lightgreen;
    border: 2px solid silver;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    flex-grow: 0.2;
    transition: transform 0.5s ease-in;
    cursor: pointer;
}
.specials-box {
    font-size: 1rem;
}
.word-box {
    transform: translateY(-500px);
}
.buy-word-box {
    justify-content: center;
}
.buy-word-box-text,.specials-box-text {
    width: 50%;
}
.fake-word-box {
    position: relative;
    width: 100%;
    padding-left:2px;
    padding-right:2px; 
    min-width: 75px;
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    border: 2px solid silver;
    background-color: lightgreen;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    flex-grow: 0.5;
}
.word-box.can-mod,.fake-word-box.can-mod,.inv-word-box.can-mod {
    background-color: rgb(253, 239, 144);
}
.buy-select, .save-select {
    background-color: white;
}
.translated {
    transform: translateY(0px);
}
.sentence-outer {
    position: relative;
    margin-top: 5vh;
    margin-left: 5vw;
    height: fit-content;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sentence-outer.block {
    width: 90%;
    margin-top: 3vh;
}
.sentence-container {
    padding-left: 5px;
    padding-right: 5px;
    max-height: 20vh;
    width: 100%;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.sentence-all-clear {
    position: absolute;
    bottom: 1%;
    right: -2%;
    height: 30px;
    width: 30px;
    cursor: pointer;
}
.sentence-all-clear img {
    height: 100%;
    width:  auto;
}

.sentence-container .word-box, .sentence-container .inv-word-box {
    position: relative;
    max-height: 60%;
    width: fit-content;
    min-width: 15%;
}

.grid-box .word-box::after, .inventory-box .inv-word-box::after, .fake-word-box::after {
    position: absolute;
    bottom: 5%;
    font-size: x-small;
    content: var(--points-value, "");
    text-align: center;
}

.inv-word-box > img {
    height: 12px;
}

.submit-button {
    position: absolute;
    bottom: 7%;
    left: 20%;
    height: 15vh;
    width: 30vw;
    background-color: lightblue;
    font-size: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--standard-shadow);
    border: 3px solid black;
    cursor: pointer;
}
.submit-button.block {
    left: 15%;
}
.submit-button.waiting {
    cursor: auto;
    pointer-events: none;
}
.submit-button-interior {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.submit-text.waiting {
    display: none;
}
.awaiting-response {
    height: 100%;
}
.awaiting-response img {
    height: auto;
    max-height: 100%;
    width: 100%;
}
.awaiting-response.waiting {
    animation: 900ms spin linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.block-attack-coins-display {
    position: absolute;
    height: 15vh;
    width: 12vw;
    bottom: 7%;
    right: 42%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    background: var(--button-background);
    cursor: pointer;
}
.block-attack-coins-display-upper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60%;
}
.block-attack-coins-display-upper img {
    max-height: 55px;
    max-width: 60px;
}
.block-attack-coins-display-lower {
    height: 40%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
}
.block-attack-display {
    position: absolute;
    border-radius: 8px;
    box-shadow: var(--standard-shadow);
    bottom: 7%;
    left: 59%;
    height: 15vh;
    width: 15vw;
    background: var(--button-background);
}
.block-attack-display-title {
    width: 100%;
    height: 30%;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.block-attack-progress {
    width: 100%;
    height: 70%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.block-attack-level-up {
    position: absolute;
    height: 15vh;
    width: 20vw;
    right: 5%;
    bottom: 7%;
    font-size: 2rem;
    box-shadow: var(--standard-shadow);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: darkred;
    color: red;
    border: 3px solid red;
    cursor: pointer;
}
.block-attack-level-up.can-levelup {
    background: darkgreen;
    color: yellowgreen;
    border: 3px solid yellowgreen;
}
.pass-button {
    position: absolute;
    height: 8vh;
    width: 10vw;
    background-color: orangered;
    border-radius: 8px;
    border: 1px solid black;
    box-shadow: 1px 1px 2px 1px black;
    color: white;
    bottom: 10%;
    left: 55%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
}
.pass-button:hover {
    background-color: white;
    color: black;
    box-shadow: 1px 1px 2px 1px red;
}

.inventory-container {
    position: absolute;
    top: 45%;
    right: 5%;
    height: 40vh;
    width: 25%;
    box-shadow: var(--standard-shadow);
    background: var(--button-background);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.inventory-grid {
    height: 95%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3,1fr);
    gap: 3px;
}
.inventory-box {
    position: relative;
    height: 100%;
    width: 100%;
    border: 1px dotted black;
}

.simulate-answer {
    position: absolute;
    width: 10vw;
    height: 6vh;
    background-color: green;
    color: white;
    top: 90%;
    left: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}
.simulate-no {
    left: 85%;
}

.simulating {
    background-color: yellow;
    color: black;
}
.selected {
    background-color: grey;
}
.can-mod.selected, .can-mod.save-select {
    background: repeating-linear-gradient( 45deg, rgb(255, 221, 0), rgb(255, 221, 0) 10px,  grey 10px, grey 20px);
}
.result-no,.bonus.result-no,.extra.result-no,.can-mod.result-no {
    background: red;
}

.result-yes,.bonus.result-yes,.extra.result-yes,.can-mod.result-yes {
    background: yellow;
}

.log,.store,.specials {
    position: absolute;
    top: 45%;
    left: 70%;
    height: 40vh;
    width: 25%;
    box-shadow: 2px 2px 3px 2px black;
    border: 3px solid silver;
    overflow-y: scroll;
}
.store,.specials {
    overflow-y: auto;
}
.log ul {
    list-style: none;
}
.store-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
}
.store-grid-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.store-button {
    box-shadow: var(--standard-shadow);
    border-radius: 6px;
    width: 80%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.store-button:hover {
    background-color: yellowgreen;
}
.store-close-button {
    background-color: red;
    position: absolute;
    top: 60%;
    left: 15%;
    height: 20vh;
    width: 40vw;
    font-size: xx-large;
    color: white;
    box-shadow: var(--standard-shadow);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.store-close-button.block {
    height: 15vh;
    width: 30vw;
    top: 78%;
}
.remove-confirm {
    position: absolute;
    top: 26%;
    right: 5%;
    height: 16vh;
    width: 25vw;
    box-shadow: var(--standard-shadow);
    border-radius: 8px;
    background-color: white;
    font-size: x-large;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}
.isolate-backdrop, .isolate-backdrop-language, .ad-overlay {
    position: absolute;
    top: 0%;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 19;
    height: 100vh;
    width: 100vw;
    pointer-events: all;
    transition: opacity 350ms ease-in-out;
}
.isolate-backdrop-language {
    z-index: 24;
}
.isolate-backdrop.nobackdrop, .isolate-backdrop-language.nobackdrop, .ad-overlay.nobackdrop {
    pointer-events: none;
    opacity: 0;
}
.open-game-menu-button {
    position: absolute;
    font-size: 1.5rem;
    height: 12vh;
    width: 8vw;
    top: 79%;
    left: 7%;
    background-color: var(--button-background);
    box-shadow: var(--standard-shadow);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.open-game-menu-button:hover {
    background-color: yellowgreen;
}
.open-game-menu-button.block {
    left: 5%;
}
.game-menu-upper {
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
}
.game-menu-button {
    width: 80%;
    height: 10%;
    border-radius: 50px;
    box-shadow: var(--standard-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.game-menu-button:hover {
    background-color: yellowgreen;
}
.game-menu-lower {
    position: relative;
    height: 20%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.main-menu-close, .game-menu-close {
    margin: 0 auto;
    margin-top: 1%;
    height: 4%;
    width: 60%;
    box-shadow: var(--standard-shadow);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.game-menu-close {
    height: 25%;
}
.game-menu-close:hover {
    background-color: yellowgreen;
}
.bypass-button {
    position: absolute;
    background-color: white;
    box-shadow: var(--standard-shadow);
    border-radius: 6px;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    height: 5vh;
    width: 15vw;
    min-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bypass-button:hover {
    background-color: yellow;
}
.not-enough-points-dialog, .win-dialog, .error-dialog, .time-attack-failed-dialog, .continue-game-dialog, .language-select-dialog {
    height: 35vh;
    width: 45vw;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 21;
    background-color: var(--button-background);
}
.not-enough-points-interior, .win-interior, .error-dialog-interior, .time-attack-failed-interior, .continue-game-dialog-interior {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.not-enough-points-text, .win-text, .error-dialog-text, .time-attack-failed-text, .continue-game-dialog-text {
    font-size: 2rem;
    height: 40%;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.language-select-dialog {
    z-index: 25;
}
.language-select-dialog-interior {
    height: 100%;
    padding: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.dialog-language-select-button {
    position: absolute;
    border: 1px solid black;
    border-radius: 3px;
    height: 30px;
    width: auto;
    max-width: 45px;
    bottom: 2%;
    right: 2%;
    cursor: pointer;
}
.dialog-language-select-button > img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
}
.language-select-dialog-interior > img {
    height: 20%;
    width: auto;
    box-shadow: var(--standard-shadow);
    border-radius: 10px;
    cursor: pointer;
}
.language-select-dialog-interior > img:hover {
    box-shadow: 0 0 3px 3px yellow;
}
.error-dialog-text {
    font-size: 1.5rem;
}
.continue-game-dialog-text {
    font-size: 1.2rem;
}
.time-attack-failed-text {
    flex-wrap: wrap;
}
.not-enough-points-button, .win-button, .end-show-stats, .error-dialog-close, .time-attack-failed-button, .continue-game-dialog-button {
    height: 15%;
    width: 40%;
    box-shadow: var(--standard-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
}
.not-enough-points-button:hover, .win-button:hover, .end-show-stats:hover, .error-dialog-close:hover, .continue-game-dialog-button:hover {
    background-color: yellowgreen;
}
.modify-container {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    gap: 4%;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.modify-container::after {
    content: "";
    height: 0;
    flex-grow: 1;
    flex-shrink: 1;
}
.mod-menu-button {
    height: 22%;
    width: 48%;
    max-width: 400px;
    background-color: lightgreen;
    box-shadow: var(--standard-shadow);
    border-radius: 10px;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}
.mod-menu-button.block {
    height: 11%;
}
.mod-menu-button-text {
    text-align: center;
    width: 50%;
}
.modify-button {
    position: absolute;
    top: 5%;
    padding: 0 6px;
    width: fit-content;
    height: 30%;
    background-color: aqua;
    border-radius: 6px;
    cursor: pointer;
}
.modify-button:hover {
    background-color: yellow;
    color: black;
    box-shadow: var(--standard-shadow);
}
.ad-overlay {
    height: 100vh !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-container {
    height: fit-content;
    width: fit-content;
    min-height: 50vh;
    min-width: 50vw;
    pointer-events: inherit;
}
@media (orientation: portrait) {
    body {
        height: 95dvh;
        height: calc(var(--vh,vh)*95);
    }
    .main-menu-container, .game-menu-container, .stats-container {
        height: 82vh;
        width: 80vw;
        min-width: 0;
    }
    .menu-cover {
        font-size: 1.5rem;
    }
    .stats-header-left, .stats-header-right {
        width: 50%;
    }
    .stat-title {
        width: 50%;
        font-size: .8rem;
    }
    .stat-content {
        width: 50%;
        font-size: .8rem;
    }
    .stats-smaller {
        height: 5.5%;
    }
    .stats-bigger {
        height: 6.5%;
    }
    .longest, .highest {
        font-size: .6rem;
    }
    .round-display {
        width: 30vw;
        height: 5vh;
        font-size: 1.5rem;
    }
    .round-display.center {
        transform: translateX(calc(300px + 35vw));
    }
    .round-display.exit {
        transform: translateX(calc(135vw + 300px));
    }
    .scores-display-container {
        height: 100%;
        width: 40%;
        min-width: 130px;
        margin: 0;
        padding: 0;
    }
    .coin-image {
        max-height: 48px;
        max-width: 45px;
    }
    .scores-display {
        height: 95%;
    }
    .show-change {
        top: 44%;
        left: 12%;
    }
    .show-points-change {
        left: 30%;
    }
    .show-coins-change-block {
        left: 45%;
        top: 85%;
    }
    .scores-display .display-value {
        font-size: large;
    }
    .points-display .text {
        font-size: 0.8rem;
    }
    .points-display .display-value {
        height: 50%;
        font-size: medium;
    }
    .round-counter-display {
        font-size: 0.5rem;
    }
    .other-buttons-container {
        width: 50%;
        height: 90%;
        margin: 0;
        padding: 0;
    }
    .grids-and-alt-buttons {
        height: 53%;
        flex-direction: column;
    }
    .grids-and-alt-buttons.block {
        height: 70%;
    }
    .alt-buttons-container {
        display: flex;
        width: 90%;
        height: 17%;
        padding: 0;
        margin-top: 3%;
        justify-content: space-between;
        align-items: center;
    }
    .all-grids-container {
        width: 90%;
        height: 80%;
    }
    .all-grids-container.block {
        height: 100%;
        width: 90%;
        margin-left: 5%;
    }
    .box-grid-container.block {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(8, 1fr);
    }
    .mod-menu-button {
        font-size: 1.2rem;
    }
    .inventory-container, .log, .store {
        top: 68%;
        left: 45%;
        width: 50vw;
        height: 28vh;
    }
    .inv-select img, .inv-select-replace img {
        max-height: 25px;
    }
    .log-list {
        font-size: 1rem;
    }
    .sentence-outer {
        margin-top: 2%;
        width: 90%;
    }
    .mini-coin {
        max-height: 15px;
    }
    .word-box, .fake-word-box, .buy-word-box, .specials-box {
        font-size: .9rem;
    }
    .inv-word-box {
        font-size: .7rem;
    }
    .word-box:has(.mini-coin), .fake-word-box:has(.mini-coin) {
        gap: 5px;
    }
    .sentence-container > * {
        font-size: 1.1rem;
    }
    .sentence-all-clear {
        height: 20px;
        width: 20px;
    }
    .submit-button {
        left: 10%;
        top: 68%;
        height: 10vh;
    }
    .submit-button.block {
        top: 82%;
        left: 5%;
        height: 8vh;
    }
    .block-attack-coins-display {
        top: 82%;
        left: 38%;
        width: 15vw;
        height: 10vh;
        font-size: 0.8rem;
    }
    .block-attack-coins-display-upper {
        height: 45%;
        margin-bottom: 10%;
    }
    .block-attack-coins-display-upper img {
        max-height: 30px;
        max-width: 32px;
    }
    .block-attack-display {
        top: 82%;
        left: 56%;
        height: 8vh;
        width: 40vw;
        background: var(--button-background);
    }
    .block-attack-level-up {
        height: 6vh;
        width: 35vw;
        top: 92%;
        right: 6.5%;
        font-size: 1.2rem;
    }
    .pass-button {
        left: 17%;
        top: 82%;
        width: 16vw;
        height: 5vh;
    }
    .pass-button > * {
        display: none;
    }
    .remove-confirm {
        top: 52%;
        width: 50vw;
        height: 12vh;
        font-size: large;
    }
    .store-close-button {
        top: 65%;
        left: 2%;
    }
    .store-button {
        font-size: x-small;
    }
    .open-game-menu-button {
        top: 91%;
        left: 12.5%;
        width: 25vw;
        height: 5vh;
        font-size: .8rem;
    }
    .open-game-menu-button.block {
        top: 92%;
    }
    .not-enough-points-dialog, .win-dialog, .error-dialog, .time-attack-failed-dialog, .continue-game-dialog, .language-select-dialog {
        height: 50vh;
        width: 90vw;
    }
    .not-enough-points-text, .win-text, .error-dialog-text, .time-attack-failed-text, .continue-game-dialog-text {
        font-size: 1rem;
    }
}
@media (max-width: 450px) {
    .game-overview {
        font-size: 1rem;
    }
    .specials-box {
        font-size: 0.6rem;
    }
}
.warning {
    background-color: red;
}
.hiding {
    opacity: 0;
}
.isolate-focus {
    z-index: 20;
}
.can-mod.isolate-focus {
    position: relative;
}
.rotate-dialog {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1000;
}
.rotate-dialog-interior {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
.dismiss-rotate-dialog {
    position: absolute;
    top: 2%;
    right: 2%;
    height: 10%;
    display: flex;
    border-radius: 10px;
    gap: 5px;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
}
.dismiss-rotate-dialog:hover {
    box-shadow: 0 0 3px 1px white;
}
.dismiss-rotate-dialog img {
    height: 100%;
    width: auto;
    border: 2px solid white;
    padding: 5px;
    border-radius: 6px;
    background-color: darkred;
}
.rotate-text {
    max-width: 60%;
}
.rotate-arrow {
    height: auto;
    max-height: 30%;
    width: auto;
}

.behind {
    z-index: -20;
    display: none;
}