
* {
  padding: 0;
  margin: 0;
}

/* body */

body, html {
    height: 100vh;
    margin: auto 10% auto 10%;
    font-size: 12px;
    color: #bd0f18;
    background: rgb(0, 0, 0);
    overflow-y: hidden; /* Hide vertical scrollbar */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    }

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #180203; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #180203; 
}    

/* headers */

h1 {
  font-size: 1.5em !important;
  font-weight: bold;
  color: #ed1b26;
  }

h2 {
  font-size: 1.25em !important;
  color: #ed1b26;
  }

h3 {
  font: 1em !important;
  color: #ed1b26;
  }
 
h4 {
  color: #ed1b26;
  }

h5 {
  color: #ed1b26;
  }
  
h6 {
  color: #ed1b26;
  }

.center {
  text-align: center;
}

header a {
    text-decoration: none;
  }
  
header {
  display: flex;
  text-align: center;
  justify-content: space-between;
}

.social {
    margin: auto;
    padding: 5px;
    align-self: center;
}

.wrapper {
    margin-right: auto;
    margin-left: auto;
    width:100%;
    height:100vh;
    display: flex;
    flex-direction: column;
 }

#container{
  width:100%;
  height:100vh;
  margin: 1em auto 4em auto;
  padding: 5%;
  flex:1;
  overflow: auto;
  align-self: center;
  background-color: #000000;
  }

#footer {  
  width: 80%;
  height: 3em;
  align-self: center;
  text-align: center;
  bottom:0;
  border-top: 1px solid;
  position: fixed;
  background-color: #180203;
  color: #666666;
  border-radius: 10px;
  }

#ornament {
  position:fixed;
  top:0;
  left:0;
  height:100%;
  width:100%;
  background: url('../images/space.jpg') no-repeat;
  z-index: -9999;
  }

  a:link {
  color:#8c8c8c;}
  a:hover {
  color:#cccccc;}
  a:visited {
  color:#666666;}

/* Navigation */
    .custom-wrapper {
      background-color: #180203;
      -webkit-font-smoothing: antialiased;
      height: 2.5em;
      overflow: hidden;
      -webkit-transition: height 0.5s;
      -moz-transition: height 0.5s;
      -ms-transition: height 0.5s;
      transition: height 0.5s;
      border-radius: 10px;
      border-top: 1px solid;
      color: #666666;
  }

  .custom-wrapper.open {
      height: 5em;
  }

 /* End Navigation */
  
  span {
      color: #180203;
  }

  /* lists */
  ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    overflow: hidden;
    background-color: #180203;
    font-weight: bold;
  }
  
  ul li {
    height: 2.5em;
  }
  
  ul li:hover {
    transform: scale(1.2);
    transition: 0.3s;
  }

li {
    float: left;
    }

li a {
    display: block;
    color: #cccccc;
    text-align: center;
    padding: 8px 8px;
    }

li a:hover {
    background-color: #470609;
    color: #e6e6e6;
    padding: 8px 8px;
    }

a.active {
    background-color: #750a10;
    color:#e6e6e6;
    text-transform: uppercase;
    padding: 8px 8px;
  }

/* images */

.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 {
    position: relative;
    background-attachment: fixed;
    background-repeat: repeat-x;
    background-size: cover;
    }

.bgimg-1 {
    background-image: url("../images/space.jpg");
    min-height: 100%;
    }

.bgimg-2 {
    background-image: url("../images/wh40kaquila.png");
    min-height: 100%;
    }
.bgimg-3 {
    background-image: url("../images/Chaos_Warrior_Emblem.png");
    min-height: 100%;
}
.bgimg-4 {
    background-image: url("../images/xenos1.png");
    min-height: 100%;
    }
        
img.small {
    width: 300px;
    }
img.medium {
    width: 500px;
    }
img.large {
    width: 700px;
    }
img.align-left {
    float: left;
    margin-right: 10px;
    }
img.align-center {
    display: block;
    margin: 10px auto;
    }
img.align-right {
    float: right;
    margin-left: 10px;
    }
img.maxwidth {
    max-width: 100%;
    }
img.padding {
    padding-top: 10px;
}

/* tables */

table {
  table-layout: auto;
  width:100%;
  margin-top: 5px;
  }

table, th, td {
  border-color: #180203;
  border: 0px solid;
  border-collapse: collapse;
  }

th, td {
  padding: 15px;
  height: 50px;
  text-align: left;
  vertical-align:top;
  font-size: 14px;
  }

th {
  color: #bd0f18;
  background: #180203;
  }

fieldset {
	border: 1px solid #666666;
	margin: auto auto;
	padding: 10px 10px;
	border-radius: 20px;
	text-align: left;
}

/* button */

*, *:before, *:after {
  box-sizing: border-box;
  outline: none;
}

.hide {
  display: none;
}

.button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12.5rem;
  margin: 0;
  padding: 1.5rem 3.125rem;
  background-color: #180203;
  border-top: 1px solid;
  border-radius: 10px;
  box-shadow: 0 12px 24px 0 rgba(0,0,0, 0.2);
  color: #666666;
  text-transform: uppercase;
  overflow: hidden;
}

.button:before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #470609;
}

.button span {
  position: absolute;
  line-height: 0;
}

.button span i {
  transform-origin: center center;
}

.button span:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%);
}

.button span:nth-of-type(2) {
  top: 100%;
  transform: translateY(0%);
  font-size: 24px;
}

.button span:nth-of-type(3) {
  display: none;
}

.active {
  background-color: #750a10;
}

.active:before {
  width: 100%;
  transition: width 3s linear;
}

.active span:nth-of-type(1) {
  top: -100%;
  transform: translateY(-50%);
}

.active span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.active span:nth-of-type(2) i {
  animation: loading 500ms linear infinite;
}

.active span:nth-of-type(3) {
  display: none;
}

.finished {
  background-color: #750a10;
}

.finished .submit {
  display: none;
}

.finished .loading {
  display: none;
}

.finished .check {
  display: block !important;
  font-size: 24px;
  animation: scale 0.5s linear;
}

.finished .check i {
  transform-origin: center center;
}

@keyframes loading {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes scale {
  0% {
    transform: scale(10);
  }
  50% {
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.2);
  }
  90% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}