html * {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #333;
    color: #bbb;
}

body, code, pre {
    font-family: Courier New, SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}

a {
    color: #bbb;
}
a:visited {
    color: #888;
}

h1 a {
    color: #bbb;
}

.is-hidden {
    display: none;
}

.github:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
    width: 16px;
    height: 16px;
    background-image: url(image/GitHub-Mark-Light-32px.png);
    background-size: contain;
}

#container {
    width: 1024px;
    margin: 10px auto;
    position: relative;
}

#good, #bad, #completed {
    position: absolute;
    visibility: hidden;
    font-size: 5em;
    font-weight: bold;
    width: 100%;
    text-align: center;
    z-index: 1000;
    top: 70px;
    font-family: serif;
}
#completed {
    top: 300px;
}
.gotonext {
    animation: gotonext 0.5s ease;
}
@keyframes gotonext {
    0%   { visibility: visible; opacity: 0%;   transform: scale(1);   }
    10%  { visibility: visible; opacity: 100%; transform: scale(1.5); }
    70%  { visibility: visible; opacity: 100%; transform: scale(1.5); }
    100% { visibility: visible; opacity: 0%;   transform: scale(1.5); }
}

#config {
   margin-top: 300px;
   margin-bottom: 100px;
   position: relative;;
   text-align: center;
}
#url {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bbb;
    outline: 0;
    background: transparent;
    color: #bbb;
    font-size: 1em;
}
#config label {
    position: absolute;
    display: block;
    transition: 0.2s;
    font-size: 0.8em;
    color: #666;
    top: -1.5em;
}
#url:placeholder-shown ~ label {
    font-size: 1em;
    color: #666;
    top: 0px;
}
#url::placeholder {
    color: transparent;
}
#url:focus ~ label {
    font-size: 0.8em;
    color: #bbb;
    top: -1.5em;
}
#url:focus {
    border-color: green;
}
#url:invalid {
    border-color: red;
}
#url:invalid:placeholder-shown {
    border-color: #bbb;
}
#start-button {
    border: 0;
    outline: 0;
    background: transparent;
    color: #bbb;
    text-transform: uppercase;
    font-size: 18px;
    margin-top: 60px;
}
#start-button:disabled {
    color: #666;
}

#code, #screen {
    width: 100%;
    position: relative;
    display: block;
    font-size: 1.3em;
    line-height: 1.3em;
    overflow-x: scroll;
    overflow-y: hidden;
    min-height: 1.3em;
    padding: 0.5em;
}
#code:after {
    content: "\023CE";
    font-size: 1em;
    line-height: 1.3em;
}
#screen:after {
    content:"|";
    font-size: 1em;
    line-height: 1.3em;
    font-weight: bold;
    margin-left: -0.3em;
}
.stop #screen:after {
    animation: cursor 0.5s linear alternate infinite;
}
@keyframes cursor {
    0%   { opacity: 100%; }
    49%  { opacity: 100%; }
    50%  { opacity: 0%;   }
    100% { opacity: 0%;   }
}
#curent-line {
    position: relative;
}
#code-pre, #screen-pre {
    margin: 0;
    width: 1024px;
}
#code-pre code, #screen-pre code {
     background-color: #2d2d2d;
}
#code-pre {
    position: absolute;
}
#screen-pre {
    opacity: 60%;
}
#code-pre:before {
    content: attr(data-line-number);
    display: block;
    position: absolute;
    text-align: right;
    width: 5em;
    left: -6em;
    color: #bbb;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 2.3em;;
    padding: 0 0.5em;
}

.preview {
    width: 1024px;
    font-size: 0.8em;
    line-height: 1.2em;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: 1em;
}
.preview tr {
    position: relative;
}
.preview .line-number {
    position: absolute;
    text-align: right;
    cursor: pointer;
    padding-right: 8px;
    user-select: none;
    color: #888;
    width: 5em;
    left: -5em;
}
.preview .line-number.current {
    color: #bbb;
    font-weight: bold;
}
.preview .line-number.current ~ td {
    background-color: #3f3f2f;
}
.preview .source {
    background-color: #2d2d2d;
}
.preview pre {
    margin: 0;
    padding: 0;
}
.preview code {
    padding: 0 1em;
}

#code-before, #code-after {
    line-height: 1.3em;
    font-size: 1.3em;
    margin: 0;
}
#code-before tr:nth-child(1) {
    opacity: 10%;
}
#code-before tr:nth-child(2) {
    opacity: 30%;
}
#code-after tr:nth-child(1) {
    opacity: 30%;
}
#code-after tr:nth-child(2) {
    opacity: 10%;
}
#code-before pre, #code-after pre {
    margin: inherit;
    padding: inherit;
}
#code-before code, #code-after code {
    display: block;
    padding: 0 0.5em;
}
#code-before .line-number,
#code-after .line-number {
    line-height: 1.3em;
    padding: 0 0.5em;
    cursor: default;
}

footer {
    margin-top: 1em;
    text-align: right;
}
