/*
Theme Name: Understrap
Theme URI: https://understrap.com
Author: Howard Development &amp; Consulting
Author URI: https://howarddc.com
GitHub Theme URI: https://github.com/understrap/understrap
Description: The renowned WordPress starter theme framework that combined Underscores and Bootstrap. Trusted by more than 100,000 developers for building handcrafted, custom WordPress sites.
Version: 1.2.4
Requires at least: 5.0
Tested up to: 6.1
Requires PHP: 5.2
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: understrap
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, block-styles, wide-blocks, editor-style, threaded-comments, accessibility-ready

Understrap WordPress Theme, (C) 2021 Howard Development & Consulting, LLC
Understrap is distributed under the terms of the GNU GPL.

Resource Licenses:
Understrap is based on Underscores https://underscores.me/, (C) Automattic, Inc.
Font Awesome: https://fontawesome.com/v4.7/license/ (Font: SIL OFL 1.1, (S)CSS: MIT)
Bootstrap: https://getbootstrap.com | https://github.com/twbs/bootstrap/blob/master/LICENSE (MIT)
WP Bootstrap Navwalker by Edward McIntyre & William Patton: https://github.com/twittem/wp-bootstrap-navwalker (GNU GPLv3)
*/

/*
Do not modify the parent Understrap theme. Instead, download a copy of the Understrap Child starter theme and do all your development within the child theme.
Full developer documentation: https://docs.understrap.com
*/

@import url('https://fonts.googleapis.com/css2?family=Abel&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Staatliches&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&family=Staatliches&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&family=Readex+Pro:wght@160..700&family=Staatliches&display=swap');

.navbar {
    display: flex;
    justify-content: flex-end; /* Aligns items to the right side */
    margin: 0px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    color: #000;
    background: #182147 !important;
    border: 0px;
	/*box-shadow: 0 2px 4px rgba(0,0,0,0.25); */

}

.navbar-links {
    display: flex;
    justify-content: flex-end;
    width: 100%; /* Takes the remaining space */

}

.navbar-nav {
    display: flex;
    justify-content: flex-end;
    width: 100%; /* Takes the remaining space */
	font-size:18px;
	font-weight: 600;

}

.navbar-nav .nav-link, .navbar-nav .nav-link:visited {
    color: #fff !important; /* Ensures that the text color is white */
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: #145395 !important; /* Light grey color on hover for better UI */
}


.navbar-brand, .site-title {
    font-family: 'Abel', serif;
    font-weight: 700 !important;
	font-size:22px!important;
	color:#fff;
}

.site-title a:hover{
    font-family: 'Abel', serif;
    font-weight: 700;
	
}

.navbar .navbar-brand,
.navbar .navbar-nav,
.navbar .nav-link {
    position: relative;
    z-index: 1;
}

.navbar-dark .navbar-brand a, .navbar-dark .navbar-brand a:hover {
	color:#fff !important;
	text-decoration: none;
}

.navbar-brand:hover, .navbar-brand:focus, .site-title:hover, .site-title:focus {
    color: #145395 !important; /* Keeps the text color white even on hover/focus */
}

.navbar-toggler {	
	background-color: #145395 !important;
}

.navbar-animation {
    position: absolute;
    top: -10;
    left: -50px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 15s infinite ease-in-out;
}

.blob1 {
    width: 250px;
    height: 250px;
    background: #ffffff;
    top: -30px;
    left: 22%;
    animation-delay: 0s;
}

.blob2 {
    width: 150px;
    height: 150px;
    background: #145395;
    top: -50px;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}



/* Custom styles for displaying posts as responsive squares */
.post-square {
    margin-bottom: 30px; /* space between rows */
    position: relative;
    width: 100%;
    padding-top: 100%; /* Equal width and height */
    overflow: hidden;
}


.post-square::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the image and overlay text */
    pointer-events: none;
}



.post-square img {

}

.post-square:hover img {
    filter: none;
}


#gaming .post-image img {
    filter: sepia(100%) hue-rotate(-45deg) brightness(0.9) contrast(0.85) saturate(150%);
}

#gaming .post-image:hover img {
    filter: none;
}

#threedee .post-image img {
        filter: sepia(100%) hue-rotate(-180deg) brightness(1) contrast(0.85) saturate(150%);
}

#threedee .post-image:hover img {
    filter: none;
}

#illustration .post-image img {
   filter: sepia(90%) hue-rotate(-45deg) brightness(0.8) contrast(0.80) saturate(100%);
}

#illustration .post-image:hover img {
    filter: none;
}


.post-square-content {
    padding: 10px; /* Adjust padding as necessary */
}

/* Custom styles for displaying posts as responsive squares */
.post-square {
    margin-bottom: 0px;
    position: relative;
    width: 100%;
    padding-top: 100%; /* Maintains aspect ratio as a square */
    overflow: hidden;
	float: left;
}

.post-square .post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.post-square .post-image .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distorting */
}


.post-square .post-image .overlay {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 15%;
    background: rgba(0, 0, 0, 0.75); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}


.post-square .post-image .text {
    color: white;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.post-square .post-image:hover .overlay {
    opacity: 1;
}


.post-square:hover::before {
    opacity: 0;
    transition: opacity 0.5s ease;
}
 
.category-title {
    font-size: 32px; /* Example size, adjust as needed */
    font-weight: normal;
    color: #333; /* Example color, adjust as needed */
	/*margin-bottom:24px; */
	padding-top:24px;

	
}

@media (max-width: 768px) {
    .category-title {
        font-size: 24px; /* Smaller font size on smaller screens */
    }
	.entry-title {
        font-size: 24px; /* Smaller font size on mobile devices */
        padding: 10px 20px; /* Add padding to maintain layout integrity */
    }
		

}

@media (min-width: 992px) {
    .col-md-4  {
        padding: 0px; /* spacing between posts */
    }
	

}

[class*='col-'] {
    padding: 0 !important; /* Important to override Bootstrap's default padding */
}

/* Remove margin from rows */
.row {
    margin: 0 !important; /* Important to override Bootstrap's default negative margin */
}


.content {
    flex: 1;
}

.site-footer {
    background-color: #000; /* Black background */
    color: #fff; /* White text */

}

#wrapper-footer-full, #wrapper-static-hero { /* Pieni slaissi about sivun alaosassa */
	
  background-color: #f4f4f4 !important;
  	    background-image: url('https://www.transparenttextures.com/patterns/sandpaper.png')!important; /* or your own image */
    background-repeat: repeat !important;
    background-size: auto !important; /* Or use 'cover' if it’s a large single texture */

  
  
}

#wrapper-footer {
    background-color: #000; /* Black background for the footer wrapper */
	text-align: center;
		padding-top:8px;
		padding-bottom:8px;
}

.site-footer, .site-footer span {
    color: #fff; /* White text for the footer and the span inside it */
}

h1  {
	font-family: "Staatliches", sans-serif;
    font-weight: 400;
    font-style: normal;
	line-height: 1.2;
    letter-spacing: 0px;
	color: #363636;
}

h2 {
	font-size: 36px;
	font-family: "Staatliches", sans-serif;
    font-weight: 400;
    font-style: normal;
	line-height: 1.2;
    letter-spacing: 0px;
	color: #363636;
	
	}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {color: #408ce3;}

a:hover {color: #000;}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Minimum height of the viewport */
}

#wrapper-footer {
    margin-top: auto; /* Pushes the footer to the bottom */
	    background-color: #000 !important;
    background-image: none !important;
}

#single-wrapper .entry-content {
    padding: 15px;  /* Adds padding inside the container */
    box-sizing: border-box;  /* Ensures padding is included in the width calculation */
    overflow: hidden;  /* Prevents any content from overflowing horizontally */
	width: 100%;
}



#single-wrapper .site-main img {
    max-width: 100%;  /* Ensures images do not exceed their container width */
    height: auto;  /* Maintains aspect ratio */
}


.entry-header {
    text-align: center;
}

.entry-title {
    margin: 0 auto; /* Centers the title if it has a defined width */
	margin-bottom:24px;
    width: 100%; /* Ensures the title takes full width of its container */
    display: block; /* Ensures the title is treated as a block element */
}

.container .category-title {
    text-align: left ; /* Centers the text within the container */
   /* overflow: hidden; /* Prevents overflow issues from the full-width underline */
}

h1.category-title {
    position: relative; /* Needed for absolute positioning of the pseudo-element */
    display: inline-block; /* Keeps the element in-line but allows block behaviors like width */
    padding-left: 0%; /* Optional: Adjust based on design preference */
    margin: 0 auto; /* Centers the inline-block horizontally */
	font-family: "Staatliches", sans-serif;
    font-weight: 400;
    font-style: normal;
	color: #363636;
	
}

h1.category-title::before {
    content: '';
    position: absolute;
    padding-left: 50%; /* Start from the center of the h1 element */
    bottom: -5px; /* Position at the bottom of the h1 element */
    height: 3px; /* Height of the underline */
	background: rgb(50,50,50);
	background: linear-gradient(90deg, #363636 0%, rgba(255,255,255,0) 70%); 
    width: 100vw; /* Underline stretches across the viewport */
  /*  transform: translateX(-90vw);  /* Center the line relative to the viewport */
    z-index: -1; /* Ensures the line does not cover any text */
}

.post-navigation {
    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;
    padding: 10px;
    font-weight: bold;
	
}

.post-navigation a {
    text-decoration: none !important; /* Removes the underline from the links */
    font-size: 16px !important; /* Increases the font size, making the arrows larger */
	color: #808080;
}

.post-navigation a:hover {
	color: #000;
}

.post-navigation .nav-previous, .post-navigation .nav-next {
    display: inline-block; /* Ensures proper alignment and spacing */
    padding: 10px; /* Adds some padding around the links for easier clicking */
}

.hero-widget-area {
	    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
	    margin-top: 20px;
    padding: 20px;
	padding-left: 40px;
	padding-right: 40px;
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 10px; /* Adds some spacing below the hero area */
}


.about-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    padding: 20px;
	padding-left: 40px;
	padding-right: 40px;
    margin-top: 20px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .about-wrapper {
        padding: 20px;
			padding-left: 40px;
	padding-right: 40px;
        margin: 20px;
    }
}

.wrapper {
	    background-image: url('https://www.transparenttextures.com/patterns/sandpaper.png')!important; /* or your own image */
    background-repeat: repeat !important;
    background-size: auto !important; /* Or use 'cover' if it’s a large single texture */

	
}
