/* Main */
* {
    body {
        margin: 0;
        padding: 0;
        font-family: 'Nunito Sans', 'Istok Web', serif, 'Roboto', sans-serif;
        font-size: 16px;
        color: #efeeec;
        background-color: #272624;
        overflow-x: hidden;
    }

    main {
        display: flex;
        justify-content: center;
    }
    main .content {
        max-width: 2000px;
        width: 100%;
    }

    .istok-web-regular {
        font-family: "Istok Web", serif;
        font-weight: 400;
        font-style: normal;
    }
    
    .istok-web-bold {
        font-family: "Istok Web", serif;
        font-weight: 700;
        font-style: normal;
    }
    
    .istok-web-regular-italic {
        font-family: "Istok Web", serif;
        font-weight: 400;
        font-style: italic;
    }
    
    .istok-web-bold-italic {
        font-family: "Istok Web", serif;
        font-weight: 700;
        font-style: italic;
    }
}

/* Nav */
* {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;

        background-color: linear-gradient(to bottom, #272624, transparent);
        color: white;
        user-select: none;

        position: fixed;
        width: calc(100%);
        top: 0;
        transition-duration: 0.25s;
        height: 125px;

        z-index: 900;
    }
    .navTop {
        display: flex;
        justify-content: space-between;
        align-items: center;

        transition-duration: 0.25s;
        height: 100%;
    }
    nav.scroll {
        background: #272624;
        background-color: #272624;
        color: transparent;
        box-shadow: 0 5px 10px #000000;
        height: 75px;
    }

    nav .navText {
        color: #efeeec;
        margin: 0;
        transition-duration: 0.25s !important;
        overflow: hidden;
        font-size: x-large;
        text-shadow: 0 2px 5px #000000;
        font-weight: 750;
    }
    nav.scroll .navText {
        font-size: large;
        text-shadow: 0 2px 5px transparent;
    }

    nav .collapsing {
        opacity: 0;
        transition-duration: 0.25s;
    }
    nav.scroll .collapsing {
        opacity: 1;
    }
    nav .shifting {
        transform: translateY(calc(-50% + 10px));
        transition-duration: 0.25s;
    }
    nav.scroll .shifting {
        transform: translateY(0);
    }
    nav .flexDown {
        height: calc(100% - 20px);
        justify-content: space-between;
        a {
            height: 50%;
            h3 {
                height: 100%;
            }
        }
        a:hover {
            filter: brightness(500%) drop-shadow(0 0 10px white);
        }
    }

    nav .navMain {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #272624;
        padding: 0 20px;

        background-color: transparent;
        height: 100%;
        gap: 20px;
        transition-duration: 0.25s;
    }
    .navLogoContainer {
        max-height: calc(100% - 20px);
        height: 100px;

        img {
            max-height: 100%;
            border-radius: 50%;
            transition-duration: 0.25s;
        }
        img:hover {
            box-shadow: 0 0 10px #efeeec;
        }
    }
    
    .navTop a {
        text-decoration: none;
    }

    nav .navMenu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        gap: 10px;
    }
    .navMenu a {
        font-size: 1.25em;
        color: #efeeec;
        text-decoration: none;
        text-shadow: 0 3px 10px #000000;
        border: 1px solid transparent;

        padding: 10px 10px;
        transition-duration: 0.25s;
    }
    .navMenu a:hover {
        color: #b79027;
        text-shadow: 0 0 0;
        border-top: 0 solid transparent;
        border-bottom: 2px solid #b79027;
    }

    .navMenuMobile {
        display: none;
    }

    .navDimmer {
        display: none;
    }
}

/* Loader */
* {
    .loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        opacity: 100%;
        border-radius: 0%;
        pointer-events: none;
        transition-duration: 0.35s;
    }
    .loaderIcon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 100px;
        background-color: #272624;
        border-radius: 50%;
    }
    .loaderIcon img {
        width: 100%;
        height: 100%;
    }
    .iconInner {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .loaderCircle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(100);
        width: 100vw;
        aspect-ratio: 1/1;
        background-color: #272624;
        border-radius: 50%;
    }
    .loaderCircle.shrink {
        animation: shrink 0.5s ease-out forwards;
    }

    .loadFade {
        opacity: 0;
        border-radius: 100px;
    }
}

/* Sticky */
* {
    .stickyNav {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 800;

        min-width: 80px;
        border-radius: 20px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .chatbot {
        bottom: 20px;
        right: 20px;
        width: 80px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        z-index: 1000;
        transition: width 0.3s ease;
    }

    .chatbot.showingChat {
        width: 400px;
    }

    .chatbotIcon {
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 50%;
        background-color: #3d8cd4;
        box-shadow: 0 0 10px #000000;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.25s, transform 0.25s;
    }
    .chatbotIcon img {
        width: 80%;
    }
    .chatbotIcon:hover {
        background-color: #b79027;
        transform: scale(1.1);
    }
    .chatbotIcon:active {
        background-color: #786a3d;
        transform: scale(1);
    }
    .chatbotIcon.showingChat {
        display: none;
    }

    .chatArea {
        display: none;
        width: 100%;
        height: 400px;
        background-color: white;
        border: 1px solid #272624;
        border-radius: 20px;
        box-shadow: 0 0 10px black;
        overflow: hidden;
        flex-direction: column;
    }

    .chatArea.showingChat {
        display: flex;
    }

    .chatHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        background-color: #272624;
        color: white;
        border-bottom: 1px solid #272624;

        div {
            display: flex;
            align-items: center;
            transition-duration: 0.25s;
        }
        .closeChat:hover {
            filter: invert(48%) sepia(100%) saturate(500%) hue-rotate(10deg) brightness(95%) contrast(90%);
            cursor: pointer;
        }
    }

    .chatHeader img {
        width: 24px;
        height: 24px;
    }

    .chatBody {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
        background-color: #f9f9f9;
    }

    .chatMessage {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .chatMessageContent {
        padding: 10px;
        border-radius: 10px;
        background-color: #e0e0e0;
        max-width: 80%;
    }

    .chatMessageTime {
        font-size: 0.75rem;
        color: #272624;
    }
    .fromBot .chatMessageTime {
            align-self: flex-start;
    }
    .fromUser .chatMessageTime {
        align-self: flex-end;
    }

    .fromBot .chatMessageContent {
        background-color: #3d8cd4;
        color: white;
        align-self: flex-start;
    }
    .fromUser .chatMessageContent {
        background-color: #b79027;
        color: white;
        align-self: flex-end;
    }

    .chatFooter {
        display: flex;
        align-items: center;
        padding: 10px;
        border-top: 1px solid #272624;
    }

    .chatFooter input {
        flex: 1;
        padding: 10px;
        border: 1px solid #272624;
        border-radius: 20px;
        outline: none;
    }

    .sendMessage {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin-left: 10px;
        background-color: #3d8cd4;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.25s;
    }

    .sendMessage img {
        width: 24px;
        height: 24px;
    }

    .sendMessage:hover {
        background-color: #b79027;
    }

    .sendMessage:active {
        background-color: #786a3d;
    }

    .backToTop {
        background-color: #272624;
        box-shadow: 0 0 10px #000000;
        text-align: center;
        border-radius: 20px;
        transition-duration: 0.25s;
        cursor: pointer;
        height: 0;
        overflow: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .backToTop:hover {
        background-color: #b79027;
        transform: translateY(-5px);
    }
    .backToTop:active {
        transform: translateY(0);
        background-color: #786a3d;
    }
}

/* Footer */
* {
    footer {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #272624;
        box-shadow: 0 -5px 10px #000000;
        color: #efeeec;
        padding: 20px;
        padding-top: 0;
        font-size: 1em;
        text-align: center;
        user-select: none;
        z-index: 885;
    }
    footer a {
        color: #b79027 !important;
        transition-duration: 0.25s;
        border-bottom: 0 solid transparent;
        border-top: 3px solid transparent;
    }
    footer a:hover {
        color: #3d8cd4 !important;
        border-bottom: 3px solid #3d8cd4;
        border-top: 0 solid transparent;
    }
    .footerLogo a {
        text-decoration: none;
        color: #efeeec !important;
        border: none
    }
    .footerLogo a:hover {
        color: #efeeec !important;
        scale: 1.1;
        border: none;
    }
    .footerLogo a:active {
        scale: 1;
        border: none;
    }

    footer .footerTop {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        padding: 20px;
        padding-top: 0;
    }

    footer .footerLogo {
        display: flex;
        flex: 1 1 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        padding-bottom: 0;
        gap: 10px;
    }
    footer .footerLogo img {
        max-height: 50px;
    }
    footer .footerLogo p {
        margin: 0;
    }

    footer .footerContact {
        display: flex;
        flex: 1 1 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        padding-bottom: 0;
    }
    footer .footerContact h3 {
        margin: 0;
    }
    footer .footerContact .underbar {
        width: 100%;
        height: 2px;
        background-color: #b79027;
    }
    footer .footerContact a {
        color: #efeeec;
        text-decoration: none;
    }

    footer .footerMenu {
        display: flex;
        flex: 1 1 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        padding-bottom: 0;
        gap: 20px;
        font-size: 1.15em;
    }
    footer .footerMenu div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        height: 30px;
    }
    footer .footerMenu a {
        border-top: transparent;
        color: #efeeec;
        text-decoration: none;
    }

    footer .footerBottom {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 40px);
        padding: 20px 40px;
        gap: 20px;
    }
    footer .footerBottom .mainRow {
        display: flex;
        width: 100%;
        border-top: 2px solid #b79027;
        padding-top: 20px;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    footer .footerBottom .subRow {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        font-weight: 750;
    }
    footer .footerBottom a {
        color: #efeeec;
        text-decoration: none;
    }
    footer .footerBottom p {
        margin: 0 auto 0 0;
    }
    footer a.socialIcon {
        border: none;
    }
    .footerBottom a img {
        width: 30px;
        height: 30px;
        filter: invert(48%) sepia(100%) saturate(500%) hue-rotate(10deg) brightness(95%) contrast(90%);
        transition-duration: 0.25s;
    }
    .footerBottom a img:hover {
        filter: invert(48%) sepia(100%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(90%);
        scale: 1.1;
    }
    .footerBottom a img:active {
        scale: 1;
    }
}

/* Structure */
* {
    .fullWidth {
        width: 100%;
    }
    .fullHeight {
        height: 100%;
    }
    .full {
        width: 100%;
        height: 100%;
    }

    .navSpacer {
        height: 125px;
    }

    .flexCenter {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .flexRow {
        display: flex;
        flex-direction: row;
    }
    .flexDown {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .smallGap {
        gap: 10px;
    }
    
    .largePadding {
        padding: 100px;
    }

    .formOverflow {
        overflow: visible !important;
    }
}

/* Decor */
* {
    .bold {
        font-weight: 750;
    }

    .important {
        background-color: #07568b !important;
        text-shadow: 0 0 3px #efeeec;
    }
    .important:hover {
        background-color: #3d8cd4 !important;
        text-shadow: 0 0 3px black;
    }

    a.btn {
        text-decoration: none;
        text-align: center;
    }
    .entryBlock a.btn {
        width: calc(100% - 40px);
    }

    .parallax {
        background-color: #b49226;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        opacity: 0.5;
    }

    .contactLink a {
        border-radius: 20px;
        background-color: #b49226;
        border: none;
    }
    .contactLink a:hover {
        background-color: #efeeec;
        border: none;
        box-shadow: 0 0 10px #efeeec;
    }
    .contactLink a:active {
        background-color: #b49226;
        border: none;
        color: #efeeec;
        box-shadow: #b49226;
    }
}

/* Colors */
* {
    .rtlBlue {
        background-color: #07568b;
    }
    .rtlBlueDark {
        background-color: #1b2638;
    }
    .rtlBlueLight {
        background-color: #3d8cd4;
    }

    .rtlGold {
        background-color: #b79027;
    }
    .rtlGoldDark {
        background-color: #786a3d;
    }
    .rtlGoldLight {
        background-color: #cdc2a8;
    }

    .rtlDark {
        background-color: #272624;
    }
    .rtlLight {
        background-color: #efeeec;
    }

    .blueText {
        color: #07568b;
    }
    .blueDarkText {
        color: #1b2638;
    }
    .blueLightText {
        color: #3d8cd4;
    }

    .goldText {
        color: #b79027;
    }
    .goldDarkText {
        color: #786a3d;
    }
    .goldLightText {
        color: #c7c4bd;
    }

    .darkText {
        color: #272624;
    }
    .lightText {
        color: #efeeec;
    }
}

/* Scroll bar */
* {
    ::-webkit-scrollbar {
        width: 15px;
    }
    ::-webkit-scrollbar-track {
        background: #efeeec;
    }
    ::-webkit-scrollbar-thumb {
        background: #272624;
        border: 3px solid #efeeec;
        border-radius: 20px;
    }
    ::-webkit-scrollbar-thumb:active {
        background: #786a3d;
    }
}

/* Animations */
.rotate {
    animation: rotate 2s linear infinite;
}
.rotatePrev {
    animation: rotatePrev 2s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes rotatePrev {
    0% {
        transform: rotate(-95deg);
    }
    100% {
        transform: rotate(265deg);
    }
}

@keyframes iconGrow {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes shrink {
    0% {
        transform: translate(-50%, -50%) scale(2);
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
    }
}

/* Media Queries */

/* Massive */
@media (min-width: 2000px) {
    /* Footer */
    * {
        footer {
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }
    }
}

/* Tablet */
@media (max-width: 1024px) {
    /* Nav */
    * {
        nav {
            .navMenu {
                gap: 0;
                padding: 0;
                padding-right: 20px;
                width: calc(50% + 100px);
            }
            .navMenu a {
                text-align: center;
            }
        }
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Nav */
    * {
        nav {
            height: 100px;
            flex-direction: column;
        }
        nav .navTop {
            padding-top: 1px;
            width: 100%;
        }
        nav .navText {
            font-size: 1.3em;
        }
        nav.scroll.active {
            background-color: #181817;
        }
        nav img, nav .flexDown {
            transition-duration: 0.25s;
        }
        nav .shifting {
            transform: translateY(calc(-50% + 5px));
        }
        nav.active img, nav.active .flexDown {
            filter: brightness(50%);
        }

        nav .navMenu {
            position: fixed;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: stretch;
            width: 100%;
            height: 100vh;
            padding: 0;
            color: #efeeec;
            background-color: #272624;
            left: 100%;
            bottom: 0;
            transition-duration: 0.25s;
        }
        nav .navMenu.active {
            left: 50%;
        }
        nav .navMenu div {
            display: block;
            text-align: left;
            font-size: 1.25em;
        }
        .navMenu a {
            display: flex;
            color: #efeeec;
            width: 100%;
            height: 39px;
            border-bottom: 1px solid black;
            padding: 10px 20px;
            align-items: center;
        }
        .mobileTop {
            border-top: 1px solid black !important;
        }
        .navMenu a:hover {
            color: #efeeec;
            background-color: #b79027;
        }

        .navMenuMobile {
            display: block;
            padding: 20px;
        }
        .navMenuMobile button {
            font-size: 50px;
            padding: 5px;
            width: 50px;
            height: 50px;
            border-radius: 20px;
            background-color: #b79027;
            color: white;
            border: none;
            transition-duration: 0.25s;
            
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        .menuButton.active {
            background-color: #07568b;
            transform: translateX(-50vw);
        }
        .menuButton.active div {
            transition-duration: 0.25s;
        }
        .menuButton.active div {
            transform: rotate(90deg);
        }

        .navDimmer {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            background-color: black;
            z-index: 890;
            transform: translateX(100%);
            transition: opacity 0.25s, transform 0.25s;
        }
        .navDimmer.active {
            transform: translateX(0);
            opacity: 50%;
        }

        .contactLink a {
            border-radius: 0;
            background-color: #272624;
        }
    }

    /* Footer */
    * {
        footer .footerTop {
            flex-direction: column;
            gap: 0;
            padding-bottom: 0;
        }
        footer .footerLogo {
            padding: 50px 20px 0 20px;

            h3 {
                margin-bottom: 10px;
            }
            p {
                display: none;
            }
        }
        footer .footerContact {
            padding: 20px;
            padding-top: 0;

            h3 {
                display: none;
            }
            .underbar {
                display: none;
            }
            div p.companyName {
                display: none;
            }
        }
        footer .footerMenu {
            display: none;
        }
        footer .footerBottom {
            padding: 20px;

            .mainRow {
                flex-direction: column;
                gap: 20px;
                
            }
            .subRow {
                width: 33%;
            }
            .subRow img {
                padding-top: 5px;
            }

            p {
                font-size: 0.75em;
                margin-right: 0;
            }
        }
    }
}

/* Tiny */
/* Mobile */
@media (max-width: 400px) {
    /* Nav */
    * {
        .navText {
            font-size: 0.8em !important;
            transform: translateY(5px);
        }
    }
}