:root {
    --background-color: #FFF;
    --text-color: #555;
    --link-color: #2A8CB7;
    --link--visited-color: #8F00F5;
}

html[data-theme='light'] {
    --background-color: #FFF;
    --text-color: #555;
    --text-hover-color: #646464;
    --link-color: #2A8CB7;
    --link--visited-color: #8F00F5;
   
}

html[data-theme='dark'] {
    --background-color: #1C1B22;
    --text-color: #F7F8F8;
    --text-hover-color: rgb(194, 194, 194);
    --link-color: #69BADD;
    --link--visited-color: #BB5CFF;
}

#theme-toggle {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5em;
    padding: 6px;
    border: none;
    background-color: transparent;
    z-index: 10;

}

[data-theme='light'] #theme-toggle {
    filter: contrast(70%) brightness(120%) opacity(40%);
}

[data-theme='dark'] #theme-toggle {
    filter: contrast(70%) brightness(130%) opacity(40%);
}

[data-theme='light'] #theme-toggle:hover {
    filter: none;
    cursor: pointer;
}

[data-theme='light'] #theme-toggle:active {
    font-size: 1.45em;
}

[data-theme='dark'] #theme-toggle:hover {
    filter: none;
    cursor: pointer;
}

[data-theme='dark'] #theme-toggle:active {
    font-size: 1.45em;
}

[data-theme='light'] #theme-toggle::after {
    content: "\1F31E";
}

[data-theme='dark'] #theme-toggle::after {
    content: "\1F319";
}
body {
    margin: 0 auto;
    max-width: 50em;
    line-height: 1.5;
    padding: 4em 1em;
    color: var(--text-color);
    background: var(--background-color);
    font-family: "Helvetica", "Arial", sans-serif;
}

h2 {
    margin-top: 1em;
    padding-top: 1em;
}

label {
    padding-left: 10px;
}

a {
    color: var(--link-color);
}

a:visited {
    color: var(--link--visited-color);
}
:root {
    --background-color: #FFF;
    --text-color: #555;
    --link-color: #2A8CB7;
    --link--visited-color: #8F00F5;
}

html[data-theme='light'] {
    --background-color: #FFF;
    --text-color: #555;
    --text-hover-color: #646464;
    --link-color: #2A8CB7;
    --link--visited-color: #8F00F5;
   
}

html[data-theme='dark'] {
    --background-color: #1C1B22;
    --text-color: #F7F8F8;
    --text-hover-color: rgb(194, 194, 194);
    --link-color: #69BADD;
    --link--visited-color: #BB5CFF;
}

#theme-toggle {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5em;
    padding: 6px;
    border: none;
    background-color: transparent;
    z-index: 10;

}

[data-theme='light'] #theme-toggle {
    filter: contrast(70%) brightness(120%) opacity(40%);
}

[data-theme='dark'] #theme-toggle {
    filter: contrast(70%) brightness(130%) opacity(40%);
}

[data-theme='light'] #theme-toggle:hover {
    filter: none;
    cursor: pointer;
}

[data-theme='light'] #theme-toggle:active {
    font-size: 1.45em;
}

[data-theme='dark'] #theme-toggle:hover {
    filter: none;
    cursor: pointer;
}

[data-theme='dark'] #theme-toggle:active {
    font-size: 1.45em;
}

[data-theme='light'] #theme-toggle::after {
    content: "\1F31E";
}

[data-theme='dark'] #theme-toggle::after {
    content: "\1F319";
}
body {
    margin: 0 auto;
    max-width: 50em;
    line-height: 1.5;
    padding: 4em 1em;
    color: var(--text-color);
    background: var(--background-color);
    font-family: "Helvetica", "Arial", sans-serif;
}

h2 {
    margin-top: 1em;
    padding-top: 1em;
}

label {
    padding-left: 10px;
}

a {
    color: var(--link-color);
}

a:visited {
    color: var(--link--visited-color);
}
.main-menu-button {
  background-color: unset;
  border: none;
  cursor: pointer;
}

.main-menu {
  position: relative;
  display: inline-block;
}

h1 {
    color: var(--text-color);
    font-family: "Helvetica", "Arial", sans-serif;
}

h1:hover {
    color: var(--text-hover-color);
}
.main-menu-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.main-menu-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.main-menu-content a:hover {background-color: #f1f1f1}

.main-menu:hover .main-menu-content {
  display: block;
}

body {
    padding: 4em 2em;

}

.content-toggle span {
    font-size: 2em;
    padding: 0;
}

.content-toggle button {
    position: absolute;
    left: -2.1em;
    top: -1em;
    color: var(--text-color);
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.content-toggle button:hover {
    color: cornflowerblue;

}
.content-toggle {
    position: relative;
}
.text-content {
    font-family: monospace;
    font-size: 1.4em;
    line-height: normal;
}

.text-content p {
    margin-top: 1em;
}

.controls-forms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    grid-auto-rows: minmax(50px, auto);
    grid-template-areas:
    "input-text hide-characters keep-characters"
    "input-text hide-words freq-words"
}

h1 {
    text-align: center;
}


#raw-text {
    grid-area: input-text;

}

#hide-words {
    grid-area: hide-words;
    text-align: right;
}

#freq-words {
    grid-area: freq-words;
    text-align: right;
}

.controls label {
    padding-left: 0;
    display: inline-flex;
    padding-right: 5px;
}

#hide-characters {
    grid-area: hide-characters;
    text-align: right;
}

#keep-characters {
    grid-area: keep-characters;
    text-align: right;
}

#root>div {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}
