/* Concrete5 things */
div.ccm-panel-content ul.nav li {
    width: 100%;
}

@font-face {
    font-family: Beacon;
    src: url(../fonts/beacon.ttf);
}

@font-face {
    font-family: Amiko-bold;
    src: url(../fonts/Amiko-Bold.ttf);
}

@font-face {
    font-family: Enriqueta;
    src: url(../fonts/Enriqueta-Regular.otf);
}

body {
    font-family: 'Enriqueta';
    font-size: 20px;
}

.esittelyWrapper {
    border: 10px solid #fec905;
}

.esittelyWrapper p:last-child {
    margin-bottom: 0px;
}

h1, h2, h3 {
    font-family: 'Beacon';
    color: #fec905;
}

h1 {
    font-size: 5em;
}

h2 {
    font-size: 4.7em;
}

h3 {
    font-size: 3.5em;
    color: #000;
}

h4, h5 {
    font-family: 'Amiko-bold';
    text-transform: uppercase;
}

h5 {
    font-size: 1em;
}

@media(max-width: 560px) {
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 3.7em;
    }

    h3 {
        font-size: 2.8em;
    }
}

section a, footer a {
    color: #fec905;
    text-transform: uppercase;
    font-size: 1.2em;
    font-family: 'Amiko-bold';
    word-break: break-word;
}

section a:hover, footer a:hover {
    color: rgba(254, 201, 5, 0.8);
}

.fas, .fab {
    color: #fec905;
}

@media(min-width: 1600px) {
    .container.wider {
        max-width: 1500px;
    }
}

.bgImg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-bg {
    height: 50vh;
}

.btn {
    font-family: 'Amiko-bold';
}

.yellow-bg {
    background-color: #fec905;
}

.yellow-bg a {
    color: #f5f5f5;
    text-decoration: underline;
}

.yellow-bg a:hover, .yellow-bg a:focus, .yellow-bg a:active {
    color: #FFF;
}

/* Header */
nav.navbar {
    background-color: #FFF;
    border-bottom: solid 3px #bdbdbd;
    height: 80px;
    padding: 0rem 1rem;
}

nav .navbar-brand img {
    height: 46px;
    width: auto;
}

nav.navbar .navbar-toggler {
    border-radius: 0;
}

#topNav .navbar-nav .nav-item {
    text-transform: uppercase;
    font-family: 'Amiko-bold';
}

#topNav .navbar-nav .nav-item .nav-link {
    color: #000;
    font-size: 1em;
    font-weight: 800;
    padding: 26px 12px;
    display: initial;
}

#topNav .navbar-nav .nav-item .nav-link.active {
    color: #fec905;
}

#topNav .navbar-nav .nav-item .nav-link:hover {
    color: #fec905;
}

@media(max-width: 1290px) {
    #topNav .navbar-nav .nav-item .nav-link {
        font-size: 0.8em;
    }
}

@media(max-width: 1090px) {
    #topNav .navbar-nav .nav-item .nav-link {
        font-size: 0.7em;
    }
}

@media(max-width: 1022px) {
    #topNav .navbar-nav .nav-item .nav-link {
        font-size: 0.6em;
    }
}

@media(max-width: 991px) {
    nav.navbar {
        height: 100%;
    }

    #topNav .navbar-nav .nav-item .nav-link {
        padding: 13px 12px;
        font-size: 1.2em;
        display: block;
    }
}

@media(max-width: 560px) {
    nav .navbar-brand {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    nav .navbar-brand img {
        height: 30px;
    }
}

.img-rounded, .img-rounded img {
    border-radius: 50%;
}


/* Frontpage */
#header-left, #header-right {
    padding-left: 0;
    padding-right: 0;
}

#header-right p {
    margin-bottom: 0;
}

.btn-block-wrap a, .btn-block-wrap button {
    width: 100%;
}

#header-left .btn-block-wrap a {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

#header-left .btn-block-wrap a::after {
    content: '\f105';
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    font-size: 1.3em;
    padding-left: 10px;
    vertical-align: middle;
}

@media(max-width: 576px) {
    #header-left h2 {
        font-size: 3.7em;
    }
}

#frontpageCarousel .carousel-item .bgImg {
    min-height: 600px;
    height: 50vh;
}

@media(max-width: 768px) {
    #frontpageCarousel .carousel-item .bgImg {
        min-height: 450px;
    }
}

@media(max-width: 560px) {
    #frontpageCarousel .carousel-item .bgImg {
        min-height: 350px;
        height: 50vh;
    }
}

#frontpageCarousel .carousel-control-prev, #frontpageCarousel .carousel-control-next {
    bottom: 50%;
    opacity: 1;
}

#frontpageCarousel .carousel-control-prev .carousel-prev, #frontpageCarousel .carousel-control-next .carousel-next {
    margin-top: auto;
    color: #FFF;
}

#frontpageCarousel .carousel-control-prev:hover .carousel-prev, #frontpageCarousel .carousel-control-next:hover .carousel-next {
    color: #fec905;
}

#frontpageCarousel .carousel-item h4 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.3em;
    color: #FFF;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
}

#frontpageCarousel .carousel-item p {
    font-weight: 700;
    color: #FFF;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
}

.black-link, .btn-primary.black-link {
    text-transform: uppercase;
    font-size: 1em;
    background-color: #000;
    border-color: #000;
    border-radius: 0;
    color: #FFF;
}

.black-link:hover, .black-link:focus, .black-link:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
}

.black-link:focus, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,.5);
}

#header-left .black-link {
    font-size: 1em;
    color: #FFF;
}

.black-link i {
    font-size: 1.1em;
    color: #FFF;
}

.yellow-link, .btn-primary.yellow-link {
    background-color: #fec905;
    border-color: #fec905;
    color: #000;
    font-size: 1.2em;
    border-radius: 0;
    text-transform: uppercase;
}

.yellow-link:hover, .yellow-link:focus, .btn.btn-primary.yellow-link:active {
    background-color: rgba(254, 201, 5, 0.8);
    border-color: rgba(254, 201, 5, 0.8);
    color: #000;
}

.yellow-link i.fa-angle-right {
    color: #000;
}

.grey-link, .btn-primary.grey-link {
    text-transform: uppercase;
    font-size: 1em;
    background-color: #CCCC;
    border-color: #CCCC;
    border-radius: 0;
    color: #FFF;
    padding: 5px;
}

.btn-primary.yellow-link.btn-sm,
.btn-primary.black-link.btn-sm {
    font-size: 0.875rem;
}

.grey-link:hover, .grey-link:focus, .btn.btn-primary.grey-link:active {
    background-color: rgba(204, 204, 204, 0.8);
    border-color: rgba(204, 204, 204, 0.8);
}

.black-link.lue-lisaa {
    padding-left: 100px;
    padding-right: 100px;
}

#asiakastarinat .btn {
    width: 100%;
    text-transform: uppercase;
    font-size: 1em;
    background-color: #000;
    border-color: #000;
    border-radius: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

#asiakastarinat .btn::after {
    content: '\f105';
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    font-size: 1.3em;
    padding-left: 10px;
    vertical-align: middle;
}

.black-link-wrap .btn {
    width: 100%;
    text-transform: uppercase;
    font-size: 1em;
    background-color: #000;
    border-color: #000;
    border-radius: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media(max-width: 768px) {
    #header-right p {
        margin-bottom: 1rem;
    }
    
    .btn-primary.yellow-link.btn-sm,
    .btn-primary.black-link.btn-sm {
        font-size: 0.6rem;
        text-transform: none;
    }
}

@media(max-width: 560px) {
    .black-link.lue-lisaa {
        padding-left: 50px;
        padding-right: 50px;
    }   
}

@media(max-width: 450px) {
    .black-link.lue-lisaa {
        font-size: 1em;
        padding-left: 20px;
        padding-right: 20px;
    }   
}

.laatu-item img {
    width: 180px;
    height: auto;
    border-radius: 50%;
}

.laatu-item p  {
    font-family: 'Amiko-bold';
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 800;
}

#ajankohtaista h3 {
    font-size: 4em;
}

#ajankohtaista h4 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.1em;
}

#ajankohtaista p {
    font-size: 1em;
}

.syyt-numero {
    font-family: 'Beacon';
    font-size: 9em;
    color: #fec905;
}

@media(max-width: 991px) {
    .syyt-numero {
        font-size: 6em;
    }

    #hyvat-syyt h4 {
        font-size: 1em;
    }
}

/* Property listing */
.header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 45vh;
}

#info-section h2:first-of-type {
    font-size: 4em;
}

@media(max-width: 576px) {
    #info-section h2:first-of-type {
        font-size: 2.7em;
    }   
}

#info-section .black-link {
    font-size: 0.8em;
}

p a {
    font-family: 'Enriqueta';
    font-size: 1.1em;
    text-transform: initial;
}

#kohdelistaus h4 {
    font-size: 1.1em;
}

#kohdelistaus .kaupunki-otsikko h4 {
    font-size: 1.7em;
}

#kohdelistaus .kaupunki-otsikko {
    border-top: 2px solid;
    border-color: rgba(36, 36, 18, 0.3);
}

#kohdelistaus h5 {
    text-transform: initial;
    font-size: 0.8em;
    font-weight: 400;
    font-family: 'Enriqueta';
}

#kohdelistaus p {
    font-size: 0.7em;
}

#kohdelistaus .black-link {
    font-size: 0.8em;
}

.employee-img img {
    border-radius: 50%;
}

.kohde-img {
    width: 100%;
    height: 230px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media(max-width: 768px) {
    #yhteystiedot img.img-rounded {
        height: 300px;
        width: auto;
    }
}

@media(max-width: 576px) {
    #kohdelistaus h5 {
        font-size: 1.1em;
    }

    #kohdelistaus p {
        font-size: 0.8em;
    }
}


/* References */

.reference-section ul {
    list-style: none;
    padding-inline-start: 25px;
}

.reference-section ul li::before {
    content: '';
    display: inline-block;
    height: 18px;
    width: 29px;
    background-image: url("../img/taloykkoset_icon.png");
    background-repeat: no-repeat;
    background-size: 22px;
}

/* Kuvakollaasi */
.kooders-gallery {
	column-gap: 0;
}

.gallery-img-wrapper {
    margin: 0;
}

.gallery-img-wrapper img {
    padding: 0;
}

@media(max-width: 991px) {
	.kooders-gallery {
		column-count: 2;
	}	
}

.bold-text {
    font-family: 'Amiko-bold';
}

.smallText {
    font-size: 0.85em;
}

.quote {
    font-weight: 800;
}

.img-text {
    font-size: 0.8em;
    opacity: 0.8;
}

.phone-wrap a, .email-wrap a, .address-wrap a, .fb-wrap a, .ig-wrap a {
    font-size: 1em;
    text-transform: uppercase;
    font-family: 'Amiko-bold';
}

.phone-wrap a::before {
    content: "\f095";
    font-family: 'Font Awesome\ 5 Free';
    padding-right: 7px;
    font-weight: 900;
}

.email-wrap a::before {
    content: "\f0e0";
    font-family: 'Font Awesome\ 5 Free';
    padding-right: 7px;
    font-weight: 900;
}

.address-wrap a::before {
    content: "\f279";
    font-family: 'Font Awesome\ 5 Free';
    padding-right: 7px;
    font-weight: 900;
}

.fb-wrap a::before {
    content: "\f09a";
    font-family: 'Font Awesome\ 5 Brands';
    padding-right: 7px;
    font-weight: 900;
}

.ig-wrap a::before {
    content: "\f16d";
    font-family: 'Font Awesome\ 5 Brands';
    padding-right: 7px;
    font-weight: 900;
}


/* Contact */
.employee-wrap p:last-child {
    margin-bottom: 0;
}

@media(max-width: 768px) {
    #employees .col-md-3:nth-child(odd) .employee-wrap {
        background-color: #f5f5f5;
    }
}

.employee-name, .employee-title, .employee-phone a {
    font-family: 'Amiko-bold';
    text-transform: uppercase;
}

.employee-name {
    font-size: 0.9em;
}

.employee-title {
    font-size: 0.7em;
}

.employee-phone a {
    font-size: 1.6em;
}

@media(max-width: 1200px) {
    .employee-phone a {
        font-size: 1.3em;
    }
}

.yellow {
    color: #fec905;
}

#yhteydenotto-section h3 {
    color: #fec905;
}

#yhteydenotto label {
    font-family: 'Amiko-bold';
    text-transform: uppercase;
}

#yhteydenotto .form-check label {
    font-size: 1rem;
}

#yhteydenotto input.form-control, #yhteydenotto textarea.form-control {
    background-color: #f5f5f5;
    border: none;
    border-radius: 0;
}

#yhteydenotto .form-group span.required {
    color: #fec905;
}


/* Single property */
#single-prop-header [class^="col"] {
    padding-left: 0;
    padding-right: 0;
}

#bigPictureContainer {
    height: 70vh;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    width: 100%;
    float: left;
}

.muchImages {
    overflow-y: scroll;
}

.imgSwitcher {
    position: relative;
    top: 45%;
}

.imgSwitcher button {
    background-color: transparent;
    cursor: pointer;
    padding: 0px;
    color: #f0f0f0;
    font-size: 2em;
    border: none;
    text-align: center;
    position: absolute;
    top: 38%;
    transform: scale(2,3);
    -webkit-transform: scale(2,3);
    -moz-transform: scale(2,3);
    -ms-transform: scale(2,3);
    -o-transform: scale(2,3);
}

.imgSwitcher button.prev {
    left: 20px;
}

.imgSwitcher button.next {
    right: 20px;
}

.imgSwitcher button.next:focus-visible {
    border: none;
}

.frame .image-count {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: 'Amiko-bold';
    font-size: 1.3em;
}

.next-prev-wrap .next-btn {
    position: absolute;    
    font-size: 2.5em;
    background-color: transparent;
    right: 0;
    top: 45%;
}

.next-prev-wrap .prev-btn {
    position: absolute;    
    font-size: 2.5em;
    background-color: transparent;
    top: 45%;
}

.thumbnailContainer {
    width: 100%;
    height: 100%;
    background-color: #707070;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow-y: scroll;
    min-height: 70vh;
}

#imageContainer .imagethumb {
    height: 25%;
    width: 50%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    float: left;
}

.layer {
    background-color: rgba(46,44,42,0.6);
    position: absolute;
    width: 50%;
    height: 25%;
}

.layer.visible {
    background-color: transparent;
}

@media(max-width: 1350px) {
    #imageContainer .imagethumb {
        width: 100%;
        border-bottom: 2px solid #242424;
    }
    
    .layer {
        width: 100%;
    }
}

@media(max-width: 991px) {
    #bigPictureContainer {
        height: 35vh;
        background-size: 100% 100%;
    }
    
    .thumbnailContainer {
        width: 100%;
        height: 150px;
        white-space: nowrap;
        overflow-y: hidden;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        min-height: unset;
    }

    #imageContainer .imagethumb {
        display: inline-block;
        width: 150px;
        height: 150px;
        float: none;
    }

    .layer {
        width: 150px;
        height: 150px;
    }
}

.frame {
    height: 100%; /*can be anything*/
    width: 100%; /*can be anything*/
    display: inline-block;
    vertical-align: top; /*not required*/
    position: relative;
    min-height: 400px;
}
  
.frame img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: all 0.3s ease;
}
  

#myyja-wrap h3 {
    font-family: 'Beacon';
    font-size: 3em;
}

#myyja-wrap a {
    font-size: 0.8em;
}

#myyja-wrap .email-wrap a {
    font-size: 0.65em;
}

@media(max-width: 1200px) {
    #myyja-wrap a {
        font-size: 0.8em;
    }
}

@media(max-width: 768px) {
    #imageContainer {
        width: initial;
    }

    .frame {
        min-height: 350px;
    }
}

.btn.btn-delete-img {
    background-color: #FFF;
}

.btn-delete-img i, .btn-delete-file i {
    color: #dc3545;
}

#imageUpload, #fileUpload {
    font-family: 'Amiko-bold';
    border: 2px solid #fec905;
}

.single-prop-content h1 {
    font-family: 'Amiko-bold';
    color: #000;
    font-size: 2.7em;
    text-transform: uppercase;
}

.single-prop-content h2 {
    color: #000;

}

.single-prop-content h3 {
    font-family: 'Enriqueta';
    color: #000;
    font-size: 1.5em;
}

.single-prop-content p, .single-prop-content td {
    font-family: 'Enriqueta';
    font-size: 20px;
}

#single-prop-downloads a {
    color: #000;
}

@media(max-width: 991px) {
    .single-prop-content h1 {
        font-size: 1.7em;
    }

    #single-prop-downloads a {
        font-size: 1em;
        word-break: break-word;
    }   
}

#single-prop-downloads a::before {
    content: "\f019";
    font-family: "Font Awesome\ 5 Free";
    color: #fec905;
    padding-right: 5px;
    font-weight: 900;
}

/* #property-types table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
    border-color: transparent;
}

#property-types table td {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
} */

#property-types table a {
	font-size: 0.9em;
}

#property-types .table-head {
    background-color: #fec905;
    font-family: 'Amiko-bold';
    font-size: 1.5em;
    text-transform: uppercase;
}

#property-types table thead tr th {
    font-family: 'Amiko-bold';
    font-size: 1.5em;
    text-transform: uppercase;
}

@media(max-width: 991px) {
    #property-types table td {
        font-size: 0.75em;
    }
}

@media(max-width: 1550px) {
	#header-left p {
		font-size: 0.7em;
	}	
}

@media(max-width: 1199px) {
	#header-left p {
		font-size: 1em;
	}	
}

@media(max-width: 768px) {
    #property-types table td {
        font-size: 0.65em;
    }
}

#single-prop-banner p {
    margin-bottom: 0;
}


/* Footer */
footer {
    background-color: #f5f5f5;
}

.footer-image-wrap img {
    width: 120px;
    height: auto;
}

.footer-list {
    list-style-type: none;
    padding-inline-start: 0;
}

footer .email-wrap a {
    font-size: 0.9em;
}

@media(max-width: 991px) {
    footer a {
        font-size: 1em;
    }
}

@media(max-width: 768px) {
    .footer-image-wrap img {
        width: 200px;
        height: auto;
    }
}

@media(max-width: 560px) {
    footer .address-wrap p, footer .phone-wrap p, footer .email-wrap p {
        margin-bottom: 0.4rem;
    }
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #e8e8e8;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient( 90deg, #fec905 0%, #fec905 100% );
    border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #fec905;
}

/* Back to Top */
#backToTop {
    position: fixed;
    right: 0px;
    bottom: 110px;
    padding: 6px 12px;
    font-size: 22px;
    background-color: #000;
    color: #FFF;
    border-radius: 0px;
    border: 1px solid #FFF;
    transition: all 0.3s ease;
}

#backToTop:hover {
    /* padding: 10px 30px 10px 15px; */
}

#backToTop.hiding {
    right: -60px;
}

#backToTop svg {
    height: 30px;
    fill: white;
}

#backToTop:hover svg {
    animation: bouncingIcon 1s;
}

/*
* https://daneden.github.io/animate.css/
*/

@-webkit-keyframes bouncingIcon {
    from,
    20%,
    53%,
    80%,
    to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    40%,
    43% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -15px, 0);
        transform: translate3d(0, -10px, 0);
    }
    
    70% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -5px, 0);
    }
    
    90% {
        -webkit-transform: translate3d(0, -4px, 0);
        transform: translate3d(0, -4px, 0);
    }
}

.grecaptcha-badge {
    display: none;
}