@import url("https://fonts.googleapis.com/css2?family=Gugi&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap");

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

:root {
  font-family: "Roboto", sans-serif;
  --default-background-color: #ccc;
  --background-light: rgb(240, 240, 240);
  --default-color: #333;

  --primary-color: #40739e;
  --primary-color-dark: #0d5292;
  --secondary-color: rgba(255, 255, 255, 0.75);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--default-background-color);
  min-height: 100vh;
}

#home-header,
#home-header .navlinks,
#home-footer {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#home-header {
  min-height: 30px;
}

.container {
  max-width: 90vw;
  margin: 0 auto;
  text-align: center;
}

#home-header .navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.brand-logo {
  font-family: "Gugi", cursive;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

#nav-menu .navlinks {
  text-decoration: none;
}

#nav-menu .navlinks:hover,
#nav-menu .navlinks:focus {
  outline: none;
  color: white;
}

#form-container {
  background-color: white;
  margin: 2rem auto;
  padding: 3rem 5rem;
  border-radius: 5px;
  min-width: 400px;
  min-height: 450px;
  line-height: 2rem;
  font-size: 1.1rem;
}

#form-header {
  color: var(--primary-color);
  padding: 1rem 0.5rem;
}

#form-input-container {
  margin: 2rem auto;
  text-align: left;
}

#form-input-container label {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
}

#form-input-container input {
  width: 100%;
  margin: 0.75rem 0;
  padding: 1.5rem 1rem;
  border: 0px;
  border-radius: 5px;
  outline: none;
  background-color: var(--background-light);
}

#form-input-container input:focus {
  outline: none;
  border: 1px solid var(--primary-color-dark);
}

#formFeedback {
  display: block;
  font-size: 0.9rem;
}

.success {
  color: green;
}

.failed {
  color: red;
}

#form-btns button {
  outline: none;
  border: none;
  cursor: pointer;
}

#submit {
  display: block;
  width: 100%;
  margin: 2rem auto;
  padding: 1.2rem 4rem;
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

#submit .loader {
  display: none;
}

#submit.loading > .loader {
  display: inline-block;
}
#submit.loading > .submitBtnTxt {
  display: none;
}

#reset {
  background-color: inherit;
  color: darkgray;
}

#submit:hover,
#submit:active,
#submit:focus {
  background-color: rgb(28, 51, 114);
}

#reset:hover,
#reset:active,
#reset:focus {
  color: var(--default-color);
}

#form-btns i {
  margin-right: 5px;
}

#home-footer {
  padding: 0.5em;
  line-height: 1.5rem;
  font-size: 0.95em;
}

#home-footer .profile-link {
  color: var(--secondary-color);
  margin: 0.5rem;
  border: 0;
}

#home-footer .profile-link:hover,
#home-footer .profile-link:focus {
  outline: none;
  font-size: 1.1em;
  color: white;
}

@media (max-width: 780px) {
  .container {
    max-width: 100%;
  }

  #form-container {
    min-width: initial;
    line-height: initial;
    font-size: 1rem;
    margin: 1rem 0.75rem;
    padding: 2rem;
    height: auto;
  }
}

@media (max-width: 420px) {
  #form-container {
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }

  .screen-line-break {
    display: block;
  }
}
