

body {
  min-height: 100vh;
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column; 
  padding: 0;
    margin: 0;
}

.main-content {
  flex: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  }


img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 12px 0;
}

.heading {
  font-size: 42px;
  font-weight: 700;
  color: #343c41; 
}

.subheading {
  font-size: 28px;
  line-height: 20px;
  color: #a0a7ab; 
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input {
  width: auto;
  padding: 10px 8px;
  border: 1.5px solid #d9dcde; 
  border-radius: 4px;
  text-align: center;
  transition: all .4s linear;
}

.input::placeholder {
  opacity: 0.35;
}

.input:focus,
.input:hover,
.input:valid {
  outline: none;
  border: 1.5px solid #5ab8ff;
}

.btn {
  padding: 12px 32px;
  background-color: #fc1b1b; 
  font-size: 17px;
  letter-spacing: 0.5px;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  transition: all .4s ease-in-out;
  opacity: 0.45;
  cursor: pointer;
  margin-top: 40px;
}

.btn--active {
  animation: buttonActive .3s both;
}

.btn--success {
  animation: buttonSuccess .4s both;
}

.btn:focus {
  outline: none;
}

.subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 625px;
  min-height: 465px;
  border-radius: 9px;
  background-color: #ffffff; 
  box-shadow: 13px 15px 79px 6px rgba(0,0,0,0.1);
}

.subscribe__image {
  position: relative;
  max-width: 80px;
  margin: 50px 10px 0;
}

.subscribe__image--success:after {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  background-image: url('https://user-images.githubusercontent.com/23297041/53911760-6c581880-4068-11e9-90ab-ac45ae3b4aa8.png');
  background-size: cover;
  content: '';
  animation: slideUp .3s ease-out;
}

.subscribe__text {
  max-width: 300px;
  margin-bottom: 30px;
  text-align: center;
}

.subscribe__input {
  min-width: 250px;
  margin-bottom: 15px;
}

.subscribe__btn {
  width: 180px;
}
.site-footer {
  background: rgba(255, 0, 0, 0.774);
  display: flex;
  justify-content: center;

}

.footer-box {
  font-size: 16px;
  color: #ffffff;
}

@keyframes buttonActive {
  to {
    transform: translateY(-1px);
    opacity: 1;
  }
}

@keyframes buttonSuccess {
  from {
    opacity: 1;
  }
  to {
    width: 230px;
    background-color: #53ce67; 
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(15px);
  }
}

@media screen and (max-width: 680px) {
  .subscribe {
    min-width: 350px;
  }
}
