* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-grey: #2E2E2E;
  --normal-grey: #2a2a2a;
  --light-grey: #797979;
  --focus-grey: #4B4B4B;
  --yellow: #FFD400;
}

body {
  margin: 0;
  font-family: sans-serif;
  overflow-x: hidden;
  /* overflow: clip; */
  background: var(--dark-grey);
  color: var(--yellow);
}

main {
  display: flex;
  padding:  6em 2em;
  gap: 2em;

}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0;
  line-height: 1.6em;
}

.text {
  max-width: 70%;
  margin: 0 auto;
  line-height: 1.6em;
  position: relative;
  color: var(--yellow);
  background: var(--normal-grey);
  padding: 1em;

  p {
    font-size: 1.2rem;
    line-height: 2.2em;
    font-weight: bold;
  }

  ;

  p:not(:last-child):not(.explanation) {
    margin-bottom: 4em;
  }
}

.text span {
  display: inline-block;
  white-space: pre-wrap;
}

#distorter {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background-color: rgba(255, 0, 0, 0);
}

form#distortion-menu {
  position: fixed;
  display: flex;
  top: 10px;
  left: 10px;
  background: lightblue;
  border-radius: 10px;
  font-weight: bold;
  color: black;
  padding: 1em;
  z-index: 1000;

  label {
    margin: 0 1em;
  }
}

label {
  display: flex;
  flex-direction: column;

  input {
    width: 200px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.annotations {
  max-width: 30%;
  width: 100%;
  z-index: 1;
  position: relative;
  overflow: visible;
  display: block;
  background: var(--normal-grey);
  padding: 1em;

  h2 {
    position: sticky;
    top: 0;
  }
}

#anno-list {
  position: relative;
  width: 100%;
}

.annotation-item,
.anno-new {
  background: var(--light-grey);
  padding: 1em;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  width: 100%;
  z-index: 2;
}

button {
  margin-top: 1em;
  padding: 0.5em 1em;
  background: var(--yellow);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.mode-active {
    outline: 4px solid #4c9ffe;
    outline-offset: 6px;
    border-radius: 8px;
    background: var(--focus-grey);
}

*:focus {
  outline: 10px solid lime;
  outline-offset: 5px;
}