/* 
 Cobalt theme by Arnan de Gans
*/

/* -------------------------
 Fonts
------------------------- */
@font-face {
	font-family: 'Line Awesome Brands';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url("/content/css/fonts/la-brands-400.woff2") format("woff2");
}
@font-face {
	font-family: 'Line Awesome Free';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/content/css/fonts/la-regular-400.woff2") format("woff2");
}
@font-face {
	font-family: 'Line Awesome Free';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("/content/css/fonts/la-solid-900.woff2") format("woff2");
}

/* -------------------------
 Colors and Sizes
------------------------- */
:root {
	--entry-background: rgb(35, 70, 100);

	--code: rgb(225, 239, 255);	
	--code-accent: rgb(35, 70, 100);
	--blockquote-accent: rgb(225, 239, 255);
	
	--separator: rgb(165, 255, 165);
	--border: rgb(35, 70, 100);
	--radius: 8px;
	--radius-large: 16px;
	
	--font-size: 18px;
	--monospace-font: Consolas, Menlo, Courier, monospace;
	
	--grid-gap: 1rem;
	--grid-gap-mobile: 0.75rem;
}

/* -------------------------
 Column system (Grid/gallery/etc.)
------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.grid-item {
  min-width: 0; /* Prevents grid items from overflowing */
  overflow-wrap: break-word; /* Handles long words */
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-mobile);
    padding: 0;
  }
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (min-width: 769px) {
  .md-col-1 { grid-column: span 1; }
  .md-col-2 { grid-column: span 2; }
  .md-col-3 { grid-column: span 3; }
  .md-col-4 { grid-column: span 4; }
  .md-col-5 { grid-column: span 5; }
  .md-col-6 { grid-column: span 6; }
  .md-col-7 { grid-column: span 7; }
  .md-col-8 { grid-column: span 8; }
  .md-col-9 { grid-column: span 9; }
  .md-col-10 { grid-column: span 10; }
  .md-col-11 { grid-column: span 11; }
  .md-col-12 { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .lg-col-1 { grid-column: span 1; }
  .lg-col-2 { grid-column: span 2; }
  .lg-col-3 { grid-column: span 3; }
  .lg-col-4 { grid-column: span 4; }
  .lg-col-5 { grid-column: span 5; }
  .lg-col-6 { grid-column: span 6; }
  .lg-col-7 { grid-column: span 7; }
  .lg-col-8 { grid-column: span 8; }
  .lg-col-9 { grid-column: span 9; }
  .lg-col-10 { grid-column: span 10; }
  .lg-col-11 { grid-column: span 11; }
  .lg-col-12 { grid-column: span 12; }
}

/* -------------------------
 General
------------------------- */
main, header, footer {
	max-width: 60rem;
}

footer {
	font-size: .75em;
}

article, form {
	margin: 1.5em 0;	
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--accent-color);
}
h1 {
    font-size: 2.3em;
}
h2 {
    font-size: 1.75em;
}
h3 {
    font-size: 1.2em;
}
h4 {
    font-size: 1.1em;
}
h5 {
    font-size: 1em;
}
h6 {
    font-size: 1em;
}

hr {
    margin: 1.5em 0;
    height: 0.2em;
    background: var(--separator);
    border: 0;
}
strong {
    font-weight: bold;
}
code {
    font-size: 1.1em;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.site-nav a {
    padding: 0.5em 0;
    margin: 0 0.5em;
    color: var(--accent-color);
    text-decoration: none;
}
.site-nav a:hover, .site-nav a.current {
    text-decoration: none;
	border-bottom: solid 3px var(--accent-color);
}

.excerpt-view {
	margin-bottom: 0;	
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

.align-center {
	text-align:center;
}
.rounded {
    border-radius: var(--radius);
}

/* -------------------------
 Forms and generic buttons
------------------------- */
.search {
	margin: 1em 0 2em;
	text-align: center;
}

.form-control {
	width: 80%;
    display: inline-block;
    min-width: 7em;
}

.form-control::placeholder {
    color: var(--accent-color);
	opacity: 1; /* Firefox */
}

.form-control::-ms-input-placeholder { /* Edge 12 -18 */
    color: var(--accent-color);
}

/* -------------------------
 Blogs posts
------------------------- */
.post-item {
    position: relative;
    margin-bottom: 2em;
    padding: 1em;
    background: var(--entry-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.1s;
}

.entry h2, .entry .tag-list {
	margin: 0.2em 0;
}

.post-item .post-excerpt {
	margin: 0.5em 0;
}

.post-item .tag-list {
	font-size: 0.75em;
}

/* -------------------------
 Main content
------------------------- */
article h2 a {
    color: var(--accent-color);
    text-decoration: none;
}
article h2 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-large);
}
article i.icon {
	color: var(--accent-color);
}

/* Tables */
article table {
    border-spacing: 0;
    border-collapse: collapse;
}
article th:not([align]) {
    text-align: left;
}
article th,
article td {
    padding: 0.3em;
    padding-left: 2em;
}
article th:first-child,
article td:first-child {
    padding: 0.3em;
}
article th {
    border-bottom: 1px solid var(--separator);
}

/* Code/Pre/quotes */
article code,
article pre {
    font-family: var(--monospace-font);
    font-size: 90%;
}
article code {
    padding: 0.15em 0.4em;
    margin: 0;
    background-color: var(--code-accent);
    color: var(--code);
    border-radius: var(--radius);
}
article pre > code {
    padding: 0;
    margin: 0;
    white-space: pre;
    background: transparent;
    border: 0;
    font-size: inherit;
}
article pre {
    padding: 1em;
    overflow: auto;
    line-height: 1.45;
    background-color: var(--code-accent);
    color: var(--code);
    border-radius: 3px;
}
article blockquote {
    margin-left: 0;
    padding-left: 1em;
    font-weight: bold;
    border-left: 3px solid var(--blockquote-accent);
}

/* -------------------------
 YouTube embed
------------------------- */
.videowrap { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; }
.videowrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius-large); }

/* -------------------------
 Tagcloud
------------------------- */
.tag-cloud {
	margin: 1em;
	text-align: center;
}

.tag-cloud a {
	white-space: nowrap;
	text-decoration: none;
}

/* -------------------------
 Homepage
------------------------- */
img.home {
	display: block;
	margin-left: auto;
	margin-right: auto;
	border: var(--radius-large) solid var(--border);
	border-radius: 50%;
}

img:hover.home {
	filter: brightness(1.1);
}

/* -------------------------
 Linktree (Homepage/Donate)
------------------------- */
.linktree {
	margin: 0 auto;
	width: 50%;
	text-align: center;
}

.linktree h1 {
	text-align: center;
}

.linktree i {
	font-size: 24px;
}

.linktree a {
	color: var(--text-color);
	text-decoration: none;
}

.linktree a:hover {
	color: var(--text-color);
	text-decoration: none;
	filter: brightness(1.1);
}

.linktree i.icon {
	color: var(--text-color);
}

.linktree .button { 
	display: block; 
	margin: 0; 
	padding: 15px 32px; 
	vertical-align: baseline; 
	text-align: center; 
	background-color: #1B4F72; 
	cursor: pointer; 
	border: none; 
	color: #fff; 
	border-radius: var(--radius); 
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px; 
	text-decoration: none; 
	font-size: 20px; 
}
.linktree .button i { 
	text-decoration: none; 
	font-size: 20px; 
}}
.linktree .button::-moz-focus-inner { 
	padding: 0; 
	border: 0; 
}
.linktree .button:hover { 
	color: #fff; 
	text-decoration: none; 
	filter: brightness(1.1);
}

.linktree .button.arnan { background-color: #154360; }
.linktree .button.blog { background-color: #ffc600; color: #234664; }
.linktree .button.ajdg { background-color: #1fa4d1; }
.linktree .button.telegram { background-color: #0088cc; }
.linktree .button.mastodon { background-color: #8c8dff; }
.linktree .button.github { background-color: #9B59B6; }
.linktree .button.paypal { background-color: #169BD7; }

/* -------------------------
 Gallery item (To be used in a grid)
------------------------- */
.gallery-item {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.gallery-item img {
	margin: 5px 0;
	width: 100%;
	display: block;
	border-radius: var(--radius);
}

.gallery-item h5 {
	margin: 0;
	padding: 0 5px;
	font-size: 16px;
}

.gallery-item p {
	margin: 0;
	padding: 5px;
	line-height: 20px;
	font-size: 13px;
}

/* -------------------------
 Fact item (To be used in a grid)
------------------------- */
.fact-item {
	padding: 0 8px 0 8px;
	text-align: center;
}

.fact-item .icon {
	padding: 10px;
	font-size: 74px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	.linktree {
		width: 90%;
	}

    article h1,
    article h2 {
        font-size: 1.5em;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
	.linktree {
		width: 90%;
	}

    article h1,
    article h2 {
        font-size: 1.5em;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
	.linktree {
		width: 65%;
	}
}

@media print {
    .page {
        border: none !important;
    }
}

/* -------------------------
 Comments
------------------------- */

#comments {
	--comments-text: var(--text-dark);
	--comments-bg: var(--bg-dark);
	--comments-accent-bg: var(--accent-bg-dark);
	--comments-accent: var(--accent-dark);
	--comments-accent-hover: var(--accent-color);
	--comments-border: var(--border-dark);
	--comments-success: #A3BE8C;
	--comments-error: #AA8A80;
	--comments-standard-border: 1px solid var(--comments-border);
	
	margin-block: 1rem;
	padding: 1rem;
	font-family: inherit;
	color: var(--comments-text);
	background: var(--comments-bg);
	border: var(--comments-standard-border);
	border-radius: var(--radius);
}

#comments .comments-header {
	background: var(--entry-background);
	color: var(--accent-color);
}

#comments form {
	background: var(--comments-bg);
	border: none;
}
