
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bodyMargin: .5em;
}

html {
    background-color: #333;
    display: flex;
    justify-content: center;
}

body {
    font-size: 1em;
    max-width: 64em;
    min-height: calc(100vh - var(--bodyMargin) * 2);
    padding: .25em 1em;
    margin: var(--bodyMargin);
    background-color: #efefef;
    border-radius: 5px;
    flex-grow: 1;
}

h2 {
    margin-bottom: 2em;
}

p {
    font-size: 1em;
}

pre {
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre span {
    font-family: inherit;
    font-size: inherit;
}

a {
    color: #333;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

input, select, button {
    font-size: inherit;
}

input[type="text"] {
    display: block;
    border: 2px solid #777;
    border-radius: 5px;
    padding: .5em 1em;
    margin: .5em 0;
    width: 15em;
    transition: 200ms ease-in-out;
}

input[type="text"].inline,
button.inline {
    display: inline-block;
    margin: .5em;
}

input[type="text"]:focus {
    border-color: #333;
    outline: none;
}

input[type="text"]:focus:not(.noexpand) {
    width: 100%;
}

button {
    display: block;
    width: fit-content;
    border: none;
    padding: .5em 1em;
    color: #fff;
    background-color: hsl(
        var(--hue, 100),
        var(--saturation, 30%),
        calc(var(--lightness, 50%) + var(--lightnessOffset, 0%))
    );
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 100ms ease-in-out;
}

button.deleteBtn {
    --hue: 0;
    --saturation: 70%;
}

button:hover, button:focus-visible {
    --lightnessOffset: -10%;
}

.addBtn, .tagsList {
    margin-bottom: 5em;
}

.addBtn {
    margin-top: 2.5em;
}

#changeBackground {
    float: right;
}

/* Site Window */
.siteWindow {
    position: relative;
    --width: 50em;
    width: var(--width);
    height: calc(var(--width) / (16 / 9));
    margin: 0;
    padding: 0;
    position: fixed;
    top: calc(100vh - (var(--width) / (16 / 9)) - 1em);
    left: calc(100vw - var(--width) - 1em);
    background-color: #efefef;
    border: 3px solid hsl(100, 30%, 50%);
    border-top-width: 2em;
}

#siteWindowFrame {
    width: 100%;
    height: 100%;
    margin: 0;
}

.xButton {
    position: absolute;
    top: -1.25em;
    right: .25em;
    border: none;
    background-color: #0000;
    padding: 0;
    color: #fff;
    font-weight: bold;
    font-size: 1.5em;
}