@import"./nav_bar.css";
@import"./footer.css";
@font-face {
    font-family: "F1_bold";
    src: url("../font/Formula1-Bold.otf");
    /* src: url("https://alldata.sgp1.digitaloceanspaces.com/fonts/NotoSerifTC/NotoSerifTC-Light.otf"); */
}

@font-face {
    font-family: "F1_regular";
    src: url("../font/Formula1-Regular.otf");
    /* src: url("https://alldata.sgp1.digitaloceanspaces.com/fonts/NotoSerifTC/NotoSerifTC-Light.otf"); */
}


/* #container {
    position: absolute;
    z-index: -1;
    height: 100%;
} */

#main_header nav.main_nav ul.link_list>li>a.t_p {
    color: black;
    text-decoration: none;
}

#main_header nav.main_nav ul.link_list>li>a.o_f {
    color: black;
    text-decoration: none;
}

div.pic_container {
    position: relative;
    height: 45vw;
    padding-top: 8.4%;
    width: 100%;
    /* border: 1px solid red; */
    display: border-box;
}

div.pic_container>video {
    position: absolute;
    width: 100%;
    bottom: 0;
}

div.pic_container>h2 {
    position: absolute;
    color: white;
    font-family: 'f1_regular';
    top: 15%;
    left: 3%;
    font-size: 4vw;
    z-index: 2;
}

div.pic_container>h1 {
    position: absolute;
    color: white;
    font-family: 'f1_regular';
    font-size: 6vw;
    z-index: 1;
    right: 2%;
    bottom: 8%;
    text-shadow: black 0.1em 0.1em 0.2em;
}

img.img_flow {
    /* border: 1px solid brown; */
    min-height: 100%;
    width: 100%;
    font-size: 0px;
}

div.driving_experience {
    position: relative;
    /* border: 1px solid red; */
    height: 49vw;
    background-image: url(../pictures/mc_sen.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

div.driving_experience>h1 {
    font-family: 'f1_regular';
    color: white;
    position: absolute;
    text-shadow: black 0.1em 0.1em 0.2em;
    left: 1%;
    font-size: 3.5vw;
}

ul.steps {
    color: white;
    font-family: 'f1_regular';
    position: absolute;
    right: 5%;
    top: 25%;
    font-size: 2.5vw;
    text-align: center;
}

ul.steps>li {
    list-style: none;
    text-shadow: black 0.1em 0.1em 0.2em;
}

.arrow {
    display: inline-block;
    width: 1vw;
    height: 1vw;
    border-top: 4px solid rgb(216, 40, 28);
    border-right: 4px solid rgb(216, 40, 28);
}

.arrow-bottom {
    transform: rotate(135deg);
    text-shadow: black 0.1em 0.1em 0.2em;
}

div.driving_experience a.book {
    /* border: 1px solid black; */
    font-size: 2vw;
    font-family: "F1_bold";
    text-decoration: none;
    color: black;
    left: 2%;
    bottom: 5%;
    position: absolute;
    color: rgb(216, 40, 28);
    z-index: 5;
    text-shadow: black 0.1em 0.1em 0.2em;
}


/* div.driving_experience a.book:hover {
    transform: scale(1.05, 1.05);
    transition: all 0.3s ease-out;
} */

div.driving_experience a.book div.arrows {
    display: inline;
    color: white;
}

div.scroll_msg {
    box-sizing: border-box;
    width: 100%;
    height: 26vw;
    /* border: 1px solid red; */
    overflow: hidden;
    background-image: url("../pictures/3cars_bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    vertical-align: bottom;
    z-index: -1;
}

.bb::before,
.bb::after,
.bb {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/* body {
    background-color: black;
} */

.bb {
    width: 30vw;
    height: 18vw;
    margin: auto;
    /* background: url("//blog.codepen.io/wp-content/uploads/2012/06/Button-White-Large.png") no-repeat 50%/70% rgba(0, 0, 0, 0.1); */
    color: red;
    box-shadow: inset 0 0 0 1px white;
}

.bb::before,
.bb::after {
    content: "";
    z-index: -1;
    margin: -5%;
    box-shadow: inset 0 0 0 2px;
    animation: clipMe 8s linear infinite;
}

.bb::before {
    animation-delay: -4s;
}

@keyframes clipMe {
    0%,
    100% {
        clip: rect(0px, 220px, 2px, 0px);
    }
    25% {
        clip: rect(0px, 2px, 220px, 0px);
    }
    50% {
        clip: rect(218px, 220px, 220px, 0px);
    }
    75% {
        clip: rect(0px, 220px, 220px, 218px);
    }
}

div.bb>h1 {
    color: white;
    font-family: 'f1_regular';
    text-shadow: black 0.1em 0.1em 0.2em;
    font-size: 2vw;
    right: 0;
    margin: 0;
    margin-top: 18px;
}

div.bb>h4 {
    color: white;
    font-family: 'Arimo', sans-serif;
    line-height: 1.5;
    width: 80%;
    font-size: 1vw;
    margin: 40px auto;
    text-align: initial;
    margin-top: 5px;
}

@media (max-width: 1120px) {
    .bb {
        width: 40vw;
        height: 9vw;
        color: transparent;
    }
    div.bb>h4 {
        display: none;
        /* border: 2px solid red; */
    }
    div.bb>h1 {
        margin-top: 8%;
    }
}

@media (max-width: 524px) {
    div.bb>h1 {
        margin-top: 3.5%;
        /* border: 1px solid red; */
    }
    .bb {
        width: 80vw !important;
    }
}

div.new_arrive {
    position: relative;
    /* border: 2px solid green; */
    height: 49vw;
    background-image: url(../pictures/fxx.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

div.new_arrive>h1 {
    position: absolute;
    font-size: 4vw;
    color: white;
    font-family: 'f1_regular';
    left: 6%;
    margin: 0;
    top: 2%;
}

div.new_arrive>h2 {
    position: absolute;
    font-size: 5vw;
    color: white;
    font-family: 'f1_regular';
    left: 25%;
    top: 4%;
}

div.new_arrive>img {
    position: absolute;
    width: 50vw;
    right: 5%;
    top: 15%;
}

div.new_arrive>p {
    color: white;
    font-family: 'Arimo', sans-serif;
    width: 20%;
    position: absolute;
    line-height: 2;
    bottom: 12%;
    left: 2%;
    text-align: center;
}

div.new_arrive a.book {
    /* border: 1px solid black; */
    font-size: 2.8vw;
    font-family: "F1_bold";
    text-decoration: none;
    color: black;
    right: 10%;
    bottom: 5%;
    position: absolute;
    color: rgb(216, 40, 28);
    z-index: 5;
    text-shadow: black 0.1em 0.1em 0.2em;
}

div.new_arrive a.book div.arrows {
    display: inline;
    color: white;
}

@media screen and (max-width: 1600px) {
    div.new_arrive>p {
        /* border: 1px solid red; */
        line-height: 1.3;
    }
}

@media (max-width: 1400px) {
    div.new_arrive>p {
        /* border: 1px solid green; */
        line-height: 1.2;
    }
}

@media (max-width: 1280px) {
    div.new_arrive>p {
        /* border: 1px solid yellow; */
        line-height: 1.2;
    }
}

@media (max-width: 1270px) {
    div.new_arrive>p {
        display: none;
    }
}


/* 數字動畫 */

ul.r_n {
    position: absolute;
    font-size: 2vw;
    color: white;
    top: 30%;
    list-style-type: none;
    left: 2%;
    margin: 0;
    padding: 0;
}

ul.r_n>li {
    font-family: 'f1_regular';
    margin-top: 5%;
}

span.tal {
    color: yellow;
    text-shadow: white 0.01em 0em 0.3em;
}

span.tal_n {
    color: yellow;
    text-shadow: white 0.01em 0em 0.3em;
}

@media (max-width: 432px) {
    ul.r_n {
        /* border: 1px solid red; */
        top: 15%;
        left: 5%;
    }
    div.new_arrive>h2 {
        margin: 0;
        left: 40%;
        top: 5%;
    }
}

div.track {
    height: 50vw;
    background: black;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background-image: url("../pictures/track_bgp.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    vertical-align: bottom;
    z-index: 1;
}

div.track>video {
    margin-top: 6.1%;
}

div.mask1 {
    position: absolute;
    width: 100%;
    height: 37vw;
    background-color: hsla(0, 0%, 0%, 0.8);
    bottom: 13.7%;
    z-index: 1;
    clip-path: polygon(92% 70%, 100% 0, 100% 100%, 0% 100%);
}

div.mask2 {
    position: absolute;
    width: 100%;
    height: 37vw;
    background-color: hsla(0, 0%, 0%, 0.8);
    bottom: 14%;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 7% 30%, 0% 100%);
}

div.track>h2 {
    color: white;
    font-size: 4vw;
    font-family: 'f1_regular';
    text-shadow: black 0.1em 0.1em 0.2em;
    position: absolute;
    left: 2%;
    top: 0;
    z-index: 3;
}

div.track>h1 {
    color: white;
    font-size: 4vw;
    font-family: 'f1_regular';
    text-shadow: black 0.1em 0.1em 0.2em;
    position: absolute;
    right: 2%;
    bottom: 4%;
    z-index: 3;
}

div.content1 {
    color: white;
    font-size: 1vw;
    font-family: 'f1_regular';
    position: absolute;
    left: 2%;
    top: 18%;
    z-index: 3;
    width: 30%;
    line-height: 1.5;
}

div.content2 {
    color: white;
    font-size: 1vw;
    font-family: 'f1_regular';
    position: absolute;
    right: 2%;
    bottom: 20%;
    z-index: 3;
    width: 30%;
    line-height: 1.5;
}

div.track a.book {
    /* border: 1px solid black; */
    font-size: 2vw;
    font-family: "F1_bold";
    text-decoration: none;
    color: black;
    right: 2%;
    bottom: 34%;
    position: absolute;
    color: rgb(216, 40, 28);
    z-index: 100;
    text-shadow: black 0.1em 0.1em 0.2em;
}

div.track a.book div.arrows {
    display: inline;
    color: white;
}

@media (max-width: 1100px) {
    div.content1 {
        display: none;
    }
    div.content2 {
        display: none;
    }
    div.track a.book {
        bottom: 20%;
    }
    div.mask2 {
        bottom: 14.5%;
    }
    div.mask1 {
        bottom: 14.5%;
    }
}

div.deco {
    height: 55vw;
    position: relative;
    background-image: url(../pictures/ie_18.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

div.deco>img {
    width: 100%;
    position: absolute;
    bottom: 0;
    clip-path: polygon(100% 1.5%, 0% 100%, 100% 100%);
}

div.deco>h1 {
    color: white;
    font-size: 4vw;
    font-family: 'f1_regular';
    position: absolute;
    left: 2%;
    top: 6%;
    z-index: 2;
    margin: 0;
    text-shadow: black 0.1em 0.1em 0.2em;
}

div.deco>h6 {
    color: white;
    font-size: 1.2vw;
    font-family: 'Arimo', sans-serif;
    position: absolute;
    left: 2%;
    top: 20%;
    z-index: 2;
    font-weight: 1;
    line-height: 1.5;
    margin: 0;
    width: 50%;
    text-shadow: black 0.1em 0.1em 0.2em;
}

div.deco>h2.en {
    color: rgba(255, 255, 255, 0.15);
    font-family: 'f1_regular';
    font-size: 5vw;
    position: absolute;
    z-index: 2;
    right: 52%;
    bottom: 8%;
    transform: rotate(-29deg);
}

div.deco>h2.cn {
    color: rgba(255, 255, 255, 0.15);
    font-family: 'f1_regular';
    font-size: 5vw;
    position: absolute;
    z-index: 2;
    right: 40%;
    bottom: 2%;
    transform: rotate(-29deg);
}

div.deco>h2.jp {
    color: rgba(255, 255, 255, 0.15);
    font-family: 'f1_regular';
    font-size: 5vw;
    position: absolute;
    z-index: 2;
    right: 10%;
    bottom: 40%;
    transform: rotate(-29deg);
}

div.deco>h2.ru {
    color: rgba(255, 255, 255, 0.15);
    font-family: 'f1_regular';
    font-size: 5vw;
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: 18%;
    transform: rotate(-29deg);
}

div.deco>h2.kr {
    color: rgba(255, 255, 255, 0.15);
    font-family: 'f1_regular';
    font-size: 3vw;
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: 8%;
    transform: rotate(-29deg);
}


/* html,
body {
    height: 100%;
} */


/* glitch */

div.instructor_stig {
    height: 50vw;
    background-color: black;
    position: relative;
}

div.glitch {
    position: relative;
    /* border: 2px solid green; */
    height: 41vw;
    /* background-color: black; */
}

img.hidden {
    width: 21%;
    position: absolute;
    left: 40%;
    bottom: 0;
    visibility: hidden;
    border: 2px solid red;
}

div.glitch-image {
    background-image: linear-gradient(to right, #020725 0%, #000 100%);
    /* border: 5px solid yellow; */
    /* width: 300px; */
}

div.instructor_stig>video {
    position: absolute;
    bottom: 18%;
}

[data-js="glitch-image"] {
    /* position: relative; */
    width: 100%;
}

[data-js="glitch-image"] canvas {
    position: absolute;
    bottom: 0;
    left: 40%;
    z-index: 1;
    width: 22%;
    /* border: 5px solid red; */
}

div.instructor_stig>h1.topic {
    color: white;
    font-size: 4vw;
    font-family: 'f1_regular';
    text-shadow: black 0.1em 0.1em 0.2em;
    position: absolute;
    left: 2%;
    top: 1%;
    z-index: 0;
    margin: 0;
}

.area {
    position: absolute;
    right: 37.7%;
    bottom: 13%;
    z-index: 3;
    margin: 0;
    font-size: 5vw;
    color: #fff;
    letter-spacing: -7px;
    font-weight: 700;
    font-family: 'f1_regular';
    text-transform: uppercase;
    animation: blur 20s ease-out infinite;
    text-shadow: 0.1px 0.1px 5px black, black 0.1em 0.1em 0.2em;
}

@keyframes blur {
    from {
        text-shadow: 0px 0px 10px #fff, 0px 0px 10px #fff, 0px 0px 25px #fff, 0px 0px 25px #fff, 0px 0px 25px #fff, 0px 0px 25px #fff, 0px 0px 25px #fff, 0px 0px 25px #fff, 0px 0px 50px #fff, 0px 0px 50px #fff, 0px 0px 50px #7B96B8, 0px 0px 150px #7B96B8, 0px 10px 100px #7B96B8, 0px 10px 100px #7B96B8, 0px 10px 100px #7B96B8, 0px 10px 100px #7B96B8, 0px -10px 100px #7B96B8, 0px -10px 100px #7B96B8;
    }
}

div.instructor_stig>h1.stig {
    color: black;
    font-size: 5vw;
    font-family: 'f1_regular';
    text-shadow: rgb(255, 255, 255) 0.01em 0.01em 0.2em;
    position: absolute;
    left: 37.7%;
    bottom: 13%;
    z-index: 3;
    margin: 0;
}

div.instructor_stig>h6 {
    color: white;
    font-size: 1vw;
    font-family: 'Arimo', sans-serif;
    text-shadow: black 0.1em 0.1em 0.2em;
    position: absolute;
    left: 2%;
    bottom: 12%;
    width: 25%;
    z-index: 2;
    margin: 0;
    line-height: 1.5;
}

div.instructor_stig>h2 {
    color: white;
    font-size: 1vw;
    font-family: 'f1_regular';
    text-shadow: black 0.1em 0.1em 0.2em;
    position: absolute;
    right: 1%;
    top: 11%;
    z-index: 0;
    margin: 0;
}

div.instructor_stig a.book {
    /* border: 1px solid black; */
    font-size: 3vw;
    font-family: "F1_bold";
    text-decoration: none;
    color: black;
    right: 8%;
    bottom: 5%;
    position: absolute;
    color: rgb(216, 40, 28);
    z-index: 5;
    /* text-shadow: white 0.01em 0.01em 0.08em; */
}

div.instructor_stig a.book div.arrows {
    display: inline;
    color: white;
}

@media (max-width: 1605px) {
    .area {
        right: 39%;
        /* border: 1px solid red; */
    }
}

@media (max-width: 990px) {
    .area {
        right: 40%;
        /* border: 1px solid yellow; */
    }
}

@media (max-width: 790px) {
    .area {
        right: 41%;
        /* border: 1px solid green; */
    }
    div.instructor_stig>h6 {
        display: none;
    }
}

@media (max-width: 945px) {
    div.instructor_stig>h2 {
        border: 1px solid red;
        display: none;
    }
    div.instructor_stig>h1.topic {
        top: 4%;
    }
}

@media (max-width: 576px) {
    div.deco {
        display: none;
    }
}

@media (max-width: 556px) {
    .area {
        right: 42%;
        /* border: 1px solid green; */
    }
}

@media (max-width: 556px) {
    .area {
        right: 39%;
        width: 20%;
        /* border: 1px solid green; */
    }
}

@media (max-width: 456px) {
    .area {
        right: 42%;
        width: 20%;
        /* border: 1px solid green; */
        font-weight: 0;
        letter-spacing: 0px;
        white-space: nowrap;
    }
}

div.footer {
    margin: 0;
}