/*
Theme Name: Chrome Showroom
Author: LJ
*/

:root {
    --full-width: 100%;
    --static-width: calc(1440px - 20px);
    --calc-width: calc(100% - 100px);
    --text-color: #333333;
    --gray: #eeeeee;
    --white: #fff;
    --black: #000;
}

html, body, main {
    width: var(--full-width);
    height: auto;
    margin: 0 auto;
    background: var(--white);
    font-size: 18px;
}

h1 {
    margin: 0;
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 3.1rem;
}

h2 {
    margin: 0;
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 3.1rem;
}

h3.white {
    margin: 0;
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 9rem;
    font-weight: 800;
    line-height: 9.2rem;
}

h3.gray {
    margin: 0;
    color: var(--gray);
    font-family: 'Raleway', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    line-height: 8.2rem;
}

h4 {
    margin: 0;
    color: var(--black);
    font-family: 'Raleway', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 800;
}

p, span, a, ul li, ul li a {
    margin: 0;
    color: var(--text-color);
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    line-height: 1.5rem;
}

a.underline {
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0 0 2px 0;
}

a.underline:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 0;
    position: absolute;
    background: var(--black);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

a.underline:hover:after { 
    width: var(--full-width); 
    left: 0; 
}

:focus {
    outline: none;
}

.flex {
    display: flex;
}

.full_container {
    width: var(--full-width);
}

.calc_container {
    width: var(--calc-width);
    margin: 0 auto;
}

.static_container {
    width: var(--static-width);
    margin: 0 auto;
}

/*Page*/

#intro {
    padding: 140px 0 60px 0;
    text-align: center;
}

#banner .calc_container {
    height: calc(100vw*2/5);
}

#banner .calc_container img {
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.owl-carousel.owl-theme.owl-loaded.owl-drag, .owl-stage-outer, .owl-item, .owl-carousel .owl-stage, .item {
    height: 100%;
}

.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
}

.owl-prev {
    left: 0;
    position: absolute;
}

.owl-next {
    right: 0;
    position: absolute;
}

.owl-nav span, .owl-prev span {
    font-size: 3rem;
    color: #fff;
}

#text_section .calc_container.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 150px 0;
}

.text_section_left, .text_section_right {
    flex: 0 50%;
}

.text_section_left_container {
    width: 630px;
}

.text_section_right_container {
    margin-left: auto;
}

#logo_section .calc_container.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    overflow: hidden
}

.box_logo {
    flex: 0 8%;
}

.box_logo.small {
    flex: 0 6%;
}

.box_logo.big {
    flex: 0 10%;
}

.box_logo img {
    width: var(--full-width);
}

#image_section {
    padding: 100px 0;
}

#image_section .calc_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

#instafeed_container a {
    overflow: hidden;
}

#instafeed_container a img {
    transform: scale(1.4);
    transition: 0.7s;
    transition-timing-function: cubic-bezier(0.1, 0.2, 0.2, 0.1);
}

#instafeed_container a:hover img {
    transform: scale(1);
}

#instafeed_container a::after {
    background-color: transparent;
}

#instafeed_container a:first-of-type {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row: 3 / 5;
}

#instafeed_container a:nth-of-type(2) {
    grid-column: 3;
    grid-row: 3;
}

#instafeed_container a:nth-of-type(3) {
    grid-column: 4;
    grid-row: 3;
}

#instafeed_container a:nth-of-type(4) {
    grid-column: 4;
    grid-row: 4;
}

#instafeed_container a:last-of-type {
    grid-column: 3;
    grid-row: 4;
}

#instafeed_container a img {
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
}

.image_box_section {
    flex: 0 48%;
    height: calc(48%*2/2);
    border: 1px solid #cecece;
}

.image_box_section:first-of-type, .image_box_section:nth-of-type(2) {
    margin-bottom: 3%;
}

/*Cookie*/

#cookie_box {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 350px;
    height: 450px;
    background-color: #000;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cookie_logo img {
    width: 100px;
    background-color: var(--white);
}

.cookie_text p, .cookie_text a {
    color: var(--white);
    font-size: 0.8rem;
    line-height: 1rem;
    margin: 20px 0;
}

.cookie_text a:hover {
    text-decoration: none;
}

.accept_button_cookie {
    width: 150px;
    height: 40px;
    border: 1px solid #fff;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.8em;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.close_icon_cookie {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    border: 2px solid;
    padding: 2px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.close_icon_cookie:hover {
    color: #000;
    background-color: var(--white);
}

.cookie_container.flex {
    width: calc(100% - 30px);
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

#cookie_container {
    display: block;
    width: 1280px;
    margin: 100px auto;
}

.cookie_title {
    margin-bottom: 50px;
}

@media screen and (max-width: 1440px) {

    :root {
        --static-width: calc(1280px - 20px);
    }

    h3.white, h3.gray {
        font-size: 8rem;
        line-height: 8.2rem;
    }

    /*Page*/

    #text_section .calc_container.flex {
        padding: 100px 0;
    }

    .text_section_left_container {
        width: auto;
    } 

    .text_section_right_container {
        padding-top: 10px;
    }

    .text_section_right_container p {
        padding-left: 30px;
    }

    #image_section {
        padding: 50px 0 100px 0;
    }

}

@media screen and (max-width: 1280px) {

    :root {
        --static-width: calc(1024px - 20px);
    }

    h3.white, h3.gray {
        font-size: 5.2rem;
        line-height: 5.5rem;
    }

    /*Cookie*/

    #cookie_container {
        width: 1024px;
    }

}

@media screen and (max-width: 1024px) {

    h3.white, h3.gray {
        font-size: 5rem;
        line-height: 5.2rem;
    }

    a {
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    a.underline:after {    
        background: transparent;
    }

    a.underline:hover {
        opacity: 0.6;
    }

    /*Page*/

    #text_section .calc_container.flex {
        padding: 75px 0;
    }

    .text_section_left, .text_section_right {
        flex: 0 100%;
    }

    .text_section_right_container p {
        padding-left: 0;
        padding-top: 30px;
    }

    #logo_section .calc_container.flex {
        background: var(--gray);
        justify-content: space-around;
    }

    .box_logo:first-of-type, .box_logo:nth-of-type(2), .box_logo:nth-of-type(3) {
        flex: 0 33.3%;
        margin: 40px 0;
        text-align: center;
    }

    .box_logo:nth-of-type(8), .box_logo:nth-of-type(9), .box_logo:nth-of-type(10), .box_logo:last-of-type {
        flex: 0 25%;
        text-align: center;
        padding: 15px 0;
    }

    .box_logo img {
        width: 170px;
    }

    .box_logo.small img {
        width: 150px;
    }

    .box_logo:nth-of-type(4), .box_logo:nth-of-type(5), .box_logo:nth-of-type(6) {
        flex: 0 20%;
    }

    .box_logo:nth-of-type(7) {
        flex: 0 14%;
    }

    /* .box_logo, .box_logo.big, .box_logo.small {
        flex: 0 33.3%;
        text-align: center;
        margin: 30px 0;
    }

    .box_logo.small img, .box_logo.big img, .box_logo img {
        width: 160px;
    } */

    #image_section .calc_container {
        gap: 10px;
    }

    /*Cookie*/

    #cookie_container {
        width: var(--calc-width);
    }

}

@media screen and (max-width: 834px) {

    :root {
        --calc-width: calc(100% - 50px);
    }

    /*Page*/

    .box_logo img {
        width: 150px;
    }

    .box_logo.small img {
        width: 130px;
    }

}

@media screen and (max-width: 768px) {

    h3.white, h3.gray {
        font-size: 4.5rem;
        line-height: 4.7rem;
    }

    /*Page*/

    #banner .calc_container {
        height: calc(100vw*2/4);
    }

    #image_section .calc_container {
        gap: 5px;
    }

    .box_logo img {
        width: 110px;
    }

    .box_logo.small img {
        width: 90px;
    }

}

@media screen and (max-width: 600px) {

    :root {
        --calc-width: calc(100% - 30px);
    }

    h1, h2 {
        font-size: 1.9rem;
        line-height: 2.4rem;
    }

    h3.white, h3.gray {
        font-size: 3.5rem;
        line-height: 4.2rem;
    }

    /*Page*/

    #intro {
        padding: 100px 0 60px 0;
    }

    .owl-nav {
        top: 45%;
    }

    .owl-nav span, .owl-prev span {
        font-size: 2rem;
    }

    #text_section .calc_container.flex {
        padding: 50px 0;
    }

    .box_logo:first-of-type, .box_logo:nth-of-type(2), .box_logo:nth-of-type(3) {
        flex: 0 30%;
        text-align: center;
    }

    .box_logo:nth-of-type(8), .box_logo:nth-of-type(9), .box_logo:nth-of-type(10), .box_logo:last-of-type {
        flex: 0 21%;
    }

    .box_logo:nth-of-type(4), .box_logo:nth-of-type(5), .box_logo:nth-of-type(6), .box_logo:nth-of-type(7) {
        flex: 0 20%;
        text-align: center;
    }

    .box_logo img, .box_logo.small img {
        width: 90%;
    }

    #image_section {
        padding: 50px 0 70px 0;
    }

    #instafeed_container a:first-of-type {
        grid-row: 3;
    }

    #instafeed_container a:nth-of-type(2), #instafeed_container a:nth-of-type(5), #instafeed_container a:last-of-type {
        grid-column-start: 3;
        grid-column-end: 5;
    }

    #instafeed_container a:nth-of-type(3) {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row: 4;
    }

    #instafeed_container a:nth-of-type(4) {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row: 5;
    }

    #instafeed_container a:nth-of-type(5) {
        grid-row: 5;
    }

    /*Cookie*/

    #cookie_box {
        width: var(--calc-width);
        height: auto;
        padding: 40px 0;
        margin: 0 auto;
        right: 0;
        left: 0;
        bottom: 15px;
    }

    .cookie_text {
        margin: 20px 0;
        text-align: center;
    }

}

@media screen and (max-width: 428px) {

    h1, h2 {
        font-size: 1.6rem;
        line-height: 2.1rem;
    }

    /*Page*/

    #intro {
        padding: 80px 0 60px 0;
    }

    .box_logo:nth-of-type(4), .box_logo:nth-of-type(5), .box_logo:nth-of-type(6) {
        flex: 0 23%;
    }

    .box_logo img, .box_logo.small img {
        width: calc(100% - 20px);
    }

    .box_logo.big img {
        width: 100%;
    }

    .box_logo:first-of-type img, .box_logo:last-of-type img {
        width: 70px;
    }

}

@media screen and (max-width: 320px) {

    html, body, main {
        font-size: 16px;
    }

    h3.white, h3.gray {
        font-size: 3rem;
        line-height: 4rem;
    }

    /*Page*/

    .box_logo:first-of-type, .box_logo:nth-of-type(2), .box_logo:nth-of-type(3) {
        margin: 20px 0;
    }

    .box_logo:first-of-type img, .box_logo:nth-of-type(2) img, .box_logo:nth-of-type(3) img, .box_logo:nth-of-type(8) img, .box_logo:nth-of-type(9) img, .box_logo:last-of-type img {
        width: 60px;
    }

}