/**
 * style.css
 *
 * Contents:
 * 1. General
 * 2. Footer
 * 3. Content
 */

/**
 * 1. General
 */
:root {
  /**
   * General
   */
  --fontSize: 1em;
  --transitionTime: 0.3s;
  --bgImage: url('/assets/images/airbus-military-a400m-3891964.jpg');
  --bgColor: #2f3335;
  --fontColor: #dedbd7;
  --shadowColor: rgba(0, 0, 0, 0.8);

  /**
   * Links
   */
  --linkColor: #57c4e5;
  --linkHover: #fea82f;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Roboto-Regular.ttf");
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Roboto-Bold.ttf");
}

* {
  box-sizing: border-box;
  outline: 0;
  font-family: 'Roboto', sans-serif;
  margin: 0px;
  padding: 0px;
  border: none;
  text-shadow: 1px 1px 1px var(--shadowColor);
}

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

body {
  background: var(--bgColor);
  color: var(--fontColor);
  font-size: var(--fontSize);
  display: flex;
  flex-direction: column;
  text-align: center;
}

#bgimg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3 )), var(--bgImage);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  z-index: -1;
  position: fixed;
  width: 100%;
  height: 100%;
  filter: blur(5px);
  transform: scale(1.1);
}

a {
  color: var(--linkColor);
  text-decoration: underline;
  cursor: pointer;
  transition: all var(--transitionTime);
}

a:active, a:hover, a:focus {
  color: var(--linkHover);
  text-decoration: underline;
}

h1, h2 {
  word-break: break-word;
}

h1 {
  font-size: calc(var(--fontSize) * 4);
  margin: 0;
  text-shadow: 3px 3px 3px var(--shadowColor);
}

h2 {
  font-size: calc(var(--fontSize) * 2);
  margin: calc(var(--fontSize) * 1.2) 0 calc(var(--fontSize) * 0.5);
  text-shadow: 2px 2px 2px var(--shadowColor);
}

@media only screen and (max-width: 600px) {
  h1, h2, h3 {
    text-align: center;
  }

  h1 {
    font-size: calc(var(--fontSize) * 2);
  }
  
  h2 {
    font-size: calc(var(--fontSize) * 1.5);
  }
}

p {
  margin: calc(var(--fontSize) * 0.8) 0;
}

code {
  padding: calc(var(--fontSize) * 0.35);
  background-color: var(--bgColor);
  font-family: monospace;
  border-radius: 5px;
}

code > a {
  font-family: monospace;
}

/**
 * 2. Footer
 */
#footer {
  width: 100%;
  text-align: center;
  position: fixed;
  bottom: 0px;
  left: 0px;
  background-color: var(--bgColor);
  padding: calc(var(--fontSize) * 0.3) 0px;
  font-size: calc(var(--fontSize) * 0.8);
  box-shadow: 0px -1px 6px var(--shadowColor);
}

#footer > div {
  display: inline-block;
  margin: 0px 10px;
}

#footer > div > a {
  padding: 0px 5px;
  text-decoration: none;
  transition: all var(--transitionTime);
}

#footer > div > a:hover, #footer > div > a:focus {
  text-decoration: underline;
}

/**
 * 3. Content
 */
#content {
  width: 100%;
  flex: auto;
  margin: calc(var(--fontSize) * 3) 0px calc(var(--fontSize) * 2.5);
  padding: 0px var(--fontSize);
}
