/* A very simple CSS file for styling my simple website. */

/*
* GENERAL
*/

html {
    padding: 10px;
  	margin: auto;
    background-color: #000000;
	background-image: linear-gradient( rgba(39, 42, 52, 0.75), rgba(39, 42, 52, 0.75) ), url(/img/bg.jpg);
  	background-position: center center;
  	background-repeat: no-repeat;
  	background-attachment: fixed;
  	background-size: cover;
    scrollbar-color: #12846e rgba(39, 42, 52, 0.75);
    scrollbar-gutter: auto;
}

@font-face {
	font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
	src: url(/font/JetBrainsMono-Regular.ttf);
}

@media (max-width: 500px) {
    .hidden-mobile { display: none; }
    div.grid-container { grid-template-columns: 100% !important; }
    pre.code { margin: 10px 5% !important; }
    h2.nav, h2.langlist { font-size: 15px !important; }
    img.icon { max-width: 15px !important; }
    img.icon-medium { max-width: 20px !important; }
    .post_title { font-size: 30px !important; }
}

@media (min-width: 500px) {
    div.content {
        margin: 25px 50px;
        padding: 30px;
        border: 3px yellow solid;
    }
}

body {
  	color: #ffffff;
  	font-family: "JetBrains Mono" !important; 
  	font-size: 15px;
  	text-align: left;
  	justify-content: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Block quotes */
blockquote {
    align-items: center;
    justify-content: center;
    border-style: hidden hidden hidden solid;
    border-color: yellow;
    border-width: 5px;
    margin: 10px auto 10px auto;
    padding: 3px 15px 3px 15px;
    background-color: rgba(39, 42, 52, 0.75);
}

code {
    font-family: "JetBrains Mono";
    font-size: 13px;
    color: lime;
    background-color: rgba(0, 0, 0, 0.40);
    margin: 0px auto 0px auto;
    padding: 3px 7px 3px 7px;
}

img {
  	display: block;
  	margin: 0px auto 0px auto;
  	max-width: 500px;
  	height: auto;
}

/* Link */
a {
	color: yellow;
    text-decoration: none;
}

/* Mouse over link */
a:hover { 
	color: red; 
	text-decoration: none;
}

/*
* CLASSES
*/ 

/* Top & bottom bars */
@keyframes bar-anim {
    0% { background-color: rgba(39, 42, 52, 0.75); }
    25% { background-color: rgba(18, 132, 110, 0.75); }
    50% { background-color: rgba(39, 42, 52, 0.75); }
    75% { background-color: rgba(153, 0, 0, 0.75); }
    100% { background-color: rgba(39, 42, 52, 0.75); }
}

div.topbar, div.bottombar {
    clear: both;
    width: auto;
    padding: 5px 20px;
    margin: -20px;
    border-color: yellow;
    border-width: 3px;
    animation-name: bar-anim;
    background-color: rgba(39, 42, 52, 0.75);
    animation-duration: 5s;
    animation-iteration-count: infinite;
}

div.topbar {
    position: sticky;
    top: 0;
    display: flex;
    border-style: hidden hidden double hidden;
    margin-bottom: 0;

}

div.bottombar {
    position: relative;
    bottom: 0;
    margin-top: auto;
    border-style: double hidden hidden hidden;
}

div.content {
    text-align: left;
  	justify-content: center;
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
}

h2.name {
    display: block;
    color: white !important;
    background-color: #12846e !important;
    border: 3px solid yellow;
    margin-right: 10px;
    padding: 0 5px;
}

h2.langlist {
    display: block;
}

a.lang { color: #cccccc; }

a:hover.lang { 
    color: red;
    text-decoration: underline;
}

a.toindex {
    margin-top: 20px;
    margin-bottom: 20px;
}

a.tag {
    color: #ffffff;
}

h2.nav {
    display: block;
    color: yellow !important;
    border-style: hidden hidden dotted hidden;
    border-color: yellow;
    border-width: 3px;
    white-space: nowrap;
}

h2.nav { float: left; }

div.topbar_name { text-align: center; }

div.topbar_left {
    flex: 1;
    text-align: center;
}

div.topbar_right { margin-left: auto; }

pre.title {
  	font-size: calc(17px + .5vw);
  	align-items: center;
  	justify-content: center;
  	text-align: center;
  	color: yellow;
    overflow: auto;
}

pre.banner {
    color: yellow;
    overflow: auto;
}

div.banner { 
    float: center;
    clear: left; 
    border-bottom: 5px dotted yellow;
    padding-bottom: 4px;
}

div.banner::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 5px dotted yellow;
}

div.title {
    border-bottom: 3px dotted yellow;
    padding-bottom: 2px;
}

div.title::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 3px dotted yellow;
}

pre.code {
    background-color: rgba(0, 0, 0, 0.40);
    margin: 10px 20%;
    padding: 3px 15px;
    align-items: center;
    overflow: auto;
}

code.snippet {
    font-family: JetBrains Mono;
    font-size: 17px;
    background-color: unset;
    margin: 0;
    padding: 0;
}

div.grid-container {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 20px;
    gap: 10px;
}

div.grid-item {
    background-color: rgba(18, 132, 110, 0.5);
    border-width: 5px;
    border-color: yellow;
    border-style: outset;
    padding: 15px;
}

div.social {
    margin: 0 auto;
    padding: 0 20px;
    max-width: fit-content;
    border-width: 3px;
    border-color: yellow;
    border-style: solid;
    background-color: rgba(39, 42, 52, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

footer.copyright {
    text-align: center;
    justify-content: center;
    font-size: 13px;
}

img.gifbar {
    padding-top: 20px;
    height: 15px;
    max-width: 100%;
}

img.icon {
    display: inline-block;
    max-width: 20px;
    margin: 0;
    padding: 0;
}

img.icon-medium {
    display: inline-block;
    width: 24px;
    margin: 0;
    padding: 0;
}

img.buttons {
    display: inline-block;
    white-space: nowrap;
    width: 88px;
    height: 31px;
}

ul.taglist { padding-left: 0; }

ul.taglist li {
    display: inline-block;
    border: 3px double yellow;
    background-color: yellow;
    color: black;
    padding-left: 6px;
    margin: 5px;
}

ul.webdir {
    list-style-type: "📁";
}

ul.webdir li {
    padding-left: 5px;
}

h4.tag {
    display: inline-block;
    margin: 0;
    padding: 3px 6px;
    background-color: #12846e;
    transition: 0.3s;
}

h4:hover.tag { background-color: red; }

.center { 
    text-align: center;
    align-items: center;
    justify-content: center;
}

.post_title {
	text-align: center;
	font-size: 40px;
	color: yellow;
}

.post_info {
    font-size: 12px;
    margin-top: 3px;
    margin-left: 3px;
}

.logo {
	display: inline;
	max-width: 24px;
	height: auto;
}

.sign {
  	font-size: 12px;
  	text-align: center;
}
