/* --------------------------------------------------- */
/* sailjump-repo/sj_flask/app/static/css/sj_styles.css */
/* --------------------------------------------------- */

:root {
  --primary-color: #106093;
  --secondary-color: #69b9ec;
  --teritiaty-color: #ffffff;
  --background-color: white;
  --background-color-hover: turquoise;
  --accent-colour: orange;
  --accent-colour-2: yellow;
  --border: grey;
}

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

body {
  height: 100%;
  margin: 0 auto 0 auto;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, sans-serif;
  font-size: 1em;
  color: #002240;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

.container {
  color: cream;
}

p {
  line-height: 125%;
}

a {
  color: inherit;
}

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

.mw-md {
  max-width: 768px;
}
.mw-sm {
  max-width: 576px;
}
.mw-500 {
  max-width: 500px;
}
.mw-450 {
  max-width: 450px;
}
.mw-400 {
  max-width: 400px;
}
.mw-350 {
  max-width: 350px;
}
.mw-300 {
  max-width: 300px;
}
.mw-250 {
  max-width: 250px;
}
.mw-200 {
  max-width: 200px;
}
.mw-150 {
  max-width: 150px;
}
.mw-100 {
  max-width: 100px;
}
.mw-50 {
  max-width: 50px;
}

.bi {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.125em;
  margin-bottom: calc(0.125em / 2);
  fill: currentColor;
}

#features {
  background-image: url('../img/website/sj-features-bg2.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#testimonials {
  /* fallback for old browsers */
  background: #f6d365;
  
  /* Chrome 10-25, Safari 5.1-6 */
  background: -webkit-linear-gradient(to right, rgba(246, 211, 101, 1), rgba(253, 160, 133, 1));
  
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background: linear-gradient(to right, rgba(246, 211, 101, 1), rgba(253, 160, 133, 1))
}

.form-account {
  max-width: 28rem;
  padding: 1rem;
  margin: 0 auto;
  border-radius: 0.5rem;
  border: var(--border);

  /* An explicit background is required here, as it's actually transparent by default, and we
  don't want to see the shadow element behind */
  background: var(--background-color);

  /* This shadow is separated from the edges by 0.75rem, and shrunk by 0.2rem on the
  top and bottom. */
  /* box-shadow: 0.75rem 0.75rem 0 -0.2rem var(--accent-colour); */
}

.form-container {
  /* padding: t r b l */
  padding: 1rem 1rem 0rem 1rem;
}
  
/* The following media queries allow for more padding inside the form as the window
  size increases */
@media screen and (min-width: 24.75em) {
  .form-container {
    padding-left: 1rem;
  }
}

@media screen and (min-width: 30em) {
  .form-container {
    padding-left: 1.5rem;
  }
}

.form-group {
  /* Surrounds the label and input fields, placing the label above the input */
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-field {
  /* Removes the border and the outline highlight when the text field is in focus */
  outline: none;
  border: none;

  /* Re-adds a bottom border which will be replaces when the field is in focus. This
       is going to prevent any jumping when we add the border later */
  border-bottom: 3px solid #fff;

  /* We have to be explicit about our text fields inheriting font properties */
  font-size: inherit;
  font-family: inherit;

  padding: 0.75rem 0.5rem;
  background: var(--background-color);
}

/* When the field is in focus, we change the border colour at the bottom to the accent colour */
.form-field:focus {
  border-bottom: var(--border);
}

.form__small {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.form__link {
  text-decoration: none;
  color: var(--accent-colour);
}

.form__link:hover {
  color: #d05656;
}

.form-error {
  margin-top: 0.5rem;
}

.form-error,
.form-flash {
  display: block;
  padding: 0.5rem;
  color: var(--text);
}

.form-error,
.form-flash--danger {
  background: var(--accent-colour);
}

.form-flash {
  margin: 0.5rem;
}

.form-flash--success {
  background: var(--accent-colour-2);
}

/* Styles specific to the form buttons */
.button--form {
  margin: 2rem 0 0 auto;
  padding: 0.75rem 3rem;
  border: none;
  background: var(--background-color);
}

.button--form:hover {
  background: var(--background-color-hover);
}