/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "PT Sans", sans-serif;
  color: #ffffff;
}

a {
  color: #9e1c51;
  text-decoration: none;
}

/*--kv--*/
.kv{
    width: 100%;
    height: 40em;
    position:relative;
    background-image: url(../img/kv.jpg);
    background-size: 100% auto;
    background-attachment: fixed;
    padding: 0.5em;
}
.kv .kv-forborder{
    width: 100%;
    height: 100%;
    border: 10px rgba(256,256,256,0.6) solid;
}
.kv .kv-detil{
    width: 80vw;
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    height: 100%;
    text-align: center;
    padding-top: 5em;
}
    .kv-detil img{
    width: 346px;
    height: 313px;
    }
    .kv-detil p{margin: 1.5em 0;font-size: 1.25em;line-height: 1.75em;}
    .kv-detil .kv-btn{
    margin: 0 auto;
    display: inline-block;
    }
.kv-detil .kv-btn p{line-height: 2em;}

@media only screen and (max-width: 1024px) {
    .kv{ height: 40em;background-image: url(../img/kv-long.jpg);padding: 0;}
    .kv .kv-forborder{border: 8px rgba(256,256,256,0.6) solid;}
    .kv .kv-detil{width: 100%;}
    .kv-detil img{width:300px;height: auto;}
    .kv-detil p{margin: 1.5em 2em ;}
    .kv-detil .kv-btn{width: 12.5em;}
    .kv-detil .kv-btn p{line-height: 2em;margin: 0;}
    .kv-detil .btn-l,.kv-detil .btn-r{margin: 0.5em 0;}
}
@media only screen and (max-width: 767px) {
    .kv .kv-detil{padding-top: 2em;}  
}

/* -------------------------------- 

Main Components 

-------------------------------- */
.projects-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.projects-container::before {
  /* never visible - this is used in jQuery to check the current MQ */
  content: 'mobile';
  display: none;
}
.projects-container .cd-single-project{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 33.3%;
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.4s;
  -moz-transition: -moz-transform 0.4s;
  transition: transform 0.4s;
  /* on mobile -  move items outside the viewport */
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transform: translateX(-100%);
}
.projects-container .cd-single-project::after {
  /* background image */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 33.3vh;
  width: 100%;
  background-image: url("../img/img-1-small.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  -webkit-transition: opacity 0.5s, height 0.4s;
  -moz-transition: opacity 0.5s, height 0.4s;
  transition: opacity 0.5s, height 0.4s;
}
.projects-container .cd-single-project::before {
  /* never visible - this is used in jQuery to detect if the background image has been loaded  */
  content: 'img/img-1-small.jpg';
  display: none;
}
.projects-container .cd-single-project:nth-of-type(2) {
  top: 33.3vh;
}
.projects-container .cd-single-project:nth-of-type(2)::after {
  background-image: url("../img/img-1-small.jpg");
}
.projects-container .cd-single-project:nth-of-type(2)::before {
  content: 'img/img-1-small.jpg';
}
.projects-container .cd-single-project:nth-of-type(3) {
  top: 66.6vh;
}
.projects-container .cd-single-project:nth-of-type(3)::after {
  background-image: url("../img/img-3-small.jpg");
}
.projects-container .cd-single-project:nth-of-type(3)::before {
  content: 'img/img-3-small.jpg';
}
.projects-container .cd-single-project:nth-of-type(4) {
  top: 99.9vh;
}
.projects-container .cd-single-project:nth-of-type(4)::after {
  background-image: url("../img/img-4-small.jpg");
}
.projects-container .cd-single-project:nth-of-type(4)::before {
  content: 'img/img-4-small.jpg';
}
.projects-container .cd-single-project.is-loaded {
  /* move items in the viewport when background images have been loaded */
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}
.projects-container .cd-single-project.is-full-width {
  /* selected item */
  top: 0;
  height: auto;
  z-index: 1;
  cursor: auto;
  -webkit-transition: z-index 0s 0s, top 0.4s 0s;
  -moz-transition: z-index 0s 0s, top 0.4s 0s;
  transition: z-index 0s 0s, top 0.4s 0s;
}
.projects-container .cd-single-project.is-full-width::after {
  height: 100vh;
}

.projects-container .list1{background: url(../img/img-2-small.jpg), rgba(193,50,62,0.8); 
  background-size: cover;}
.projects-container .list2{background: url(../img/img-1-small.jpg); 
  background-size: cover;}
.projects-container .list3{background: url(../img/img-3-small.jpg); 
  background-size: cover;}
.projects-container .list4{background: url(../img/img-4-small.jpg); 
  background-size: cover;}


.projects-container .cd-single-project.is-full-width {
  /* selected item */
  top: 0;
  height: auto;
  z-index: 1;
  cursor: auto;
  -webkit-transition: z-index 0s 0s, top 0.4s 0s;
  -moz-transition: z-index 0s 0s, top 0.4s 0s;
  transition: z-index 0s 0s, top 0.4s 0s;
}
.projects-container .cd-single-project.is-full-width::after {
  height: 100vh;
}


/*apply*/
.apply{
    width: 100vw;
    height: auto;
    background-color: #ffffff;
    padding: 5em 0;
}
.apply .applyblock{
    position: relative;
    margin: 0 auto;
    max-width: 1440px;
    width: 80vw;
    height: auto;
    background-image: url(../img/morocco.png);
}
.applyblock .apply-imfor{
    width: 100%;
    height: auto;
}
.apply-imfor .imfor-maps{width: 100%;}
.apply-imfor .imfor-maps img{width: 100%;}
.apply-imfor .imfor-details{
    color: #131313;
    text-align: center;
    margin: 1em auto;
    width: 40vw;
    line-height: 1.5em;
    font-size: 1.25em;
}
.apply-imfor .imfor-btnblock{ width: 27.5em; margin: 0 auto;}
.apply-imfor .imfor-btn{margin: 0 auto;width: 10em;font-size: 1.25em;}
.applyblock .apply-hotel{
    width: 70vw;
    max-width: 1440px;
    height: auto;
    margin: 4em auto 3em auto;
}
.apply-hotel .hotel-intro{
    width: 14.5vw;
    max-width: 300px;
    height: auto;
    display: inline-block;
    margin: 1vw 1vw 2em 1vw;
    vertical-align:top; 
}
.apply-hotel .hotel-intro figcaption{color: #131313;line-height: 1.5em;margin: 1em 0;font-size: 0.85em;}
.apply-hotel .hotel-intro img{width: 100%;height: auto;}
.apply-hotel .hotel-intro h4{font-weight: bold;}

.apply .apply-protect-text{width: 80%;max-width: 1440px;margin: 1em auto;}
.apply .apply-protect-text p{color: #131313;text-align: center;}

@media only screen and (max-width: 480px) {
    .apply .applyblock{width: 90vw;}
    .apply-imfor .imfor-details{width: 80vw;}
    .apply-imfor .imfor-btnblock{ width: 200px;}
    .apply-imfor .imfor-btn{display: block;margin: 0.5em 0;}
    .applyblock .apply-hotel{
    width: 90vw;
    height: auto;
    margin: 4em auto 3em auto;
    }
    .apply-hotel .hotel-intro{
    width: 80%;
    max-width: 9em;
    margin: 1vw 2vw 2em 2vw;
    }

    .apply-hotel .hotel-intro figcaption{font-size: 1em;}
    .apply-hotel .hotel-intro h4{font-size: 1.15em;}
    .apply .apply-protect-text{line-height: 1.5em;}
.apply .apply-protect-text p{color: #131313;text-align: center;margin: 1em 0 2em 0;}
}


/*organizer*/
.apply .organizer{
    color: #131313;
    width: 80%;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}
.organizer .organizer-item{
     display: inline-block;
     margin: 0 2em;
     height: 3em;
    line-height: 3em; 
    vertical-align:top; 
}
.organizer .organizer-item img{margin-left: 0.5em; line-height: 3em;height:20px;width: auto; }
.organizer .co-organizer img{height: 35px; }

@media only screen and (max-width: 784px) {
    .apply .organizer{width: 100%; } 
    .organizer .organizer-item{height: auto;width: 90vw;margin: 0;}
    .organizer .organizer-item img{width: 100%;}
    .organizer .co-organizer img{width: auto;}
}

/*btn*/
.btn-apply-w{
    background-color: #fff;
    color:#c1323e;
    line-height: 2em;
}
.btn-apply-d{
    background-color: #af2f39;
    color:#fff;
    line-height: 2em;
}
.btn-normal{ width: 10em;height: 2em;display: block;text-align: center;}
.kv .btn-l,.apply-imfor .btn-l{margin-right: 0.25em;}
.kv .btn-r,.apply-imfor .btn-r{margin-left: 0.25em;}

@media only screen and (max-width: 767px) {
.kv .btn-l,.apply-imfor .btn-l{margin-right:0;}
.kv .btn-r,.apply-imfor .btn-r{margin-left: 0;} 
}

@media only screen and (min-width: 1024px) {
  .projects-container::before {
    /* never visible - this is used in jQuery to check the current MQ */
    content: 'desktop';
  }
  .projects-container .cd-single-project {
    width: 33.3vw;
    height: 100%;
    opacity: 0;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    -webkit-transition: width 0s;
    -moz-transition: width 0s;
    transition: width 0s;
  }
  .projects-container .cd-single-project:first-of-type::before {
    content: '../img/img-2-large.jpg';
  }
  .projects-container .cd-single-project:first-of-type::after {
    background-image: url("../img/img-2-large.jpg");
  }
  .projects-container .cd-single-project:nth-of-type(2) {
    top: 0;
    left: 33.3vw;
  }
  .projects-container .cd-single-project:nth-of-type(2)::before {
    content: 'img/img-1-large.jpg';
  }
  .projects-container .cd-single-project:nth-of-type(2)::after {
    background-image: url("../img/img-1-large.jpg");
  }
  .projects-container .cd-single-project:nth-of-type(3) {
    top: 0;
    left: 66.6vw;
  }
  .projects-container .cd-single-project:nth-of-type(3)::before {
    content: 'img/img-3-large.jpg';
  }
  .projects-container .cd-single-project:nth-of-type(3)::after {
    background-image: url("../img/img-3-large.jpg");
  }
  .projects-container .cd-single-project:nth-of-type(4) {
    top: 0;
    left: 99.9vw;
  }
  .projects-container .cd-single-project:nth-of-type(4)::before {
    content: 'img/img-4-large.jpg';
  }
  .projects-container .cd-single-project:nth-of-type(4)::after {
    background-image: url("../img/img-4-large.jpg");
  }
  .projects-container .cd-single-project::after {
    height: 100vh;
    width: 100%;
    opacity: 0;
  }
  .projects-container .cd-single-project.is-loaded {
    /* show items when background images have been loaded */
    opacity: 1;
  }
  .projects-container .cd-single-project.is-loaded::after {
    opacity: 1;
  }
  .projects-container .cd-single-project.is-full-width {
    /* selected item */
    left: 0vw;
    width: 100vw;
    -webkit-transition: width 0.4s 0s, z-index 0s 0s, left 0.4s 0s;
    -moz-transition: width 0.4s 0s, z-index 0s 0s, left 0.4s 0s;
    transition: width 0.4s 0s, z-index 0s 0s, left 0.4s 0s;
  }
}
@media only screen and (min-width: 1170px) {
  .projects-container .cd-single-project::after {
    background-attachment: fixed;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: -webkit-transform 0.8s, opacity 0.5s;
    -moz-transition: -moz-transform 0.8s, opacity 0.5s;
    transition: transform 0.8s, opacity 0.5s;
  }
  .projects-container .cd-single-project.is-loaded::after {
    opacity: 0;
  }
  .no-touch .projects-container .cd-single-project:hover::after, .projects-container .cd-single-project.is-full-width.is-loaded::after {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}

.cd-title {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 15vh;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}
.is-full-width .cd-title {
  top: 50vh;
  -webkit-transition: opacity 0s, top 0.4s;
  -moz-transition: opacity 0s, top 0.4s;
  transition: opacity 0s, top 0.4s;
}
.cd-title > * {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cd-title h2 {
  font-size: 2.5rem;
  line-height: 1.5;
  font-weight: 700;
}
.cd-title p {
  font-size: 1.4rem;
  font-family: "Merriweather", serif;
  font-style: italic;
  line-height: 1.2;
  padding: .4em 2em;
  display: none;
  opacity: .9;
}
@media only screen and (min-width: 1024px) {
  .cd-title {
    top: 50vh;
    width: 33vw;
    opacity: 0;
    -webkit-transform: translateY(-50%) translateX(-20px);
    -moz-transform: translateY(-50%) translateX(-20px);
    -ms-transform: translateY(-50%) translateX(-20px);
    -o-transform: translateY(-50%) translateX(-20px);
    transform: translateY(-50%) translateX(-20px);
  }
  .is-loaded .cd-title {
    opacity: 1;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: -webkit-transform 0.6s, opacity 0.6s, left 0.4s;
    -moz-transition: -moz-transform 0.6s, opacity 0.6s, left 0.4s;
    transition: transform 0.6s, opacity 0.6s, left 0.4s;
  }
  .is-loaded.is-full-width .cd-title {
    left: 33vw;
    -webkit-transition: -webkit-transform 0.6s, opacity 0s, left 0.4s;
    -moz-transition: -moz-transform 0.6s, opacity 0s, left 0.4s;
    transition: transform 0.6s, opacity 0s, left 0.4s;
  }
  .cd-title p {
    display: block;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-title h2 {
    font-size: 3.6rem;
  }
}

.cd-project-info {
  height: auto;
  clear: both;
  visibility: hidden;
  opacity: 0;
  margin-top: 100vh;
  padding: 4em 0;
  cursor: auto;
  background-color: #ffffff;
  color: #000;
  -webkit-transition: opacity 0.4s 0s, visibility 0s 0.4s;
  -moz-transition: opacity 0.4s 0s, visibility 0s 0.4s;
  transition: opacity 0.4s 0s, visibility 0s 0.4s;
}
.is-full-width .cd-project-info {
  visibility: visible;
  opacity: 1;
}
.cd-project-info .infoblock-sp{ height: auto;}
.cd-project-info .infoblock{
    width: 100%;
    max-width: 1440px;
    height: 45em;
    position: relative;
    margin: 0 auto;
}
.cd-project-info .main-info{
  width: 35em;
  background-color:#fff;
  height: auto;
  position: relative;
  top:5em;
  left: 15em;
  padding: 2.5em 2em;
  text-align:left;
  z-index: 10;    
  }
    .main-info .info-sp{margin: 0.75em auto;font-size: 1.25em;line-height: 2em;}
    .main-info h4{
    width: 90%;
    font-size:1.25em; 
    margin: 0 auto;
    line-height: 1.5em;
    }
    .main-info h2{
    width: 90%;
    font-size:2em; 
    margin: 0 auto;
    line-height: 1.25em;       
    }
.cd-project-info .main-pic{
  position: absolute;
  right: 4em;
  top:5em;
  width: 30em;
  height: 35em;
  background-color: #e0dede;
  z-index: 8;
}
.cd-project-info .secend-pic{
  position: absolute;
  left: 0;
  top:25em;
  width: 20em;
  height: 20em;
  background-color: brown;
  z-index: 0;  
}
.cd-project-info .secend-pic img{width: 100%;height: 100%;}
.cd-project-info .line{
  position: absolute;
  left: 0;
  top:15em;
  width: 17.5em;
  height: 0.5em;
  background-color: #c1323e;
  z-index: -1;
}

.cd-project-info p {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5em;
}
@media only screen and (min-width: 1025px) {
  .cd-project-info {
    position: relative;
    z-index: 1;
  }
}
@media only screen and (max-width: 1024px) {
  .is-full-width .cd-project-info{padding:2em 0;height: auto; }
  .cd-project-info .infoblock{ height: auto;}
  .cd-project-info .main-info{
  width: 100%;
  height: auto;
  position:relative;
  top:0;left: 0;
  padding: 1em;
  }
  .main-info h2{margin: 0.5em auto;}
  .main-info .info-sp{font-size: 1.1em;line-height: 1.5em;}
    .cd-project-info p{margin: 0.25em auto;}
  .cd-project-info .main-pic{
  position: relative;
  top:0;
  right: 0;
  width: 15em;
  height: auto;
  display: inline-block;
  }
  .cd-project-info .secend-pic{
  position: relative;
  top:2em;
  width: 10em;
  height: auto;
  display: inline-block;
  }
  .cd-project-info .secend-pic img,.cd-project-info .main-pic img{width: 100%;height: auto;}
  .cd-project-info .line{;display: inline-block;float: right; top:37.5em;width: 100%;}
}

.projects-container .cd-close,
.projects-container .cd-scroll {
  display: block;
  z-index: 1;
  width: 44px;
  height: 44px;
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  visibility: hidden;
  -webkit-transition: -webkit-transform 1s 0s, visibility 0s 1s;
  -moz-transition: -moz-transform 1s 0s, visibility 0s 1s;
  transition: transform 1s 0s, visibility 0s 1s;
}

.projects-container .cd-close {
  position: fixed;
  top: 30px;
  right: 5%;
  background: url("../img/cd-icon-close-mobile.svg") no-repeat center center;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
}
@media only screen and (min-width: 1170px) {
  .projects-container .cd-close {
    background-image: url("../img/cd-icon-close-desktop.svg");
  }
}

.projects-container .cd-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  -webkit-transform: translateX(-50%) scale(0);
  -moz-transform: translateX(-50%) scale(0);
  -ms-transform: translateX(-50%) scale(0);
  -o-transform: translateX(-50%) scale(0);
  transform: translateX(-50%) scale(0);
  background: url("../img/cd-icon-arrow-mobile.svg") no-repeat center center;
}
@media only screen and (min-width: 1170px) {
  .projects-container .cd-scroll {
    background-image: url("../img/cd-icon-arrow-desktop.svg");
  }
}

.project-is-open .cd-close,
.project-is-open .cd-scroll {
  visibility: visible;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform 0.4s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform 0.4s 0s, visibility 0s 0s;
  transition: transform 0.4s 0s, visibility 0s 0s;
}

.project-is-open .cd-scroll {
  -webkit-transform: translateX(-50%) scale(1);
  -moz-transform: translateX(-50%) scale(1);
  -ms-transform: translateX(-50%) scale(1);
  -o-transform: translateX(-50%) scale(1);
  transform: translateX(-50%) scale(1);
  -webkit-animation: cd-translate 1.2s 0.4s;
  -moz-animation: cd-translate 1.2s 0.4s;
  animation: cd-translate 1.2s 0.4s;
  -webkit-animation-iteration-count: 2;
  -moz-animation-iteration-count: 2;
  animation-iteration-count: 2;
}

.no-touch .project-is-open .cd-close:hover {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
}

.no-touch .project-is-open .cd-scroll:hover {
  -webkit-transform: translateX(-50%) scale(1.2);
  -moz-transform: translateX(-50%) scale(1.2);
  -ms-transform: translateX(-50%) scale(1.2);
  -o-transform: translateX(-50%) scale(1.2);
  transform: translateX(-50%) scale(1.2);
}

@-webkit-keyframes cd-translate {
  0% {
    -webkit-transform: translateX(-50%) scale(1);
  }
  50% {
    -webkit-transform: translateY(10px) translateX(-50%) scale(1);
  }
  100% {
    -webkit-transform: translateX(-50%) scale(1);
  }
}
@-moz-keyframes cd-translate {
  0% {
    -moz-transform: translateX(-50%) scale(1);
  }
  50% {
    -moz-transform: translateY(10px) translateX(-50%) scale(1);
  }
  100% {
    -moz-transform: translateX(-50%) scale(1);
  }
}
@keyframes cd-translate {
  0% {
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }
  50% {
    -webkit-transform: translateY(10px) translateX(-50%) scale(1);
    -moz-transform: translateY(10px) translateX(-50%) scale(1);
    -ms-transform: translateY(10px) translateX(-50%) scale(1);
    -o-transform: translateY(10px) translateX(-50%) scale(1);
    transform: translateY(10px) translateX(-50%) scale(1);
  }
  100% {
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }
}
