@import url('../../css.css');

html {
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  color: #fff;
}

h1 {
  font-size: 2em;
  color: #fff;
  opacity: 0;
  margin: 0 30px;
  flex-basis: 100%;
  -moz-transform: translateX(30px);
  -webkit-transform: translateX(30px);
  -o-transform: translateX(30px);
  -ms-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

h2 {
  font-size: 1em;
  color: #d6d6d6;
  opacity: 0;
  margin-left: 30px;
  margin-bottom: 40px;
  flex-basis: 100%;
  -moz-transform: translateX(30px);
  -webkit-transform: translateX(30px);
  -o-transform: translateX(30px);
  -ms-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
    text-decoration: none;
}

a:hover {text-decoration: none;}


#wrapper {
  display: flex;
  flex-flow: row nowrap;
  height: 100vh;
  min-height: 100vh;
}

section {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-flow: row wrap;
  transition: all 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
  align-items: flex-end;
  align-content: flex-end;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
    position: relative;
}

section .overlay{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; opacity: .4; pointer-events: none; transition: 500ms; }
    section:hover .overlay{ opacity: 0; }
    section .overlay-1{ background-color: #90A4AE; }
    section .overlay-2{ background-color: #607D8B; }
    section .overlay-3{ background-color: #455A64; }
    section .overlay-4{ background-color: #263238; }


section:hover {
  background-position: left center;
  flex-grow: 2.8;
    opacity: 1;
}

section:hover > h1 {
  transition-delay: 0.4s;
  opacity: 1;
  -moz-transform: translateX(0px);
  -webkit-transform: translateX(0px);
  -o-transform: translateX(0px);
  -ms-transform: translateX(0px);
  transform: translateX(0px);
}

section:hover > h2 {
  transition-delay: 0.8s;
  opacity: 1;
  -moz-transform: translateX(0px);
  -webkit-transform: translateX(0px);
  -o-transform: translateX(0px);
  -ms-transform: translateX(0px);
  transform: translateX(0px);
}

#wrapper section:nth-child(1) {
  background-image: url("../images/cesme.jpg");
  z-index: 10;
  background-color: #0a2333;
}

#wrapper section:nth-child(2) {
  background-image: url("../images/ankara.jpg");
  z-index: 20;
  background-color: #091f2e;
}

#wrapper section:nth-child(3) {
  background-image: url("../images/izmir.jpg");
  z-index: 30;
  background-color: #081c29;
}

#wrapper section:nth-child(4) {
  background-image: url("../images/iskenderun.jpg");
  background-color: #071824;
  z-index: 40;
}

.link{ position:absolute; top:0; left:0; right:0; bottom:0; }
	.link span{ position:absolute; top:0; left:0; right:0; bottom:0; display: block; width: 220px; height: 60px; margin: auto; padding: 17px 5px; box-sizing: border-box; color: #fff; background-color: rgba(0,0,0,0.7); font-size: 20px; font-weight: bold; text-align: center; }

@media (max-width: 600px) {
  #wrapper {
    display: flex;
    flex-flow: column wrap;
    height: auto;
    min-height: 100vh;
  }
  
  section{
    min-height: 400px;
    background-position: center top;
  }
}