*{
    margin: 0;
    padding: 0;
    z-index: 50;

    --color-base: 29,29,39;
    --color-primary: 61,65,88;
    --color-white: 250,250,250;
    --color-brown: 159, 139, 119;
    --color-gray-blue: 53, 56, 75;
    --color-black: 10,10,10;

    color: rgb(var(--color-white));
}

:root{
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    width: 100%;
}


html{
    width: 100vh;
}

body{
    width: 100%;
    display: flex;
    flex-direction: column;
    /* background-color: black; */
}

h1,h2,h3,h4{
    font-weight: 600;
}

p{
    font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
textarea{
    color: rgb(var(--color-black));
    margin: 0;
    font-size: 0.7rem;
    padding: 1rem 1rem;
    border-radius: 0.5rem;
    background-color: rgb(var(--color-white));
    width: 100%;
}

textarea{
    height: 10rem;
    resize: none;
    overflow-y: auto;
}

.link_button{
    padding: 0.7rem 2rem;
    border-radius: 100rem;
    border-width: 0.1rem;
    border-color: rgb(var(--color-brown));
    background-color: rgba(var(--color-brown));
    font-size: 0.6rem;
    transition: background-color ease-in-out .3s;
}

.link_button:hover{
    background-color: rgba(var(--color-brown),0);
}

.link_button.skelton{
    background-color: rgba(var(--color-brown),0);
}

.link_button.skelton:hover{
    background-color: rgba(var(--color-brown),1);
}

input[type="submit"].link_button{
    width: 10rem;
    text-align: center;
}
  
*::-webkit-scrollbar {
    scrollbar-width: thin;
}

*::-webkit-scrollbar-track {
    background: rgb(var(--color-base));
}

*::-webkit-scrollbar-thumb {
    background: rgb(var(--color-brown));
    border: 2px solid #232E33;
}

@supports not selector(::-webkit-scrollbar) {
    * {
        scrollbar-color: rgb(var(--color-base))
                rgb(var(--color-brown));
    }
}

img-comparison-slider:focus {
    outline: none;
}

header{
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
    z-index: 100;
}

header .top_bar{
    display: flex;
    width: 100%;
    justify-content: center;
    column-gap: 1.2rem;
    padding: 2rem;
}

header .top_bar a{
    color: rgb(var(--color-white));
    transition: color ease-in-out .5s;
    font-size: 0.8rem;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

header .top_bar a:hover{
    color: rgb(var(--color-brown));
}

header .slide_menu_toggle{
    visibility: hidden;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.1rem;
    height: 1.2rem;
    z-index: 130;
}

header .slide_menu_toggle div{
    width: 100%;
    height: 1.5px;
    background-color: rgba(var(--color-white),0.7);
    position: absolute;
    transition: top ease-in-out .5s, bottom ease-in-out .5s, opacity ease-in-out .5s, rotate ease-in-out .6s;
    border-radius: 100rem;
    user-select: none;
}
header .slide_menu_toggle div:nth-child(1){
    top: 0;
}
header .slide_menu_toggle div:nth-child(2){
    top: calc(50% - .5px);
}
header .slide_menu_toggle div:nth-child(3){
    top: calc(100% - 1px);
}

header .slide_menu_checkbox:checked ~ .slide_menu_toggle div:nth-child(1){
    top: calc(50% - 2px*0.5);
    rotate: 45deg;
}

header .slide_menu_checkbox:checked ~ .slide_menu_toggle div:nth-child(2){
    opacity: 0;
}

header .slide_menu_checkbox:checked ~ .slide_menu_toggle div:nth-child(3){
    top: calc(50% - 0.2rem*0.5);
    rotate: -45deg;
}

footer{
    height: 30rem;
    background-color: rgb(var(--color-base));
    position: relative;
}

footer .content_box{
    position: relative;
    height: 100%;
    max-width: none;
}

footer .content_box.with_bar::before{
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    top:0;
    left: 0;
    transform: scaleX(80%);
    background-color: rgb(var(--color-brown));
}

footer .logo_wrapper{
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0.6rem;
}

footer .logo_wrapper img{
    height: 4rem;
}
footer .logo_wrapper small{
    font-size: 0.5rem;
    font-weight: 200;
    color: rgb(var(--color-white));
}

footer .site_map_wrapper{
    position: absolute;
    top: 4rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
}

footer .site_map_list{
    display: flex;
    flex-direction: column;
    row-gap: 0.7rem;   
    min-width: 6rem;
}

footer .site_map_list h4{
    font-size: 0.6rem;
    color: rgb(var(--color-white));
    margin-bottom: 1.5rem;
}

footer .site_map_list a{
    font-size: 0.7rem;
    color: rgb(var(--color-brown));
    transition: color ease-in-out .3s;
}

footer .site_map_list a:hover{
    color: rgb(var(--color-white));
}


/* content box */


.header_box{
    width: 100%;
    height: 25rem;
    position: relative;
    background-color: rgb(var(--color-base));
}

.header_box .bg{
    position: absolute;
    height: 100%;
    width: 60%;
    right: 0;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0) 5%, rgba(0,0,0,1) 40%);
}

.header_box .bg img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.header_box .front{
    position: absolute;
    left: 0;
    width: 40%;
    height: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_box .front *{
    color: rgb(var(--color-white));
    white-space: nowrap
}

.content_box_wrapper{
    position: relative;
    width: 100%;
    min-height: 20rem;
    background-color: rgb(var(--color-base));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    row-gap: 1rem;
    align-items: center;
}
.content_box_wrapper .content_box:nth-last-child(1){
    margin-bottom: 2rem;
}

.content_box_wrapper.gray_blue{
    background-color: rgb(var(--color-gray-blue));
}
.content_box_wrapper.long{
    min-height: 40rem;
    row-gap: 3rem;
}
.content_box_wrapper.fullscreen{
    min-height: 100dvh;
}

.content_box_wrapper.fullscreen.with_bg{
    padding: 0;
}

.content_box_wrapper.fullscreen.with_bg img{
    position: absolute;
    z-index: 5;
    top: 0;
    height: 100dvh;
    width: 100%;
    object-fit: cover;
}
.content_box{
    width: 100%;
    max-width: 1300px;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}
.content_box.center{
    align-items: center;
    text-align: center;
}
.content_box.slider{
    width: 100%;
}

.content_box.row{
    display: flex;
    height: 20rem;
    flex-direction: row;
    column-gap: 1rem;
}

.content_box.row .row_item{
    display: flex;
    height: 100%;
    flex: 1;
}
.content_box.row .row_item.with_gap{
    row-gap: 2rem;
}

.content_box.margin{
    margin: 0 0 2rem 0;
    column-gap: 3rem;
}

.content_box .row_item.wide{
    width: 60rem;
}

.content_box.row .row_item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content_box.grid_parent{
    margin: 4rem 0;
}
.row_item.before_after_wrapper{
    display: flex;
    width: 100%;
    flex-direction: row;
    column-gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.row_item.before_after_wrapper div{
    position: relative;
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0.5rem;
}

.row_item.before_after_wrapper i{
    color: rgb(var(--color-brown));
}

.row_item.before_after_wrapper .before::after,
.row_item.before_after_wrapper .after::after{
    position: absolute;
    font-size: 0.7rem;
    bottom: -1.5rem;
}

.row_item.before_after_wrapper .before::after{
    content: "BEFORE";
}

.row_item.before_after_wrapper .after::after{
    content: "AFTER";
}


.content_box_wrapper.full{
    min-height: 30rem;
}
.content_box_wrapper.full .bg{
    position: absolute;
    object-fit: cover;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.content_box_wrapper.full .content_box{
    z-index: 10;
}

.content_box.item_list{
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    row-gap: 2rem;
    column-gap: 2rem;
    flex-wrap: wrap;
    /* justify-content: space-between; */
}

.content_box.item_list .item{
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

.content_box.item_list .item img{
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.content_box.desc_box{
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    row-gap: 2rem;
}


.image_row{
    width: 100%;
    height: 20rem;
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    justify-content: space-between;
}

.image_row div{
    display: flex;
    width: 100%;
    overflow-x: auto;
    column-gap: 1rem;
}

.image_row img{
    display: flex;
    height: 100%;
    object-fit: cover;
    flex-shrink: 1;
}

.item_box_col{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.item_box_row{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
}

h1.big{
    font-size: 2rem;
}

p.big{
    font-size: 1rem;
}

.font_crimson{
    font-family: "Crimson Text", serif;
}
.font_crimson.bold{
    font-weight: 600;
}

.font_normal{
    font-weight: normal;
}

.icon_arrow{
    content: url(../img/svg/arrow_right.svg);
    height: 3rem;
    width: 3rem;
    filter: invert(57%) sepia(5%) saturate(1351%) hue-rotate(349deg) brightness(97%) contrast(92%);
}

.icon_arrow.down{
    rotate:90deg;
}



.div_fit_elem{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.smt_show{
    display: none;
}

@media screen and (max-width: 600px) {
	/* CSS for SmartPhones */
    :root{
        font-size: 12px;
    }

    header .top_bar{
        visibility: hidden;
        position: absolute;
        height: 100dvh;
        flex-direction: column;
        row-gap: 3rem;
        justify-content: flex-start;
        background-color: rgb(var(--color-base));
        padding-top: 7rem;
        padding-left: 2rem;
        left: 130%;
        box-shadow: 0 0 10px rgba(0,0,0,0.9);
        transition: left cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.5s, visibility linear 0.5s;
    }
    header .top_bar a{
        font-size: 1.2rem;
    }

    header .slide_menu_checkbox:checked ~ .top_bar{
        visibility: visible;
        left: 40%;
    }

    header .slide_menu_toggle{
        visibility: visible;
    }

    footer{
        height: 25rem;
    }
    footer .site_map_wrapper{
        top: 2rem;
        right: 0;
    }
    footer .site_map_list{
        row-gap: 0.6rem;
        row-gap: 1rem;
    }
    footer .site_map_list h4{
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    footer .site_map_list a{
        font-size: 0.8rem;
    }

    .header_box .bg{
        width: 100%;
        mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%);
    }
    
    .header_box .front{
        align-items: end;
        justify-content: flex-start;
        padding: 0 0 2rem 2rem;
    }

    .header_box .front h1{
        font-size: 1.5rem;
    }

    .content_box{
        padding: 0 2rem;
    }

    .smt_hide{
        display: none !important;
    }
    
    .smt_show{
        display: inherit;
    }
}