@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Regular-Oblique.woff2") format("woff2");
    font-weight: normal;
    font-style: oblique;
}
@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Bold-Oblique.woff2") format("woff2");
    font-weight: bold;
    font-style: oblique;
}

html {
    margin-left: calc(100vw - 100%);
}

body {
    border: none;
    margin: 0 auto;
    padding: 40px 20px 40px 20px;
    max-width: 800px;
    background-color: rgb(31, 34, 42);
    color: #fff;
    font-size: 1rem;
    font-family: "Berkeley Mono", monospace;
}

tiny {
    font-size: x-small;
    line-height: 0.5;
}

tiny code {
    font-size: x-small !important;
}

a {
    color: inherit;
}

header,
footer {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: rgb(31, 34, 42);
}

header .logo {
    display: flex;
    flex: 1;
}

header .logo::after {
    content: "";
    background: repeating-linear-gradient(
        90deg,
        #78e2a0,
        #78e2a0 2px,
        transparent 0,
        transparent 7px
    );
    display: block;
    width: 100%;
    right: 10px;
}

header .logo .name {
    display: flex;
    flex: 0 0 auto;
    max-width: 100%;
    align-items: center;
    background: #78e2a0;
    padding: 5px 10px;
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #78e2a0;
    width: 100%;
    min-height: 1.5rem;
}

nav a {
    text-decoration: none;
}

header nav a {
    margin: 0 auto;
}

footer .separator {
    padding-left: 1rem;
    padding-right: 1rem;
}

nav a::before {
    content: "[";
}

nav a::after {
    content: "]";
}

main {
    margin-top: 4rem;
    margin-bottom: 5rem;
}

main h1,
main h2,
main h3 {
    color: #78e2a0;
}

main h1 {
    position: relative;
    margin: 0 0 15px;
    padding-bottom: 15px;
    margin-bottom: 3rem;
    border-bottom: 3px dotted #78e2a0;
}

main h1::after {
    content: "";
    position: absolute;
    bottom: 2px;
    display: block;
    width: 100%;
    border-bottom: 3px dotted #78e2a0;
}

p {
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.3;
}

main p code {
    font-feature-settings: normal;
    padding: 1px 6px;
    margin: 0 2px;
    font-size: 0.95rem;
    background: rgba(120, 266, 160, 0.2);
}

main pre {
    font-feature-settings: normal;
    padding: 1px 6px;
    margin: 1rem 2px;
    font-size: 0.95rem;
    background: rgba(120, 266, 160, 0.2);
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.1;
}

main ul {
    list-style: none;
}

main ul li {
    position: relative;
}

main ul li::before {
    content: "-";
    position: absolute;
    left: -20px;
    color: #78e2a0;
}

.video-container {
    text-align: center;
    width: 100%;
}
