@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
}

html {
  font-family: "Poppins", sans-serif;
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(0, 102, 218, 0.891) 0%,
    rgba(111, 196, 247, 0.9668242296918768) 58%
  );
  position: relative;
}

a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

header {
  background: url("../images/shutterstock_1134885563-1.jpg") no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  padding-block: 2.5rem;
  color: white;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

header a {
  color: gold;
  background-color: rgba(18, 125, 248, 0.8);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  font-size: 1.7rem;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 800px;
  gap: 2rem;
  padding-inline: 3rem;
}

textarea {
  border: 1px solid black;
  flex: 1;
  height: 400px;
  padding: 2rem;
  font-size: 1.8rem;
  line-height: 1.6;
  resize: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  flex: 1;
  background-color: rgb(0, 73, 182);
  height: 400px;
  color: white;
}

.statBox {
  text-align: center;
}

.statBox .num {
  font-size: 3.5rem;
  color: gold;
  font-weight: 600;
}

.statBox p {
  font-size: 2rem;
  margin-top: 1rem;
}

.warning {
  position: absolute;
  text-align: center;
  padding: 2rem;
  background-color: rgb(175, 0, 0);
  color: white;
  font-size: 1.6rem;
  display: none;
}

.twitter-warning {
  bottom: 5rem;
  left: 0;
}

.linkedin-warning {
  bottom: 5rem;
  right: 0;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding-block: 3rem;
  }

  textarea {
    width: 400px;
  }
  .stats {
    width: 400px;
  }

  .twitter-warning {
    top: 45rem;
    height: 65px;
  }

  .linkedin-warning {
    top: 35rem;
    height: 65px;
  }
}
