@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  padding: 0;
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.content {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding-left: 12rem;
  margin-right: auto;
  margin-left: auto;
}

.heading h1 {
  font-size: 3.2em;
  text-shadow: 3px 2px 8px black;
}

.heading p {
  opacity: 0.9;
  font-size: 16px;
  font-weight: normal;
  text-shadow: 3px 2px 8px black;
}

.form {
  height: 40px;
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.form-group {
  margin-right: 15px;
  height: 100%;
  width: 400px;
  border-radius: 4px;
}

input[type='email'] {
  width: 100%;
  height: 100%;
  outline: none;
  box-sizing: border-box;
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  color: #333;
}

.btn {
  height: 100%;
  padding: 0 20px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid #fff;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  transition: border-radius 0.3s;
  text-shadow: 1px 1px black;
}

.btn:hover {
  border-radius: 8px;
}

/* Change background image start */
.cd-background-image {
  height: 100vh;
  width: 100%;
  overflow: hidden;

  position: relative;
}

.contain_image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: linear 10s infinite alternate-reverse both running slideZoomIn,
    40s ease infinite normal forwards running animate;
}

@keyframes animate {
  0% {
    background-image: url(../images/image1.jpg);
  }
  25% {
    background-image: url(../images/image2.jpg);
  }
  50% {
    background-image: url(../images/image3.jpg);
  }
  75% {
    background-image: url(../images/image4.jpg);
  }
  100% {
    background-image: url(../images/image1.jpg);
  }
}

@keyframes slideZoomIn {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive start */
@media screen and (min-width: 1099px) and (max-width: 1200px) {
  .heading h1 {
    font-size: 2.8em;
  }

  .heading p {
    font-size: 18px;
  }

  .form-group {
    width: 60%;
  }

  input[type='email'],
  .btn {
    font-size: 18px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1098px) {
  .heading h1 {
    font-size: 2.5em;
  }

  .heading p {
    font-size: 16px;
  }

  .form-group {
    width: 50%;
  }

  input[type='email'],
  .btn {
    font-size: 16px;
  }
}

/* Horizontal iPad */
@media screen and (max-width: 1024px) {
  .heading h1 {
    font-size: 2.5em;
  }

  .heading p {
    font-size: 16px;
    white-space: nowrap;
  }

  .form-group {
    width: 80%;
  }

  input[type='email'],
  .btn {
    font-size: 14px;
  }
}

/* Vertical iPad */
@media screen and (max-width: 768px) {
  .heading h1 {
    font-size: 1.8em;
  }

  .heading p {
    font-size: 12px;
    white-space: nowrap;
  }

  .form-group {
    width: 80%;
  }

  input[type='email'],
  .btn {
    font-size: 12px;
  }
}

/* Small tablet */
@media screen and (max-width: 480px) {
  .heading h1 {
    font-size: 1.8em;
  }

  .heading p {
    font-size: 12px;
    white-space: nowrap;
  }

  .form-group {
    width: 80%;
  }

  input[type='email'],
  .btn {
    font-size: 12px;
  }
}

/* iPhone */
@media screen and (max-width: 320px) {
  .heading h1 {
    font-size: 1.5em;
  }

  .heading p {
    font-size: 10px;
    white-space: nowrap;
  }

  .form-group {
    width: 80%;
  }

  input[type='email'],
  .btn {
    font-size: 10px;
  }
}

/* Smart phone */
@media screen and (max-width: 240px) {
  .heading h1 {
    font-size: 1.2em;
  }

  .heading p {
    font-size: 8px;
    white-space: nowrap;
  }

  .form-group {
    width: 80%;
  }

  input[type='email'],
  .btn {
    font-size: 8px;
  }
}
