﻿/* 
   A Great Gaming Company Style Sheet
   Filename: styles.css

   Author: Cooper Martin  
   Date: 10/27/2018    
   Website
 */

/* reset styles */
html {
   font-size: 16px;
}
a, article, body, div, figcaption, figure, footer, header, h1, 
h2, h3, img, li, nav, p, section, ul, 
fieldset, form, input, label, legend, textarea {
   border: 0;
   padding: 0;
   margin: 0;
}
img {
   max-width: 100%;
   height: auto;
   width: auto;
   /*border: 1px solid ivory;*/
}
ul {
   list-style-type: none;
}

/* document-wide styles */
body {
   margin: 0 auto;
   font-family: Arial, Helvetica, sans-serif;
}
p {
   line-height: 1.4em;
   font-size: 1.3em;
   color: ivory;
}
a:link {
   color: grey;
}
a:visited {
   color: purple;
}
a:hover, nav a:focus {
   color: lightblue;
}

/* skip navigation link */
p.skipnavigation a {
   position: absolute;
   left: -10000px;
}
p.skipnavigation a:focus {
   color: ivory;
   background-color: black;
   top: 0.4em;
   left: auto;
   right: 0.4em;
   z-index: 2;
}

/* header section */
h1 {
   text-align: center;
   font-family: Bitter, "Times New Roman", Times, serif;
   font-weight: 700;
   color: ivory;
   background-color: black;
   font-size: 2.4em;
   position: fixed;
   top: 0;
   width: 100%;
}

/* site navigation bar */
nav {
   color: #34180f;
   text-align: center;
   background-color: black;
   position: fixed;
   top: 1;
   width: 100%;
   border-bottom: 1px solid ivory;
}
nav li {
   margin: 0.3em 0.5em;
   display: inline-block;
   font-size: 1.3em;
   line-height: 1.4em;
}
nav a:link {
   text-decoration: none;
   color: blue;
}
nav a:visited {
   color: purple;
}
nav a:hover, nav a:focus {
   color: lightblue;
}

/* main content */
article {
   margin: 0 auto;
   padding: 1.4em;
   padding-top: 4em;
   background: linear-gradient(lightblue, darkblue);
   background-image: url("images/space.png");
   margin-top: 160px;
}
article div {
   max-width: 854px;
   margin: 0 auto;
   padding: 0 3% 1em;
   background-color: black;
   overflow: auto;
   border: 1px solid ivory;
}
h2 {
   padding: 0.4em 0;
   text-align: center;
   font-family: Bitter, "Times New Roman", Times, serif;
   font-size: 2em;
   font-weight: 700;
   color: ivory;
}
h3 {
   margin-bottom: 0.6em;
   font-size: 1.6em;
   font-family: Bitter, "Times New Roman", Times, serif;
   font-weight: 700;
   float: left;
   clear: both;
   color: ivory;
   font-style: italic;
}
section {
   margin-top: 1em;
   padding: 1em;
   overflow: auto;
   background: linear-gradient(black, darkblue);
   border: 5px solid ivory;
}
section p {
   margin: 1em 0;
   clear: left;
}
article figure {
   max-width: 100%;
   margin-left: 2em;
   float: right;
}
article figcaption {
   text-align: center;
}

/* form styles */
form {
   padding: 0.5em;
   background-color: black;
}

/*fieldset styles */
fieldset {
   margin-bottom: 0.5em;
   padding: 2.5em 2% 0.5em;
   position: relative;
   background-color: white;
}
fieldset fieldset {
   padding-top: 0.4em;
   border: 2px solid black;
}
form > fieldset > legend {
   font-size: 1.25em;
   font-family: PTSansCaption, Georgia, Times New Roman, Times, serif;
   position: absolute;
   top: 0.6em;
}
.submitbutton {
   padding: 0.5em 0;
   margin-bottom: 0;
   text-align: center;
}

/*text field styles*/
input, textarea {
   padding: 0.2em;
   font-size: 1em;
   border: 1px solid black;
}
textarea {
   width: 99%;
   display: block;
}
.contactinfo input, .paymentinfo input {
   position: absolute;
   left: 10em;
}
#nameinput, #emailinput, #streetinput {
   width: 30em;
}
#phoneinput, #stateinput, #cardnuminput {
   width: 12em;
}
#zipinput, #codeinput {
   width: 5em;
}
#submit {
   font-family: PTSansCaption, Georgia, Times New Roman, Times, serif;
   background-color: darkgrey;
   font-size: 1.25em;
   border-top-left-radius: 10px;
   border-top-right-radius: 10px;
   border-bottom-left-radius: 10px;
   border-bottom-right-radius: 10px;
}

/* label styles */
label {
   margin-bottom: 0.2em;
   line-height: 1.6em;
}
.contactinfo label, #cardblock {
   margin: 0.6em 0;
   display: block;
   position: relative;
}
#cards {
	position: absolute;
	left: -10000px;
}

/* footer section */
footer {
   padding: 0.6em;
   background-color: black;
   color: ivory;
   text-align: center;
   line-height: 1.4em;
   font-size: 1.3em;
}

/* print styles */
@media print {
   body, h1, article, footer {
      color: rgb(0,0,0);
      background: rgb(255,255,255);
   }
   body {
      max-width: 100%;
   }
   nav {
      display: none;
   }
}
@page {
   margin: 0.75in;
}