/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

body {
    font: 13px Helvetica, arial, freesans, sans-serif;
    line-height: 1.4;
    min-width: 1020px;
    color: #333;
    background-color: #fff;
    margin: 0 0 50px 0;
    padding: 0;
}

.header {
    background: #eee;
    color: #555;
    border-bottom: 1px solid #ddd;
    height: 40px;
    margin-bottom: 20px;
    line-height: 40px;
}

.header h1 {
    line-height: 40px;
    display: inline-block;
    margin: 0 20px 0 0;
    padding: 0;
    font-size: 18px;
}

.header nav {
    display: inline-block;
    line-height: 40px;
    margin: 0;
    padding: 0;
}

.header nav a {
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 0 5px;
    color: #44d;
    font-weight: bold;
}

.header nav a:hover {
    background: #ddd;
}

.header nav.right {
    float: right;
    position: relative;
    line-height: 40px;
    text-decoration: none;
    color: #44d;
}

.header nav.right a {
    display: inline-block;
    padding: 0 10px;
    font-weight: 500;
    border-left: 1px solid #ccc;
    margin: 0;
}

.header nav.right a:first-child {
    border-left: none;
}

.container {
    width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.explain {
    color: #222;
    font-size: 16px;
    margin-bottom: 20px;
}

.text-input {
    font-size: 24px;
    padding: 5px;
    width: 940px;
    display: block;
}


.wrapper {
    border: 1px solid #ddd;
    margin: 0 5px 10px 0;
    float: left;
}

.wrapper canvas {
    display: inline-block;
}

.wrapper span {
    text-align: center;
    background: #ddd;
    display: block;
}

#message {
    position: relative;
    top: -3px;
    background: red;
    color: white;
    padding: 1px 5px;
    font-weight: bold;
    border-radius: 2px;
    display: none;
	clear: both;
}

.message {
    clear: both;
    font-style: oblique;
}

#glyphs {
    width: 950px;
}

#file {
    float: left;
    font-size: 11px;
    color: #999;
}

.info {
    float: right;
    font-size: 11px;
    color: #999;
}


hr {
    clear: both;
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 20px 0 20px 0;
    padding: 0;
}

label {
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    margin-right: 10px;
}

label input[type="range"] {
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: #44d;
}

/* Font Inspector */

#font-data h3 {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    background-color: #f8f8f8;
    clear: both;
}

#font-data h3.expanded::before {
    font-size: 85%;
    content: "▼ ";
}

#font-data h3.collapsed::before {
    font-size: 85%;
    content: "► ";
}

#font-data h3.collapsed + dl,
#font-data h3.collapsed + .data-content {
    display: none;
}

#font-data h4 {
    margin: 1em 1em 0 2em;
}

#font-data dl {
    margin-top: 0;
    padding-left: 2em;
    color: #707070;
}

#font-data dt {
    float: left;
}

#font-data dd {
    margin-left: 12em;
    word-break: break-all;
    max-height: 100px;
    overflow-y: auto;
}

#font-data .langtag {
    font-size: 85%;
    color: #999;
    white-space: nowrap;
}

#font-data .langname {
    padding-right: 0.5em;
}

#file {
    float: left;
    font-size: 11px;
    color: #999;
}

/* Glyph Inspector */

#pagination span {
    margin: 0 0.3em;
    color: #505050;
    cursor: pointer;
}

#pagination span.page-selected {
    font-weight: bold;
    color: black;
}

canvas.item {
    float: left;
    border: solid 1px #a0a0a0;
    margin-right: -1px;
    margin-bottom: -1px;
    cursor: pointer;
}

canvas.item:hover {
    background-color: #e0e0e0;
}

#glyph-list-end {
    clear: both;
    height: 20px;
}

#glyph-display {
    float: left;
    /* border: solid 1px #a0a0a0; */
    position: relative;
    width: 500px;
    height: 500px;
}

#glyph, glyph-bg {
    position: absolute;
    top: 0;
    left: 0;
}

#glyph-data {
    float: left;
    display: flex;
    flex-flow: column nowrap;
    height: 100px;
}
#glyph-data dl { margin: 0; }
#glyph-data dt { float: left; }
#glyph-data dd { margin-left: 12em; }

#glyph-contours {
    /*flex: 1 1 0;*/
    overflow: auto;
}

#glyph-data pre { font-size: 11px; }
pre:not(.contour) { margin: 0; }
pre.contour { margin: 0 0 1em 2em; border-bottom: solid 1px #a0a0a0; }
span.oncurve { color: blue; }
span.offcurve { color: red; }

.disabled {
	color: gray;
}
