/* Styles by Charles Love */

* {
    box-sizing: border-box;
}

body{
    min-width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #3a7290;
    font-family: "Arial Black", sans-serif;
}

main{
    background-color: lightgrey;
    background-image: url(../img/corner.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    max-width: 90%;
    margin: auto;
    margin-top: 40px;
}

header {
    background: linear-gradient(black, grey);
    height: 120px;
    padding: 10px;
}

header h1{
    font-family: 'Arial Black', Arial, sans-serif;
    font-style: italic;
    color:#3a7290;
    text-shadow: 1px 1px 2px white;
    margin-left: 10px;
    margin-top: 0px;
    white-space: nowrap;
}

footer{
    padding-top: 4px;
    padding-bottom: 4px;
    margin-top: 20px;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 0px;
    width: 100%;
    text-align: center;
    color:white;
    background-color: black;
    position: relative;
    bottom: 0;
}

input[type=text], input[type=password], input[type=email], input[type=file], select, textarea{
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-top: 6px;
}

input[type=submit]{
    background-color: #3a7290;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
    float: right;
}

input[type=submit]:hover {
    background-color: #3a905b;
}

label{
    font-family: Arial, sans-serif;
    padding: 16px 12px 12px 0;
    display: inline-block;
    float: left;
}

h2{
    margin-top: 8px;
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

h3{
    margin-top: 8px;
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

h4{
    margin-top: 8px;
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

#menu .active{
    color: white;
    background-color: #3a7290;   
    border: 3px solid white;
}

.form{
    padding: 20px;
    width: 80%;
    margin-right: 10%;
    margin-left: 10%;
}

.col-25 {
    float: left;
    width: 25%;
    margin-top: 6px;
    margin-bottom: 0;
}

.col-75 {
    float: left;
    width: 75%;
    margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

.users{
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

.products{
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

.error{
    color: red;
}

.center{
    text-align: center;
    height: 100%;
    margin: 20px 0px 20px 0px;
}

.fa-h-square{
    color: white;
    text-shadow:
		-3px -3px 0 #3a7290,
		3px -3px 0 #3a7290,
		-3px 3px 0 #3a7290,
		3px 3px 0 #3a7290;
}

.fa-h-square:hover{
    color: #3a905b;
    text-shadow:
		-3px -3px 0 #fff,
		3px -3px 0 #fff,
		-3px 3px 0 #fff,
		3px 3px 0 #fff;
}

.fa-gamepad{
    color: #3a7290;
    font-size: 2em;
}

#menuToggle
{
  display: block;
  position: relative;
  top: -50px;
  left: 20px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  margin-left: -2px;
  position: relative;
  
  background: white;
  border: 1px solid #3a7290;
  border-radius: 2px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #3a7290;
  border: 1px solid white;
  border-radius: 2px;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 300px;
  margin: -97px 0 0 -20px;
  padding: 20px;
  text-align: center;
  border-radius: 0 8px 8px 0;
  border: 2px solid white;
  box-shadow: 5px 10px 18px rgba(0, 0, 0, 0.5);
  
  background: rgba(0, 0, 0, 0.75);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-180%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li{
    text-align: center;
    float:right;
    margin: 8px 8px 8px 0;
    width: 70%;
    font-size: 80%;
    color: #3a7290;
    background-color: lightgrey;   
    font-family: "Arial Black", sans-serif;
    border-radius: 6px;
    border: 3px solid #3a7290; 
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

#menu li:hover{
    color: white;
    background-color: #3a7290;   
    border: 3px solid white;
}

.button{
    text-align:center;
    width: 100px;
    padding: 4px;
    font-size: 80%;
    color: #3a7290;
    background-color: lightgrey;   
    font-family: "Arial Black", sans-serif;
    border-radius: 6px;
    border: 3px solid #3a7290; 
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.button:hover{
    color: white;
    background-color: #3a7290;   
    border: 3px solid white;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}

@media only screen and (max-width: 846px) {
    main {
        min-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .col-25, .col-75, input[type=submit] {
        width: 100%;
        margin-top: 0;
    }
}