html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
    width: 100%;
    line-height: 1.2;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* #head1 {background-image: url(../images/main.jpg);
        background-repeat: no-repeat;
        position: relative;
        top:0;
		width: 100%; 
        height: 600px;}	 */
        
.videoBgWrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

.videoBg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 16/9) {
    .videoBg{
      width: 100%;
      height: auto;
    }
  }
  
  @media (max-aspect-ratio: 16/9) {
    .videoBg {
      width: auto;
      height: 100%;
    }
  }


#logo {position: absolute;
		top: 30px;
		left:20px;}			
		
h1 {background-color:#FFFFFF;
	width: 100%; 
	opacity: 0.6;
	font-size: 4em;
	padding: 20px;
	text-align: center;
    margin-top: 50px;
    font-weight: bold;
	}			


#nav {position: absolute;
		top: 10px;
		right: 50px;
		list-style-type: none;
		
		}	
#nav{display:inline;
	font-family: Arial, "Helvetica", sans-serif;
	font-size: 1em;
	font-weight: bold;
	/* padding: 5px; */
	/* text-align: center; */
	}

#nav a{text-decoration: none;}		 
#nav a:link {color: #000000;}
#nav a:visited {color: #000000;}
#nav a:hover {background-color: #F9322F;
			color: #FFFFFF}
						
.menuChoices {width: 80px;}
#menu1 , #menu2, #menu3,  #menu4,  #menu5  {float: left;}
	
				
.content {font-family: Arial, "Helvetica", sans-serif;
	font-size: 1.1em;
    max-width: 1080px;
    padding: 50px;
    margin:auto;}	    

/* Set Main tag to display block */
/* End Box Sizing Reset */    
	

.main_table { 
            width: 100%;
            display:flex;
            flex-direction: row;
            margin: 0 auto;
            position: relative;
            flex: 1;
            align-items: center;
            justify-content: center}

.main_box {
    width:25%;
    padding:20px;
    display: flex;
    flex-direction: column;
    max-width: 50%;
}

.main_box img{
    display: flex;
    margin: 0 auto;
}

.subhead {font-family: Arial, "Helvetica", sans-serif;
	font-size:1.4em;
	font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;}	
	

/* End Set Main tag to display block */

/* Box Sizing Reset */

*, *:before, *:after {
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
}
	
.contactform{
    margin-top: 50px;
	padding:10px; 
	margin-left: auto;
	margin-right: auto;
	font-family: Arial, "Helvetica", sans-serif;
    font-size:1.2em;
    flex: 1;	
	}	
	
.no-touch	{
	width: 1080px; 
	height: 500px;
	margin: auto;
    padding: 0;
    font: 13px sans-serif;
    display: flex;
    flex-direction: row;
    }	
	
.box {
      float: left;
      position: relative;
      width: 50%;
	  height: 15%;
      padding-bottom: 20%;
    }
.boxInner {
      position: absolute;
      left: 10px;
      right: 10px;
      top: 10px;
      bottom: 10px;
      overflow: hidden;
    }

.boxInner a{
    text-decoration: none;
    color:#ffff;
}    
.boxInner img {
      width: 100%;
    }
.boxInner .titleBox {
    
      position: absolute;
      width: 100%;
      bottom: 0;
      left: 0%;
      right: 0;
      margin-bottom: -40px;
      background: #000;
      background: rgba(0, 0, 0, 0.5);
      color: #FFF;
      padding: 10px;
      text-align: center;
      -webkit-transition: all 0.3s ease-out;
      -moz-transition: all 0.3s ease-out;
      -o-transition: all 0.3s ease-out;
      transition: all 0.3s ease-out;
    }		
	 .no-touch .boxInner:hover .titleBox, .touch .boxInner.touchFocus .titleBox {
      margin-bottom: 0px;
    }
	
.c_touch {
	width: 800px; 
	height: 600px;
	margin: auto;
    padding: 0;
	font: 13px sans-serif;
	font-weight: bold;
    }	
.c_box{
	float: left;
	padding: 5px;
	  }	

.c_boxInner {
    width: 30px;
	height: 50px;
	transition: width 1s;
	overflow: hidden;
}
.c_triangle{
	width: 0; 
	height: 0; 
	border-top: 10px solid transparent; 
	border-left: 20px solid red;
	border-bottom: 10px solid transparent;
	margin: 0;
	float: left;
}
.c_titlebox{
	overflow: hidden;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0px;
    background: #FFF;
    color: #FFF;
    padding: 0px;
    text-align: center;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
.c_titlebox:hover{
	overflow: hidden;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0px;
    background: #FFF;
    color: #000;
    padding: 10px;
    text-align: center;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
.c_boxInner:hover {
	width: 350px;
}			

.p_main {width: 1080px;
	margin:auto; 
	height:900px;
	}
.p_head {
	font-family: Arial, "Helvetica", sans-serif;
	font-size:35px;
	color:#330063;
	font-weight: bold;
	text-align: center;
	}
.p_contents {
width:400px;
float: left;
padding:10px;
margin-right: 20px;
}	
		
.p_img {
    margin-left: 420px;
    padding:10px;
}	

#sitemap {height:500px;
		width: 1080px; 
		margin: auto;
}

#sitemap a:link {
    text-decoration: none;
}
#sitemap a :hover {
		color: #FF00FF;
}


div.img {
    border: 1px solid #ccc;
}

div.img:hover {
    border: 1px solid #777;
}

div.img img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 15px;
    text-align: center;
}

* {
    box-sizing: border-box;
}

.display_box {
    display: inline;
    flex: 1;
}
.responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
}

footer {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.footer_table {
    display: flex;
    flex-direction: row;
}

.footer_right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer_button {
    margin: 10px 0 10px 0;
}


@media only screen and (max-width: 1400px){
    /* .responsive {
        width: 49.99999%;
        margin: 6px 0;
    } */

    #logo img {
        width: 70%;
        height: auto;
        margin-top: 8%;
    }

    h1 {
       font-size: 2.5rem; 
    }

    .main_box {
        max-width: 90%;
    }

    .main_box img {
        width: 80%;
        height: auto;
    }

    .no-touch {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }  

    .box {
        align-content: center;
        /* width: 60%;
        height: 50%; */
        margin: 0 auto;
    }

    .boxInner img {
        width: 100%;
        height: 100%;
      }
    .boxInner .titleBox {
        position: absolute;
        margin-bottom: -201px;
        width: 100%;
        height: 100%;
        left: 0;
      }	

      /*web-gallery*/
    .box-board {
        grid-template-columns: auto auto auto auto auto ;
        }
  
    .grid-webcontainer{
        margin: auto;
        padding: 10px;

        }

     .grid-webcontainer img {
         max-width: 100%;
         height: auto;
     }
    }

@media only screen and (max-width: 800px){
    /* .responsive {
        width: 49.99999%;
        margin: 6px 0;
    } */

    #logo img {
        width: 80%;
        height: auto;
    }

    h1 {
       font-size: 2rem; 
    }

    .main_table {
        flex-direction: column;
    }

    .main_box {
        width: 100%;
        padding: 0;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .subhead {
        font-size: 1rem;
    }

    .content {
        font-size: 1rem;
        padding: 10%;
    }

    .box {
        align-content: center;
        /* width: 100%;
        height: 40%; */
        margin: 0 auto;
    }

    .boxInner img {
        width: 100%;
        height: 100%;
      }
    .boxInner .titleBox {
        position: absolute;
        margin-bottom: -108px;
        width: 100%;
        height: 100%;
        left: 0;
      }	

    .box-01,.box-02, .box-03, .box-04, .box-05, .box-06, .box-07, .box-08, .box-09  {
        max-width: 50%;
    }

    .grid-webcontainer {
        margin-top: 30px;
    }

    .grid-webcontainer p{
        font-size: 12px;
    }
}

@media only screen and (max-width: 500px){
    /* .responsive {
        width: 30%;
    } */

    #logo img {
        display: flex;
        position: relative;
        margin: 0 atuo;
        width: 50%;
        height: auto;
        margin-top: 16%;
    }

    h1{
        font-size: 1.5rem;
        padding-left: 120px; 
    }

    #nav {
        display: flex;
        justify-content: center;
        font-size: 0.8rem;
        left: 0;
        right: 0;
        padding: 0;
        margin: 0 auto;
    }	

    .content {
        font-size: 0.9rem;
        padding: 18% 5% 0 5%;
    }
    .box {
        width: 100%;
        height: 35%;
    }

    .boxInner .titleBox {
        margin-bottom: -128px;
      }	
    
    .info {
    font-size: 0.8rem;
    }      
  }


.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.pages {
    text-align: center;
}


						
footer {background-color: #C6C4C4;
	   padding-left: 10px;
}

.footer_table  {margin: auto;
	width: 500px;}			
	td {padding: 10px;
    }


/*web-gallery*/
.box-board {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto auto auto ;
    grid-gap: 0px;
  }
  
 .box {
    text-align: center;
 } 
  * {
    box-sizing: border-box;
  }
  
  img {
    vertical-align: middle;
  }
  
  /* Position the image container (needed to position the left and right arrows) */
  .container {
    position: relative;
    max-width: 38%;
    margin: auto;
  }

  .mySlides img {
    width: 70%;
  } 
  
  /* Hide the images by default */
  .mySlides {
    display: none;
  }
  
  /* Add a pointer when hovering over the thumbnail images */
  .cursor {
    cursor: pointer;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 16px;
    margin-top: -50%;
    color:#b8afaf;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #b8afaf;
    font-size: 12px;
    padding: 8px 12px;
    top: 0;
  }
  
  /* Container for image text */
  .caption-container {
    text-align: center;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    /* color: rgb(0, 0, 0);
    border: 4px solid #ddd; */
  }
  
  .caption-container p:nth-child(2):hover{ 
    transform: scale(1.2);
    }
    
  .caption-container a {
      text-decoration: none;
    }

  .ad_cpation {
      margin-top: 8px;
  }
    
  .box-board:after {
    content: "";
    display: table;
    clear: both;
  } 
  
  .demo {
    opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

.cursor {
    cursor: pointer;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
.item1 { grid-area: juhan; }
.item2 { grid-area: greendetal; }
.item3 { grid-area: chungdam; }
.item4 { grid-area: simpson; }
.item5 { grid-area: blueocean; }
.item6 { grid-area: sfu; }
.item7 { grid-area: bmw; }

.grid-webcontainer {
  display: grid;
  justify-content: center;
  grid-template-areas:
    'juhan juhan juhan'
    'greendetal bmw blueocean'
    'chungdam simpson blueocean'
    'sfu sfu blueocean';
 grid-gap: 20px;
}

.item2 {
    align-self: center;
}

.item3 {
    align-self: center;
}

.item5 {
    align-self: center;
}

.item7 {
    align-self: center;
}

.grid-webcontainer > div {
  text-align: center;
  padding: 10px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

@media only screen and (max-width: 700px){
.container {
    max-width: 70%;
}

.mySlides img {
    width: 100%;
}

.caption-container {
    font-size: 12px;
}

.prev, .next {
    padding:0;
    margin-top: -100%;
}
}
@media only screen and (max-width: 500px){
    .container {
        max-width: 90%;
    }
    #nav {
        right: 0;
        text-align: center;
    }

    .contactform {
        font-size: 1rem;
    }
}    

@media only screen and (max-width: 300px){
    .container {
        max-width: 90%;
    }
    #nav {
        right: 0;
        text-align: center;
    }

    .no-touch {
        width: 100%;
    }  

    .box {
        align-content: center;
        width: 100%;
        height: 50%;
    }

    .boxInner img {
        width: 100%;
        height: 100%;
      }
    .boxInner .titleBox {
        position: absolute;
        margin-bottom: -201px;
        width: 100%;
        height: 100%;
        left: 0;
      }	
}   