@font-face {
    font-family: 'Noto Sans';
    src: url('NotoSans-Regular.ttf') format('truetype');
}

html, body { 
    font-family: 'Noto Sans', Arial, sans-serif; 
    background-color: #fff;

    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

::backdrop {
    background-color: #fff;
}

main {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#scanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#scanner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;

    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1); /* Optional: semi-transparent overlay */
}

.scrollable {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

menu {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.circle {
    font-size: 18pt;
    background-color: #eee;
    width: fit-content;
    min-width: 2em;
    height: 2em;
    border-radius: 1em;
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 3px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

.circle-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.circle-color-red {
    color: white;
    background-color: rgb(179, 21, 16);
}

.lang-flag {
    width: 1em;
}

.lang-list {
    padding: 0 4px;
}

.lang-list img {
    padding: 0 4px;
}

.game {
    padding-bottom: 48pt;
}

.game-empty, .status {
    text-align: center;
}

.game-empty-content, .status-content {
    display: inline-block;
    font-size: 120%;
    color: black;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 32pt;
    padding: 12pt;
}

.game-empty-content i {
    font-size: 200%;
    display: block;
    /* color: red; */
}

.status-wrong .status-content {
    background-color: rgba(255, 0, 0, 0.3);
}

.status-wrong .status-content i {
    color: red;
}

.status-correct .status-content {
    background-color: rgba(0, 255, 0, 0.3);
}

.status-correct .status-content i {
    color: green;
}

.status-content i {
    font-size: 64pt;
}

.notification {
    cursor: pointer;
    text-align: center;
    z-index: 10;
    position: absolute;
    top: 0;
    background-color: white;
    min-height: 36pt;
    padding: 0.4em 0;
    font-size: 24pt;
    border-bottom-left-radius: 15pt;
    border-bottom-right-radius: 15pt;
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 3px;
    left: 2em;
    right: 2em;
    opacity: 0.7;
}

.notification-correct {
    color: #008000;
    background-color: #e0ffe0;
}

.notification-wrong {
    color: #800000;
    background-color: #ffe0e0;
}

.notification-found {
    color: #808000;
    background-color: #ffffe0;
}

.flipping {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: black;
    transform: perspective(168px) rotateX(0);
    animation: flipping-qayox5md 0.75s infinite;
    margin: 0 12pt;
 }
 
 @keyframes flipping-qayox5md {
    100% {
       transform: perspective(168px) rotateX(180deg);
    }
 }

.list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 20pt;
    padding-top: 32pt;
    margin-bottom: 32pt;
}

.item, .hint, .input {
    color: black;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 20pt;
    min-width: 60pt;
    margin-top: 2pt;
    user-select: none;
    box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px;
    padding-right: 5pt;
    border-top-right-radius: 5pt;
    border-bottom-right-radius: 5pt;
}

.item-clickable {
    cursor: pointer;
}

.item-color-green {
    background-color: rgba(200, 255, 200, 0.7);
}

.item-color-yellow {
    background-color: rgba(255, 255, 200, 0.7);
}

.item-color-red {
    background-color: rgba(255, 200, 200, 0.7);
}

.item-color-white {
    background-color: rgba(255, 255, 255, 0.9);
}

.item-margin {
    margin-left: 12pt;
}

.hint {
}

.input {
    padding: 32pt 0;
}

.input input, .input-sm input {
    background-color: #ffffff;
    color: #000000;
    display: block;
    font-size: 24pt;
    width: 95vw;
    padding-top: 8pt;
    padding-bottom: 8pt;
    border: 0;
}

.input input:focus, .input input-sm:focus {
    outline: none;
}

.input button, .input-sm button {
    cursor: pointer;
    background-color: #317BBD;
    color: white;
    font-size: 24px;
    border: 0;
    padding: 8px 32px;
    margin: 4px 0px;
}

table.tbl {
    margin: 4px;
    border-collapse: collapse;
    width: 100%;
}

table.tbl td {
    border: 1px solid #aaa;
    min-width: 3em;
    text-align: center;
    padding: 4px;
}

table.tbl tr.current td {
    background-color: #ff0000;
}

.selector {
    margin: 8px 0px;
    background-color: #f0f0f0;
}

.selector-item {
    background-color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    margin: 0px 0px;
    padding: 8px 8px;
}

.selector-selected {
    background-color: #317BBD;
    color: white;
}

.debug {
    font-family: Consolas, 'Courier New', Courier, monospace;
    display: inline-block;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
}
