:root {
    --grey : #969896;
    --red : #cc6666;
    --green : #b5bd68;
    --yellow : #f0c674;
    --blue : #81a2be;
    --white : #f4f4f4;
    --purple : #c259cf;
    --black : #1d1f21;
}

::selection {
    background: var(--blue);
    color: var(--black);
}

li::marker {
    content: '+ ';
}

#articleContainer{
	font-family: 'pixel';
	font-size: 11px;
}

button{
	border-radius: 0px;
	border: 1px solid white;
	background: var(--black);
	font-family: 'pixel';
	font-size: 10px;
	color: white;
	width: 100%;
}

button:hover{
	cursor: pointer;
}

.tags {
    /* behaves like a paragraph */
    display: inline;        /* let it flow naturally */
    line-height: 1.4;
}

#shareBlock{
	display: flex;
	justify-content: center;
}

.stats {
	position: absolute;
	bottom: 0;
	left: 0;
}


.stats span {
	color: white;
	font-family: pixel;
	font-size: 10px;
}

.tag {
    display: inline;        /* inline so tags flow with text */
    cursor: pointer;
    margin-right: 4px;

    /* Break long words only if they exceed container width */
    word-break: break-word;
    overflow-wrap: break-word;

    background: var(--black);
    transition: opacity 0.4s, background 0.3s;
}

.tag.inactive {
    background: var(--red);
    opacity: 0.3;
}

.autocomplete-overlay{
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: 10px;
    padding: 3px;
    box-sizing: border-box;
    white-space: pre;
    z-index: 1;
    font-family: 'pixel';
  
}

.sidebar {
    position: absolute;
    top: 40dvh;
    width: 200px;
    height: 20dvh;
    background: var(--black);
    border-left: 1px solid white;
    padding: 10px;
    box-sizing: border-box;
}

input{
    background: var(--black);
    border: 1px solid white;
    color: var(--white);
    font-family: 'pixel';
}

input[type=text]:focus {
  outline: none;
}

@font-face {
    font-family: 'pixel';
    src: url('../apple.ttf') format('truetype');
}

html, body {
    height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: 'pixel';
    background: var(--black);
    color : var(--white);
    font-family: monospace;
    font-smooth: none;
    -webkit-font-smoothing : none;
}

.item {
	color: var(--blue);
}

img {
    -webkit-user-drag: none;
}

a {
    color: var(--blue);
    text-decoration: none;
    -webkit-user-drag: none;
}

a:hover {
    text-decoration: underline;
    background: var(--blue);
    color : var(--white);
}

span {
    text-decoration: none;
    -webkit-user-drag: none;
}

ul {
    font-family: 'pixel';
    font-size: 0.5em;
    margin-left: 19px;
    padding: 0;
    display: flex;
    flex-direction: column;
	align-items: flex-start;
}

p {
    font-family: 'pixel';
    font-size: 0.53em;
    margin : 0;
    margin-bottom: 5px;
}

.text {
    border: 1px solid var(--grey);
    padding: 10px;
}

.title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.subtitle {
    color : var(--green);
    text-decoration: underline;
}

.main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    height: 100dvh;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.border {
    color : var(--white);
    background : var(--black);
    height : fit-content;
    margin: 10px;
    padding: 5px;
    width : 30rem;
    text-align: center;
}

.absolute {
    position: absolute;;
}

@media (max-width: 600px) {

	input {
		font-size: 17px;
		width: 50%;
	}

    .main {
    	display: block;
        gap: 0;
    }

    .section {
        width: 100% !important;
        margin-bottom: 10px;
        margin-top: 0 !important;
        height: 100dvh;
        justify-content: space-between;
    }
    
    .absolute {
        position: initial;
        text-align: center;
        width: 100% !important;
        margin-bottom: 10px;
    }

    .border {
        margin: 0;
        width: 100%;
    }

    .mobilehide {
    	display: none;
    }

    p {
    	word-break: break-all;
    }
}

