:root {
    --theme-icon-color: black;
    --theme-icon-back-color: white;
    --background-color: black;
    --text-color: white;
    --base-link: #dae000;
    --visited-link: #ff7700;
    --hover-link: #ffb300;
    --active-link: #c7c7c7;
    --table-border-color: white; 

}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0px; 
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    line-height: 1.5em;
}

p {
    text-align: justify;
}

header, footer {
    background-color: #5c5c5c;
    height: auto;
    padding: 3px;
    display: flex;
    position: sticky;
    top: 0;
    align-items: center;
    justify-content: space-between;
}

article {
    padding: 5px;
}

table, th, td {
    border-collapse: collapse;
    border: 1px solid var(--table-border-color);
}

th, td {
    padding: 3px;
}

code {
    background-color: #7a7a7a;
    border-radius: 3px;
    padding: 0.1em;
    font-family: codeFont;
}

textarea {
    background-color: #686d6d;
    color: white;
    border: none;
    width: 100%;
    font-family: serif;
}

textarea::placeholder {
    color: #c5c5c5;
}

button {
    background-color: #686d6d;
    color: white;
}

a:link {
    color: var(--base-link);
    text-decoration: none;
}

a:visited {
    color: var(--visited-link);
    text-decoration: none;
}

a:hover {
    color: var(--hover-link);
    text-decoration: none;
}

a:active {
    color: var(--active-link);
    text-decoration: none;
}

.lightmode {
    --text-color: black;
    --background-color: white;
    --theme-icon-color: white;
    --theme-icon-back-color: black;
    --base-link: blue;
    --visited-link: purple;
    --hover-link: black;
    --active-link: red;
    --table-border-color: black;
}

.lightmode #theme-switch img:last-child {
    display: block;
}

.lightmode #theme-switch img:first-child {
    display: none;
}

.code-blk {
    background-color: #7a7a7a;
    border-radius: 3px;
    padding: 0.1em;
    line-height: normal;
    overflow: auto;
}

.undln {
    text-decoration-line: underline;
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--theme-icon-back-color);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 15px;
    right: 15px;
}

#theme-switch svg {
    fill: var(--theme-icon-color);
}

#theme-switch svg:last-child{
    display: none;
}

.lightmode #theme-switch svg:first-child {
    display: none;
}

.lightmode #theme-switch svg:last-child {
    display: block;
}

@font-face {
  font-family: codeFont;
  src: url(/fonts/Share_Tech_Mono_Regular.otf);
}
