/* this is the stylesheet, hopefully it won't grow much longer than it is now */
/* GENERICS */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

footer table {
	font-style:		italic;
	width:			100%;
}

#icons {
	text-align:	right;
    font-family: monospace;
}

#left {
    font-family: monospace;
}

body {
	margin:			auto 8px 20px 8px;
	background: #1b1b1b ;
	color: #fff ;
	font-family: 'Inter', sans;
    overflow-x: hidden;
}

code {
	background-color:	#272822;
    color: #f8f8f2;
	padding:		2px;
    overflow-x: auto;
    white-space: pre;
}

pre code {
	padding:                0px;
}

pre {
	background-color:	#272822;
	border:			1px solid lime;
	padding:		6px;
	overflow-x:             auto;
    white-space: pre;
    word-wrap: normal;
}

.language-spoiler tt font{
    color: #272822;
}

.language-spoiler tt font:hover{
    color: #f8f8f2;
}

a {
	color:			#8fc;
	text-decoration:	none;
    transition: border-color 0.2s ease;
}


a:hover {
	text-decoration:	underline;
}

html {
	margin:			1em auto;
}

h1 {
	text-align:		center;
}

td h1 {
	text-align:		left;
	font-size:		1.5em;
}

h1 {
    color: #789;
}
h2 {
    color: #aaa;
}
h3, h4 {
    color: #ccc;
}
h5, h6 {
    color: #bdb;
}

table {
	width:	100%;
}

.rss-button {
    width: 13px;
    height: 13px;
}

/* for example, in Blog TODO: make this not apply so generically */
main ul li {
    font-family: monospace;
    color: #888;
    font-size: 10pt;
}

.url td {
	font-family:		monospace;
}

.hidden {
    display: none !important ;
}

#tag-directory {
    column-count: 3;
}

#tag-directory a.selected {
    font-weight: bold;
}

/* fix-decoder specifics*/

#fix-input {
    width:          99%;
    background-color: #272822;
    color: #f8f8f2;
    border: 2px solid lime;
    outline: none;
}


.fix-output {
    background-color: #272822;
    color: #f8f8f2;
    font-family: 'Inter', sans;
    border: 2px solid lime;
    padding: 6px;
    overflow-x: auto;
}

/* cron-descriptor specifics */
#cron-input {
	width:			99%;
    text-align:     center;
    font-size:      250%;
    background-color: #272822;
    color: #f8f8f2;
    font-family: 'Inter', sans;
    border: 2px solid lime;
    outline: none;
}

.main-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.footer-line {
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* NAVBAR STUFF */
.nav-container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top: -1%;
    margin-bottom: -1%;
    border-bottom: 1px solid #333;
    position: relative;
}

#navbar li{
    display:inline-block;
}
[type="checkbox"],
label {
    display: none;
}

ul > li > a:focus, ul > li > a:hover, #home-button:hover {
    text-decoration: none;
    background-color: #171717;
    border-bottom: 1px solid #8fc;
}

header nav table {
	width:			100%;
}

nav ul li a, .nav-container a {
    color: #8fc;
}

nav ul li {
    margin-left: 5px;
}
/* STILL NAVBAR, SMALL SCREEN SPECIFICS */
@media only screen and (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 40px; /* below burger button */
        right: 0;
        left: 0;
        background: #222;
        z-index: 9999;
        border-top: 1px solid #444;
    }
    .burger-button {
        display: block;
        background: #222;
        width: 30px;
        height: 15px;
        cursor: pointer;
        position: absolute !important;
        right: 5%;
        z-index: 9999;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }
    .burger-button:after {
        content: '';
        display: block;
        width: 20px;
        height: 5px;
        background: #777;
        margin: 3px 5px;
    }
    [type="checkbox"]:checked ~ nav ul {
        display: block;
        z-index: 9999;
        right: 20px;
        left: 20px;
        margin-top: -1%;
    }
    nav a {
        color: #8fc;
    }
    nav ul li {
        display: block;
        float: none;
        width: 100%;
        text-align: left;
        background: #222;
        text-indent: 20px;
    }
    nav > ul {
        float: right;
    }
    nav > ul > li {
        text-align: left;
        line-height: 40px;
        margin-left: 0px;
    }
    nav > ul li ul li {
        display: block;
        float: none;
    }
    nav > ul li ul {
        display: block;
        position: relative;
        width: 100%;
        z-index: 9999;
        float: none;
    }
    h1 {
        font-size: 26px;
    }
   .main-container {
        width: 100%;
        max-width: 750px;
        margin: 0 auto;
        padding: 1rem;
    }

}

@media (min-width: 992px) {
    .main-container {
        width: 100%;
        max-width: 970px;
    }
}
@media (min-width: 1200px) {
    .main-container {
        width: 100%;
        max-width: 1170px;
    }
}

/* for the git sub-domain, this css gets copied over to the git sub */
#git-minor-description {
    font-size: 10px;
}

.git-content {
    font-size: 10px;
}

.repotitle {
    float: left
}

.repo-home {
    float: right
}

.git-clone {
    font-size: 10px;
}

span.d {
    color: #cd0000;
}

span.i {
    color: #00cd00;
}

.h {
    color: #fff;
}

#blob {
    counter-reset: linenumber;
    padding-left: 3em; /* room for line numbers */
    position: relative;
    font-family: monospace;
}

#blob > span {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
}

#blob > span::before {
    counter-increment: linenumber;
    content: counter(linenumber);
    position: absolute;
    left: -2.5em;
    width: 2em;
    text-align: right;
    color: #666;
    font-size: 0.9em;
    user-select: none;
    pointer-events: none;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    margin: 8px 0;
}

details[open] summary::after {
    content: " 🔽";
}

details summary::after {
    content: " ▶️";
    float: right;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

li {
    margin: 4px 0;
}
