body {
    font-family: 'IBM Plex Sans', 'Roboto', sans-serif;
    margin-bottom: 0;
    height: 100%;
}

h1 {
    font-family: 'Roboto', Verdana, sans-serif;
    letter-spacing: 0.1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h2 {
    font-family: 'Roboto', Verdana, sans-serif;
}

h3, h4 {
    font-family: 'Roboto', Verdana, sans-serif;
    color: rgb(75, 30, 75);
}

a {
    color: rgb(112, 0, 204);
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

a:hover, a:focus {
    color: white;
    text-decoration: none;
}

nav {
    text-align: center;
    display: block;
    background-color: rgb(255, 255, 255);
}

nav.notMain {
    text-align: left;
}

nav a {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem;
    color: white;
    background-color: rgb(112, 0, 204);
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

nav a:hover, nav a:focus {
    background-color:  rgb(2, 164, 252);   
}

.grid-1of6 .current {
    background-color: black;
}

@media (max-width: 40em) {
    nav a {
        display: block;
    }
}

label {
    display: inline-block;
    font-weight: bold;
    padding: 0 0.5rem 0 0;
    margin-bottom: 1rem;
}

a.intext-link {
    color: rgb(112, 0, 204);
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

a.intext-link:hover, a.intext-link:focus {
    color: rgb(2, 164, 252);   
}

a.button-nav {
    text-decoration: none;
    background-color: rgb(112, 0, 204);
    color: white;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

a.button-nav:hover, a.button-nav:focus {
    background-color: rgb(2, 164, 252); 
    color: white;
}

button.button-reset {
    padding: 0.5rem;
    background-color: rgb(112, 0, 204);
    color: white;
    font-size: 1rem;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}


button.button-reset:hover, button.button-reset:focus {
    background-color: rgb(2, 164, 252);
}

input.text-input {
    background-color: white;
    font-size: 1rem;
    border-style: solid;
    border-width: 0.05rem;
    border-color: black;
    padding: 0.5rem;
    color: white;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
}

input.text-input:focus {
    color: black;
    background-color: rgb(246, 248, 255) ;
    outline: 0;
    border-color: rgb(112, 0, 204);
    border-width: 0.2rem;
}

input.text-input::placeholder {
    color: gray;
    opacity: 0.5;
}

a.image-link {
    display: inline-block;
}

a.image-link:hover, a.image-link:focus{
    display: inline-block;
    opacity: 0.5;
}

a.image-link-adbanner:focus {
    opacity: 0.5;
}

div.image-link-product {
    background-color: rgb(112, 0, 204);
    display: inline-block;
    width: 100%;
    height: auto;
}

div.product-screenshot {
    background-color: rgb(112, 0, 204);
    display: inline-block;
    width: 100%;
    height: auto;
}

a img {
    height: 20rem;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

/*
a img:hover, a img:focus {
    opacity: 0.5;
}
*/

@media (max-width: 28em) {
    a img, div.image-link {
        height: auto;
        width: 100%;
        vertical-align: top;
    }
}

a img.product {
    display: block;
    height: auto;
    width: 100%;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

a img.product:hover, a img.product:focus {
    opacity: 0.5;
}

h1, h2, h3, h4 {
    color: rgb(75, 30, 75);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1rem;
}

div.product {
    display: inline-block;
    width: 33%;
    overflow: hidden;
}

div.productBordered {
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

div.screenshots {
    display: inline-block;
    width: 20rem;
    height: auto;
    overflow: hidden;
}

div.product img {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

div.screenshots img {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

textarea {
    width: 100%;
    height: 10em;
    padding: 1em 1em;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: white;
    resize: none;
}

div.product h4 {
    padding-bottom: 1rem;
}

div.formInput {
    display: inline-block;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

div.formInput label, div.formInput input {
    display: inline-block;
    width: 15em;
    margin-bottom: 0.7em;
}

@media (max-width: 45em) {
    div.formInput {
        width: 100%;
    }

    div.formInput label, div.formInput input {
        width: 100%;
    }
}

fieldset {
    border: none;
  }

/* Checkbox code is from https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */

/* The container */
.checkmarkContainer {
    display: block;
    position: relative;
    padding-left: 2em;
    margin-bottom: 12px;
    cursor: pointer;
}

/* Hide the browser's default checkbox */
.checkmarkContainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5rem;
    width: 1.5rem;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkmarkContainer:hover input ~ .checkmark {
    background-color: rgb(2, 164, 252);
    transition: 0.5s;
}

/* When the checkbox is checked, add a blue background */
.checkmarkContainer input:checked ~ .checkmark {
    background-color: rgb(112, 0, 204);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkmarkContainer input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkmarkContainer .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* collapsible content code modified from https://www.w3schools.com/howto/howto_js_collapsible.asp */
.collapsible {
    color: rgb(112, 0, 204);
    cursor: pointer;
    padding: 1.5em;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    text-decoration: underline;

}

.active, .collapsible:hover, .collapsible:focus {
    background-color: rgb(237, 237, 237);
    color: rgb(2, 164, 252);
    transition:.5s;
}

.content {
    padding: 0.2em 1em;
    display: none;
    overflow: hidden;
    background-color: rgb(245, 245, 245);
}

img.productList {
    width: 10rem;
    height: 14rem;
    vertical-align: top;
}

div.productList {
    width: 10rem;
    background-color: rgb(112, 0, 204);
}

div.productList p {
    width: 10rem;
    background-color: rgb(112, 0, 204);
    color: white;
}

div.productList p:hover {
    text-decoration: none;
    transition: .5s;
}

.productListText {
    padding: 0;
    margin: 0;
}

div.avatar {
    width: 10rem;
    background-color: rgb(112, 0, 204);
    overflow: hidden;
}

img.avatar {
    display: block;
    width: 10rem;
    height: 10rem;
}

@media (max-width: 40em) {
    img.avatar {
        margin-left: auto;
        margin-right: auto;
    }
}

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4em;
    font-size: 0.7em;
    background-color: rgb(112, 0, 204);
    color: white;
    text-align: center;
}

div.forFooter {
    min-height: 100%;
    position: relative;
}

section.helpLinks a {
    display: block;
    padding-bottom: 0.5em;
}

input.accountInfo {
    background-color: white;
    font-size: 1rem;
    border-style: solid;
    border-width: 0.05rem;
    border-color: black;
    padding: 0.5rem;
    margin-bottom: 1rem;
    color: black;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
}

input.accountInfo::placeholder {
    color: gray;
    opacity: 0.5;
}

input.accountInfo:focus {
    color: black;
    background-color: rgb(246, 248, 255) ;
    outline: 0;
    border-color: rgb(112, 0, 204);
    border-width: 0.2rem;
}

div.purchaseList {
    border: solid;
    border-color: rgb(112, 0, 204);
    border-width: 0.1rem;
}

.hidden-label {
    display: none;
}

/* 
    This is new code added for navigation bar + body tag margine removal
    Nav bar style from https://www.w3schools.com/css/css_navbar.asp
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(112, 0, 204, 0.8);
    z-index: 1;
}

body {
    margin: 0;
}

nav a {
    background-color: transparent;
    text-align: center;
    width: 6em;
}

nav a.icon {
    display: none;
}

nav a.leftElements {
    float: left;
}

nav div.rightElements {
    float: right;
}

div.navContent {
    width: 80%;
    margin: auto;
}

h1 {
    margin-top: 0;
}

div.pageTitleBackdrop {
    width: 100%;
    height: 10rem;
    background: url("../img/headerBackgroundSnow.jpg") no-repeat;
    background-size: cover;
    background-position: center center;
}

h1 {
    text-align: center;
    padding-top: 4rem;
    color: white;
    margin-top: 0;
    font-size: 3rem;
}

nav a img {
    max-height: 1rem;
    width: auto;
    overflow: hidden;
    margin: auto;
}

@media screen and (max-width: 60em) {
    nav a {display: none;}
    nav a.icon {
      float: right;
      display: block;
    }
    nav a.leftElements {
        float: left;
        display: block;
    }
    
    nav.responsive a {
        float: none;
        display: block;
        text-align: center;
    }
    
    nav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
}

@media (max-width: 55em) {
    div.navContent {
        width: 98%;
    }
}

code {
    background-color: #EEE;
    padding: 0.5rem;
    display: block;
}

.element {
    padding-bottom: 2rem;
    border-top-width: 0.15rem;
    border-top-style: solid;
    border-top-color: black;
}

nav.styleguide {
    position: relative;
    width: 100%;
    background-color: rgba(112, 0, 204, 0.8);
    z-index: 1;
}

nav.styleguide a {
    display: inline-block;
}

h1.styleguide {
    color: black;
}