* {
box-sizing: border-box;
}

html {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #212529;
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* #fix-resize */
    -webkit-text-size-adjust: 100%;
    /* #fix-resize */
}

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

code {
    background-color: #e9ecef;
    font-size: 0.95em;
    padding: 0.2em;
}

h1 {
    font-size: 2em;
    /* #fix-h1 */
    margin: 0.67em 0;
}

mark {
    background-color: #ffec99;
}

b,
strong {
    font-weight: bold;
}


/*
Images:
- max-width 100%
- #fix-border: remove border from images inside <a> on old IE
*/

img {
    max-width: 100%;
    border: 0;
    /* #fix-image-border */
}


/*
Links:
- Nicer default link, hover and visited colors from open-color
- #fix-links-ie: remove transparent background in IE 10
- make links bold
- remove underline, because I'm a monster
*/

a {
    color: #1c7ed6;
    background-color: transparent;
    /* #fix-links-ie */
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: #339af0;
}

a:visited {
    color: #ae3ec9;
}


/*
Layout:
- remove all margins from <body>
- header, main, footer get max-width and margin
- blockquote gets a left border
*/

body {
    margin: 0;
}

header, section, footer {
    max-width: 44em;
    margin: 1em;
}

section.wide {
    max-width: 88em;
}

section {
    margin-bottom: 2em;
}

blockquote {
    border-left: 6px solid #e9ecef;
    margin-left: 0;
    padding: 0 0 0 2em;
}


/*
Tables:
- rather simple styling for semantic tables
- no caption or footer support
*/

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

table th,
table td {
    padding: 8px 4px;
}

thead tr {
    border-bottom: 2px solid #212529;
}

thead tr th {
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #adb5bd;
}


/*
Forms:
- fixes from normalize (marked with #n)
- fieldset padding consistent across browsers, from normalize.css
*/

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* #n */
    font-size: inherit;
    margin: 0;
    /* #n */
    line-height: 1.2;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
    border-color: #e9ecef;
}

label {
    display: block;
}

label.inline {
    display: inline-block;
}

input[type=button],
input[type=submit],
input[type=reset],
button {
    color: #e9ecef;
    padding: 0.4em 0.8em;
    background-color: #1c7ed6;
    border: 0.0725em solid #1c7ed6;
    -webkit-appearance: none;
    border-radius: 2px;
}

input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
button:hover {
    background-color: #339af0;
    border-color: #339af0;
    cursor: pointer;
}

input[type=submit]:disabled,
button:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: auto;
}

input[type=text],
input[type=date],
input[type=number],
input[type=month],
input[type=week],
input[type=datetime],
input[type=datetime-local],
input[type=url],
input[type=tel],
input[type=email],
input[type=search],
input[type=password],
textarea {
    -webkit-appearance: none;
    border-radius: 2px;
    padding: 0.6em 0.8em;
    border: 1px solid #adb5bd;
}

input[type=text]:focus,
input[type=date]:focus,
input[type=number]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=search]:focus,
input[type=password]:focus,
textarea:focus {
    border: 1px solid #495057;
}

select {
    border-radius: 2px;
    padding: 0.6em 0.8em;
    border: 1px solid #adb5bd;
}


/*
Checkbox / radio:
- based on native-elements
- https://native-elements.stackblitz.io/
*/

input[type='checkbox'],
input[type='radio'] {
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 21px;
    height: 21px;
    border-radius: 4px;
    border: 1px solid #adb5bd;
    cursor: pointer;
    position: relative;
    vertical-align: top;
}

input[type='checkbox']::before,
input[type='radio']::before {
    content: '';
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
    height: 5px;
    width: 10px;
    border-radius: 2px 0 2px 2px;
    border-bottom: 2px solid #f8f9fa;
    border-left: 2px solid #f8f9fa;
    transform: translate(-50%, calc(-50% - 1px)) rotate(-45deg);
    opacity: 0;
}

input[type='checkbox']:not(:disabled):active,
input[type='radio']:not(:disabled):active {
    border-color: #495057;
}

input[type='checkbox']:checked,
input[type='radio']:checked {
    background-color: #ced4da;
    border-color: #ced4da;
    color: #f8f9fa;
}

input[type='checkbox']:checked::before,
input[type='radio']:checked::before {
    opacity: 1;
}

input[type='checkbox']:disabled,
input[type='radio']:disabled {
    opacity: 0.25;
    background-color: #ced4da;
    cursor: not-allowed;
    pointer-events: none;
}

input[type='checkbox']:checked:disabled::before,
input[type='radio']:checked:disabled::before {
    opacity: 1;
}

input[type='radio'] {
    border-radius: 100%;
}

input[type='radio']::before {
    border-radius: 100%;
    border: 0;
    width: 8px;
    height: 8px;
    transform: translate(-50%, calc(-50%));
    background-color: #fff;
}

/*
Helpers:
- .list-bare to remove icon and padding
*/

.list--bare, .list-bare {
    list-style: none;
    padding-left: 0;
}


/*
Grid
*/

.grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}

/*
Django Messages formatting
*/

.messages {
    list-style: none;
    margin: 1em 0 2em;
    padding: 0;
}

.messages li {
    background-color: #ffec99;
    padding: 12px;
    width: 100%;
    line-height: 2.0em;
}

.messages li.info {
    background-color: #d0ebff;
}

.messages li.error {
    background-color: #ffe3e3;
}

/*
Text utils
*/

.text-tiny { font-size: 0.7em; }
.text-small { font-size: 0.9em; }
.text-large { font-size: 1.2em; }
.text-muted { color: #868e96; }
.text-breakall { word-break: break-all; }
.text-prewrap { white-space: pre-wrap; }


/* Extra */
th {
    background-color: #f1f3f5;
    border: 1px solid #adb5bd;
}

td {
    border: 1px solid #adb5bd;
}

textarea {
    width: 100%;
}

input[type=text], input[type=url] {
	width: 32em;
	max-width: 100%;
}

input.narrow {
    width: 120px;
}

.output, #jwt-output, #json-output, #base64-output {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    background-color: #e9ecef;
    font-size: 0.95em;
    padding: 0.4em;
    display: none;
    overflow: auto;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

#jwt-output span {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#dns-results .narrow {
    width: 80px;
}

.jwt, .jwt-example {
    word-break: break-all;
    display: block;
}

.utils-list li div:first-child {
    width: 10em;
    text-align:right;
    margin-right: 1em;
}

.utils-list li {
    display: flex;
}

.readiness .pass, .readiness .warn, .readiness .fail {
    font-weight: bold;
    text-align: center;
    min-width: 120px;
}

.pass {
    color: #82c91e;
}

.warn {
    color: #ffe066;
}

.fail {
    color: #e03131;
}

.cve .critical {
    color: #e03131;
    font-weight: bold;
}

.cve .high, .cve .medium {
    color: #f59f00;
    font-weight: bold;
}

.narrow {
    width: 12em;
}

.text-right {
    text-align: right;
}

/* Map */


#map {
    height: 500px;
    width: 100%;
}

/* Title Card */
.title-card {
    width: 960px;
    height: 520px;
    display: flex;
    align-items: center;
    background-color: #1c7ed6;
    color: white;
}

.title-card p {
    font-size: 5em;
    padding: 1em;
    font-family: "Inter", system-ui;
}

/* Pygments */

.highlight pre {
    overflow: auto;
}

/* Highlight.js */
.hljs{color:#545454}.hljs-comment,.hljs-quote{color:#696969}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#d91e18}.hljs-attribute,.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#aa5d00}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:green}.hljs-section,.hljs-title{color:#007faa}.hljs-keyword,.hljs-selector-tag{color:#7928a1}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}
