html {scroll-behavior: smooth;}

#nav {z-index: 100;}
#navHome {z-index: 101;}
#text{z-index: 102;}
#mySidenav {z-index: 103;}
#loading {z-index: 200;}

#logo {position: fixed; top: 20px; left: 25px; width: fit-content; }


#loading {position: fixed; top: 50%; left: 50%;  width: 200px; height: 200px; transform: translate(-50%, -50%); background-image: url('../images/zlogo.png'); background-size: 55px; background-position: center 40px; background-repeat: no-repeat;}
#loading span {color: white; text-align: center;display: block; margin-top: 130px;}
/* #guide {display: none; transition: all 0.8s ease-in-out; margin-top: 90px;  border-radius: 7px; color: white; text-align: center; font-size: 16px; margin: 20px 0 10px 0; position: fixed; top: 40%; left: 50%; margin-left: -200px; width: 400px; padding: 20px; background-color: rgba(0, 0, 0, 0.7);} */
#guide {display: none; margin-top: 90px;  border-radius: 7px; color: white; text-align: center; font-size: 16px; position: fixed; top: 40%; left: 50%; margin-left: -200px; width: 400px; padding: 20px; background-color: rgba(0, 0, 0, 0.7);}
#guide p:nth-child(2) {font-size: 30px; margin-bottom: 10px;}
#guide b {color: #ffff00}
#guide #closeGuide {position: absolute; top: 10px; right: 10px; background-color: transparent; border: 1px solid white; color: white; width: 30px; height: 30px; box-sizing: border-box; padding: 0; text-align: center;}
#guide #closeGuide:hover {background-color: white; color: black;}
#guide.view {animation: guideView 0.8s forwards;}
@keyframes guideView {from {} to {margin-top: 0;}}

label:hover {color: #ff0;}
label input[type="checkbox"] {display: none;}
label span {  position: relative; z-index: 1; display: inline-block; width: 12px; height: 12px; background-color: #ddd; border-radius: 3px; transition: background-color 0.3s, border-color 0.3s; vertical-align: middle; margin: -2px 5px 0 0;}
label input[type="checkbox"]:checked + span {background-color: #ff3000; border-color: white;}
label input[type="checkbox"]:checked + span:before {content: ""; display: block; width: 6px; height: 10px; border: solid black; border-width: 0 2px 2px 0; transform: rotate(45deg); position: relative; left: 2px; top: -3px;}

#nav {transition: all 1s ease-in-out; position: fixed; top: 150px; left: -200px; background-color: rgba(0, 0, 0, 0.5); border-radius: 10px; color: white; padding: 15px 20px; font-size: 14px;}
#nav li {margin-bottom: 7px;}
#nav.show {transform: translateX(220px);}
#nav.hide {transform: translateX(40px);}
#nav #navClose {position: absolute; top: 10px; right: -20px; cursor: pointer; background-color: rgba(0, 0, 0, 0.5); padding: 7px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; font-size: 11px;}
#nav #navClose:hover {color: #ff0;}

#navHome {cursor: pointer; transition: all 1s ease-in-out; position: fixed; width: 110px; top: 295px; left: -200px; background-color: rgba(0, 0, 0, 0.5); border-radius: 10px; color: white; padding: 10px 20px 8px; font-size: 14px;}
#navHome:hover {color: #ff0;}
#navHome.show {transform: translateX(220px);}
#navHome.hide {transform: translateX(40px);}
#navHome li span:nth-child(2) {position: relative; top: -5px; left: 5px;}


#mySidenav {overflow: auto; overflow-x:auto; box-sizing: border-box; padding: 0 30px; height: 100%; transition: transform 0.8s ease-in-out; width: 440px; position: fixed; top: 0; right: -440px; background-color: rgba(0, 0, 0, 0.8); }
#mySidenav.show {transform: translateX(-30px);}
#mySidenav.show #homeButton {display: block;}
#mySidenav.active {transform: translateX(-440px);}
#mySidenav #sideMenu {margin-top: 20px; color: white;}
#mySidenav #sideMenu>li {margin: 15px 0;}
#mySidenav #sideMenu .menu {text-align: center; padding: 5px 0px; width: 100%;  border-radius: 30px; background-color: transparent; color: #666; border: 1px solid #666;}
#mySidenav #sideMenu .menuset {background-color: #005379; color: white; border: none; cursor: pointer; transition: all .5s; font-size: 16px;}
#mySidenav #sideMenu .menuset:hover {color: #ff0;}

#mySidenav #sideMenu .depth1 {padding: 15px 15px 7px 15px;}
#mySidenav #sideMenu .depth2 {margin: 0px 5px 0px 12px; padding: 0px 0 5px 10px;}
#mySidenav #sideMenu .depth2 li {position: relative;}
#mySidenav #sideMenu .depth2 li::before {content: ""; position: absolute; top: -18px; left: -17px; width: 15px; height: 27px; border-bottom: 2px solid #005379; border-left: 2px solid #005379;}
#mySidenav #sideMenu .depth3 {margin: 5px 5px 0px 12px;}

#mySidenav #sideMenu .option {display: none; font-size: 14px;}
#mySidenav #sideMenu .option li {margin: 10px 0;}

.form { position: relative; margin: 0 auto;} 
.form #BRAKEASSY_list {padding: 0 10px; border: none;}
.form .option .allSelect {margin-top: 10px; color: #93f8ff;}
.form .option #REPAIR {  padding: 0 0 5px 0; color: #93f8ff;}

select[id = "email"] { display: block; width: 100%; height: 30px; border: 1px solid #aaa; background: white; } 
#text {display: block; padding: 10px; background: none; border: none; font-size: 1em; color: #ffff00; border: 1px solid #aaa; width: 100%; box-sizing: border-box; margin-top: 20px; } 
#text::placeholder { color: white; font-size: 12px;} 

#submit {transition: all 0.9s ease-in-out; z-index: 105; position: fixed; bottom: -70px; right: 0;  background-color: black; width: 440px; height: 100px; box-sizing: border-box; padding: 15px 30px;}
#submit button {margin-top: 10px; width: 100%; height: 33px; text-align: center; font-size: 16px; background: #ffff00; color: black; border: none; cursor: pointer; border-radius: 30px; font-weight: bold; } 
#submit button:hover {background: #ff3000; color: white;}
#submit.active {animation: submitView 0.7s ease-in-out .7s forwards;}
@keyframes submitView {from {} to {opacity: 1; bottom: 30px;}}

#closeNav, #closeNav span {display: inline-block; transition: all .4s; box-sizing: border-box;}
#closeNav {position: relative; top: 0px; left: -30px; width: 30px; height: 30px; border-radius: 0; padding: 5px; background-color: rgba(0, 0, 0, 0.7);}
#closeNav span {position: absolute; left: 4px; width: 22px; height: 2px; background-color: #fff; border-radius: 2px;}
#closeNav span:nth-of-type(1) {top: 5px;}
#closeNav span:nth-of-type(2) {top: 14px;}
#closeNav span:nth-of-type(3) {bottom: 5px;}
#closeNav.active {left: -15px; top: 10px;}
#closeNav.active span:nth-of-type(1) {left: 0px; top: 0px; width: 100%;transform: translateY(14px) rotate(-45deg);}
#closeNav.active span:nth-of-type(2) {left: 0px; width: 100%; opacity: 0;}
#closeNav.active span:nth-of-type(3) {left: 0px; bottom: 0px; width: 100%; transform: translateY(-14px) rotate(45deg);}	
#closeNav:hover span {background-color: #ff0;}

#mySidenav #homeButton {display:none; color: white; background-color: transparent; font-weight: bold; position: fixed; top: 0px; right: 0px; width: fit-content;}
#mySidenav #homeButton:hover {color: #ff0;}

footer:hover {transform: translateY(-310px);}
footer {bottom: -335px; transition: transform 0.8s ease-in-out; border-top: 8px solid #005379; padding: 50px 60px 150px 60px; position: fixed; left: 0; width: 100%; }
footer::before {content: ""; position: absolute; width: 0; height: 0; top: 0px; left: 50%; margin-left: -8px; border-top: 16px solid #005379; border-left: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 16px solid transparent;}

/* debug */
.debug {display: none; font-size: 13px; font-weight: normal; padding: 10px; position: fixed; top: 500px; left: 50px; background-color: black; color: white;}
#debug2 {top: 540px;}
#debug3 {top: 580px;}
#debug4 {top: 620px;}
#debug5 {top: 660px;}
#debug6 {top: 700px;}
#debug7 {top: 740px; color: yellow;}
#debug8 {top: 780px; color: aqua;}
.lil-gui.autoPlace {left: 1000px; top: 500px;}

@media screen and (max-width: 1920px) {
    footer {bottom: -410px;}
}

@media screen and (max-width: 1024px) {
    #logo {top: 10px; left: 15px;}
    #mySidenav.active {width: 100%;}
    #mySidenav #homeButton {top: 5px; right: 0 !important; }
    footer {display: block; padding: 30px; line-height: 180%; bottom: -350px;}
    footer #content {display: block;}
    footer #content ul {margin-bottom: 15px; border-bottom: none;}
    footer #other ul {display: block;}
    footer #other li {margin-left: 0px;}
    footer #other #sns li {display: block;}
    footer h2 {margin-bottom: 20px;}
    @keyframes submitView {from {} to {opacity: 1; bottom: 100px;}}
}

@media screen and (max-width: 768px) {
    footer {bottom: -420px;}
}

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

