@font-face {
    font-family: 'Inconsolata';
    src: url('Inconsolata-Regular.woff2') format('woff2'),
        url('Inconsolata-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#puzzle > input[type='text'] {
    display: block;
}

body {
    background-color: black;
    font-family: 'Inconsolata';
    color: #96ff00;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1 {
    text-align: center;
    font-size: 4em;
}

input {
    background-color: black;
    color: #96ff00;

    border: 1px solid #96ff00;

    font-family: 'Inconsolata';
    font-weight: bold;
    font-size: 2em;
}

input:active, input:focus {
    background-color: #96ff00;
    color: black;
}

input:read-only {
    background-color: #333;
    color: #666;
    border: 1px solid #666;
}

#graphics {
    float: left;
    max-width: 163px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#graphics > img {
    max-width: 163px;
    max-height: 163px;
}

#puzzle {
    margin: auto;
    height: 500px;
    max-height: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */

    overflow: auto;
    scrollbar-color: #96ff00 #000;
}

#ip {
    text-align: center;
    opacity: 0;
    transition: ease 0.5s;
}

main {
    margin: auto;
    max-width: 800px;
    min-width: 800px;
    border: 1px dotted #96ff00;
    padding: 1rem;
    z-index: 100;
    background: black;
}

#title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#title > h1 {
    flex-grow: 1;
    margin: 0;
}

#game {
    display: flex;
    flex-direction: row;
    margin-top: 0.5em;
}

.line-ctn {
    justify-content: center;
    display: flex;
    opacity: 0;
    transition: ease 0.5s;
}

.line {
    height: 5vh;
    width: 0px;
    border-left: 2px dotted #96ff00;
}

button {
    background-color: black;
    color: #96ff00;

    border: 1px solid #96ff00;

    font-family: 'Inconsolata';
    font-weight: bold;
}

#puzzle > button {
    font-size: 2em;
    display: block;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

button:active {
    background-color: #96ff00;
    color: black;
}

#ip > button {
    font-size: 1em;
}

#timer {
    vertical-align: middle;
}

#buttons > button {
    width: calc(6ch + 1rem);
}

#buttons {
    text-align: center;
    margin-top: 1rem;
}

#timer {
    width: 12ch;
    height: 2.25ch;
    text-align: center;

    opacity: 0;
    transition: ease 0.5s;
}

#chase {
    background: linear-gradient(270deg, #0001ff, #790909);
    background-size: 400% 400%;

    animation: flashing 3.75s ease infinite;

    width: 12ch;
    height: 2.25ch;
    text-align: center;

    opacity: 0;
}

@-webkit-keyframes flashing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes flashing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes flashing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

#puzzle > button.upgrade {
    font-weight: normal;
    font-size: 1.5em;
}

#puzzle > button.upgrade:disabled {
    background-color: #333;
    color: #666;
    border: 1px solid #666;
}

a {
    color: #96ff00;
}

p {
    width: 100%;
}

h2 {
    margin: 0;
}

#veil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 1.0;
    z-index: 1000;
    
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Coming Soon';
    font-size: 6em;

    transition: ease 0.5s;
    text-align: center;
}