﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121213;
    transition: all 0.3s ease;
    overflow: auto;
}

* {
    transition: all 250ms;
    text-rendering: optimizeLegibility;
}

.loader {
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    align-items: center;
}

.loader-img {
    width: 150px;
    /*height: 80px;*/
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

img {
    margin-top:10px;
    width:150px;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 16px;
    height: var(--header-height);
    color: var(--color-tone-1);
    border-bottom: 1px solid #3a3a3c;
}

.menu-right {
    display: flex;
    width: 70px;
    justify-content: flex-end;
}

.title {
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0.01em;
    text-align: center;
    left: 0;
    right: 0;
    pointer-events: none;
    color: white;
    margin: 0;
    padding: 10px;
}

.container {
    margin-top: 100px;
}

.main-container:focus-visible {
    outline: none !important;
}

.tile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 5px;
}

.tile {
    width: 60px;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    line-height: 2rem;
    font-weight: bold;
    vertical-align: middle;
    box-sizing: border-box;
    color: white;
    text-transform: uppercase;
    user-select: none;
    margin-right: 5px;
}


.tile-present {
    background-color: #b59f3b;
}

.tile-correct {
    background-color: #538d4e;
}

.tile-absent {
    background-color: #3a3a3c;
}

.tile-empty {
    border: 2px solid #3a3a3c;
}

.tile-idle {
    border: 2px solid #565758 !important;
}

.button {
    font-family: inherit;
    font-weight: bold;
    border: 0;
    padding: 0;
    margin: 0 6px 0 0;
    height: 58px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    background-color: #818384;
    color: white;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
}

.button-present {
    background-color: #b59f3b;
}

.button-correct {
    background-color: #538d4e;
}

.button-absent {
    background-color: #3a3a3c;
}

.keyboard {
    margin: 0 8px;
    user-select: none;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 100px;
}

.row {
    display: flex;
    width: 100%;
    margin: 0 auto 8px;
    touch-action: manipulation;
}


.half {
    flex: 0.5;
}

a {
    color: white;
}



.overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    vertical-align: middle;
    font-size: 14px;
}

.content {
    border-radius: 8px;
    border: 1px solid #1a1a1b;
    background-color: #121213;
    color: #ffffff;
    box-shadow: 0 4px 23px 0 rgb(0 0 0 / 20%);
    overflow-y: auto;
    animation: SlideIn 200ms;
    max-width: 500px;
    padding: 16px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 50px;
}

.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

@media (max-width: 400px) {
    .content {
        max-width: 300px;
    }

    .tile {
        width: 50px;
        height: 50px;
    }

    .keyboard {
        max-width: 350px;
        margin-top: 50px;
    }

    .button {
        height: 48px;
    }

    .container {
        margin-top: 40px;
    }
}

@media (min-width: 400px) and (max-width: 500px) {
    .content {
        max-width: 300px;
    }

    .keyboard {
        max-width: 400px;
        
    }
}