/* Version 2.0.1 */
/* Import Fonts */
@font-face {
  font-family: montserrat;
  src: url(fonts/Montserrat-Light.ttf);
}

/* Colors */
:root {
  --primaryButton: #4e5c70;
  --primaryButtonHover: #394352;
  --primaryButtonFont: #ffffff;
  --secondaryButton: #b0bac8;
  --secondaryButtonHover: #4e5c70;
  --secondaryButtonFont: #ffffff;
  --titleFont: #394352;
  --primaryFont: #555555;
  --discountColor: #ff0000;
  --disabledButton: #808080;
  --primaryBackground: #f0efef;
  --footerBackground: #959595;
  --footerFont: #ffffff;
}

/* Global Magic*/
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  height: 100%;
}
body {
  position: relative;
  color: var(--primaryFont);
  background-color: var(--primaryBackground);
  margin: 0;
}
main {
  margin: 75px 0px 0px 0px;
  min-height: calc(100vh - 75px);
}
/* Titles */
.titleFont{
  font-family: "montserrat";
}
h1, h2, h3, h4, h5 {
  color: var(--titleFont);
}
main h1 {
  display: block;
  font-weight: normal;
  font-size: 24px;
  text-align: center;
  margin: 0;
  padding: 40px 0 20px 0;
  width: 100%;
}
main .product h1{
  font-size: 34px;
  padding: 20px 0 10px 0;
}
main .myaccount .login-register h1, main .product h1{
  text-align: left;
}
main .featured img{
  max-height: 100%;
  max-width: 100%;
}
main .featured h2 {
  display: inline-block;
  margin: 0;
  width: 1050px;
  font-family: Rockwell, Courier Bold, Courier, Georgia, Times, Times New Roman, serif;
  font-size: 68px;
  color: black;
  padding-bottom: 10px;
}
main .recentlyadded h2 {
  display: block;
  font-weight: normal;
  margin: 0;
  padding: 40px 0px 10px 0px;
  font-size: 24px;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid #EEEEEE;
}
main .checkout form h2, main .myaccount form h2 {
  width: 100%;
  font-weight: normal;
  font-size: 20px;
  padding: 0 0 0 0;
  margin: 0 0 10px 0;
  border-bottom: 1px solid #EEEEEE;
}
main .checkout form h2:first-child, main .myaccount form h2:first-child {
  padding: 20px 0 0 0;
}
main .myaccount h2 {
  width: 100%;
  font-weight: normal;
  font-size: 20px;
  margin: 0 0 10px 0;
  border-bottom: 1px solid #EEEEEE;
}


/* Buttons */
.primaryButton{
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin: 5px 0px;
  background-color: var(--primaryButton);
  color: var(--primaryButtonFont);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  transition: 250ms ease-in-out;
}
.primaryButton:hover{
  background-color: var(--primaryButtonHover);
}
.secondaryButton{
  display: block;
  padding: 10px;
  margin: 5px 0px;
  background-color: var(--secondaryButton);
  color: var(--secondaryButtonFont);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  transition: 250ms ease-in-out;
}
.secondaryButton:hover{
  background-color: var(--secondaryButtonHover);
}
main .mainButton {
  max-width: 300px;
  margin: 0px auto;
}
main .products .buttons {
  padding: 0px 15px 10px 10px;
  display: flex;
  justify-content: space-between;
}
.navButton {
  position: absolute;
  z-index: 100;
  top: 32px;
  width: 200px;
}
  /* 
    X Button, not in use currently 
    a.xButton
      i
  */
.xButtton {
  position: absolute;
  width: 25px;
  height: 25px;
  text-decoration: none;
  border-radius: 100%;
  color: white;
  background-color: red;
  text-align: center;
  right: 10px;
  transition: 250ms ease-in-out;
}

.xButton:hover {
  color: red;
  background-color: white;
  border: 1px solid red;
}

.xButton i {
  font-size: 20px;
  padding: 2px 0px 0px 1px;
}

main button:disabled, main button[disabled]{
  background-color: var(--disabledButton)!important;
  cursor: auto!important;
}
/*Style Elements*/
.divider {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  margin-bottom: -30px;
  gap: 5px;
}
.divider hr{
  flex-shrink: 1;
  width: 100%;
}
.divider h3{
  flex-shrink: 0;
  width: fit-content;
}
/* Error and success Messages */
.error {
  padding: 40px 0;
}
.messageBox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
  position: fixed;
  z-index: 1000;
  top: -40%;
  left: 0;
  bottom: 0;
  right: 0;
  max-width: 500px;
  max-height: 300px;
  padding: 0px 20px 10px 20px;
  background-color: white;
  border: 1px solid black;
  -webkit-box-shadow: 0 0 0 max(100vh, 100vw) rgba(0, 0, 0, .4);
  box-shadow: 0 0 0 max(100vh, 100vw) rgba(0, 0, 0, .4);
  border-radius: 5px;
}
.messageBox .primaryButton {
  position: relative;
  bottom: 10px;
}
.messageLogo {
  text-align: center;
}
.messageLogo img {
  max-height: 100px;
}

/* Body Elements*/
.content-wrapper, .featured {
  width: 1050px;
  margin: 0 auto;
}
header {
  position: fixed;
  z-index: 200;
  background-color: white;
  width: 100%;
  top: 0px;
}
header .content-wrapper {
  display: flex;
}

header nav {
  display: flex;
  flex-grow: 1;
  flex-basis: 0;
  justify-content: center;
  align-items: center;
}

header nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--primaryFont);
  padding: 10px 10px;
  margin: 0 10px;
}

header nav a:hover {
  border-bottom: 1px solid #aaa;
}

header .link-icons {
  display: flex;
  flex-grow: 1;
  flex-basis: 0;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

header .link-icons .fa-search {
  font-size: 18px;
  padding: 0 10px;
  cursor: pointer;
}

header .link-icons .search-input {
  border: 0;
  border-bottom: 1px solid #EEEEEE;
  padding: 10px 0;
  width: 100%;
  max-width: 200px;
  outline: none;
  margin-right: 10px;
}

header .link-icons .responsive-toggle {
  display: none;
}

header .link-icons a {
  position: relative;
  text-decoration: none;
  color: var(--titleFont);
  padding: 0 10px;
}

header .link-icons a:hover {
  color: var(--primaryButton);
}

header .link-icons a i {
  font-size: 18px;
}
/* Small number indicating Items in Cart */
header .link-icons a span {
  display: inline-block;
  text-align: center;
  background-color: #63748e;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 12px;
  line-height: 16px;
  width: 16px;
  height: 16px;
  font-weight: bold;
  position: absolute;
  top: -4px;
  right: 2px;
}

header .logo img {
  max-height: 70px;
  padding: 5px;
}

main .featured {
  display: flex;
  flex-direction: column;
  height: 270px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

main .featured div {
  width: 100%;
}
/*main .featured div:before {
  content: "";
  background: transparent url('../metaImages/bulletpoint.png') no-repeat;
  background-size: contain;
  display: inline-block;
  width: 73px;
  height: 45px;
  position: relative;
  top: -20px;
}*/
main .featured h3 {
  font-size: 25px;
  display: inline-block;
  vertical-align: bottom;
}
main .titleBulletPoint {
  width: 73px;
  display: inline-block;
  padding-bottom: 10px;
}

main .featured .titleLeft {
  text-align: left;
}

main .featured .titleCenter{
  text-align: center;
}

main .featured .titleRight{
  text-align: right;
}

main .featured p {
  display: inline-block;
  margin: 0;
  width: 1050px;
  font-size: 24px;
}
/*Spacing Corrections*/
.products-header, .info{
  margin: 0px 15px;
}
main .recentlyadded .products, main .products .products-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0 0 0;
}

main .recentlyadded .products .product, main .products .products-wrapper .product {
  display: block;
  overflow: hidden;
  text-decoration: none;
  width: calc(25% - 30px);
  text-align: center;
  margin: 15px;
  padding: 10px;
  box-shadow: 0px 0px 10px 7px rgba(0,0,0,0.20);
  background-color: white;
  border-radius: 5px;
  transition: transform .2s;
}

main .recentlyadded .products .product:hover , main .products .products-wrapper .product:hover{
  transform: scale(1.05);
}
main .product img{
  object-fit: contain;
}
/* Zoom Effect
main .recentlyadded .products .product img, main .products .products-wrapper .product img {
  
  transform: scale(1);
  transition: transform 1s;
  
}
main .recentlyadded .products .product:hover img, main .products .products-wrapper .product:hover img {
  transform: scale(1.05);
  transition: transform 1s;
}
*/

main .recentlyadded .products .product .name, main .products .products-wrapper .product .name {
  display: block;
  color: var(--primaryFont);
  padding: 20px 0 2px 0;
  min-height: 64px;
}

main .recentlyadded .products .product .price, main .products .products-wrapper .product .price {
  display: block;
  color: #999999;
}

main .recentlyadded .products .product .rrp, main .products .products-wrapper .product .rrp {
  color: #BBBBBB;
  text-decoration: line-through;
}

main .recentlyadded .products .product:hover .name, main .products .products-wrapper .product:hover .name {
  text-decoration: underline;
}

main > .product {
  display: flex;
  padding: 40px 0;
}

main > .product .product-small-imgs img {
  border: 1px solid #EEEEEE;
  cursor: pointer;
  margin: 20px 12px 0 0;
}

main > .product .product-small-imgs img.selected {
  border: 1px solid #c8c8c8;
}

main > .product .product-wrapper {
  padding-left: 15px;
}

main > .product .price {
  display: block;
  font-size: 22px;
  color: #999999;
}
main .oldPrice{
  font-size: inherit;
  text-decoration: line-through;
}
main .discount{
  font-size: inherit;
  font-weight: bold;
  color: var(--discountColor);
}

main > .product .rrp {
  color: #BBBBBB;
  text-decoration: line-through;
  font-size: 22px;
  padding-left: 5px;
}

main > .product form {
  display: flex;
  flex-flow: column;
  margin: 40px 0;
}

main > .product form select, main > .product form input[type="number"] {
  width: 400px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  color: var(--primaryFont);
  border-radius: 5px;
}

main > .products .products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main > .products .products-header p {
  margin: 0;
}

main > .products .products-header label {
  padding-left: 20px;
}

/*Style and harmonize all Selects*/
main > .products .products-header select {
  padding: 5px;
  margin-left: 15px;
  border: 1px solid #ccc;
  color: var(--primaryFont);
  border-radius: 5px;
  cursor: pointer;
}

main .categories .categories-wrapper .category{
  display: block;
  overflow: hidden;
  text-decoration: none;
  width: 33%;
  padding: 15px;
  text-align: center;
}

main .categories .categories-wrapper .category img {
  width: 100%;
  max-height: 200px;
  max-width: 200px;
  border-radius: 5%;
}

main .categories .categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 0 0 0;
}

main .categories .categories-wrapper .category .name{
  display: block;
  color: var(--primaryFont);
  padding: 10px 0 2px 0;
  font-size: 20px;
}

main .categories .categories-wrapper .category .description{
  display: block;
  color: var(--primaryFont);
  padding: 20px 0 2px 0;
}
main .cart .tableHead div, main .cart .product div {
  flex-basis: 20%;
  margin-top: 10px;
}
main .cart .tableHead, main .cart .product {
  display: flex;
  align-items: center;
}
main .cart .product{
  border-bottom: 1px solid grey;
}

main .cart .img, main .myaccount .img {
  width: 80px;
}

main .cart .remove, main .myaccount .remove {
  color: #777777;
  font-size: 12px;
  padding-top: 3px;
}

main .cart .remove:hover, main .myaccount .remove:hover {
  text-decoration: underline;
}

main .cart .price, main .myaccount .price {
  color: #999999;
}

main .cart .remove, main .myaccount a {
  text-decoration: none;
  color: var(--primaryFont);
}

main .cart table input[type="number"], main .myaccount table input[type="number"] {
  width: 68px;
  padding: 10px;
  border: 1px solid #ccc;
  color: var(--primaryFont);
  border-radius: 5px;
}
/* Subtotal */
main .subtotal {
  width: 100%;
  text-align: right;
  padding: 20px 0 40px 0;
}
main .subtotal .text {
  padding-right: 40px;
  font-size: 18px;
}
main .subtotal .price {
  display: inline-block;
  font-size: 18px;
  color: #999999;
}
/* Shipping */
main .shipping {
  text-align: right;
  padding: 10px 0;
}
main .shipping .text {
  padding-right: 40px;
  font-size: 14px;
}
main .shipping .price {
  display: inline-block;
  font-size: 14px;
  color: #999999;
}

main .cart .buttons, main .myaccount .buttons {
  display: flex;
  justify-content: space-between;
}

main .cart .buttons input[type="submit"], main .cart .buttons a {
  max-width: 200px;
}

form.quantityForm button {
  padding: 2px 6px;
  border-radius: 50%;
  border: none;
  background-color: var(--primaryButton);
  color: var(--primaryButtonFont);
  cursor: pointer;
}
form.quantityForm button:hover {
  background-color: var(--primaryButtonHover);
}

main .placeorder p {
  text-align: center;
}
/* Forms */
main .flexForm{
  width: 100%;
  display: flex;
  flex-flow: wrap;
  padding-bottom: 40px;
}
main .flexForm select, main .flexForm select option{
  cursor: pointer;
}
/* Products Table */
.orderDetailsContainer{
  margin: 20px 0px 0px 0px;
  width: 100%;
}
.orderDetails{
  width: 100%;
}
.orderDetails .tHead{
  margin: 5px 0px 15px 0px;
}
.orderDetails .tHead, .orderDetails .tItem{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}
.orderDetails .tHead > div, .orderDetails .tItem > div{
  align-items: center;
  display: flex;
  gap: 5px;
}
.orderDetails .dProduct{
  width: 40%;
}
.orderDetails .dPrice{
  width: 20%;
}
.orderDetails .dQuantity{
  width: 10%;
}
.orderDetails .dTotal{
  width: 20%;
}

main .checkout form label, main .myaccount form label {
  display: block;
  padding: 15px 0 0px 0;
}

main .contact form input, 
main .contact form select, 
main .contact form textarea, 
main .checkout form input, 
main .checkout form select, 
main .myaccount form input, 
main .myaccount form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

main .checkout form .row1, 
main .checkout form .row2, 
main .myaccount form .row1, 
main .myaccount form .row2 {
  width: 50%;
  display: inline-block;
}

main .checkout form .row1, 
main .myaccount form .row1 {
  padding-right: 10px;
}

main .checkout form .row2, 
main .myaccount form .row2 {
  padding-left: 10px;
}

main .checkout table{
  width: 100%;
  margin: 20px 0px 0px 0px;
}

main .myaccount table {
  padding-bottom: 40px;
}

main .myaccount table tr:last-child td {
  border-bottom: 0;
}

main .myaccount .login-register {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

main .myaccount .login-register .login {
  width: 100%;
  border-right: 1px solid #f6f6f6;
  padding-right: 45px;
}

main .myaccount .login-register .register {
  width: 100%;
  padding-left: 45px;
}
/* Fix */
.login form {
  margin-bottom: 20px;
}

main .myaccount .login-register .login .forgotPassword a {
  padding: 10px;
  color: white;
  text-decoration: none;
  background-color: var(--secondaryButton);
  border-radius: 5px;
}
main .myaccount .login-register .login .forgotPassword a:hover {
  background-color: var(--primaryButton);
}
main p.error {
  /*TODO: Create smooth error display*/
  color: red;
}
/* ColorPage */
.colorPage footer{
  position: relative;
}
.colorPage .list{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
}
.colorPage .list .card:first-child{
  font-weight: bold;
}
.colorPage .list .card{
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 100px;
  width: 100%;
}
.colorPage .list .card .name{
  width: 20%;
}
.colorPage .list .card .description{
  width: 30%;
}
.colorPage .list .card .hexcode{
  width: 10%;
}
.colorPage .list .card .splash{
  width: 10%
}
.colorPage .list .card .example{
  width: 30%;
}
/* Footer */
footer {
  padding: 0px 10px 15px 10px;
  font-size: 100%;
  background-color: var(--footerBackground);
  color: var(--footerFont);
  position: absolute;
  width: 100%;
  margin-top: 20px;
}
footer a{
  color: var(--footerFont);
  text-decoration: none;
}
footer .content-wrapper {
  display: flex;
  justify-content: space-between;
}
footer .content-wrapper > div {
  width: 33%;
}
.pageInfo {
  text-align: right;
}
footer .paymentInfo .list{
  display: flex;
  gap: 5px;
}
footer .paymentInfo .list img{
  max-width: 70px;
}

/* AGB */
main .agb h2, main .agb p {
  margin: 0px 0px 10px 50px;
}

main .agb .paragraph {
  display: block;
  float: left;
  font-weight: bold;
}

/* Fixes */
.descAm {
  margin-top: 20px;
}
.price {
  min-width: 77px;
}
/* Responsive CSS */
@media screen and (max-width: 1050px) {
  .rhide {
    display: none !important;
  }
  .navButton {
    width: inherit;
    position: inherit;
    top: inherit;
  }
  .content-wrapper, .featured {
    width: 100%;
    padding: 0 10px;
    text-align: center;
  }
  main .featured h3{
    font-size: 1.4em;
    margin: 0px;
  }
  main .featured img{
    margin: 0px;
  }
  main .featured .titleRight, main .featured .titleCenter, main .featured .titleLeft{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  main .featured .titleCenter{
    flex-direction: row-reverse;
  }
  header {
    justify-content: space-between;
  }
  header nav {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 1px);
    width: 100%;
    background-color: #FFFFFF;
  }
  header nav a {
    display: block;
    padding: 10px 10px;
    margin: 0;
    border-bottom: 1px solid #EEEEEE;
  }
  header .link-icons {
    display: inline-flex;
    width: 100px;
  }
  header .link-icons .responsive-toggle {
    display: block;
  }

  main .recentlyadded .products, main .products .products-wrapper {
    justify-content: center;
  }

  main .recentlyadded .products .product, main .products .products-wrapper .product {
    width: calc(50% - 20px);
    margin: 10px;
  }
  main .recentlyadded .products .product img, main .products .products-wrapper .product img{
    width: 100%;
  }
  main > .products .products-header {
    flex-flow: column;
  }
  main > .products .products-header p {
    padding-bottom: 10px;
  }
  main > .products .products-header form {
    display: flex;
    flex-flow: column;
  }
  main > .products .products-header form label {
    padding-top: 15px;
  }
  main > .product {
    padding: 0 10px;
    flex-flow: column;
  }
  main > .product .product-imgs {
    padding: 0 10px;
  }
  main > .product .product-imgs .product-img-large {
    width: 100%;
    height: auto;
  }
  main > .product .product-imgs .product-small-imgs .product-img-small {
    width: 50px;
    height: 50px;
  }
  main > .product form input[type="number"], main > .product form input[type="submit"] {
    width: 100%;
  }
  main > .product .product-wrapper {
    padding: 0;
  }
  main .cart table input[type="number"] {
    width: 40px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
  }
  .orderDetails .dProduct{
    width: 20%;
  }
  main .checkout form, main .myaccount form, main .checkout p {
    width: 100%;
  }
  main .myaccount .login-register {
    flex-flow: column;
  }
  main .myaccount .login-register .login {
    border-right: 0;
    padding: 10px;
  }
  main .myaccount .login-register .register {
    padding: 10px;
  }
  main .categories .categories-wrapper .category {
    width: 100%;
  }
  main .categories .categories-wrapper .category .description{
    padding: 0px;
  }
  main .categories .categories-wrapper{
    padding: 0px;
  }
  main .cart .buttons input{
    margin: 5px 5px;
  }
  main .cart .quantityForm{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  main .cart .quantityForm button{
    max-width: fit-content;
  }
  main .agb h2, main .agb p{
    text-align: justify;
    margin: 0px 0px 10px 0px;
  }
  main .agb .paragraph{
    margin-right: 5px;
  }
  main .price{
    display: flex;
    flex-direction: column-reverse;
    color: #999999;
  }
  .colorPage .list .card:first-child{
    display: none;
  }
  .colorPage .list .card{
    flex-wrap: wrap;
    text-align: left;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    margin-bottom: 10px;
  }
  .colorPage .list .card .name{
    width: 40%;
    font-weight: bold;
    font-size: 90%;
  }
  .colorPage .list .card .description{
    width: calc(60% - 10px);
  }
  .colorPage .list .card .hexcode{
    width: 20%;
  }
  .colorPage .list .card .splash{
    width: 20%
  }
  .colorPage .list .card .example{
    width: calc(60% - 20px);
  }
  footer .content-wrapper {
    flex-direction: column-reverse;
  }
  footer .content-wrapper > div {
    width: 100%;
  }
  .pageInfo {
    text-align: center;
  }
  footer .paymentInfo .list{
    display: flex;
    gap: 5px;
  }
  footer .paymentInfo .list img{
    max-width: calc(20% - 5px);
  }
}