@import url('https://fonts.googleapis.com/css?family=Karla:400|Spectral:400');

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* #VARIABLES */

:root {
  /*- primary colors */
  --primary-1: #d5eff1;
  --primary-2: #abdfe3;
  --primary-3: #80ced6;
  --primary-4: #56bec8;
  --primary-5: #2caeba;
  --primary-6: #238b95;
  --primary-7: #1a6870;
  --primary-8: #12464a;
  --primary-9: #092325;
  /*- grey colors */
  --grey-1: #f9fafb;
  --grey-2: #f3f4f6;
  --grey-3: #e5e7eb;
  --grey-4: #d1d5db;
  --grey-5: #9ca3af;
  --grey-6: #6b7280;
  --grey-7: #4b5563;
  --grey-8: #374151;
  --grey-9: #1f2937;
  /*- other colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /*- set colors  */
  --backgroundColor: var(--grey-1);
  --textColor: var(--grey-9);

  /*- fonts */
  --headingFont: 'Spectral', serif;
  --bodyFont: 'Karla', sans-serif;
  --smallText: 0.8em;

  /*- dimensions */
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --maxWidth: 1170px;
  --fixedWidth: 600px;

  /*- transitions  */
  --transition: all 0.3s linear;
  --transitionLong: all 1s ease-in-out;

  /*- shadows */
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* #GLOBAL STYLES */

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

body {
  background: var(--backgroundColor);
  color: var(--textColor);
  font-family: var(--bodyFont);
  font-weight: 400;
  line-height: 1.75;
}

p {
  margin-bottom: 1.25rem;
  max-width: 40em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  margin-bottom: 1.38rem;
  font-family: var(--headingFont);
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}

h1 {
  margin-top: 0;
  font-size: 3.052rem;
}

h2 {
  font-size: 2.441rem;
}

h3 {
  font-size: 1.953rem;
}

h4 {
  font-size: 1.563rem;
}

h5 {
  font-size: 1.25rem;
}

small,
.text-small {
  font-size: var(--smallText);
}

a {
  text-decoration: none;
  text-transform: capitalize;
}

ul {
  list-style-type: none;
  padding: 0;
}

/* #GLOBAL CLASSES */

/*- images */

.img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/*- buttons */

.btn {
  display: inline-block;
  cursor: pointer;
  background: var(--primary-5);
  color: var(--white);
  border: transparent;
  border-radius: var(--borderRadius);
  letter-spacing: var(--letterSpacing);
  padding: 0.4rem 0.8rem;
  box-shadow: var(--shadow-1);
  text-transform: capitalize;
  transition: var(--transition);
}
.btn:hover {
  background: var(--primary-6);
  box-shadow: var(--shadow-3);
}
.btn-block {
  width: 100%;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
}

/*- alerts */

.alert {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-color: transparent;
  border-radius: var(--borderRadius);
  text-align: center;
}
.alert-danger {
  background: var(--red-light);
  color: var(--red-dark);
}
.alert-success {
  background: var(--green-light);
  color: var(--green-dark);
}

/*- forms */

.form {
  max-width: var(--fixedWidth);
  background: var(--white);
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow-2);
  padding: 1rem;
  margin: 3rem auto;
}
.form-label {
  display: block;
  font-size: var(--smallText);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--grey-2);
  border-radius: var(--borderRadius);
  background: var(--backgroundColor);
}
.form-row {
  margin-bottom: 1rem;
}
.form-textarea {
  height: 7rem;
}
::placeholder {
  font-family: inherit;
  color: var(--grey-5);
}
.form-alert {
  color: var(--red-dark);
  letter-spacing: var(--letterSpacing);
  text-transform: capitalize;
}

/* -loading  */

.loading {
  margin: 0 auto;
  width: 5rem;
  height: 5rem;
  border: 4px solid var(--grey-4);
  border-radius: 50%;
  border-top-color: var(--primary-5);
  animation: loading 0.75s linear infinite;
}
@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

/* -title */

.title {
  text-align: center;
}
.title-underline {
  background: var(--primary-5);
  width: 7rem;
  height: 0.25rem;
  margin: -1rem auto 0;
  transition: var(--transitionLong);
}
.title:hover .title-underline {
  width: 11rem;
  background: var(--primary-6);
}

/* #CUSTOM STYLES */

main {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
}

header {
  padding: 1rem;
}

/* 
=====================
FOOTER
=====================
*/

footer {
  color: #fff;
  background: #111;
  text-align: center;
  width: 100%;
  padding: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
}

footer a {
  text-decoration: none;
}

footer .link:hover,
footer .icon i:hover {
  color: #fff;
}

footer .link {
  color: #489fb5;
  transition: 0.3s all linear;
  font-weight: bold;
  text-transform: uppercase;
  padding-right: 0.5rem;
  border-right: 3px solid #fff;
  margin-right: 1rem;
}
footer .icon {
  font-size: 1.75rem;
  vertical-align: middle;
  transition: 0.3s all linear;
  line-height: 1;
}

#twitter {
  color: #00a7e7;
}
#instagram {
  color: #ea6960;
}
#linkedin {
  color: #0073b1;
}
