: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;
}

html[data-theme='light'] {
    --red: #ff8080;
    --green: #c2f0c2;
}

html[data-theme='dark'] {
    --red: #ff0000;
    --green: #00e600;
}

body {
    max-width: 70em;
    padding-top: 0;
}

.option-controls-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.option-controls-container>label {
    margin-left: auto;
    align-self: flex-start;
    margin-top: 10px;
}

.validation-label {
    padding: 1px 8px;
    margin-top: 10px;
    margin-right: 5px;
    display: block;
    background-color: gainsboro;
    border-radius: 15px;
    color: var(--text-color);
}

.validation-label.fail {
    background-color: var(--red);
}

.validation-label.success {
    background-color: var(--green);
}

.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1em;
    grid-auto-rows: minmax(50px, auto);
    grid-template-areas:
    "header"
    "decode-base64"
    "encode-base64"
}

@media (min-width: 1100px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
        grid-auto-rows: minmax(50px, auto);
        grid-template-areas:
        "header header"
        "decode-base64 encode-base64"
    }
}

.header {
    grid-area: header;
    justify-self: right;
    align-self: flex-start;
}

h1 {
    text-align: center;
    line-height: 1;
    margin: 0rem;
    margin-top: 15px;
    font-size: 1.2rem;
}


.decode-base64 {
    grid-area: decode-base64;
    display: flex;
    flex-direction: column;
    justify-content: start;
}


.decode-base64 textarea, .encode-base64 textarea {
    box-sizing: border-box;
    min-height: 400px;
    height: auto;
    padding: 1em;
    font-size: 16px;
    width: 100%;
    line-height: normal;
    font-family: monospace;
    color: var(--text-color);
    background: transparent;
    resize: none;
    overflow-y:auto;    
}

@media (min-width: 1100px) {
    .decode-base64 textarea, .encode-base64 textarea {
        min-height: 600px;
        max-height: none;
        overflow-y:auto;
    }
}


.decode-base64 h2, .encode-base64  h2 {
    padding: 0;
    margin: 0;
}

.encode-base64 {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-area: encode-base64;
}


.error-message {
    color: red;
}



