:root {
    --main-color: #022866;
}
* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f7f7f7 url(../img/pattern.png) repeat fixed left top;
    background-size: auto;
    font-family: Helvetica, Arial sans-serif;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {

    text-decoration: none;

}

img {
    width: 100%;
    height: auto;
}

h1 {
    color: var(--main-color);
    line-height: 50px;
    margin-top: 0;
}

h2, h3 {
    color: var(--main-color);
}

/* Header */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.logo {

}
.fab {
    text-align: center;
    width: 32px;
    height: 32px;
    margin: 4px;
    color: white;
    background-color: var(--main-color);
    line-height: 2 !important;
    border-radius: 5px;
}
.fab:hover {
    color: var(--main-color);
    background-color: white;
}


.header-contact {
    color: var(--main-color);
}

/* Menu */

.menu {
    background-color: var(--main-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.menu-list {
    display: flex;
    justify-content: space-between;
}
.menu-list__link {
    display: block;
    position: relative;
    padding: 0.2em 0;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.menu-list__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: white;
    transition: opacity 300ms, transform 300ms;
    transform: scale(0);
}

.menu-list__link:hover::after,
.menu-list__link:focus::after {
    transform: scale(1);
}

.menu-close-button, .menu-button {
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    display: none;
}

/* Main */

.container, .main{

    padding-left: clamp(15px, 10%, 150px);
    padding-right: clamp(15px, 10%, 150px);
}

.main {
    padding-top: clamp(15px, 10%, 50px);
    padding-bottom: clamp(15px, 10%, 50px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    font: normal 18px / 29px Helvetica, Arial, Verdana, sans-serif;
}
.main__left {
    width: 70%;
    float: left;
    height: auto;
    text-align: justify;
}

.main__side-bar {
    width: clamp(250px, 30%, 350px);
    float: left;
    padding: 20px;
    margin-left: 30px;
    background-color: var(--main-color);
    color: white;
    opacity: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
}
.main__side-bar>hr{
    width: 100%;
}
.car-icon{
    fill: var(--main-color);
    display: block;
    margin: 5px auto 5px auto;
    width: 20px;
}
.main-text{
    display: flex;
    justify-content: space-between;
}
.text-block{
    display: flex;
    flex-direction: column;
    width: 55%;

}

.img-block {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.index-img{

    object-fit: cover;
    height: 20vh;
    float: left;
    margin: 18px 18px 18px 0;
    box-shadow: rgb(0 0 0 / 19%) 0px 10px 20px 0px, rgb(0 0 0 / 23%) 0px 6px 6px 0px;
}

/* Side bar */

.side-bar-link{
    width: 80%;
}

.side-bar-img {
    object-fit: cover;
    margin-bottom: 10px;
}

.side-bar-header {
    color: white;
    font-weight: 300;
    font-size: 20px;
}
.side-bar-text{
    font-size: 18px;
}
.side-bar-services{
    display: inline-block;
    height: 71px;
    width: 80%;
    background-color: white;
    color: var(--main-color);
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    line-height: 71px;
}

.side-bar-services:hover{
    border: 2px solid #315082;
}


/* Location */

.img-item{
max-width: 140px;
    display: flex;
    overflow: hidden;
    position: relative;
    margin: 15px 15px 0 0;
    box-shadow: rgb(0 0 0 / 19%) 0px 10px 20px 0px, rgb(0 0 0 / 23%) 0px 6px 6px 0px;
}
.location-img-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 20%;
}
.location-text-block{
    font: normal 18px / 29px Helvetica, Arial, Verdana, sans-serif;
    width: 75%;
}
.location-main-text{
    display: flex;
}
.text-block>ol {
    margin: 0;
}



/* Gallery */
.gallery-list{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: space-around;


}
.gallery-item__container{
    display: block;
    background-color: white;
    padding: 10px;
    margin: 10px;
    width: 220px;
}
.gallery-item{
    display: flex;
    overflow: hidden;
    position: relative;
    height: 157px;
    width: 200px;
}


.img-item:hover .location-img-hover{
    opacity: 1;
}


.gallery-item-hover, .location-img-hover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.7);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity .5s ease;
    z-index: 2;
}
.gallery-item:hover .gallery-item-hover{
    opacity: 1;
}
.gallery-item:hover img{
    transform: scale(1.3) rotate(5deg);
}
.gallery-item img, .img-item img{
    max-width: 100%;
    object-fit: cover;
    height: auto;
    transition: all .5s ease;
}

img.mfp-img{
    height: 900px !important;
}


.gallery-text {
    font-size: 14px;
}


/* Location */

.direction_points {
    font-weight: bold;
    color: var(--main-color);
    margin-top: 15px;
}

.map{
    margin: 20px 0;
    -webkit-box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
    box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
}

/* Contact */

.address{
    display: flex;

}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: space-between;
}
.contact-address {
    width: 60%;
    text-align: left;
}
.contact-address>p{
    margin: 0 15px 15px 0;
}
.contact-img {

    width: 40%;
    height: 250px;
    box-shadow: 4px 4px 8px 0 rgb(34 60 80 / 20%);
}

.contact-img>img{
    object-fit: cover;
    height: 100%;
}

.contact-form h2{
    color: var(--main-color);
    text-align: center;
    font-size: 35px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.status-msg {
    font-size: 16px;
    padding: 6px;
    border: 2px dashed;
    background: #fff;
    margin-bottom: 10px;
}
.status-msg.error{
    color: #EA4335;
}
.status-msg.success{
    color: #34A853;
}
.form label {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 5px;
    color: #333333;
    display: block;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    outline: none;
    width: 100%;
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 15px;
    color: #333;
    font-family: inherit;
    text-align: left;
    -webkit-appearance: none;
    background: rgba(255, 154, 66, 0.02);
    display: grid;
    align-items: center;
    padding: 12px 20px 12px 15px;
    border: 1px solid #a5b0cb;
    border-radius: 4px;
}

.form textarea {
    height: 125px;
    resize: none;
    background: rgba(255, 154, 66, 0.02);
    display: grid;
    align-items: center;
    padding: 12px 15px;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form textarea:focus {
    border: 1px solid var(--main-color);
    background: rgb(230 236 255);
}

.form-input {
    margin-bottom: 15px;
}

.send-btn {
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 12px 27px;
    font-weight: bold;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    color: #fff;
    background: var(--main-color);
    display: inline-block;
    border-radius: 4px;
    transition: 0.3s ease;
    margin-top: 17px;
}
.send-btn:hover {
    color: var(--main-color);
    background: #ffffff;
    border: 2px solid #315082;
    transition: 0.3s ease;
}

/* Services */
.services-img-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.services-text{
    width: 48%;
    margin: 0;
}

.services-img{
    object-fit: cover;
    height: 180px;
    width: 48%;
    box-shadow: rgb(0 0 0 / 19%) 0px 10px 20px 0px, rgb(0 0 0 / 23%) 0px 6px 6px 0px;
}

/* Shop */

#auction-nudge-items {
    width: 100%;
    color: var(--main-color);
    margin-top: 40px;
}

#an-controls-top{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.an-cats-dropdown{
    width: 240px;
    margin-right: 10px;
}

#an-cats-nav {
    width: 240px;
    height: 41px;
    color: var(--main-color);
}

#an-search-wrap {
    display: inline-block;
    float: right;
    width: 50%;
    min-width: 240px;
    text-align: right;

}

#an-search-submit {
    background-color: var(--main-color);
    color: white;
    display: inline-block;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 0 2px 2px 0;

}

#an-search-box {
    display: inline-block;
    color: var(--main-color);
    border: solid 1px var(--main-color);
    border-radius: 2px 0 0 2px;
    background: rgba(255, 255, 255, 0.8);
    width: 240px;
    height: 41px;
    padding: 5px;
    text-align: left;
}

.an-page-wrap{
    display: flex;
    justify-content: space-between;
    margin: 10px 0 10px 0;
    padding: 8px;
    background: #2e3f7f08;
}

.an-inactive{
    opacity: 0.2;
    cursor: not-allowed;
}

.an-page-prev{
    cursor: not-allowed;;
}

.an-page-next{
    cursor: pointer;
}

#an-item-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item{
    width: 320px;
    background: #F8F8F8;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 20px;
    text-align: left;
    box-shadow: 4px 4px 8px 0 rgba(34, 60, 80, 0.2);
}

.item>li{
    text-align: center;
}


.image-container{
    width: 320px;
    height: 415px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.image-container>a{
    height: 400px;
    display: flex;
    align-items: center;
}

.title{
    background-color: var(--main-color);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title>a {
    color: white;
    padding: 5px;
}
.price, .ends {
    padding: 5px;
}
a[href="https://www.auctionnudge.com/tools/your-ebay-items"] {
    display: none !important;
}

/* Footer */

.footer {
    margin-top: 10px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.footer__top {
    background-image: url(../img/footer.png);
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    background-size:cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__top-left{
    width: min(28%, 255px);
}
.footer__menu-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;

}
.footer__menu-list__link {
    display: inline-block;
    width: 100%;
    position: relative;
    padding: 0.2em;
}

.footer__menu-list__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: var(--main-color);
    transition: opacity 300ms, transform 300ms;
    transform: scale(0);
}

.footer__menu-list__link:hover::after,
.footer__menu-list__link:focus::after {
    transform: scale(1);
}
.footer__center{
    width: 40%;
}
.footer__center-text{
    line-height: 26px;
    padding: 4px;
    width: 100%;
    text-align: center;
}

.footer__top-right {
    display: flex;
    width: min(28%, 250px);;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.footer__top-right, .footer__menu-list__link, .footer__center-text  {
    color: var(--main-color);
    background-color: white;
    opacity: 80%;
    font-weight: 700;
    border-radius: 5px;

    -webkit-box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
    box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);

}
.footer__top-right, .footer__menu-list {
    height: 250px;
    margin: 15px 0;

}

.footer__top-right-text {
    margin: 0 10px;
}

.footer__contact-header{
    margin: 0 0 8px 0;
    font-size:24px;
    font-style: normal;
}
.footer__contact{
    margin: 0;
    font-size: 15px;
    font-style: normal;
    line-height: 25px;
}

.payment{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.payment__icon {
    width: 60px;
    height: auto;

}


.footer_bottom {
    height: auto;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    line-height: 19px;
    color: #FBFBFB;
    margin: 0;
}
.footer_bottom__left{
    font-weight: 300;
}
.footer_fab{
    color: var(--main-color);
    background-color: white;
    margin: 16px 4px;
}

.footer_fab:hover {
    color: white;
    background-color: var(--main-color);
}

@media (max-width: 1270px){
    .main-text{
        flex-direction: column;

}
    .img-block{
        flex-direction: row;
    }
    .text-block{
        width: 100%;
    }
    .index-img {
        width: 75%;
    }
}

@media screen and (max-width: 1000px) {

    .gallery-item{
        width: 100%;
        height: auto;
    }
    .gallery-item__container{
        width: 80%;
        height: auto;
    }

    .location-main-text{
        flex-direction: column;
    }
    .location-img-block {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .location-text-block{
        width: 100%;
    }

    .footer__top{
        flex-direction: column;
        justify-content: flex-end;
    }
    .footer__top-left {
        width: 100%;
    }
    .footer__menu-list {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        text-align: center;
        justify-content: space-around;
        align-items: center;
        margin: 10px 0 10px 0;
    }
    .footer__center {
        width: 100%;
    }
    .footer__center-text{

    }
    .payment__icon {
        width: 40px;
        height: auto;
    }

    .footer__menu-list__link {
        min-width: 100px;
        margin: 5px;
        padding: 5px 10px;
        box-shadow: none;
        border: solid 1px var(--main-color);
    }
    .footer__top-right{
        padding: 5px;
        width: 100%;
        height: auto;
    }
    .footer__contact-header{
        display: none;
    }
    .footer__top-right-text {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer__contact{
        margin: 5px;
    }

    .footer_fab{
        margin: 16px;
    }
}
@media (max-width: 820px){


    .header-social{
        display: flex;
        flex-direction: column;

    }
    .header-contact{
        text-align: right;
    }
    .menu-container{
        display: flex;
        justify-content: center;
    }
    .menu-list {
        flex-direction: column;
        align-items: center;
        height: 70vh;

    }
    .menu-bar{
        background-color: var(--main-color);
        position: fixed;
        min-width: 320px;
        top: 0;
        right: -100%;
        padding: 15% 50px 50% 50px;
        transition: 0.5s;
        transition-property: right;
    }
    .menu-bar.active{
        right: 0;
    }
    .menu-close-button {
        position: absolute;
        top: 0;
        left: 0;
        margin: 25px;
    }

    .menu-list__link{
        margin: 10px;
    }
    .menu-close-button, .menu-button {
        display: block;
    }
    .main {
        flex-direction: column;
    }
    .main__left{
        width: 100%;
    }
    .main__side-bar{
        width: 100%;
        margin: 20px 0;
    }
}



    @media (max-width: 768px) {
        .contact-form {
            margin: 0;
        }

        .footer_bottom {
            flex-direction: column-reverse;
        }

        .footer_fab {
            margin-bottom: 0;
        }
    }

@media (max-width: 640px) {
    .header-top {
        flex-direction: column;
    }

    .header-social {
        flex-direction: row;
    }

    .header-contact > p {
        text-align: center;
        margin: 5px;
    }

    .address {
        flex-direction: column;
        align-items: center;
    }

    .contact-address {
        width: 100%;
    }

    .contact-img {
        width: 100%;
    }
    .services-img-container{
        flex-direction: column;
    }
    .services-img-container-reverse{
        flex-direction: column-reverse;
    }
    .services-img{
        width: 100%;
        margin-bottom: 15px;
    }
    .services-text{
        width: 100%;
    }
}

@media (max-width: 620px) {
        .submit-group {
            flex-direction: column;
        }


}

@media (max-width: 404px) {
    .img-item {
        max-width: 80px;
    }

}
