:root {
  --clr-primary: #00387c;
  --clr-secondary: #2392ee;
  --clr-thirdary: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button {
  cursor: pointer;
  color: var(--clr-thirdary);
  background-color: var(--clr-secondary);
  font-size: 18px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 5px;
  border: 2px solid var(--clr-secondary);
  transition: opacity 0.1s ease-in-out;
}

button:hover {
  opacity: 0.75;
}

html,
body {
  width: 100%;
  height: 100%;
}

body,
button,
input {
  font-family: "Manrope", sans-serif;
}

body {
  position: relative;
  margin: 0;
  color: var(--clr-thirdary);
  font-weight: 500;
  background-color: var(--clr-primary);
  padding: 0 20px;
}
body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0;
}

body::before {
  z-index: -1;
  background-color: var(--clr-primary);
  opacity: 0.925;
}

body::after {
  z-index: -2;
  background-image: url("./images/rocket-league-shot-on-goal.jpg");
  background-position: center;
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.brand__identity {
  margin-top: -75px;
  text-align: center;
}

.brand__identity svg {
  max-width: 400px;
}
.brand__identity h1 {
  font-size: 24px;
}

.comming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}
.comming-soon > p {
  font-weight: 700;
  font-size: 18px;
  max-width: 760px;
  text-align: center;
}

.get-in-contact {
  position: relative;
  margin-top: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.get-in-contact > * {
  position: absolute;
  transition: opacity 0.5s ease-in-out;
}

#contact-form {
  display: flex;
  flex: 1;
  justify-content: center;
  left: 0;
  right: 0;
}

#contact-form input[type="text"] {
  padding: 5px 20px;
  font-size: 18px;
  font-weight: 500;
}

#contact-form input {
  border-radius: 5px 0px 0px 5px;
  border: none;
  width: 100%;
  max-width: 300px;
}

#contact-form button {
  border-radius: 0px 5px 5px 0px;
}

#send-or-retry {
  display: flex;
  column-gap: 8px;
}

#send-or-retry > button:nth-child(1) {
  background-color: transparent;
  color: var(--clr-secondary);
  transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

#send-or-retry > button:nth-child(1):hover {
  background-color: var(--clr-secondary);
  color: var(--clr-thirdary);
}

#success-message {
  text-align: center;
}

.socials {
  overflow: hidden;
  display: flex;
  column-gap: 8px;
  padding: 10px;
  position: absolute;
  right: 0px;
  bottom: 0px;
}

.socials svg {
  fill: var(--clr-thirdary);
  width: 28px;
  transition: fill 0.1s ease-in-out;
}

.socials a:hover > svg {
  fill: var(--clr-secondary);
}

.hidden {
  opacity: 0;
  visibility: hidden;
  user-select: none;
}

/* Animations */
.brand__identity svg {
  animation: top-bottom 0.5s ease-in-out both running;
}
.brand__identity h1 {
  animation: top-bottom 0.5s ease-in-out 0.1s both running;
}

@keyframes top-bottom {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

.comming-soon > p {
  animation: bottom-top 0.5s ease-in-out 0.52s both running;
}

#contact-form {
  animation: bottom-top 0.5s ease-in-out 0.62s both running;
}

@keyframes bottom-top {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);

    opacity: 1;
  }
}

.socials {
  --min-delay: 1s;
}
.socials > a {
  animation: social 0.5s ease-out var(--min-delay) both running;
}
.socials > a:nth-child(2) {
  animation-delay: calc(var(--min-delay) + 0.05s);
}
.socials > a:nth-child(3) {
  animation-delay: calc(var(--min-delay) + 0.1s);
}
.socials > a:nth-child(4) {
  animation-delay: calc(var(--min-delay) + 0.15s);
}

@keyframes social {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}
