html, body {
  min-height: 100vh;
  width: 100%;
  line-height: 1;
}

body, body * {
  /*all: unset;*/
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

ol, ul, menu {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  background: #f8f8f8;
  background: #333;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}

header {
  background: #111;
  padding: 1em;
  color: #fff;
  z-index: 999;
  text-align: center;
  position: sticky;
  top: 0;
  height: 0;
  padding: 0;
}
header menu.alignment {
  width: 6em;
  height: 6em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: auto;
  background: #111;
  position: fixed;
  top: 4em;
  left: 50%;
  margin-left: -3em;
}
header menu.alignment li input {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  cursor: pointer;
}
header menu.alignment li input:before {
  visibility: visible;
  width: 100%;
  height: 100%;
  display: block;
  content: "";
}
header menu.alignment li input:checked:before {
  background: #333;
}
header menu.alignment li input:hover:before {
  background: #888;
}

body:has(header input.top:is(:checked)) main article {
  top: -50%;
  transform: translateY(50%);
}
body:has(header input.bottom:is(:checked)) main article {
  top: 50%;
  transform: translateY(-50%);
}
body:has(header input.left:is(:checked)) main article {
  left: -50%;
  translate: 50% 0;
}
body:has(header input.right:is(:checked)) main article {
  left: 50%;
  translate: -50% 0;
}

main {
  background: white;
  display: grid;
  flex: 1;
  padding-right: var(--margin-right);
  padding-bottom: var(--margin-bottom);
  padding-left: var(--margin-left);
  padding-top: var(--margin-top);
}
main article {
  padding: 0;
  transition: all 0.33s ease-in-out;
  place-self: center;
  transform-origin: 50% 50%;
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 0.1em;
  box-shadow: 0 0 0 1em transparent;
}
main article:focus {
  outline: none;
}
main article:hover {
  background: #ddd;
  box-shadow: 0 0 0 1em #ddd;
}
main h1 {
  display: none;
}

footer {
  background: #111;
  color: #fff;
  padding: 1em;
  text-align: center;
  z-index: 999;
  position: sticky;
  bottom: 0;
  display: none;
}

.margin {
  position: fixed;
}
.margin li {
  position: fixed;
  background: rgba(255, 255, 255, 0.062745098);
  display: block;
  color: white;
}
.margin li.dragging {
  transition: none !important;
}
.margin li:hover {
  background: rgba(85, 85, 85, 0.3137254902);
}
.margin li:before {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: inherit;
}
.margin li.left, .margin li.right {
  top: 0;
  bottom: 0;
  cursor: col-resize;
}
.margin li.left:before, .margin li.right:before {
  scale: 10 1;
}
.margin li.top, .margin li.bottom {
  left: 0;
  right: 0;
  cursor: row-resize;
}
.margin li.top:before, .margin li.bottom:before {
  scale: 1 10;
}
.margin li.left {
  left: 0;
  right: calc(100% - var(--handle-width));
  transition: right 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
}
.margin li.right {
  left: calc(100% - var(--handle-width));
  right: 0;
}
.margin li.top {
  top: 0;
  bottom: calc(100% - var(--handle-width));
}
.margin li.bottom {
  bottom: 0;
  top: calc(100% - var(--handle-width));
}

:root {
  --handle-width: 2vw;
  --margin-top: var(--handle-width);
  --margin-bottom: var(--handle-width);
  --margin-left: var(--handle-width);
  --margin-right: var(--handle-width);
}

body {
  --margin-top-calculated: calc(var(--margin-top) * 1px);
  --margin-bottom-calculated: calc(var(--margin-bottom) * 1px);
  --margin-left-calculated: calc(var(--margin-left) * 1px);
  --margin-right-calculated: calc(var(--margin-right) * 1px);
}

.grid {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
}
.grid .vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 0.5fr repeat(11, 1fr) 0.5fr;
  opacity: 0;
  transition: all 0.2s linear;
}
.grid .vertical .line {
  position: relative;
  transition: all 0.1s linear;
}
.grid .vertical .line:first-child:after {
  margin: unset;
}
.grid .vertical .line:last-child:after {
  margin: unset;
  right: 0;
  left: unset;
}
.grid .vertical .line:hover {
  cursor: pointer;
}
.grid .vertical .line:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(to left, transparent, #808080, transparent) repeat-y;
  background-size: 50vw 50vw;
  background-attachment: fixed;
  background-position: calc(var(--mouse-x) - 25vw) 0;
  background-position: calc(var(--margin-left) - 25vw) 0;
  margin: auto;
}
.grid .horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vw;
  display: grid;
  grid-template-rows: 0.5fr repeat(11, 1fr) 0.5fr;
  opacity: 0;
  transition: all 0.2s linear;
}
.grid .horizontal .line {
  position: relative;
  transition: all 0.1s linear;
}
.grid .horizontal .line:first-child:after {
  margin: unset;
}
.grid .horizontal .line:last-child:after {
  margin: unset;
  right: 0;
  left: unset;
}
.grid .horizontal .line:hover {
  cursor: pointer;
}
.grid .horizontal .line:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to bottom, transparent, #808080, transparent) repeat-x;
  background-size: 50vw 50vw;
  background-attachment: fixed;
  background-position: 0 calc(var(--mouse-y) - 25vw);
  background-position: 0 calc(var(--margin-top) - 25vw);
  margin: auto;
}

body.dragging-x .vertical {
  opacity: 1;
}

body.dragging-y .horizontal {
  opacity: 1;
}

/*# sourceMappingURL=style.css.map */
