/*!
Theme Name: viralboard
Theme URI:
Author: Ichwan Chandra
Author URI: https://www.isuchan.com
Description: Customized theme for my personal wordpress blog based on underscores
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Requires PHP: 7.0
Text Domain: viralboard
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Tested up to: 5.0

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

viralboard is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Homepage Masonry Layout
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: #333333;
	font-family: 'Roboto', 'sans-serif';
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-family: 'Raleway', 'sans-serif';
}

p {
	margin-bottom: 1.5em;
}

dfn, cite, em, i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #f0f0f0;
	/* Fallback for when there is no custom background color defined. */
}

.container {
	max-width: 100%;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin: 2.5em 0;
}

.site-info {
	text-align: center;
}

h1.site-title, p.site-title {
	padding: 0;
	line-height: 1em;
	font-size: 1.2rem;
	transition: 0.4s;
}

.navbar-light .navbar-nav .nav-link {
	color: rgba(0,0,0,.9);
}

.nav-link.active {
	font-weight: bold;
}

p.site-title a,
h1.site-title a{
	margin: 0;
	color: #FFF;
}

p.site-title a:hover,
h1.site-title a:hover{
	text-decoration: none;
	color: #FFF;
}

.site-description {
	font-size: .6rem;
	margin: .5em 0 0;
	transition: 0.4s;
	color: #FFF;
}

ul, ol {
	margin: 0 0 .5em .5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: .5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
	width: 100%;
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

span.comments-link, span.edit-link {
	margin: 0px .5em;
}

div.edit-link {
	margin: 0;
}

.site-header {
	position: fixed;
    top: 0;
    right: 0;
    left: 0;
	z-index: 9999;
	background: #202026;
	transition: 0.4s;
	padding: 8px 0;
	box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
}

.site-header.navbar-scrolled {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	padding: 0;      
}

.site-header.navbar-scrolled .site-header-wrapper .navbar h1.site-title {
	font-size: 1rem;     
}

.site-header.navbar-scrolled .site-header-wrapper .navbar p.site-description {
	font-size: .6rem;     
}

.site-header-wrapper {
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
	position: relative;
	padding: 0px 1.5rem;	
}

.navbar {
	padding: 0px 15px;
}

.navbar-light .navbar-nav .nav-link {
	color: #FFF;
}

.navbar-light .navbar-nav .nav-link:focus, 
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .active>.nav-link, 
.navbar-light .navbar-nav .nav-link.active, 
.navbar-light .navbar-nav .nav-link.show, 
.navbar-light .navbar-nav .show>.nav-link {
	color: #FF7F41;
	font-weight: bold;
}

.site-footer {
	padding: 1em 0px;
	margin: 0;
	background: #202026;
	color: #fff;
}

.site-footer p {
	margin: 0px;
	font-size: .8em;
}

.has-drop-cap:not(:focus):first-letter {
	font-size: 10em;
	font-weight: bolder;
	margin: .05em 0.025em 0 -8px !important;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: royalblue;
}

a:visited {
	color: purple;
}

a:hover, a:focus, a:active {
	color: midnightblue;
}

a:focus {
	outline: none;
}

a:hover, a:active {
	outline: 0;
}

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous,
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next  {
	display: none;
}

.open > .dropdown-menu {
	-webkit-transform: scale(1,1);
	transform: scale(1,1);
	opacity: 1;
}

.dropdown-menu{
	margin-top:0;
	opacity: .5;
	-webkit-transform-origin: top;
	transform-origin: top;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	-webkit-transform: scale(1,0);
	-transition: all 0.3s linear;
}

.dropwdown-toggle::after{
	vertical-align: .150em;
}

.top, .top:link{
	color: #333;
	position: fixed;
	z-index: 999;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	text-transform: uppercase;
	opacity: .9;
	border: none;
}

.top:hover{
	opacity: 1;
	text-decoration: none;
	color: #fff;
	background: #333;

}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
	font-size: .9rem;
}

.widget-title {
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 1.2em;
	text-transform: uppercase;
	padding-left: .5rem;
    border-left: 3px solid #FF7F41;
}

.widget_archive,
.widget_categories {
	font-size: 1rem;
}

.widget ul{
	padding: 0;
	margin: 0;
}

.widget ul li {
	list-style: none;
	margin-bottom: .8rem;
}

.widget ul li ul {
	padding: 0px 12px;
	margin: 0;
}

.widget ul li ul li:first-child {
	margin-top: 12px;
}

.widget ul li a {
	font-size: .9rem;
	color: #545454;
}

.widget ul li a:visited,
.widget ul li a:hover {
	color: inherit;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.page-id-47 .entry-title {
	display: none;
	visibility: hidden;
}

.sticky {
	display: block;
}

.hentry {
	margin: 1.5em 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

h1.entry-title {
	font-weight: bold;
	font-size: 1.8rem;
	margin-top: 1rem;
}

h1.entry-title a,
h1.entry-title a:visited,
.entry-title a,
.entry-title a:visited{
	color: #3b3b3b;
	text-decoration: none;
}

h1.entry-title a:hover,
.entry-title a:hover {
	color: #FF7F41;
}

.posted-on,
.byline {	
	font-style: italic;
	font-size: .8rem;
}

.loadmore-button{
	border-radius: 2px;
	display: block;
	text-align: center;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing:1px;
	cursor:pointer;
	text-transform: uppercase;
	padding: 1em 0;
	margin: 2em 0px;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;  
}
.loadmore-button:hover{
	background-color: #767676;
	color: #fff;
}

.entry-content h2 {
	font-size: 1.5rem;
	font-weight: bold;
}

.entry-content h3 {
	font-size: 1.25rem;
	font-weight: bold;
}

.entry-content ul, .entry-content ol {
	margin: 0 0 1.5em .5em;
}

#content{
	margin-top: 16%;
	margin-bottom: 2%;
}

p.blog-tags {
	margin:0;
}

p.blog-tags a.tag-cloud-link {
	background-color: #FF7F41;
	border: none;
	padding: 8px 16px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	margin-right: 12px;
	margin-left: 0px;
	margin-bottom: .8rem;
	border-radius: 100px;
	color: #FFF;
	font-size: .8rem !important;
}

div.frontpage-main{
	display: flex;
	align-items: center;
	height: 75vh;
}

div.contact-page {
	height: 75vh;
}

div.homepage-photo img{
	border: 4px solid #FF7F41;
}

section.error-404 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 75vh;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
## Homepage Masonry Layout - Posts Page
--------------------------------------------------------------*/
.card {
	background: #F1F0EB;
}

/* fluid 3 columns */
.grid-sizer,
.grid-item {
	width: 100%;
	padding: 0;
	margin-bottom: 5em;
	position: relative;
	left: 0px;
}

.grid-item header.entry-header {
	padding: 0px;
}

.grid-item div.entry-content {
	padding: 1rem 0px;
}

.grid-item header.entry-header h2.entry-title {
	padding: 1rem 0px 0px 0px;
	font-size: 1.25rem;
	font-weight: bold;
}

.grid-item header.entry-header div.entry-meta {
	padding: 0px;
}

.grid-item .hentry {
	margin: 0;
}

.grid-item footer.entry-footer {
	padding: 1rem 0px 0px 0px;
}

.grid-item footer.entry-footer .cat-links {
	font-size: .8rem;
}

.grid-item footer.entry-footer .cat-links a,
.grid-item footer.entry-footer .cat-links a:hover,
.grid-item footer.entry-footer .cat-links a:visited {
	color: #007bff;
	text-decoration: none;
}

/* 2 columns wide */
.grid-item--width2 { width: 40%; }

.ajax-load-more-wrap ul.alm-listing li.grid-item{
	border: 1px solid #efefef;
	width: 47%;
	margin: 0 1.5% 3%;
	float: left;
	display: inline;
}

/*--------------------------------------------------------------
## Media Queries for Responsiveness
--------------------------------------------------------------*/
/* ----------- Small devices (landscape phones, 576px and up) ----------- */
@media only screen and (min-device-width: 576px) {
	.ajax-load-more-wrap ul.alm-listing li.grid-item{
		width: 100%;
		margin: 0 0 20px;  
	}
}

/* ----------- Medium devices (tablets, 768px and up) ----------- */
@media only screen and (min-width: 768px){
	#content {
		margin-top: 8%;
		margin-bottom: 2%;
	}
}

/* ----------- Extra large devices (large desktops, 1200px and up) ----------- */
@media only screen and (min-width: 1200px) {	

	.container {
		max-width: 1280px;
		width: 1280px;
		margin-left: auto;
		margin-right: auto;
	}
	
	.grid-sizer,
	.grid-item {
		width: 32.25%;
		padding: 0;
		position: absolute;
		margin-bottom: 1em;
	}

	h1.site-title, p.site-title {
		font-size: 1.8rem;
		margin: .25em 0px;
	}

	.site-header.navbar-scrolled .site-header-wrapper .navbar h1.site-title {
		font-size: 1.25rem;     
	}
	
	.site-header.navbar-scrolled .site-header-wrapper .navbar p.site-description {
		font-size: .5em;     
	}

	.site-description {
		font-size: .65em;
	}	
}