/*
Theme Name: Kalagia C.DYI
Author:
Author URI:
Version: 1.0
*/

:root {
    /* --ndLightBlue: #8cd0e5; */
    --ndLightBlue: #3ac7f4;
    /* --ndDarkBlue: #3873b9; */
    --ndDarkBlue: #224096;
    --ndGrey: #7a7776;
    --ndSoftPink: #f7d7e9;
}

@import url('https://fonts.googleapis.com/css?family=Advent+Pro&display=swap&subset=greek');
@import url('https://fonts.googleapis.com/css?family=Didact+Gothic&display=swap&subset=greek');
body,
html {
    font-family: 'Didact Gothic', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8em;
    color: #666;
    background-color: #fff;
    height: 100%;
}

a {
    color: #000;
}

.clearfix {
    clear: both;
}


/******** Top Navigation Bar *******/

.navbar {
    /* position: -webkit-sticky; */
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-content: center;
    flex-direction: row;
    width: 100%;
    height: 100px;
    z-index: 8000;
    /* background-color: rgba(216, 105, 105, 0.5); */
    background-color: var(--ndLightBlue);
    margin-bottom: 55px;
    transition: 0.6s;
}

.navbar:hover {
    background-color: var(--ndDarkBlue);
    -webkit-transition: background 1s, color 1s;
    /* Safari */
    transition: background 1s, color 1s;
}

.navbar:hover #headLogo {
    background-image: url('https://kalagia.gr/wp-content/uploads/2019/06/MariaKalagia-ND-white.png');
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 100%;
    width: 30%;
    max-width: 500px;
    transition: 0.6s;
}

.nav-logo>a {
    display: inline-block;
    height: 90%;
    margin: 0 5%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#headLogo {
    background-image: url('https://kalagia.gr/wp-content/uploads/2019/06/MariaKalagia-ND.png');
    width: 100%;
    transition: background 1s;
}

.nav-container {
    display: flex;
    justify-content: right;
    /*Firefox Only*/
    justify-content: center;
    align-items: center;
    height: 100%;
}

.topnav {
    margin: auto 15px;
    list-style: none;
    overflow: hidden;
    font-size: 1.3em;
    font-size: 1.3em;
}

.topnav ul {
    margin: 0;
}

.topnav li {
    float: left;
    display: block;
    text-align: center;
}

.topnav li a {
    border-radius: 5px;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 5px 10px;
    margin: 0 2px;
    text-decoration: none;
    font-size: 1.1em;
    font-variant: small-caps;
}

.topnav a:hover,
.lnk:hover {
    background: #ddd;
    color: black;
    -webkit-transition: background 1s, color 1s;
    /* Safari */
    transition: background 1s, color 1s;
}

.topnav .icon {
    display: none;
}


/*************** Body/Main **************/

.body-container {
    min-height: 100%;
    margin-top: 150px;
    padding: 0 5%;
    z-index: 1000;
}

#main-container>div {
    margin-bottom: 100px;
}

.error-404 {
    margin: auto;
    margin-top: 25%;
    text-align: center;
    font-size: 2.5em;
}

.entry-title,
article h1 {
    font-size: 2.2em;
    text-align: center;
}

article {
    max-width: 1000px;
    margin: auto;
}

article img {
    text-align: center;
    margin: auto 0;
}

figure.wp-block-image {
    display: flex;
    justify-items: center;
    justify-content: center;
}

section.category {
    max-width: 1000px;
    margin: auto;
}

.category small {
    display: block;
}

.banner {
    display: flex;
    align-content: center;
    justify-content: space-evenly;
}

#topbanner.home {
    width: 100%;
    height: 60vh;
    background-color: var(--ndGrey);
}

#topbanner.home img {
    max-height: 100%;
    max-width: 90%;
}

#topbanner .bannertext {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#topbanner .bannertext img {
    max-height: 150px;
    margin: 2%;
}

.text {
    margin: auto;
    width: 60%;
}

.text h2 {
    text-align: center;
}

#blog {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#blog div {
    margin: 2%;
}

#blog a {
    color: #666;
}

/* .latest {
    width: 55%;
} */

span.excerpt::before{
    content: " ";
    display: block;
    clear: both;
}

.events {
    width: 30%;
}

.events li {
    list-style: none;
}

.gallery {
    position: relative;
}

.events .listing-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    justify-items: center;
}

#contact h2 {
    text-align: center;
}

.wpcf7-textarea[name="your-message"] {
    width: 100%;
}


/*************** Footer **************/

footer {
    /* position: sticky;
    bottom: 0; */
    width: 100%;
    height: 20%;
    background-color: var(--ndGrey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: center;
    color: #fff;
    margin-top: 100px;
}

footer a {
    color: #fff;
}

footer .fab,
footer .fas {
    font-size: 3em;
    margin: 1%;
}

.contact, .contact div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    align-content: center;
}

.contact div{
    margin: 0 15%;
}

.contact a{
    
    padding: 0 15%;
}


/**************** Responsiveness *****************/

@media screen and (max-width: 1024px) {
    .navbar {
        justify-content: center;
    }
    .nav-logo {
        width: 100%;
    }
    #topbanner .row {
        margin: 1%;
        display: flex;
        flex-direction: row;
    }

    #topbanner .row img {
        margin: 1%;
    }
}

@media screen and (orientation: portrait) {
    #topbanner.home {
        width: auto;
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;
        min-width: 225px;
    }

    #topbanner .row {
        display: block;
    }

    #topbanner.home {
        height: auto;
    }

    #topbanner.home img {
        margin: 1%;
    }
    #topbanner .bannertext {
        height: 40%;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {      /*Chrome Specific*/
    #topbanner{
        padding: 2% 0;
    }
}

/* Internal Link Offset*/
:target {
    padding-top: 79px;
    margin-top: -100px;
    /* display: inline-block;*/
}