body { width: 100%; overflow-x: hidden; margin: 0; }

/* Visual */
header#Visual{ background: url('../img/bg.jpg') no-repeat center; background-size: cover; height:700px; }
header#Visual img{ position: absolute; top:13%; left:50%; }

/* nav */
nav{ position: fixed; top: 50%; right: 8px; z-index: 2; }
nav > ul li{ width: 14px; height: 14px; margin: 14px; background: rgb(180, 180, 180); border-radius: 8px; list-style-type: none; }
nav > ul li#active{ background:rgb(0,200,236); }

/* course */
section#course > div.EventAD { 
	width: 100px;
	display: block;
	position: fixed; 
    right: -20px; 
    top: 50px; 
	z-index: 555; 
	animation-name: EventAD-M; 
    animation-duration: 5s; 
    animation-iteration-count: infinite; 
}
section#course > div.EventAD:hover { width: 110px; right: 25px; transition: 0.3s; animation-iteration-count: initial; animation-name: initial; }
@keyframes EventAD-M {
	0%  { right: -20px; }
	70%  { right: 25px; }
	100%  { right:-20px; }
}
section#course > div.EventAD img { width: 100%; box-shadow: 0 0 20px rgb(78, 78, 78); border-radius: 5px; }
section#course > div.EventAD img:hover { box-shadow: 0 0 40px rgb(136, 136, 136); }

/* PageA */
section#PageA{ background: rgb(238, 238, 238); padding: 60px 0; }
section#PageA h2{ font-weight: bold; text-align: center; line-height: 3rem; color:#414141; }
section#PageA p{ line-height: 1.8rem; margin-bottom: 40px; }
section#PageA h4{ font-weight: bold; text-align: center; color: #002649; border-radius: 5px; border:2px solid #002649; padding:5px 8px; font-size: 1.35rem; }
section#PageA div.row p{ font-size: 1rem; padding: 3px 5px; }
section#PageA span.Icon{ margin:0 auto; display: block; margin-bottom: 15px; }
i.fa-circle{ color:#002649; }

/* PageB */
section#PageB{ background:#FFF; padding: 60px 0; }
section#PageB h2{ font-weight: bold; text-align: center; line-height: 3rem; color:#414141; }
section#PageB div.Item{ 
    border-radius: 12px; 
    background:rgb(255, 253, 247); 
    padding: 30px 40px 25px 40px; 
    box-shadow: 0 0 50px rgb(202, 202, 202);
    margin: 50px 100px;
    position: relative;
}
section#PageB div.Item > h4{ color: #002649; font-weight: bold; font-size: 1.35rem; }
section#PageB div.Item > h4 > span{ 
    border-radius: 5px; 
    background:#002649; 
    color:#FFF; 
    font-weight: normal; 
    font-size: 1.1rem; 
    padding:5px 8px;
    margin-right: 10px;
}
section#PageB div.Item ul{ color:#424242; line-height: 1.8rem; }
section#PageB div.Item ul > li > span{ color:#d02023; font-weight: bold; }
section#PageB button{ 
    background:#414141; 
    color:#FFF; 
    border:none; 
    border-radius: 5px; 
    font-size: 1.15rem; 
    padding: 7px 25px; 
    margin-top:15px; 
    margin-right: 15px;
    float: right;
}
section#PageB button:hover{ cursor: pointer; background:transparent; border:2px solid #414141; color:#414141; transition: 0.3s; }
section#PageB img{ width: 100%; }

/* PageC */
section#PageC{ background: rgb(238, 238, 238); padding: 60px 0 120px 0; }
section#PageC h2{ font-weight: bold; text-align: center; line-height: 3rem; color:#414141; }
section#PageC div.BOX{ color:#FFF; margin-top:50px; border: 10px solid rgb(238, 238, 238); height: 330px; border-radius: 30px; }
section#PageC div.BOX > h5{ font-weight: bold; text-align: center; padding: 90px 20px; font-size: 1.8rem; line-height: 3rem; }
section#PageC div.BOX > h5 > span{ font-size: 2.8rem; padding-right: 2px; }
section#PageC div.BOX > p{ display: none; padding:30px 20px; line-height: 1.8rem; }
section#PageC div#BOX1{ background: url("../img/device.png") center; background-size: cover; }
section#PageC div#BOX2{ background: url("../img/teach.png") center; background-size: cover; }
section#PageC div#BOX3{ background: url("../img/host.png") center; background-size: cover; }
section#PageC div#BOX4{ background: url("../img/heart.png") center; background-size: cover; }


/* Footer */
footer{
    font-size: 0.95rem;
}

/* SocialMedia */
div#SocialMedia { position: fixed; right: 10px; bottom: 50px; }
div#SocialMedia ul { list-style: none;  }
div#SocialMedia ul li { 
    background: rgba(0,0,0,0.75); 
    color: #FFF; 
    width: 40px; 
    height: 40px; 
    line-height: 40px; 
    font-size: 1.25em; 
    text-align: center; 
    margin: 8px 0 0 0;
    border-radius: 4px;
}
div#SocialMedia ul li a { color: #FFF; }
div#SocialMedia ul li.FB:hover { background: #39507C; transition: .20s linear;  }
div#SocialMedia ul li.Youtube:hover { background: #DB1B1B; transition: .20s linear; }
div#SocialMedia ul li.Contact:hover { background: #096; transition: .20s linear; }


@media(max-width:1440px){
    header#Visual img{ left:45%; }
}

@media(max-width:1220px){
    
    /* Visual */
    header#Visual img{ top:15%; left: 42%; width: 45%; }

    /* nav */
    nav > ul li{ width: 12px; height: 12px; margin: 12px; }

    /* PageA */
    section#PageA{ padding: 60px 50px; }
    section#PageA h4{ margin: 5px 10px; }
    section#PageA div.row p{ padding: 7px 10px; }

    /* PageC */
    section#PageC{ padding: 60px 50px; }
    section#PageC div.BOX > p{ padding: 25px 15px; }
}

@media(max-width:1199px){
    /* PageB */
    section#PageB div.Item{ margin: 50px 0; }

    /* PageC */
    section#PageC{ padding: 60px 0; }
    section#PageC div.BOX{ border: 7px solid rgb(238, 238, 238); height: 330px; }
    section#PageC div.BOX > h5{ padding: 90px 15px; font-size: 1.6rem; line-height: 2.8rem; }
    section#PageC div.BOX > h5 > span{ font-size: 2.6rem; }
    section#PageC div.BOX > p{ padding: 25px 10px; line-height: 1.6rem; }
}

@media(max-width:991px){
    .container{ padding-right: 0; padding-left: 0; max-width: 820px; }

    /* Visual */
    header#Visual{ height:600px; }
    header#Visual img{ top:13%; left:38%; width: 50%; }

    /* PageA */
    section#PageA{ padding: 60px 0; }
    section#PageA h2{ line-height: 3rem; font-size: 2rem; }
    section#PageA h4{ font-size: 1.2rem; }

    /* PageB */
    section#PageB div.Item{ margin: 50px 20px; }
    section#PageB button{ font-size: 1rem; padding: 7px 15px; }

    /* PageC */
    section#PageC div.BOX{ border: 5px solid rgb(238, 238, 238); height: 330px; }
    section#PageC div.BOX > h5{ padding: 90px 5px; }
    section#PageC div.BOX > h5 > span{ font-size: 2.5rem; }
    section#PageC div.BOX > p{ padding: 24px 8px; line-height: 1.5rem; }
}

@media(max-width:945px){
    nav{ visibility: hidden; }
}

@media(max-width:870px){
    .container{ max-width: 750px; }

    /* Visual */
    header#Visual{ height:550px; }
    header#Visual img{ top:12%; left:36%; width: 52%; }

    /* PageA */
    section#PageA h2{ line-height: 3rem; font-size: 1.8rem; }
    section#PageA h4{ font-size: 1.1rem; }

    /* PageB */
    section#PageB div.Item{ margin: 50px 30px; padding: 30px 30px 25px 30px; }

    /* PageC */
    section#PageC div.BOX{ border: 5px solid rgb(238, 238, 238); height: 330px; }
    section#PageC div.BOX > h5{ padding: 90px 5px; }
    section#PageC div.BOX > h5 > span{ font-size: 2.3rem; }
    section#PageC div.BOX > p{ padding: 20px 7px; line-height: 1.5rem; }
}
@media(max-width:768px){
    body{ margin: 0; }

    /* PageC */
    section#PageC div.BOX{ height: 350px; }
}

@media(max-width:767px){

    /* PageA */
    section#PageA{ padding: 60px 20px; }
    section#PageA div.row{ padding: 0 100px; }
    section#PageA h4{ border:2px solid #002649; padding:7px 8px; font-size: 1.35rem; }
    section#PageA div.row p{ font-size: 1rem; padding: 3px 5px; }

    /* PageB */
    section#PageB div.Item{ margin: 50px 80px; }
    section#PageB img{ width: 62%; margin: 0 auto; display: block; margin-top: 50px; }
    section#PageB div.Item > h4{ line-height: 2.7rem; }

    /* PageC */
    section#PageC{ padding: 60px 50px; }
    section#PageC div.BOX{ border: 10px solid rgb(238, 238, 238); height: 250px; }
    section#PageC div.BOX > h5{ padding: 80px 5px; }
    section#PageC div.BOX > h5 > span{ font-size: 2.5rem; }
    section#PageC div.BOX > p{ padding: 25px 10px; line-height: 1.6rem; }
}

@media(max-width:575px){

    /* Visual */
    header#Visual{ height:300px; }
    header#Visual img{ top:12%; left:26%; width: 65%; }

    /* course */
    section#course{ visibility: hidden; }

    /* PageA */
    section#PageA{ padding: 40px 10px; }
    section#PageA h2{ line-height: 2.5rem; font-size: 1.5rem; }
    section#PageA div.row{ width: 100%; overflow-x: hidden; margin: 0; }
    section#PageA p{ padding: 0 15px; }
    section#PageA div.row{ padding: 0 20px; }
    section#PageA div.row p{ font-size: 1rem; padding: 3px 10px; }

    /* PageB */
    section#PageB{ padding: 40px 10px; }
    section#PageB h2{ line-height: 2.5rem; font-size: 1.5rem; }
    section#PageB div.Item{ margin: 50px 10px; padding: 20px 20px 25px 20px; }
    section#PageB img{ width: 62%; margin: 0 auto; display: block; margin-top: 50px; }
    section#PageB div.Item > h4{ line-height: 2.3rem; font-size: 1.15rem; }
    section#PageB div.Item ul{ margin-left: -25px; }

    /* PageC */
    section#PageC{ padding: 40px; }
    section#PageC h2{ line-height: 2.5rem; font-size: 1.5rem; }
}