* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  color: #333;
}

.main {
  display: flex;
  flex-direction: column;
  color: #fff;
  height: 100vh;
}

.container {
  max-width: 960px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: auto;
  text-align: center;
}

.fullscreen-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

a:active,
a:visited,
a:focus {
  outline: none;
  text-decoration: none;
}

.main-overlay {
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  background: #225470;
  z-index: 1;
  opacity: 0.7;
}

.fullscreen-video-wrap video {
  min-width: 100%;
  min-height: 100%;
}

.main-header {
  z-index: 2;
  margin-top: 200px;
}

h1 {
  margin-bottom: 1.4rem;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 4rem;
}

.main p {
  font-size: 3rem;
  font-weight: 300;
}

.main-line {
  width: 200px;
  height: 1px;
  background-color: #fff;
  margin: 0 auto;
}

.main-down {
  position: absolute;
  display: inline-block;
  font-size: 2rem;
  width: 30px;
  top: 85%;
  left: 50%;
  margin-left: 25px;
  color: #fff;
  z-index: 4;
  height: 50px;
  border-radius: 50%;
  border: 1px solid transparent;
  line-height: 50px;
  transition: 0.2s;
}

.main-down:hover {
  color: #ffffff;
  border: 1px solid #fff;
}

/****Portfolio section****/

.portfolio {
  padding: 10rem 0;
  text-align: center;
}

.portfolio img {
  width: 100%;
  max-width: 360px;
  box-shadow: 0px 4px 29px 0px rgba(87, 92, 97, 0.5);
}

.section-header {
  font-weight: 800;
  font-size: 5rem;
  text-transform: uppercase;
  margin-bottom: 5rem;
}

.portfolio a {
  display: block;
  margin: 2rem auto 6rem;
  color: #333;
  width: 17rem;
  border-bottom: 1px solid transparent;
}

.portfolio a:hover {
  text-decoration: none;
  border-bottom: 1px dotted #333;
}

/***Footer section****/
footer {
  background-color: #646464;
  color: #fff;
  text-align: center;
  padding: 3rem;
}
footer strong {
  font-weight: 300;
  font-size: 2.4rem;
}
.social-links {
  margin-top: 1rem;
}
.social-links a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 2rem;
  transition: 0.2s;
}
.social-links a:hover {
  background-color: #fff;
  color: #646464;
}
.offer-btn {
  display: block;
  width: 80%;
  max-width: 200px;
  margin: 1rem auto;
  border: 1px solid #fff;
  padding: 1rem 0 1rem 0;
  color: #fff;
  border-radius: 100px;
  transition: 0.2s;
}
.offer-btn:hover {
  text-decoration: none;
  background-color: #fff;
  color: #646464;
}
.modal img {
  width: 100%;
}
.modal-title {
  font-weight: 800;
  font-size: 4rem;
}
.close {
  background-color: transparent;
  border: none;
  font-size: 2.5rem;
  position: absolute;
  right: 2rem;
  top: 1rem;
}
.modal-btn {
  display: inline-block;
  color: #333;
  border: 1px solid #333;
  padding: 10px 20px;
  border-radius: 5px;
}
.modal-btn:hover {
  background-color: #333;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 760px) {
  html {
    font-size: 7px;
  }
  footer strong {
    margin: 3rem 0 2rem;
    display: inline-block;
  }
  .social-links a {
    font-size: 1.5rem;
  }
}

@media (min-width: 761px) and (max-width: 991px) {
  footer strong {
    margin: 3rem 0 2rem;
    display: inline-block;
  }
}
