/* Styling for RunPhones.com goes here! */
body
{
  	margin: 0;
  	font-family: "Open Sans", sans-serif;
  	line-height: 24px;
}
/* Start of Header + Navbar */
.breadcrumbs a
{
    text-decoration:none;
    color: black;
}
.breadcrumbs a:hover 
{
    color: #ef6b00;
}
.breadcrumbs 
{
    color: #ef6b00;
}
header
{
	display: flex;
  	justify-content: space-around;
  	align-items: center;
  	width: 100%;
  	height: 80px;
  	position: fixed;
  	background-color: white;
  	border-bottom: 3px solid #ef6b00;
  	z-index: 100;
}
header img
{
	max-height: 46px;
  	max-width: 262px;
}
header h1 a
{
  font-family: "Open Sans",sans-serif;
  font-size: 15px;
  font-weight: 600px;
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}
header .cart a
{
  color: black;
  text-decoration: none;
}
header nav:hover > h1 a
{
  color: #ef6b00;
  text-decoration: none;
  transition: 0.5s;
}
header ul
{
  opacity: 0;
  padding: 0;
}
header ul li
{
  display: none;
  padding: 5px 3px 5px 3px;
  border-bottom: 1px black;
}
header ul li a
{
  color: black;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  max-width: 200px;
}
header ul li a:hover
{
  color: #ef6b00;
  transition: 0.3s;
}
header ul:hover > li
{
	opacity: 1;
	transition: 0.3s;
}
header nav:hover > ul li
{
    display:block;
}
header nav:hover > ul
{
  display: flex;
  flex-direction: column;
  position:absolute;
  background-color: white;
  box-shadow: 1px 1px 3px dimgrey;
  margin: 0;
  opacity: 1;
  transition: 0.3s;
}
#btnControl
{
    display: none;
}
#btnControl:checked + label > div
{
    display: block;
}
.togglesearch{
  background: #FAFAFA;
  position: absolute;
  top: 80px;
  right: 0;
  width: 324px;
  height: 60px;
  line-height: 60px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  border-top:2px solid #ef6b00;
  display: none;
}
.togglesearch input[type="text"]
{
  width: 200px;
  padding: 5px 10px;
  margin-left: 23px;
  border: 1px solid #ef6b00;
  outline: none;
}
.togglesearch input[type="submit"]
{
  width: 80px;
  padding: 5px 0;
  background: #FAFAFA;
  color: black;
  margin-left: -6px;
  border: 1px solid #ef6b00;
  outline: none;
  cursor: pointer;
}

.searchbar, .cart
{
	padding-top: 10px;
}
/* End of Header + Navbar */
.banner
{
  font-size: 20px;
  padding: 16.5px 0;
  text-align: center;
  background-color: #ef6b00;
  padding-top: 100px;
}
.banner a
{
  color: white;
  text-decoration: none;
}
/* Start of Article + Catalog*/
section h1
{
	font-size: 1.17em;
}
article
{
  padding: 10px 10% 0px 10%;
  max-width: 1600px;
  margin: 0 auto;
}
article h1
{
  /* font-family: "Nunito"; */
  font-family: 'Lato', sans-serif;
  text-align: center;
}
article p
{
  display: block;
  color: #000000;
  font-weight: 400;
}
.catalog
{
  display: grid;
  margin: 0 auto;
  width: 70%;
  grid-template-areas: "head head head"
                       "pic pic pic";
  grid-template-columns: 277px 277px 277px;
  justify-content: center;
}
.catalog > h1
{
  grid-area: head;
  font-size: 21.3px;
  width: 100%;
}
.catalog > a
{
  height: 431px;
  grid-are: pic;
}
article a img
{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    height: 450px;
}

.catalog img
{
  position: static;
  height: 431px;
  right: auto;
}

/* End of Article + Catalog */
/* Start of Share */
.sharing
{   
  display: grid;
  grid-template-areas: "head head head head head" "social social social social social";
  grid-template-columns: 30px 30px 30px 30px 30px;
  grid-gap: 10px;
  margin: 0 auto;
  width: 40%;
  justify-content: center;
  margin-bottom: 10px;
}   
.sharing h1
{   
  margin: 10px 0px 0px 0px;
  text-align: center;
  grid-area: head;
}   
.sharing a
{   
  height: 30px;
  width: 30px;
}   
.sharing img{
  grid-area: social;
}   
/* End of Share */
/* Start of Footer */
footer
{   
  margin: 0 auto 0.5% auto;
/*  max-width: 1600px;*/
  padding: 0px 15px 0px 15px;
  background-color: #383733;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #a0a0a0;
  font-family: "Open Sans",sans-serif;
  font-size: 12px;
  padding-bottom: 10px;
}
footer:before
{
	background-color: #383733;
/*	position: absolute; */
	left: 0;
	right: 0;
	height: 100%;
	max-height: 601.81px;
	z-index: -1;
	content: " ";
}
footer ul
{
  list-style-type: none;
  padding: 10px;
}
footer a
{
  color: #a0a0a0;
  text-decoration: none;
}
footer > aside.follow > ul > li
{
  margin: 0 5px 0 5px;
}
nav
{
  margin: 10px;
}
footer aside
{
  margin: 10px;
}
.follow
{
  padding-left: 20%;
  padding-right: 20%;
  margin: 0 auto;
  text-align: center;
  width: 500px;
  margin-bottom: 8px;
}
.signup
{
  text-align: center;
  margin-bottom: 10px;
  max-width: 300px;
  margin: 0 auto;
}
.follow ul
{
  display: flex;
  flex-direction: row;
  flex-wrap:nowrap;
  justify-content: center;
}
.signup form table tr td input[type="submit"]
{
  background-color: #ef6b00;
  border: 0;
  width: 100%;
  height: 40px;
  font-size: 16px;
  color: white;
  border-radius: 2px;
}
.signup h1
{
	margin: 0 0 5px 0;
	font-size: 20px;
}
.signup form table
{
  text-align: center;
  margin: 0 auto;
}
.signup form table tbody tr td input[name="email"]
{
	max-width: 300px;
	width: 75vw;
}
.contact
{
	width: 152px;
}
footer h1
{
	color: #ef6b00;
}
#cookie-banner
{
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	padding: 5px 14px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background-color: #ef6b00;
	border-radius: 5px;
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
	color: black;
}
#cookie-banner p
{
	text-align: center;
	color: white;
	padding: 0px 55px 0px 55px;
}
#cookie-banner a
{
	color: lightblue;
}
#close-cookie-banner-button
{
	position: absolute;
	left: 10px;
	height: 40px;
	width: 40px;
	font-size: xx-large;
	background-color: white;
	border: none;
	color: black;
	border-radius: 2px;
	cursor: pointer;
}
.cart-banner {
    position: fixed;
    z-index: 9999;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    display: none;
}
.cart-banner.active {
    display: block;
}
.cart-banner #cart-custom-text {
    text-align: center;
    padding-bottom: 0.5em;
}
.cart-banner #cart-custom-text p {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    color: white;
    font-family: "Open Sans",sans-serif;
    font-size: 1.1rem;
}
.cart-banner-top {
    left: 0;
    right: 0;
    top: 0;
}
.cart-alert-primary {
    background-color: #616365ff;
    border-color: #616365aa;
}
.cart-banner-close {
    position: fixed;
    right: 5px;
    top: 5px;
    color: white;
    background-color: #000000AA;
    border: 2px solid #000000FF;
    border-radius: .25rem;
}
/* Start of Mobile Optimization */
@media only screen and (max-width: 1200px)
{
  footer:before
  {
  	height: 0;
  }
  .follow
  {
	margin-bottom: 0;	  
  	padding-left: 0;
  	padding-right: 0;
  	width: auto;
  }
  .catalog
  {
    padding: 0;
    width: 90%;
  }
  .signup
  {
  	width: auto;
  }
  @media only screen and (max-width: 413px)
  {
  	header
	{
		position: absolute;
	}
  }
  @media only screen and (max-width: 1025px)
  {
    article a img
    {
      max-width: 100%;
      height: auto;
    }
    .catalog a img
    {
      height: 431px;
    }
  }
  @media only screen and (max-width: 950px)
  {
	.search
	{
	  height: 0px;
	  width: 0px;
	}
    .catalog
    {
      display: flex;
      justify-content: center;
      flex-direction: row;
      flex-wrap: wrap;
    }
  }
  @media only screen and (max-width: 810px)
  {
      footer
    {
        align-items: center;
        justify-content: center;
    }
    footer nav, .contact
    {
        text-align: center;
        width: 152px;
        margin: 4px;
    }
	.follow
	{
		width: 630px;
	}
  }
  @media only screen and (max-width: 670px)
  {
  	header
	{
		height: 100px;
	}
	header .logo
    {
      margin-top: 3px;
      position: absolute;
      top: 0;
	}
	nav
	{
		padding-top: 30px;
	}
	.searchbar, .cart
	{
		padding-top: 37px;
	}
	.banner
	{
		padding-top: 120px;
	}
	.togglesearch
	{
		top: 100px;
	}
  }
  @media only screen and (max-width: 650px)
  {
  	.follow
	{
		margin-top: auto;
		width: auto;	
	}
	.signup
	{
		margin: 0 50px 0 50px;
	}
  }
  @media only screen and (max-width: 410px)
  {
	header
	{
		transform: translate(0,0);
	}
	header
	{
		height: 105px;
	}
	.banner
	{
		padding-top: 130px;
	}
 	.searchbar
	{
	
		position: absolute;
		top: 0;
		left: 45%;
		margin-left: -28px;
		padding-top: 42px;
	}
	.togglesearch
	{
		position: fixed;
		top: 106px;
		left: 0;
		width: 100%;
	}
	.togglesearch form
	{
		display: flex;
		justify-content: center;
		height: 100%;
		align-items: center;
		min-width: 324px;
		background-color: #FAFAFA;
	}
	.togglesearch input[type="text"]
	{
		margin: 0;
		height: 15px;
	}
	.togglesearch input[type="submit"]
	{
		height: 27px;
	}
	.cart
	{
		position: absolute;
		top: 0;
		left: 60%;
		margin-left: -22px;
	}
	header nav
	{
		padding-top: 67px;
	}
	header nav:hover > ul
	{
		margin-top: -8px;
		left: 0;
		width: 100vw;
	}
	.follow
	{
		max-width: 100%;
	}
	.signup
	{
		margin: auto;
	}
	#cookie-banner
	{
		display: flex;
		flex-direction: column-reverse;
	}	
	#close-cookie-banner-button
	{
		position: initial;
	}
	#cookie-banner p
	{
		padding: inherit;
	}
  }
}
/* End of Mobile Optimization */

/* Start of IE10 Optimization */
html[data-useragent*='MSIE 10.0'] header {
        display: table;
        max-width: 100vw;
}
html[data-useragent*='MSIE 10.0'] header nav {
        display: table-cell;
        text-align: center;
        vertical-align: center;
        padding: 2px;
}
html[data-useragent*='MSIE 10.0'] header .logo {
        display: table-cell;
        margin: 0;
        padding: 0;
        min-width: 12em;
        max-width: 12vw;
        max-height: 100%;
        text-align: center;
        vertical-align: center;
}
html[data-useragent*='MSIE 10.0'] header .logo img {
        max-width: 100%;
        max-height: 100%;
        vertical-align: center;
}
html[data-useragent*='MSIE 10.0'] header a img,
html[data-useragent*='MSIE 10.0'] footer > aside.follow > ul > li > a img,
html[data-useragent*='MSIE 10.0'] .sharing a img{ 
        border: 0;
        outline: 0;
        text-decoration: none;
}
html[data-useragent*='MSIE 10.0'] footer aside, footer nav{
        float: left;
        padding: 0 5% 0 5%;
}
html[data-useragent*='MSIE 10.0'] footer > aside.follow{
        display: block;
        margin: 0 2% 0 35%;
}
html[data-useragent*='MSIE 10.0'] footer > aside.follow > ul > li{
        float: left;
        margin: 0 4% 0 4%;
}
html[data-useragent*='MSIE 10.0'] footer > aside.follow > h1{
        text-align: center;
        width: 70%
}
html[data-useragent*='MSIE 10.0'] footer:after{
        content: "";
        display: table;
        padding: 2% 0 0 0;
}
html[data-useragent*='MSIE 10.0'] footer:after{
        clear: both;
}
html[data-useragent*='MSIE 10.0'] .sharing a img{
        margin: 0 4% 0 10%;
}
/* End of IE10 Optimization */
