body {
    font-family: monospace;
    background: #333333;
    color: #fff;
    margin: 0;
}

a {
    color: #ccc;
    text-decoration: underline;
    font-size: 0.9em;
}

a:hover {
    color: #fff;
}

textarea {
    resize: none;
}

#main-header {
    background-color: #1f1f1f;
    padding: 20px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#header-image {
    height: 60px;
}

#wrapper {
    position: relative;
    margin: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.description {
    max-width: 800px;
    margin: 0 auto 2em;
    line-height: 1.5;
}

.field-header {
    position: relative;
    background: #1f1f1f;
    padding: 0.8em;
    display: block;
    line-height: normal;
}

#output-header {
    margin-top: 2em;
}

#status-label {
    position: absolute;
    right: 1.1em;
    background: #4b4b4b;
    padding: 0.4em 0.8em;
    padding-bottom: 0.6em;
    border-radius: 0.3em;
    bottom: -3.2em;
    font-weight: bold;
}

textarea,
pre {
    background-color: #000;
    color: #fff;
    border: 1px solid #767676;
}

textarea#urls {
    width: -webkit-fill-available;
    padding: 1em;
    margin-bottom: 1em;
    font-family: monospace;
}

textarea#urls:focus,
textarea#urls:focus-visible {
    outline: none !important;
    border: 1px solid #931a5c;
}

pre {
    padding: 1em;
    margin-top: 0;
    height: 400px;
    overflow-y: auto;
    text-align: left;
    white-space: pre-wrap;
}

div#share-tool {
    margin-bottom: 1em;
}

footer {
    text-align: center;
    padding: 2em;
    font-size: 0.9em;
    color: #aaa;
}

#controlsContainer {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

#redirectCheckbox {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    background-color: #454545;
}

#redirectCheckboxContainer {
    display: inline-block
}

#userAgentSelectContainer {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

#redirectCheckbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid white;
    border-radius: 4px;
    margin: 0;
    background-color: transparent;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

#redirectCheckbox input[type="checkbox"]:checked {
    background-color: #931a5c;
    border-color: #c13b84;
}

#redirectCheckbox input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 0.5em;
    left: 0.1em;
    font-size: 14px;
    color: #fff;
    line-height: 0;
}

/* Button from: https://getcssscan.com/css-buttons-examples */

.button-1 {
    background-color: #931a5c;
    border-radius: 4px;
    border-style: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: monospace;
    font-weight: 500;
    line-height: 0;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0 1em;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 100ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    height: 2.3em;
}

.button-1:hover,
.button-1:focus {
    background-color: #EA4C89;
}

#copy-button {
    background-color: #000;
}

#copy-button:hover,
#copy-button:focus {
    background-color: #1b1b1b;
}

#copy-output {
    margin-top: 1em;
}

select {
    font-family: monospace;
}

.select-dark {
    background-color: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out;
}

.select-dark:focus {
    border-color: #931a5c;
    outline: none;
}

.select-dark option,
.select-dark optgroup {
    background-color: #1b1b1b;
    color: #fff;
}

.scroll-dark {
    scrollbar-color: #931a5c #1b1b1b;
    scrollbar-width: thin;
}

.scroll-dark::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.scroll-dark::-webkit-scrollbar-track {
    background: #1b1b1b;
    border-left: 1px solid #444;
}

.scroll-dark::-webkit-scrollbar-thumb {
    background-color: #931a5c;
    border-radius: 6px;
    border: 2px solid #1b1b1b;
}

@media (max-width: 768px) {
    #wrapper {
        padding: 0 0.5em;
    }

    #controlsContainer {
        flex-direction: column;
    }
}