﻿@font-face {
    font-family: 'DejaVuSerifEmbeded';
    src: url('dejavu-serif.book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    background-color: #cfbaa2;
    font-family: 'DejaVuSerifEmbeded';
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
}

    body header img {
        transform: scale(0.8);
    }
    /*
    body.MainPage header {
        max-width: 1280px;
        width: 100%;
        margin: 0 auto;
    }



    body.MainPage nav {
        position: absolute;
        top: 190px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 1280px;
        z-index: 5;
        width: fit-content;
    }


    body.MainPage footer {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1280px;
    }
        */
    h1{
        font-size: 24px;
        font-weight: normal;
        text-align: center;
    }

/*Primary color*/
body, a, footer hr {
    color: #8f6126;
}

footer hr {
    background-color: #8f6126;
}



@media (max-width: 700px) {
    header img {
        width: auto;
        max-width: 100%;
        height: auto;
    }
}

.Shadow {
    box-shadow: 0px 6px 10px 1px #cdcdcd;
}


/*Menu*/
.menu {
    /*width: 100%;*/
    max-width: 1200px;
    margin: 0 auto;
    width: fit-content; 

}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

    .main-menu li {
        position: relative;
    }

    .main-menu a {
        display: block;
        padding: 1em;
        text-decoration: none;
    }

    .main-menu .has-submenu:hover .submenu {
        display: block;
        max-height: 20em;
        opacity: 1;
    }

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #e2cfb9;
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

    .submenu li a {
        padding: 0.75em;
        white-space: nowrap;
    }

.mobile-menu-icon {
    display: none;
    font-size: 2em;
    padding: 0;
    cursor: pointer;
    text-align: right;
}

.menu a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .menu {
        margin-top: -3em;
        min-height: 45px;
        position:relative;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 70%;
        max-width: 70%;
        background-color: #333;
        margin-left: auto
    }

        .main-menu li {
            text-align: center;
            position: relative;
        }

        .main-menu .has-submenu .submenu {
            position: relative;
            top: 0;
            left: 0;
            display: block;
        }

    .mobile-menu-icon {
        display: block;
        z-index: 5;
        position: absolute;
    }
}



/*PageBoxes*/
.page-box {
    display: flex;
    align-items: stretch;
    min-height: 200px;
    gap: 20px;
    margin: 20px 0;
}

    .page-box:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .page-box .image-container, .page-box .text-container {
        background-color: #F6F3EC;
    }

.image-container {
    width: 30%;
    min-width: 0;
    padding: 10px;
    height: 400px;
    flex: 3;
}

.text-container {
    padding: 50px 50px 10px 50px;
    flex-direction: column;
    justify-content: center;
    flex: 7;
    line-height: 1.75em;
}

    .text-container h2{
        margin-top: 0;
    }

    .text-container ul {
        list-style-position: outside;
    }

    .text-container ul li{
        margin-bottom: 11px;
    }

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/*Galleries*/
.galleries {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .galleries img {
        width: 200px;
        height: 200px;
        object-fit: cover;
    }


.viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.viewer-img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


/*First site slide show*/
body.MainPage {
    flex-direction: column;
    height: 100vh;
    position: relative;
    display: flex;
}

.SlideContaner {
    flex: 1;
    display: flex;
    display: grid;
    grid-template-rows: 1fr;
    flex-grow: 1;
}

.Slides {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .Slides img {
        object-fit: cover;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        animation: slideAnimation 6s infinite;
    }

@keyframes slideAnimation {
    0% {
        opacity: 0;
    }

    8.33% {
        opacity: 1;
    }

    41.67% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/*Footer*/
footer {
    text-align: center;
    font-size: 90%;
}

    footer hr {
        height: 2px;
    }




/*Contact*/

.Contact {
    display: flex;
}

    .Contact .ContactInfo {
        flex: 1;
        background-color: #F6F3EC;
        padding: 10px;
        box-sizing: border-box;
    }

    .Contact .ContactPhone {
        flex: 1;
    }

        .Contact .ContactPhone img {
            margin-left: -150px;
            margin-top: 100px;
        }

@media (max-width: 1100px) {
    .image-container {
        display: none;
    }

    .Contact .ContactPhone {
        display: none;
    }
}