@font-face {
    font-family: 'Flexi IBM VGA True';
    src: url('../fonts/flexi_ibm_vga_true-webfont.woff2') format('woff2'),
        url('../fonts/flexi_ibm_vga_true-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Sonoma';
    src: url('../fonts/lt_sonoma-webfont.woff2') format('woff2'),
        url('../fonts/lt_sonoma-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

* {
    box-sizing: border-box;
    transition: all .2s;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--secondary);
    letter-spacing: 0.12;
    word-spacing: 0.16;
}

html,
body {
    height: 100%;
    margin: 0;
    font-size: 15px;
}

html {
    background: var(--background);
    color: var(--text);
    font-family: 'Flexi IBM VGA True', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sonoma';
}

h1 {
    color: var(--secondary);
    margin: 0;
    font-size: 1.476rem;
}

h2,
h3 {
    margin-top: 0;
}

h2 {
    font-size: 1.383rem;
}

h3 {
    font-size: 1.296rem;
}

h4 {
    font-size: 1.215rem;
}

h5 {
    font-size: 1.138rem;
}

h6 {
    font-size: 1.067rem;
}

p {
    color: var(--primary);
    font-size: 1rem;
}

p,
li {
    line-height: 1.5;
}

small {
    font-size: 0.937rem;
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    color: var(--text);
}

.outgoing::after {
    content: '';
}

strong {
    color: var(--text);
    font-weight: normal;
}

em {
    font-style: normal;
    color: var(--accent);
}

::selection {
    color: var(--background);
    background: var(--accent);
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

select,
#themeToggle {
    font-family: inherit;
    padding: .3em;
    border-radius: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

select>option {
    color: #000;
}

select:focus,
#themeToggle:focus {
    outline: solid 1px var(--accent);
}

.wrap {
    max-width: 424px;
    margin: auto;
    margin-top: 10em;
    height: 100%;
    margin-bottom: -6em;
}

#main {
    border: solid 2px var(--text);
    padding: 2em 1em;
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: space-between;
}

main {
    width: 64%;
}

.extra {
    padding: 2em 1em;
    width: 242px;
    max-width: 424px;
    border: solid 1px var(--text);
    border-top: none;
    float: right;
    margin-right: 1em;
    display: none;
    max-height: 24em;
    overflow-y: auto;
}

#templateWebring {
    border: solid 1px var(--text);
    padding: 1em .4em;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1em;
}

#webringiconbox {
    width: fit-content;
}

#iconWebring {
    width: 8em;
    border: solid 1px var(--text);
}

#webringdesc,
#webringlinks {
    text-align: center;
    width: fit-content;
    margin: 0;
    border: solid 1px var(--text);
    padding: .2rem;
}

#webringlinks {
    font-size: 0.937rem;
}

#linkparaWebring {
    margin: 0;
}

.listies {
    text-align: center;
}

nav ul {
    padding-left: 1em;
    margin: 0;
}

nav ul li,
#tabs li {
    display: inline-block;
}

nav ul li {
    margin-top: 1em;
}

nav ul li a {
    background: var(--primary);
    color: var(--background);
    text-decoration: none;
    padding: .1em .2em;
}

nav ul li a:hover,
nav ul li a:focus {
    box-shadow: 0 0 1.6em var(--accent);
    color: var(--background);
}

#featured {
    background: var(--accent);
}

#tabs {
    margin: 0;
    padding: 0;
    padding-right: 1em;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: .6em;
}

#tabs button {
    background: var(--secondary);
    height: 2.2em;
    width: 2.2em;
    color: var(--text);
}

#tabs button:hover,
#tabs button:focus {
    height: 3em;
}

#tabs button:disabled {
    background: var(--accent);
    height: 3em;
    color: var(--background);
}

footer {
    background: var(--secondary);
    text-align: center;
    padding-top: 2em;
}

.wrap::after {
    content: '';
    display: block;
}

footer,
.wrap::after {
    height: 6em;
}

#map,
#map ul {
    list-style-type: none;
    padding: 0 1em;
}

.folder::before {
    content: '📁 '
}

#map ul {
    border-left: solid 1px var(--text);
}

#map ul li::before {
    content: '📄 ';
}

#warning {
    width: 364px;
    max-width: 100%;
    margin: auto;
    z-index: 2;
    position: fixed;
    padding: 2em 1em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background);
    color: var(--text);
    border: solid 2px var(--text);
}

#cover {
    width: 100%;
    height: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(6px);
}