body {
  background-color: #F2F4F2;
  background-image: url('../static/images/bigback.webp');
}

html, body, p, h6, h5, h4, h3, h2, h1, input {
  font-family: "Alegreya", serif;
  color: #59513D;
}

h6, h5, h4, h3, h2, h1 {
  color: #006B50;
}

.content {
    width: 70%;
    margin: auto;
    margin-top: 80px;
  }

p {
    margin-bottom:1px;
    font-size: 12pt;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li {
  float: left;
}

.form-horizontal {
  margin-left: 20%;
  display: inline-block;
}

.price-calc .radio {
  padding: 0px;
}

.radio_label {
  padding-left: 8px;
  padding-right: 8px;
}

.price-calc input[type=radio]:checked ~ .check {
  /* border: 2px solid #59513D; */
  background-color: #59513D;
}

.price-calc input[type=radio]:checked ~ .radio_label {
  font-weight: bold;
  text-decoration: underline;
}

#navbar{
  background-color: #0a6f41;
  display: inline-block;
  width:100%;
  box-shadow: 0px 1px 2px #005525;
  min-height: 80px;
  position:fixed;
  top: 0; 
  left: 0;
  z-index: 1000;
}

#navbar ul{
  background-color: #0a6f41;
  width: 85%;
  margin-left:auto;
  color: #1E1C15;
}

#navbar li a {
  display: block;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color:white;
  font-size: 1.1rem;
  font-family: 'Alegreya', serif;
  font-style: bold;
  text-shadow: 2px 1px 2px rgba(14, 13, 13, 0.38);
}

#navbar p {
  font-size: 20pt;
}

#navbar .link:hover{
  background-color: #005525;
}

#navbar .link {
  margin-top: 0px;
}

#infobox {
  background-color: #F7F5EF;
  padding: 5px;
  border-radius: 10px;
  margin: 5px;
  margin-left: 14px;
  width: auto;
}

#products,
#my_invoice {
    display: inline-block;
    padding: 20px;
}

#article_count {
    display: inline-block;
    color: red;
    background-color: white;
    border-radius: 50%;
    padding: 5px 10px;
}

#place-select {
    margin-bottom: 10px;
}
.place-address {
    color: #888;
}
.has-place {
    display: none;
}

.control-field {
    font-size: 14px;
    line-height: 22px;
    padding-top: 4px;
    margin-bottom: 5px;
}

.defaultfontsize {
    font-size: 13pt;
}

.cust-row{
  display:flex;
  flex-direction:row;
}
.cust-column{
  /*display:flex;
  flex-direction:column;*/
}

input[type="text"],
input[type="checkbox"],
input[type="textarea"],
input[type="email"],
textarea,
select,
label,
button,
input[type="button"],
a{
    font-size: 13pt;
}

input[type="text"], input[type="email"] {
  margin-bottom: 8px;
}

.product {
    display: inline-block;
    width: 290px;
    height: 280px;
    margin: 12px; 
    margin-top: 30px;
    box-shadow: 5px 3px 3px #7F7B70;
    background-color: white;
    background-image: linear-gradient(to top, rgb(19, 134, 79) 5%, rgb(26, 136, 84) 48%, rgb(17, 109, 66) 97%);
    border-radius: 15px;
}

.product h4{
  margin-bottom: 0px;
  margin-top: 10px;
  text-decoration: none;
  margin: 18px;
  text-align: center;
  font-size: 18px;
  color: white;
  text-shadow: 2px 1px 2px rgba(14, 13, 13, 0.38);
  font-family: "Alegreya", serif;
  text-transform: uppercase;

}

.product p{
  margin: 12px;
}


.product a{
  color: #080808;
}

.product:hover{
  background-color: #efefef;
}

.product a:hover{
  text-decoration: none;
}

.product-img {
    width: 290px;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

.product-details {
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: white;;
  border-radius: 20px;
  border-color: white;
  padding: 20px;
}

.article-page {
    margin-top: 20px;
  margin-bottom: 20px;
  background-color: white;;
  border-radius: 20px;
  border-color: white;
  padding: 20px;
}

.price-calc {
  background: #DDDAD2;
  width: 35%;
  padding:20px;
  border-radius: 8px;
  display: table-cell; 
  float: right
}

.price-calc p{
  font-size: 13pt;
}

.input {
  text-align: center;
  width: 90%;
}

.input[type="number"]
{
  font-size: 14pt;
  height: 28px;

}

#articles {
  background: white;
  width: 100%; 
  display: table;
  padding: 10px;
}

.article-row {
  display: table-cell;
  float: left;
  height: 30px;
  margin-top: 10px;
}

.article-sum-row {
  display: table-cell;
  float: left;
  height: 30px;
  margin-top: -4px;
}

.article-border {
  width: 95%;
  height: 1px;
  background-color: #8b8b8b;
}

.delete-button {
  width:25px; 
  margin: -4px;
}

.offert-header {
  margin-top: 30px;
}

.offert-template [type="text"] {
  margin-bottom:100px;
}

.info {
  padding: 30px; 
  margin: auto; 
  text-align: center; 
  background: #fefefe;
  border-radius: 10px;
  margin-bottom: 20px;
}

#no_articles {
  width: 30%; 
  background-color: #DDDAD2;
}

#welcome {
  width: 80%; 
}

#image {

}

#image img{
  display: table-cell; 
  width:60%; 
  float: left;
  max-height: 440px;
  object-fit: cover;
}

#summary_form {
  width: 100%;
  margin: auto;
}

#summary_articles {
  background-color: #F7F5EF;
  width: 100%;
  padding: 10px;
  margin: auto; 
  display: table;
}

#summary_form h6{
  margin-bottom: 0px;
}

#summary_table_payment td,th{
  text-align: left;
  padding-right: 60px;
  padding-top: 0px;
}

#summary_table_customer{
  width: 100%;
  margin: auto;
}

#summary_table_customer td,th{
  text-align: center;
  column-span: 50%;
  vertical-align: top;
}

#map_container{
  margin-top: 20px;
}

.tankvart{
  margin-top: 10px;
}

/* POPUP */
.hover_bkgr_fricc{
  background:rgba(0,0,0,.4);
  cursor:pointer;
  height:100%;
  position:fixed;
  text-align:center;
  top:0;
  width:100%;
  z-index:10000;
  padding: 0;
  margin: 0;
  top:0;
  left:0;
}
.hover_bkgr_fricc .helper{
  display:inline-block;
  height:100%;
  vertical-align:middle;
}
.hover_bkgr_fricc > div {
  background-color: #fff;
  box-shadow: 10px 10px 60px #555;
  display: inline-block;
  height: auto;
  max-width: 551px;
  vertical-align: middle;
  width: 50%;
  position: relative;
  border-radius: 8px;
  padding: 20px 10px 20px 10px;
}
.popupCloseButton {
  background-color: #fff;
  color:#C73A3C;
  border: 2px solid #C73A3C;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  font-family: arial;
  font-weight: bold;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 25px;
  line-height: 30px;
  width: 30px;
  height: 30px;
  text-align: center;
}
.popupCloseButton:hover {
  background-color: #ccc;
}

.overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
}

.overlay__inner {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.overlay__content {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 75px;
  height: 75px;
  display: inline-block;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.05);
  border-top-color: #005525;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

#order_tankvart {
  width:80%;
  margin-left: 10%;
}

#order_form {
  margin-top: 60px;
}

.table_space {
  margin-right: 60px;
}

#productcol {
  display: flex;
  flex-direction: column;
  width: 60%;
  float: left;
}

#productcol img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

#productcol .producttext {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
}

#productcol .producttext p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

@keyframes spin {
100% {
  transform: rotate(360deg);
}
}


@media screen and (max-width:1400px){
  .product {
    zoom: 90%
  }
}

@media screen and (max-width:1200px){
  .content {
    margin-top: 180px;
  }
}

@media screen and (max-width:990px){

  #productcol {
    display: flex;
    flex-direction: column;
    width: 100%;
    float: left;
  }
  #productcol img{
    display: inline-block;
    width: 98%;
    margin-bottom: 10px;
    margin-left: 0px;
  }

  .price-calc {
    display: inline-block;
    zoom: 1.0;
    width: 92%;
  }

  .product {
    zoom: 80%;
  }
}

/*Adapt for mobile devices*/

@viewport {
  width: device-width ;
  zoom: 1.0 ;
}

@media screen and (orientation:landscape) and (max-width:881px){
  #navbar .link{
    margin-top: 0px;
    }
    #product-text{
      zoom: 0.9;
    }
  }

@media screen and (min-width:661px) and (max-width:860px){

  .cust-row{
    display:inline;
  }

  .product {
    /*-webkit-transform: scale(1) translate(-5%);
    margin-top: 0px;
    margin-bottom: 0px;
    margin:5px;
    */
      zoom: 70%;

  }

  #product-text{
    zoom: 0.9;
  }

  #navbar {
    zoom:0.8;
  }

  #map_container{
    margin-top: 0px;
  }

  .info {
    width: 70%;
    zoom: 0.9;
  }

  #articles {
    zoom: 0.8;
    width: 100%;
  }

  .article-row-text {
    font-size: 14pt;
  }

  #order_form {
    margin-left: 0px;
    margin-top: -40px;
    -webkit-transform: scale(0.9)
  }

  #summary_articles {
    zoom: 0.8;
  }

  #summary_table_customer {
    zoom: 0.8;
  }

  .tankvart{
    zoom: 0.8;
  }
}

@media screen and (max-width:660px){
  #navbar {
    zoom: 60%;
  }

  #navbar ul{
      margin-left:0;
  }

  .article-page {
    background-color: white;
    border-radius: 20px;
    border-color: white;
  }

  .content {
    width: 92%;
    margin-left:24px;
  }

  #summary_info {
    zoom: 0.8;
  }
    .cust-row{
      display:inline;
    }
  
    #product-text{
      zoom: 0.8;
    }
  
    #map_container{
      margin-top: 0px;
    }
  
    #image img{
      display: inline-block;
      width: 98%;
      margin-bottom: 10px;
      margin-left: 0px;
    }
  
  
    .info {
      width: 70%;
      zoom: 0.8;
    }
  
    #articles {
      zoom: 0.7;
      width: 100%;
    }

    .article-row-text {
      font-size: 9pt;
    }
  
    #summary_articles {
      zoom: 0.8;
    }
  
    #summary_table_customer {
      zoom: 0.8;
    }
  
    .tankvart{
      zoom: 0.7;
      margin-top: 4px;
    }

    #order_form {
      margin-left: 0px;
      margin-top: 0px;
      -webkit-transform: scale(0.7) translate(-25%, -20%)
    }

    #order_tankvart {
      width:100%;
      margin-left: 0%;
    }

    #welcome {
      zoom: 0.7;
    }

    .table_space {
      margin-right: 10px;
    }
}


@media screen and (orientation:portrait)  and (max-width:360px){
    .article-row-text {
      font-size: 9pt;
    }

    #order_form {
      margin-left: 0px;
      margin-top: 0px;
      -webkit-transform: scale(0.6) translate(-33%, -33%)
    }
}

@media only screen and (max-width:1442px){

  .price-calc {
    display: inline-block;
    zoom: 0.9;
  }
}

@media only screen and (min-width:990px) and (max-width:1304px){

  .price-calc {
    display: inline-block;
    zoom: 0.8;
  }
}


@media only screen and (orientation:landscape) and (max-width:961px){

  #image img{
    margin-left: 0px;
  }

  .price-calc {
    display: inline-block;
    zoom: 0.8;
  }
  
  #order_form {
    margin-left: 20px;
    margin-top: 0px;
  }

  #product-text{
    zoom: 0.9;
  }

  #welcome {
    zoom: 0.9;
  }

  .table_space {
    margin-right: 20px;
  }
}