/*

TemplateMo 550 Diagoona

https://templatemo.com/tm-550-diagoona

*/

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
    color: white;
    background-color: #2C353C;
}

a { 
    transition: all 0.3s ease; 
    text-decoration: none;
}

ul { padding: 0; }
a:hover { text-decoration: none; }
button:focus { outline: none; }
p { line-height: 1.9; }
.tm-logo { margin-right: 20px; }
.tm-slogan { font-size: 0.8rem; }

/* Navigation */
.navbar-toggler {
    padding: 8px 15px;
    border: 0;
    border-radius: 0;
    transform: skewX(-15deg);
    background-color: rgba(0,0,0,0.6);
    color: white;   
}

.navbar-toggler i { transform: skewX(15deg); }

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link { padding: 0; }

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;    
    padding-bottom: 30px;    
}

.nav-item { margin-right: 56px; }

.nav-item:last-child { margin-right: 0; }

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
    color: #9CC;
}

/* Page Background */
.tm-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1000;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right { background-color: rgba(0,0,0,0.6); }

.tm-bg-left {
    border-right: 230px solid rgba(0,0,0,0.6);
    border-top: 100vh solid transparent;
}

.tm-bg-controls-wrapper {
    display: inline-block;
    margin-left: -150px;
}

.tm-bg-control {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: rgba(255,255,255,0.5);
    margin: 6px;
    cursor: pointer;
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: white;
}

.tm-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  
}

.tm-row { display: flex; }

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 40px;  
    padding-right: 40px;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 70px;
    padding-right: 70px;
}

.tm-content {
    max-width: 660px;
    margin-top: 50px;
    padding-right: 20px;
}

.tm-about { max-width: 525px; }

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}
  
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(255,255,255,.8);
    box-shadow: 0 0 1px rgba(255,255,255,.8);
}

.tm-content-title { font-size: 1.5rem; }
hr { border-top: 1px solid white; }

.btn {
    padding: 10px 25px;
    border-radius: 0;
}

.btn-big {
    padding: 9px 40px;
    font-size: 1.2rem;;
}

.btn-primary {
    background-color: white;
    color: black;
    border: 0;
}

.btn-primary:hover {
    background-color: #9CC;
    color: black;
}

.tm-site-footer {
    padding: 40px 0 20px;
    max-width: 660px;
    font-size: 0.95rem;
}

.tm-col-footer { padding-left: 0; }
.tm-text-link { color: white; }

.tm-text-link:hover,
.tm-text-link:focus {
    color: #9CC;
}

/* Service */ 
.tm-service-text { max-width: 600px; }
.tm-service-img { margin-right: 40px; }
.tm-service-img-r { margin-left: 40px; }

/* Contact */
.form-control,
textarea {    
    color: white;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #999A9B;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 10px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus {
    color: white;
    background-color: transparent;    
    box-shadow: none;
    border-color: #9CC;
    outline: none;
}

.mb-85 { margin-bottom: 85px; }
.tm-contact-main { max-width: 690px; }

.tm-contact,
.contact-info-map-wrap {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.service-list-about ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.form-control::-webkit-input-placeholder { color: white; } /* Edge */  
.form-control:-ms-input-placeholder { color: white; } /* Internet Explorer 10-11 */  
.form-control::placeholder { color: white; }

@media (max-width: 1200px) {
    .nav-item { margin-right: 30px; }

    .tm-page-right {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {    
    .tm-nav {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        top: 44px;
        right: 4px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        color: white;
        font-size: 1.1rem;
        padding: 13px 20px;
    }

    .nav-item { margin-right: 0; }

    .nav-item.active .tm-nav-link,
    .nav-item:hover .tm-nav-link {
        color: #9CC;
    }

    .tm-content { margin-top: 20px; }
    .tm-site-footer { padding-top: 40px; }
    .tm-col-left { width: 40%; }

    .tm-col-right {
        width: 60%;
        padding-left: 100px;
        padding-right: 30px;
    }
    
    .tm-col-footer { padding-left: 0; }
}
.tm-site-header .logo {
    max-width: 175px;
}
.contact-info-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}
.contact-info-wrap {
    margin-bottom: 20px;
}
.contact-info-wrap p {
    margin-bottom: 5px;
}
.contact-info-wrap,
.contact-info-map-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    font-size: 18px;
}
.contact-info-wrap a {
    color: #9CC;
}
.contact-info-wrap a:hover {
    color: #fff;
}
.contact-info-map-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.main-center-btn {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.main-center-btn a {
    max-width: 250px;
}
.service-list-about {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;

}
.service-list-about ul li {
    margin-bottom: 10px;
}
.tm-service-media img {
    max-width: 160px;
    border-radius: 5px;
}
.flot-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    max-width: 600px;
}
.flot-item-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
    max-width: 50%;
    width: 47%;
    margin-right: 10px;
    margin-bottom: 20px;
}
.flot-item-img-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.flot-item-img-wrap img {
    max-width: 300px;
    width: 100%;
    height: 200px;
    filter: brightness(0.5);
    cursor: pointer;
    border-radius: 10px;
}
.flot-item-img-wrap img:hover {
    filter: brightness(1);
    transition: all ease-in-out 0.3s;
}
.flot-item-img-title {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    position: absolute;
    padding-left: 10px;
    bottom: 10%;
    z-index: 5;
}
.closed-popup {
    visibility: hidden;
}
.flot-item-popup-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: fixed;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    max-height: 800px;
    background-color: rgba(0,0,0,0.8);
    border-radius: 10px;
}
.flot-item-popup-close-btn {
    position: absolute;
    top: 5%;
    right: 3%;
    cursor: pointer;
}
.flot-item-popup-close-btn::before {
    content: url('../img/close_popup.svg');
    max-width: 32px;
    height: 32px;
    filter: invert(100%) sepia(0%) saturate(7431%) hue-rotate(116deg) brightness(118%) contrast(99%);
}
.flot-item-popup-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10%;
    min-height: 400px;
    overflow-y: scroll;
    margin-bottom: 20px;
    padding: 20px;
}
.flot-item-bigimage-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}
.flot-item-bigimage-wrap img {
    max-width: 100%;
    width: 750px;
    border-radius: 10px;
}
.flot-item-popup-stats-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    max-width: 750px;
    justify-content: space-between;
}
.flot-item-popup-stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    justify-content: space-between;
}

@media (max-width: 1300px) {
    .flot-wrap {
        flex-direction: column;
    }
    .flot-item-wrap {
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 460px) {
    .flot-item-popup-wrap {
        position: fixed;
        width: 100vw;
        height: 150vh;
        max-height: 100vh;
    }
    .flot-item-popup-close-btn {
        right: 5%;
    }
}


@media (max-width: 768px) {
    .tm-row { flex-direction: column; }
    .tm-col-left,
    .tm-col-right,
    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: fixed;
        top: 50px;
        right: 40px;
        padding-bottom: 0;
        z-index: 11;
    }  
    
    .tm-bg { flex-direction: column; }

    .tm-bg-left {
        height: 200px;        
        border-bottom: 50px solid rgba(0,0,0,0.6);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right { height: calc(100% - 200px); }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 50px;
    }

    .tm-content {
        max-height: none;
        margin-top: 40px;
    }

    .tm-col-right {
        padding-top: 40px;
        padding-left: 30px;
    }

    .tm-col-footer {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 460px) {
    .tm-logo { margin-right: 15px; }
    .tm-sitename { font-size: 1.8rem; }
    .tm-slogon { font-size: 0.8rem; }
}

@media (max-width: 450px), (min-width: 768px) and (max-width: 830px), (min-width: 992px) and (max-width: 1040px) {
    .tm-service-media { flex-direction: column; }
    .tm-service-media-img-l { flex-direction: column-reverse; }
    .tm-service-text { margin-top: 20px; }
    .tm-service-img { margin-right: 0; }
    .tm-service-img-r { margin-left: 0; }
}
@media (max-width: 1024px) {
    .tm-service-media img {
        order: 1;
    }
}

@keyframes popupAni {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

