@charset "utf-8";
@import url(./reset.css);

:root {
  --app-header-color: #3300cc;
  --app-header-font-color: #ffffff;
  --app-header-height: 60px;
  --app-nav-collapse-size: 40px;

  --app-footer-color: #292d3a;
  --app-footer-font-color: #ffffff;
  --app-footer-height: 60px;


  --app-background-color: #f1f2f4;
  --app-font-color: #000000;
  --app-button-color: #0000ff;
}

.container {
  width: min(1080px, 100% - 30px);
  margin-inline: auto;
}

.flex {
  display: flex;
}

.center {
  align-items: center;
}

a {
  /* NO */
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  font-size: 0px;
}

body {
  /* To make sure the footer is always at the bottom of the page */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--app-background-color);
}

/* - - - - - - - - - - 
  HEADER
 - - - - - - - - - - */
header {
  background-color: var(--app-header-color);
  color: var(--app-header-font-color);
  height: var(--app-header-height);
  line-height: var(--app-header-height);

  overflow: hidden;
  /* Need a better fix for this. Some of the nav doesn't fit. */
  z-index: 9;
}

header h1 {
  width: 30%;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

header nav {
  width: 70%;
  text-align: right;
}

header nav ul {
  list-style-type: none;
  /* fixes a firefox whitespace bug */
  font-size: 0;
}

header nav ul li {
  font-size: 18px;
  font-weight: 500;
  display: inline;
}

header nav ul li a {
  transition: color 0.25s ease-in-out;
  display: inline-block;
  padding: 0px 20px;

  color: #FFFFFF;
  text-decoration: none;
}

header nav ul li a:hover {
  color: #3300CC;
  background-color: #33CCCC;
}

/* - - - - - - - - - -
  MOBILE NAV
 - - - - - - - - - - */
header .collapse {
  width: var(--app-nav-collapse-size);
  height: var(--app-nav-collapse-size);
  margin-top: calc((var(--app-header-height) - var(--app-nav-collapse-size)) / 2);
  text-align: center;
  cursor: pointer;

  display: none;
}

header .collapse i {
  line-height: var(--app-nav-collapse-size);
  color: var(--app-header-font-color);
  font-size: 40px;
}

.mobile-nav {
  /* In the future, I would like to animate this dropping down. But I'll work on what I need first. */
  display: none;
  z-index: 1;
}

.mobile-nav ul li a {
  display: block;
  height: 40px;
  line-height: 40px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  color: var(--app-font-color);
  transition: all 0.5s ease-in-out;
  font-size: 18px;
  background-color: var(--app-background-color);
}

.mobile-nav ul li a:hover {
  background-color: #b0b0b0;
}

/* - - - - - - - - - -
  Switch the nav button with the hamburger icon when the screen gets too small.
 - - - - - - - - - - */
@media screen and (max-width: 768px) {
  header nav {
    display: none;
  }

  header .collapse {
    display: block;
  }

  header h1 {
    width: calc(100% - var(--app-nav-collapse-size));
  }
}

/* - - - - - - - - - -
  MAIN
 - - - - - - - - - - */
main {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* - - - - - - - - - -
  FOOTER
 - - - - - - - - - - */
footer {
  background-color: var(--app-footer-color);
  color: var(--app-footer-font-color);
  height: var(--app-footer-height);
  margin-top: auto;
  overflow: hidden;
  z-index: 9;
}

footer>div {
  display: flex;
}

footer .copy {
  display: inline-block;
  width: 60%;
}

footer .copy p {
  line-height: var(--app-footer-height);
  font-size: 16px;
  font-weight: 300;
}

footer .social {
  line-height: var(--app-footer-height);
  width: 40%;
  text-align: right;
}

footer .social ul li {
  font-size: 24px;
}

footer .social ul li+li {
  margin-left: 10px;
}

/* - - - - - - - - - -
  SOCIAL MENU
 - - - - - - - - - - */

.social ul li {
  display: inline;
}

.social ul li:hover {
  transition: 0.3s;
  color: var(--app-color-2);
}

.social ul li:active {
  color: var(--app-color-1);
}

/* - - - - - - - - - -
  BLUE LINKS
 - - - - - - - - - - */
a.bluelink {
  text-decoration: underline;
  color: #0000FF;
}