/* Text Block */
* {
    /* Head Areas */
    .headBlock {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 100px 0;
        background-color: #272624b7;
        z-index: 600;
        height: 50vh;
        user-select: none;
    }
    .headImage {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 500;
        filter: brightness(75%);

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .headText {
        position: relative;
        z-index: 600;
        text-align: center;
        color: white;
        width: 100%;
        font-size: 1.5em;
        text-shadow: 0 0 10px black;

        .underbar {
            width: 50%;
            height: 5px;
            background-color: #b79027;
            margin: 10px auto;
        }
    }

    /* Read Areas */
    .mainBlock {
        position: relative;
        display: flex;
        
        padding: 0 150px;
        background: linear-gradient(90deg, #2e2203 0%, #786a3d 100%);
        z-index: 600;
        box-shadow: 0 0 15px 5px black;
    }
    .sectionBar {
        width: 100%;
        flex-grow: 1;
        padding: 15px;
        opacity: 0.5;
        transition: 0.5s;
    }
    .sectionBar:hover {
        opacity: 1;
    }
    .sectionButtons {
        position: relative;
        width: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        z-index: 600;

        a {
            color: white;
            text-decoration: none;
            white-space: nowrap;
            text-overflow: clip;
            overflow: hidden;
            padding: 10px 20px;
            border: 3px solid white;
            border-radius: 20px;
            transition-duration: 0.25s;
        }
        a:hover {
            background-color: white;
            color: #786a3d;
            transform: scale(1.1);
        }
        a:active {
            background-color: #786a3d;
            color: white;
            transform: scale(1);
        }
    }
    .aboutBlock {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 50px;
        background-color: #00000082;
        font-size: 1.1em;
        line-height: 1.75em;
    }
    .noNav {
        width: 1000%;
    }

    h2 {
        font-size: 2em;
        margin: 0 5px;
        line-height: 1.3em;
    }

    .underbar {
        width: 50%;
        height: 5px;
        background-color: #b79027;
        margin: 10px 0;
    }

    /* Entry Areas */
    .entryBlock {
        position: relative;
        display: flex;
        z-index: 600;
        width: 100%;
        flex-direction: row;
        justify-content: space-evenly;
    }
    .leftSide {
        width: 50%;
        overflow: hidden;
    }
    .rightSide {
        width: 50%;
        overflow: hidden;
    }

    .entryBlock img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .entryBlock video {
        width: 100%;
        object-fit: contain;
        background-color: black;
        position: sticky;
    }
    
    .textBlock {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;

        max-width: calc(50% - (25px + 7%)*2);
        padding: 100px calc(25px + 7%);
        background-color: #272624b7;
        font-size: 1.25em;
        line-height: 1.5em;
    }
    .entryBlock.rtlGoldDark .textBlock {
        background-color: transparent;
    }

    .textBlock p {
        margin: 10px 0;
    }

    .entryBlock .btn {
        width: 50%;
        padding: 10px 20px;
        color: white;
        background-color: #b79027;
        border: none;
        border-radius: 20px;
        transition-duration: 0.25s;
        font-size: 1em;
    }
    .entryBlock .btn:hover {
        background-color: transparent;
        box-shadow: 0 0 10px white;
    }
    .entryBlock .btn:active {
        background-color: #786a3d;
    }

    /* Special Areas */
    .specialBlock {
        position: relative;
        background: linear-gradient(90deg, #2e2203 0%, #786a3d 100%);
        animation: gradient 15s ease infinite;
        box-shadow: 0 0 15px 5px black;
        z-index: 700;
    }
    .specialBlock .textBlock {
        background-color: transparent;
    }

    /* Contact Areas */
    .inputSection.mainContact {
        position: relative;
        padding: 0;
        margin: 25px 0 100px 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: stretch;
        height: auto;

        .contactForm {
            position: relative;
            left: 0;
            width: 40%;
        }
        .contactInfo {
            background-color: rgba(0, 0, 0, 0.25);
            border-radius: 20px;
            padding: 20px;
            width: 40%;

            font-size: 1.2em;

            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 15px;

            text-align: center;

            .underbar {
                width: 100%;
            }

            a {
                color: #b79027;
                text-decoration: none;
                transition-duration: 0.25s;
            }
            a:hover {
                color: #3d8cd4;
            }
        }
    }

    /* FAQ Areas */
    .faqBlock {
        padding: 50px 150px;
        position: relative;
        z-index: 600;

        .underbar {
            margin-bottom: 25px;
        }

        h3 {
            margin: 0;
        }

        a {
            color: white;
            font-weight: 900;
            text-decoration: underline;
            border-radius: 20px;
            transition-duration: 0.25s;
        }
        a:hover {
            background-color: white;
            color: #786a3d;
        }

        .faqContent {
            display: flex;
            flex-direction: column;
            gap: 10px;

            .faqQuestion {
                background-color: #786a3d;
                padding: 25px;
                border-radius: 10px;
                cursor: pointer;

                h3 {
                    font-size: 1rem;
                }

                p {
                    margin-bottom: 0;
                }

                .faqAnswer {
                    overflow: hidden;
                    height: 0;
                    transition: height 0.25s ease;
                }

                transition-duration: 0.25s;
            }
            .faqQuestion:hover {
                background-color: #43330d;
                box-shadow: 0 0 10px black;
            }
            .faqQuestionActive, .faqQuestionActive:hover {
                background-color: #b79027;
            }
        }
    }
}

/* Video Block */
* {
    .videoBlock {
        position: relative;
        max-width: 100vw;
        height: 100vh;
        /*overflow: hidden;*/
        background-color: #786a3d;
        box-shadow: 0 0 15px 5px black;
        padding: 50px;
        z-index: 700;
    }
    .heroVideo {
        position: absolute;
        width: 100%;
        height: 100%;
        clip: rect(0, auto, auto, 0);
    }
    .heroVideo .videoContainer {
        position: fixed;
        top: calc(50% - 90px);
        transform: translateY(calc(-50% + 90px + 38px));
        max-height: calc(100vh - 100px);
        width: 90%;
        object-fit: cover;

        border-radius: 20px;
        box-shadow: 0 0 100px black;
    }
}

/* Card Block */
* {
    .cardBlock {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
        padding: 50px;
        background-color: #272624b7;
        z-index: 600;
        text-align: center;
    }

    .card {
        position: relative;
        width: 250px;
        height: 250px;
        overflow: hidden;
        transition: transform 0.6s;
        transform-style: preserve-3d;
        perspective: 10000px;
    }
    .card h3 {
        margin-bottom: 0;
    }

    .flipCardInner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;

        background-color: #b79027;
        border-radius: 20px;
    }

    .flipCard:hover .flipCardInner {
        transform: rotateY(180deg);
    }

    .flipCardFront, .flipCardBack {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 35px;
        box-sizing: border-box;
        border-radius: 20px;
    }

    .flipCardFront {
        background-color: #786a3d;
        color: white;
    }
    .cardIcon img {
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    }

    .flipCardBack {
        color: white;
        transform: rotateY(180deg);
    }

    .card a {
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        border: 3px solid white;
        border-radius: 20px;
        transition-duration: 0.25s;
    }
    .card a:hover {
        background-color: white;
        color: #786a3d;
    }
}

/* Animation */
@keyframes gradient {
    0% {
        filter: contrast(100%);
    }
    50% {
        filter: contrast(150%);
    }
    100% {
        filter: contrast(100%);
    }
}

/* Media Queries */

/* Tablet */
@media (max-width: 1024px) {
    .entryBlock {
        flex-direction: column;

        img {
            scale: 1.1;
            max-height: 400px;
            object-fit: cover;
        }
        .topOffset {
            object-position: center -15px;
        }

        video {
            display: none;
        }
    }
    .mainBlock {
        padding: 0;
    }
    .aboutBlock {
        padding: 50px 25px;
        width: calc(50vw - 50px);
    }
    .noNav .aboutBlock {
        padding: 50px;
        width: calc(100vw - 100px);
    }
    .sectionBar {
        width: 25vw;
        padding: 0;

        .sectionButtons {
            padding: 0;
            gap: 0;

            a {
                border: none;
                border-bottom: 1px solid white;
                border-radius: 0;
                height: 40px;
                width: calc(100% - 40px);
                display: flex;
                justify-content: center;
                align-items: center;
                transform: scale(1) !important;
            }
            .topLink {
                border-top: 1px solid white;
            }
        }
    }
    .mobileReverse {
        flex-direction: column-reverse;
    }
    .leftSide {
        max-width: none;
        width: 100%;
    }
    .rightSide {
        max-width: none;
        width: 100%;
    }
    .textBlock {
        padding: 50px;
        width: calc(100% - 100px);
    }
    .entryBlock .btn {
        width: 100%;
    }

    .videoBlock {
        display: none;
    }
    .videoContainer .controls {
        .progressBar {
            max-width: 100px;
        }
        .volume {
            display: none;
        }
        .volumeBar {
            display: none;
        }
    }

    .inputSection.mainContact {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        margin-bottom: 50px;

        h1 {
            text-align: center;
        }
        h2 {
            text-align: center;
        }

        .contactForm {
            width: calc(100% - 100px);
        }
        .contactInfo {
            width: calc(100% - 100px);
        }
    }
}

/* Mobile */
@media (max-width: 768px) {
    .entryBlock {
        img {
            max-height: 200px;
        }
    }

    .videoContainer {
        display: none;
    }

    .aboutBlock {
        padding: 50px;
        width: calc(100vw - 110px);
    }
    .sectionBar {
        display: none;
    }
    .sectionBar.withButtons {
        display: block;
        width: 10px;
        padding: 0;
        opacity: 1 !important;

        .sectionButtons {
            padding: 0;
            gap: 5px;

            a {
                width: 100%;
                padding: 0;
                color: transparent;
                background-color: white !important;
            }
            a:hover {
                width: 15px;
            }
        }
    }

    .inputSection.mainContact {
        margin-bottom: 25px;
        margin-top: 0;
        gap: 25px;

        .contactForm {
            width: calc(100% - 50px);
            border-radius: 20px;
        }
        .contactInfo {
            width: calc(100% - 50px);
        }
    }

    .faqBlock {
        padding: 25px;
    }
    
}