:root {
  --primary-color: #333;
  --secondary-color: #444;
  --overlay-color: rgba(0, 0, 0, 0.5);
  --overlay2-color: rgba(0, 0, 0, 0.7);
  --overlay3-color: rgba(0, 0, 0, 0.9);
  --overlay4-color: rgba(0, 0, 0, 0.6);
  --navbar-color: #000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Catamaran', sans-serif;
  line-height: 1.6;
  color: #333;
  font-size: 1.1rem;
}

h1, h2, h3, h4 {
  line-height: 1.3;
}

a{
  color: var(--secondary-color);
  text-decoration: none;
}

ul{
  list-style: none;
}

img {
  width: 100%;
}

.container{
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

.navbar{
  z-index:1000;
  color: white;
  font-size: 1.2rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  background-color: black;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.navbar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.navbar .logo {
  color: white;
  font-size: 2rem;
}

/*.navbar .logo:hover{
  color: #aaa;
  font-size: 2rem;
}*/

.navbar .nav {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .nav a {
  color: white;
  padding: 0 1rem;
}

.navbar .nav a:hover {
  color: #aaa;
}

.navbarv #myLinks {
  display: none;
}
.icon {
  display: none;
}

/* Section A */

.section-a {
  margin: 1rem 0;
}

.section-a .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3rem;
  align-items: center;
  justify-content: center;
}
.section-a h1 {
  font-size: 2rem;
  color: var(--primary-color);
}

.section-a p {
  margin: 1rem 0;
}

/* Section B */
.section-b {
  position: relative;
  background: url('../img/mtns.jpg') no-repeat bottom center/cover;
  height: 800px;
}

.section-b-inner {
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 860px;
  padding: 5rem 0;
}

.section-b-inner h3 {
  font-size: 2rem;
}
.section-b-inner h2 {
  font-size: 5rem;
  margin-top: 1rem;
}

.section-b-inner p {
  font-size: 1.5rem;
  margin-top: 1rem;
}

#btn-section-b{
  margin-top: 2rem;
  background: white;
  color: black;
}
#btn-section-b:hover {
  background: #aaa;
  color: white;
}

/* Section C */

.gallerytitle {
  font-size: 3rem;
  color: white;
  text-shadow: 3px 3px 4px #777;
  display: grid;
  background: url('../img/819944_65b9_11.jpg') no-repeat top center/cover;
}

.gallerytitle h2{
  align-items: center;
  justify-self: center;
}

.section-c .gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.section-c .gallery a:first-child {
  grid-row: 1/3;
  grid-column: 1/3;
}

.section-c .gallery a:nth-child(2) {
  grid-column: 3/5;
  grid-row: 1/2;
}

.section-c .gallery a:nth-child(4) {
  grid-column: 3/5;
  grid-row: 2/3;
}

.section-c .gallery img, .section-c .gallery a {
  width: 100%;
  height: 100%;
}

/* Section D */
/*.section-d {
  background: url('../img/architectural-design-architecture-buildings-830891.jpg') no-repeat bottom center/cover;
  height: 500px;
}*/

/* SECTION D */
.section-d{
  position: relative;
  background: url('../img/architectural-design-architecture-buildings-830891.jpg') no-repeat bottom center/cover;
  height: 800px;
  /*width: auto;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3rem;
  align-items: center;
  justify-content: center;
  color: #000;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0;
  max-width: 860px;
  padding: 0;*/
}

.section-d-inner {
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 860px;
  padding: 5rem 0;
}

.section-d-inner p {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-d-inner h2 {
  color: white;
  font-size: 7rem;
  margin-top: 0;
  //color: var(--primary-color);
}

.section-d-inner h3 {
  color: white;
  font-size: 2.5rem;
  margin-top: 1rem;
//color: var(--primary-color);
}

.section-d-inner h4 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
//color: var(--primary-color);
}

.section-d-inner ul {
  color: white;
  font-size: 1.8rem;
  margin-top: 1rem;
}

#btn-section-d{
  margin-top: 0rem;
  background: white;
  color: black;
  font-weight: bold;
}
#btn-section-d:hover {
  background: #aaa;
  color: white;
}

.btn-d {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 60px;
}

.btn-d:hover {
  background: var(--secondary-color);
}

/* Section E */
.section-e{
  position: relative;
  //background: url('../img/logo3.png') no-repeat center center/cover;
  background-color: white;
  -webkit-background-size: 100% auto;
  -moz-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
  height: 1000px;
}

.section-e-inner {
  color: #000;
  //text-shadow: 3px 3px 4px #000;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 860px;
  padding: 0;
}

.section-e-inner h2 {
  font-size: 5rem;
  margin-bottom: 3rem;
}

.section-e-inner h3 {
  font-size: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section-e-inner ul {
  line-height: 2rem;
  font-size: 1.2rem;
}

.section-e-ul {
  display: flex;
  flex-direction: row;
}

.section-e-flipbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.flip_h2{

}

.flip_h2 h2{
  font-size: 4rem;
}

/* Section F */
.section-e{
  position: relative;
//background: url('../img/logo3.png') no-repeat center center/cover;
  background-color: white;
  -webkit-background-size: 100% auto;
  -moz-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
  height: auto;
}

.section-e-inner {
  color: #000;
//text-shadow: 3px 3px 4px #000;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 860px;
  padding: 5rem 0;
}

.section-e-inner-des {
  align-content: center;
  justify-content: center;
  align-items: center;
}

.section-e-inner-des img {
  float: top;
  height: 160px;
  width: 220px;
  border: 2px black solid;
}

#img2 {
  float: top;
  height: 160px;
  width: 220px;
  border: 2px black solid;
}

.section-e-inner h2 {
  font-size: 5rem;
  margin-bottom: 0;
}

.section-e-inner h3 {
  font-size: 4rem;
  margin-top: 0;
  margin-bottom: 0rem;
}

.section-e h4{
  font-size: 1.7rem;
  margin-top: 3rem;
  margin-bottom: 0;
}

/*.section-e p {
  margin-bottom: 4rem;
}*/

/* Footer */
.section-footer {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
}

.section-footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  margin: 0 4rem;
}

.section-footer h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-footer h3 {
  margin-bottom: 0.7rem;
}

.section-footer a{
  line-height: 1.9;
  color: #ccc;
}

.section-footer a > i {
  color: #fff;
  margin-right: 0.5rem;
}

.section-footer a:hover{
  line-height: 1.9;
  color: #aaa;
}

.section-footer h2 > a{
  color: white;
}

.section-footer h2 > a:hover{
  color: #eee;
}

.section-footer .company h2{
  font-size: 2.2rem;
  margin-bottom: 0;
}

.section-footer .company h3{
  font-size: 1rem;
  margin-bottom: 0;
}

.section-footer .information{
  margin-left: 2rem;
}

.section-footer .newsletter{
  margin-left: 2rem;
}

.email-form .form-control {
  display: inline-block;
  border: 0;
  outline: 0;
  font-size: 1rem;
  color: #ddd;
  background-color: transparent;
  font-family: inherit;
  margin: 0;
  padding: 0 3rem 0 1.5rem;
  width: 100%;
  height: 35px;
  border-radius: 20px;
}

.email-form .submit {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
  background-color: #eee;
  font-size: 1rem;
  text-align: center;
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  color: #333;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
}

.email-form .submit:hover {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
  background-color: #aaa;
  font-size: 1rem;
  text-align: center;
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  color: #333;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
}

/* Email Form */
.email-form {
  width: 100%;
  display: inline-block;
  background-color: #555;
  position: relative;
  border-radius: 20px;
  line-height: 0;
  margin-top: 1rem;
}

/* Utilities */

.line{
  width: 112px;
  height: 47px;
  border-bottom: 1px solid black;
  position: absolute;
}


.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 30px;
}

.btn:hover {
  background: var(--secondary-color);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--overlay-color);
}

.overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--overlay2-color);
}

.overlay3 {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--overlay3-color);
}

.overlay4 {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--overlay4-color);
}

/* Style the header: fixed position (always stay at the top) */
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
}

/* The progress container (grey background) */
.progress-container {
  width: 100%;
  height: 5px;
  background: #000;
}

/* The progress bar (scroll indicator) */
.progress-bar {
  height: 5px;
  background: #fff;
  width: 0;
}

/* The flip box container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-box {
  background-color: transparent;
  width: 400px;
  height: 200px;
  border: 1px solid #f1f1f1;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
  margin: 1rem 4rem;
}

/* This container is needed to position the front and back side */
.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
  transform: rotateX(180deg);
}


/* Position the front and back side */
.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

/* Style the front side */
.flip-box-front {
  padding: .5rem;
  background-color: black;
  color: white;
}

.flip-box .flip-box-inner .flip-box-front h2 {
  font-size: 2rem;
  margin-top: 4rem;
}

/* Style the back side */
.flip-box-back {
  padding-left: 2rem;
  padding-right: 2rem;
  transform: rotateX(180deg);
}

.flip-box-back p {
  font-size: 1.1rem;
  margin-top: 4rem;
}

#btn-flipbox {
  display: inline-block;
  background: black;
  color: #fff;
  padding: 0.3rem .8rem;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  margin-top: .5rem;
  border-radius: 30px;
}

#btn-flipbox:hover {
  background: var(--secondary-color);
}

#btn-flipbox2 {
  display: inline-block;
  background: black;
  color: #fff;
  padding: 0.5rem .9rem;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  margin-top: .5rem;
  border-radius: 30px;
}

#btn-flipbox2:hover {
  background: var(--secondary-color);
}

/* Media Queries */
@media(max-width: 1011px) {

  .header {
    position: fixed;
    top: 0;
    z-index: 1;
    width: auto;
    background-color: #f1f1f1;
  }

  .progress-container {
    height: 5px;
    background: #000;
  }

  .navbar{
    z-index:1000;
    color: white;
    font-size: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: black;
    overflow: hidden;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
  }

  .navbar .container {
    display: flex;
    flex-direction: column;
    //grid-template-columns: 1fr;
    text-align: center;
    width: auto;
  }

  .navbar .logo {
    grid-row: 1/2;
  }

  .navbar .nav{
    justify-self: center;
    display: grid;
    align-items: center;
    justify-content: center;
  }

  /* Hide the links inside the navigation menu (except for logo/home) */
  .navbar #myLinks {
    display: none;
  }

  /* Style the hamburger menu */

  .icon {
    display: unset;
  }
  .navbar a.icon {
    background: black;
    color: white;
    margin: .5rem 2rem .5rem .5rem;
  }

  .navbar a.icon:hover {
    color: #aaa;
  }

  /* Add a grey background color on mouse-over
  .navbar a:hover {
    background-color: #ddd;
    color: black;
  }*/

  /* Style the active link (or home/logo) */
  .active {
    background-color: #4CAF50;
    color: white;
  }

  .section-a .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .section-a .container div:first-child {
    order: 2;
  }

  .section-a .container div:last-child {
    order: -1;
  }

  .section-a img {
    width: 80%;
    margin: auto;
  }

  .section-b-inner h2 {
    font-size: 3.5rem;
  }

  .section-c .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-c .gallery a:first-child {
    grid-row: 1/1;
    grid-column: 1/1;
  }

  .section-c .gallery a:nth-child(2) {
    grid-row: 2/2;
    grid-column: 1/3;
  }

  .section-d-inner h2 {
    color: white;
    font-size: 2.5rem;
    margin-top: 1rem;
  //color: var(--primary-color);
  }

  .section-d-inner ul {
    color: white;
    font-size: 1rem;
    margin: 1rem 0;
  }

  .section-e{
    position: relative;
    height: auto;
    width: auto;
  }

  .section-e-inner {
    //min-width: 320px;
    padding: 2rem 0;
  }

  .section-e-inner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .section-e-inner h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .section-e-inner ul {
    line-height: 1.5rem;
    font-size: 1rem;
  }

  .section-e-ul {
    display: flex;
    flex-direction: row;
  }

  .flip_h2{

  }

  .flip_h2 h2{
    font-size: 2rem;
  }

  .section-e-flipbox {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(1, 1fr);
  }

  .flip-box {
    background-color: transparent;
    width: 250px;
    height: 150px;
    border: 1px solid #f1f1f1;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
    margin: .5rem 2rem;
  }

  .flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }

  .flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
  }

  .flip-box-front {
    padding: .5rem;
    background-color: black;
    color: white;
  }

  .flip-box .flip-box-inner .flip-box-front h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .flip-box-back {
    padding-left: 1rem;
    padding-right: 1rem;
    transform: rotateX(180deg);
  }

  .flip-box-back p {
    font-size: .8rem;
    margin-top: 2rem;
  }

  #btn-flipbox {
    display: inline-block;
    background: black;
    color: #fff;
    padding: 0.3rem .8rem;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    margin-top: .5rem;
    border-radius: 30px;
  }

  #btn-flipbox2 {
    display: inline-block;
    background: black;
    color: #fff;
    padding: 0.5rem .9rem;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    margin-top: .5rem;
    border-radius: 30px;
  }

  .section-footer {
    padding: 2rem 0;
  }

  .section-footer div:nth-child(3){
    display: none;
  }

  .section-footer .container {
    display: flex;
    flex-direction: column;
    margin: 0 0;
    text-align: center;
  }

  .section-footer .company h2{
    font-size: 1.8rem;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .section-footer .company h3{
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

}

@media(max-width: 450px) {
  /* Section A */

  .section-a {
    margin: 1rem 0;
  }

  .section-a .container {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    grid-gap: 1rem;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }
  .section-a h1 {
    font-size: 1rem;
    color: var(--primary-color);
    text-align: left;
  }

  .section-a p {
    font-size: 13px;
    margin: .5rem 0;
    text-align: left;
  }

  .section-a .container .btn {
    padding: .5rem .6rem;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* LINK UNDERLINE */
/*a {
		-moz-transition: border-bottom-color 0.25s ease-in-out;
		-webkit-transition: border-bottom-color 0.25s ease-in-out;
		-ms-transition: border-bottom-color 0.25s ease-in-out;
		transition: border-bottom-color 0.25s ease-in-out;
		text-decoration: none;
		color: #000000;
		border-bottom: dotted 1px;
	}

		a:hover {
			text-decoration: none;
			border-bottom-color: transparent;
		}*/
