:root {
    --skyblue: #4AA7D7;
    --red: #DE3916;
    --copblue: #2A4DD5;
    --yellow: #F9C555;
    --darkyellow: #F0A810;
    --fancypurple: #8A6AC0;
    --deeppurple: #4B3275;
    --shadowy: rgba(0, 0, 0, 0.25);
    --green: #2A863F;
    --leafgreen: #319C4A;
    --darkgreen: #275F1B;
    --mirrorblue: #9CCFE9;
    --lightwood: #C17C4D;
    --lionbrown: #9D6037;
    --crimson: #83220C;
    --gategray: #847D8C;
    --stonegray: #5B5365;
}

html, body {
    margin: 0;
    height: 100%;
    background-color: var(--skyblue);
    font-family: 'Quicksand', sans-serif;
}

#scenario {
    width: 100%;
    height: calc(100% - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#topbar {
    width: 100%;
    padding: 0%;
    margin: 0;
    width: 100%;
    height: 50px;
    font-size: large;
    display: flex;
    align-items: center;
    justify-content: center;
}

#topbar button {
    font-size: large;
    height: 100%;
}

#bottombar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    height: 50px;
}

#leftcorner {
    height: 50px;
    position: absolute;
    left: 0;
    top: 0;
}

#rightcorner {
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
}

#levelname {
    height: 100%;
    font-family: 'Calistoga', cursive;
    font-size: larger;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#statusbar {
    height: 30px;
    font-variant: small-caps;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#statusbar span {
    padding: .2em;
}

#numLiars {
    background-color: var(--red);
    color: white;
}

#numClowns {
    background: var(--copblue);
    color: var(--yellow);
}

#monkeyStatus {
    background-color: var(--fancypurple);
    color: white;
}

#montyStatus {
    background-color: var(--deeppurple);
    color: var(--yellow);
}

#mirrorStatus {
    background-color: var(--mirrorblue);
    color: var(--stonegray);
}

#statueStatus {
    background-color: var(--gategray);
    color: white;
}

#languageStatus {
    background-color: white;
}

#vendorStatus {
    background-color: var(--crimson);
    color: var(--yellow);
}

#room {
    width: 80%;
    height: 80%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.doorway {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    aspect-ratio: 1.5;
}

@media (orientation: landscape) {
    .doorway {
        height: 50%;
    }
}

@media (orientation: portrait) {
    .doorway {
        width: 50%;
    }
}

.talkdiv {
    height: 30%;
    position: relative;
}

.talkbtn {
    height: 100%;
    width: auto;
    font-weight: bold;
}

.talkindex {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: 1em;
}

.guarddiv {
    height: 70%;
    position: relative;
}

.guardbtn {
    height: 100%;
    width: auto;
}

.doordiv {
    height: 100%;
    position: relative;
}

.doorbtn {
    height: 100%;
}

.star, .reveal {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.star {
    filter: drop-shadow(4px 4px 2px var(--shadowy));
    align-items: center;
}

.reveal {
    align-items: flex-end;
    filter: drop-shadow(0 0 15px white);
}

.star img {
    width: 50%;
    height: auto;
}

.statue {
    filter: grayscale(0.8) contrast(75%);
}

.statuetalk {
    filter: brightness(0.8);
}

.bubble {
    max-width: 300px;
    width: 100%;
    height: 42px;
    background-color: #eee;
    border: 2px black solid;
    border-radius: 10px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: large;
    flex-wrap: wrap;
}

.bubbleFlush {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.bubbleError {
    color: gray;
    font-style: italic;
}

.lang✓ {
    color: green;
}

.langX {
    color: var(--red);
}

.lang▲ {
    color: var(--darkyellow);
}

.lang⬤ {
    color: var(--copblue);
}

.bubblebar {
    display: flex;
    max-width: 400px;
    width: 100%;
    justify-content: center;
}

#questionbar button {
    float: right;
    width: 50px;
    height: 50px;
    background-color: var(--yellow);
    font-size: large;
    font-weight: bold;
    border-color: black;
    border-radius: 10px;
    box-shadow: inset -4px -4px 4px var(--shadowy);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#questionbar button:hover {
    background-color: var(--darkyellow);
}

.questionTarget {
    background-color: var(--mirrorblue);
    transition-property: background-color;
    transition-duration: 0.5s;
}

.questionTarget .talkbtn {
    filter: drop-shadow(2px 2px 2px var(--shadowy));
}

.targetIndex {
    float: right;
    width: 50px;
    height: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: large;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
}

.girl {
    float: left;
    width: 50px;
    height: 50px;
}

#keyboard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 380px;
    flex-wrap: wrap;
}

#keyboard button {
    font-weight: bold;
    font-size: large;
    width: calc(100% / 6);
    height: auto;
}

.deletekey {
    background-color: var(--red);
    color: white;
}

.deletekey:hover {
    background-color: white;
    color: black;
}

button {
    font-family: 'Quicksand', sans-serif;
    color: black;
    background-color: var(--mirrorblue);
    border: 2px white solid;
}

button:hover {
    background-color: white;
}

h1 {
    font-family: 'Calistoga', cursive;
    font-weight: normal;
    margin: 10px;
}

.popupcontainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup {
    margin: 10px;
    background-color: white;
    border-radius: 50px;
    width: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    box-shadow: 8px 8px 8px var(--shadowy);
}

.popup img {
    height: 150px;
    width: auto;
}

.popup p {
    width: 360px;
    text-align: center;
}

.popup button {
    background-color: transparent;
    border: 2px var(--shadowy) solid;
    font-size: large;
}

.popup button:hover {
    background-color: var(--shadowy);
}

button.mainbtn {
    background-color: var(--copblue);
    color: white;
    border: 2px black solid;
    font-weight: bold;
}

button.mainbtn:hover {
    background-color: black;
}

#tutorial {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tutorial p {
    color: white;
    font-size: large;
    text-align: center;
}

#tutorial button {
    font-size: large;
}

#tutorial button.mainbtn {
    background-color: var(--copblue);
    border: 2px black solid;
    color: white;
    font-weight: bold;
}

#tutorial button.mainbtn:hover {
    background-color: black;
}

#incorrect .popup {
    background-color: var(--red);
    color: white;
}

#incorrect button.mainbtn {
    background-color: var(--yellow);
    color: black;
    border: 2px black solid;
}

#incorrect button.mainbtn:hover {
    background-color: white;
}

#victory .popup {
    background-color: var(--fancypurple);
    color: white;
    border: var(--deeppurple) 19px solid;
    width: 360px;
    height: 360px;
}

#conversation {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

#conversationlist {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conversationline {
    max-width: 360px;
    width: 100%;
    height: 50px;
    display: flex;
}

.conversationline:nth-child(even) {
    margin-bottom: 25px;
}

table#gridtable {
    max-width: 360px;
    width: 100%;
    font-size: large;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

#gridtable th {
    background-color: var(--shadowy);
    color: white;
    font-variant: small-caps;
}

#gridtable td{
    background-color: var(--mirrorblue);
}

#gridtable tr td:last-child {
    background-color: white;
}

#levels {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#levels h1 {
    color: white;
}

#levellist {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#levellist button {
    width: 30%;
    height: 50px;
    color: var(--stonegray);
    background-color: var(--mirrorblue);
    border: 2px white solid;
    margin: 2px;
    font-weight: bold;
}

#levellist button:hover {
    background-color: white;
    color: black;
}

#levellist button.solved {
    color: white;
    background-color: var(--darkyellow);
    border: 8px var(--yellow) solid;
    text-shadow: 2px 2px 4px var(--shadowy);
}