/*
    Theme Color Variables (Overwritten if set in Wordpress admin settings)
*/
:root {
    --dark-primary: #06080b;
    --dark-secondary: #1c222a;
    --dark-tertiary: #0d1014;
    --white-primary: #e5e5e5;
    --blue-primary: #3182e7;
    --blue-secondary: #2554ae;
    --blue-tertiary: #53adf4;

    --bg-gradient: linear-gradient( var(--dark-secondary), var(--dark-primary) );
}

/*
    ==================================
    Theme
    ==================================
*/

html {
    scroll-behavior: smooth;
}

body {
    color: #e5e5e5; /* Fallback */
    color: var(--white-primary);
    background-color: #12171d; /* Fallback */
    background-image: var(--bg-gradient);
    background-attachment: fixed; /* Stretch Gradient over the whole height*/
}

hr {
    height: 2px;
    background: #2554ae; /* Fallback */
    background: linear-gradient(0.25turn, transparent, var(--blue-secondary), transparent);
}

h2 {
    color: #53adf4; /* Fallback */
    color: var(--blue-tertiary);
    margin-bottom: 0.75em;
}

h4 {
    color: #53adf4; /* Fallback */
    color: var(--blue-tertiary);
    margin-bottom: 0.5em;
}

a {
    color: #3182e7; /* Fallback */
    color: var(--blue-primary);
}

a:hover {
    color: #53adf4; /* Fallback */
    color: var(--blue-tertiary);
    text-decoration: none;
}

.page-description, .tiles-container {
    margin-top: 1.5rem;
}

.page-description div {
    padding-left: 2.5em;
    padding-right: 2.5em;
}

.text-emphasize {
    color: #53adf4; /* Fallback */
    color: var(--blue-tertiary);
}

#btnToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 6em; /* Place the button at the bottom of the page */
    right: 2em; /* Place the button from the right */
    z-index: 99; /* Make sure it does not overlap */
}

/* Page-transition ( Fade-in and fade-out animation ) */
#fader {
    animation-duration: 250ms;
    animation-timing-function: ease-in;
}

@keyframes fade-out {
    from { opacity: 0 }
      to { opacity: 1 }
}

@keyframes fade-in {
    from { opacity: 1 }
      to { opacity: 0 }
}

#fader.fade-out {
    opacity: 1;
    animation-name: fade-out;
}

#fader.fade-in {
    opacity: 0;
    animation-name: fade-in;
}

/* Scrollbar */

html { 
    scrollbar-color: var(--blue-secondary) var(--dark-primary); /* Firefox Only */
}

::-webkit-scrollbar {
    -webkit-appearance: none;
}
::-webkit-scrollbar {
    width: 7px;
}
 
::-webkit-scrollbar-track {
    opacity: 0.1;
    border: 1px solid #2554ae; /* Fallback */
    border: 1px solid var(--blue-secondary);
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb {
    background: #2554ae; /* Fallback */
    background: var(--blue-secondary);
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb:hover {
    background: #3182e7; /* Fallback */
    background: var(--blue-primary); 
}

/*
    ==================================
    Navigation
    ==================================
*/

.navbar {
    white-space: nowrap;
}

.navbar-brand {
    color: #53adf4 !important; /* Fallback */
    color: var(--blue-tertiary) !important;
}

.navbar .nav-link {
    margin-right: 0.5em;
}

.navbar .nav-link:not(.active) {
    color: #3182e7 !important; /* Fallback */
    color: var(--blue-primary) !important;
    transition: transform .5s, color .5s;
}

.navbar .nav-link:not(.active):hover {
    color: #53adf4 !important; /* Fallback */
    color: var(--blue-tertiary) !important;
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
}

.navbar .nav-link.active {
    color: #e5e5e5 !important; /* Fallback */
    color: var(--white-primary) !important;
    font-weight: bold;
}

/* Footer */
.footer-bg {
    background: black;
    opacity: 0.5;
    height: 4.5rem;
    width: 100%;
}

footer {
    text-shadow: 1px 1px 0 #2554ae; /* Fallback */
    text-shadow: 1px 1px 0 var(--blue-secondary);
}

footer p {
    text-shadow: 1px 1px 0 black;
}

.nav-link .menu-pop {
    font-size: 1.15rem;
    border: 1px solid;
    border-radius: 10px;
    padding: 0.5em;
}

#footer-menu li {
    margin-bottom: 0.5em;
}

.navbar .copyright {
    margin-bottom: -1em;
}

/* Search form */
.search-form input {
    color: #e5e5e5; /* Fallback */
    color: var(--white-primary);
    background: #0d1014; /* Fallback */
    background: var(--dark-tertiary);
    border: none;
    border-radius: 10px;
    border-right: 2px solid #2554ae; /* Fallback */
    border-right: 2px solid var(--blue-secondary);
    border-left: 2px solid #2554ae; /* Fallback */
    border-left: 2px solid var(--blue-secondary);
}

.search-form input:focus {
    background: #06080b; /* Fallback */
    background: var(--dark-primary);
}

/* Social media links */
.social-media-links a {
    /* margin-left: min(1vw, 1em); */
    margin-left: 1vw;
    font-size: 1.2rem;
}

/* Compensate for fixed footer (prevent navbar overlapping content) */
body {
    padding-bottom: 60px;
}
/* @media (max-width: 992px) {
    body {
      padding-bottom: 0px;
    }
} */

/* Navbar responsiveness */
@media (max-width: 576px) {
    .search-form input { width: 100%; }
	.copyright { display: none; }
}  
@media (min-width: 576px) {
    .search-form input { width: 100%; }
	.copyright { display: inline; }
}  
@media (min-width: 768px) {
    .search-form input { width: 12vw; }
	.copyright { display: inline; }
}  
@media (min-width: 992px) {
    .search-form input { width: 100%; }
	.copyright { display: inline; }
}

/*
    =============================
    Tiles
    =============================
*/

.tiles-col {
    margin-bottom: 1.5rem;
}

.tiles-col .clickable img {
    width: 100%;
    background-color: #1c222a; /* Fallback */
    background-color: var(--dark-secondary);
    object-fit: cover;
    border-radius: 20px;
    transition: transform .2s, filter .2s; /* For zoom function (see .clickable img:hover) */
}

/* Modulate tiles on mouse actions */
.tiles-col .clickable img:hover {
    filter: brightness(125%); /* Lighten */

    /* Zoom */
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1); 
}
  
.tiles-col .clickable img:active {
    filter: brightness(150%); /* Brighten */
}

/* Tiles responsiveness */
.tiles-col .clickable figure {
    height: 256px;
}
@media (max-width: 576px) {
    .tiles-col .clickable figure { height: 256px; }
    .tiles-container { padding: 1em; }
}  
@media (min-width: 576px) {
    .tiles-col .clickable figure { height: 256px; }
    .tiles-container { padding: 0; }
}  
@media (min-width: 768px) {
    .tiles-col .clickable figure { height: 192px; }
    .tiles-container { padding: 0; }
}  
@media (min-width: 992px) {
    .tiles-col .clickable figure { height: 256px; }
    .tiles-container { padding: 0; }
}

/*
    =============================
    Modal
    =============================
*/

.modal-dialog {
    max-width: 100%;
}

.modal-dialog.fullsize {
    height: 100vh;
    margin: 0;
}
 
.modal-content {
	background: linear-gradient(-0.25turn, black, transparent 70% );
    padding-top: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
}

.modal-content.fullsize {
    padding: 0;
}
  
.modal-backdrop.fade {
	opacity: 0.9;
	filter: alpha(opacity=0.9); /* Darkness behind the modal */
}

.imagecol img {
    max-height: 84vh; /* Rescale image if too big for display */    
    max-width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imagecol.fullsize img {
    max-height: 98vh; /* Rescale image if too big for display */    
    max-width: 100%;
}

/* Responsive close-button */
@media (max-width: 576px) {
    .close-button { position: fixed; top: 2em; right: 2em; }
}  
@media (min-width: 576px) {
    .close-button { position: fixed; top: 2em; right: 2em; }
}  
@media (min-width: 768px) {
    .close-button { position: fixed; top: 2em; right: 2em; }
}  
@media (min-width: 992px) {
    .close-button { position: relative; top: auto; right: auto; }
}

/*
    =============================
    Single.php
    =============================
*/

.container-fluid {
    max-width: 90%;
}

.container-fluid .imagecol {
    width: 60%;
}

.container-fluid .textcol {
    width: 40%;
}

.container-fluid .imagecol img {
    max-height: 79vh;
}

.container-fluid .slideshow-container .next {
    border-radius: 3px 0 0 3px;
}

.btn-fixed {
    position: fixed;
    top: 2em;
    right: 2em;
}

/*
    =============================
    Social Media Buttons
    =============================
*/

.socialbuttons {
    opacity: 0.6;
}

.socialbuttons:hover {
    opacity: 1;
}

.socialbuttons a {
    margin-left: 0.5em;
    font-size: 1.5rem;
    color: #2554ae; /* Fallback */
    color: var(--blue-secondary);
    opacity: 0.8;
}

.socialbuttons a:hover {
    cursor: pointer;
    color: #53adf4; /* Fallback */
    color: var(--blue-tertiary);
    opacity: 1;
}