/* Font */
@font-face {
  font-family: 'EmpirePro';
  src: url('/fonts/empirePro1.woff2') format('woff2'),
  url('/fonts/empirePro1.woff') format('woff'),
  url('/fonts/empirePro1.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Variables */
:root {
  --primary-color: whitesmoke;
  --secondary-color: goldenrod;
  --spacing: 15px;
  --base-font-family: 'EmpirePro', sans-serif;
  --base-font-size: 16px;
  --base-line-height: 1.5;
}

@media (min-width: 768px) {
  :root {
    --spacing: 30px;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #000;
  color: var(--primary-color);
  font-family: var(--base-font-family);
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Links */
a {
  color: whitesmoke;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--secondary-color);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.35);
}

/* Header */
header {
  text-align: center;
  padding: var(--spacing);
}

@media (min-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
  }
}

.masthead-nav > li,
.masthead-brand > li {
  display: inline-block;
}

.masthead-nav > li + li,
.masthead-brand > li + li {
  margin-left: 20px;
}

/* Main */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: auto;
  padding: var(--spacing);
  text-align: center;
}

h1 {
  font-size: calc(var(--base-font-size) * 2);
  margin-bottom: var(--spacing);
}

@media (min-width: 768px) {
  h1 {
    font-size: calc(var(--base-font-size) * 3);
  }
}

/* Logo */
.logo-container {
  margin: var(--spacing) 0;
}

.logo img {
  width: 220px;
  height: auto;
}

@media (min-width: 768px) {
  .logo img {
    width: 320px;
  }
}

/* Clock */
#clock div {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  margin: 0 8px 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 30px;
  min-width: 48px;
}

#clock span {
  display: block;
  font-size: 32px;
  font-weight: 100;
  padding: 30px 0;
  border-bottom: 1px solid #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing);
  font-size: calc(var(--base-font-size) * 0.75);
}

/* Loader */
.loader {
  margin-top: 67px;
  width: 40px;
  height: 98px;
  display: inline-block;
  position: relative;
  border: 2px solid #FFF;
  box-sizing: border-box;
  color: var(--secondary-color);
  border-radius: 20px 20px 4px 4px;
  background: #fff;
  animation: fill 2s linear infinite alternate;
}
.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50% , -95%);
  border: 2px solid #FFF;
  border-bottom: none;
  background: #fff;
  width: 15px;
  height: 35px;
  animation: fillNeck 2s linear infinite alternate;
}

@keyframes fill {
  0% { box-shadow: 0 0  inset }
  50% , 100% { box-shadow: 0 -98px inset }
}


@keyframes fillNeck {
  0% , 50%{ box-shadow: 0 0  inset }
  100% { box-shadow: 0 -20px inset }
}

