/* styles.css 
   Project: carb-calc
   Author: eileen
*/

* {
   box-sizing: border-box;
}

img {
   width: 100%;
   display: block;
}

body {
   background-color: aliceblue;
   padding: 1em;
}

.author {
   position: absolute;
   top: 0.5em;
   right: 0.5em;
   font-size: 0.9em;
}

.content {
   display: flex;
}


.macro {
   display: flex;
   margin: 2em auto;
}

.leftbar {
   padding-top: 1%;
   margin-right: 1em;
}

.l {
   margin-bottom: 10%;
}

.methodology {
   border: 2px ridge darkorange;
   width: 11em;
   text-align: center;
   height: 3em;
   padding: 5%;
   background: linear-gradient(rgb(220,89,0),rgb(220,89,0,0.7));
   color: white;
   border-radius: 1em;
   line-height: 1.8;
   font-family: 'Press Start 2P';
   font-size: 0.8em;
}


.methodology:hover {
   cursor: pointer;
   background-color: darkorange;
}


.contact {
   border: 2px ridge rgb(243,175,23,0.6);
   width: 11em;
   text-align: center;
   height: 3em;
   padding: 5%;
   background: linear-gradient(rgb(243,175,23),rgb(243,175,23,0.7));
   color: white;
   border-radius: 1em;
   line-height: 1.8;
   font-family: 'Press Start 2P';
   font-size: 0.8em;
}


.contact:hover {
   cursor: pointer;
   background-color: rgb(243,175,23,0.7);
}


.regenerate {
   display: none;
   border: 2px ridge rgb(41,50,141,0.7);
   width: 11em;
   text-align: center;
   height: 3em;
   padding: 5%;
   background: linear-gradient(rgb(41,50,141),rgb(41,50,141,0.7));
   color: white;
   border-radius: 10px;
   line-height: 1.8;
   font-family: 'Press Start 2P';
   font-size: 0.8em;
}

.regenerate:hover {
   cursor: pointer;
   background-color: rgb(41,50,141,0.3);
}


.carboncalc {
   border: 4px outset lightslategray;
   border-radius: 35px;
   padding: 0.5% 1.5% 1.5% 1%;
   font-family: 'Press Start 2P', monospace;
   height: 600px;
   background-color: #4168A3;
}

.ctop {
   display: flex;
   margin-bottom: 2%;
}

.headline {
   font-size: 35px;
   font-family: 'IM Fell English SC';
   width: 340px;
   padding-top: 4%;
   color: #183662;
   text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
}

.model {
   font-family: 'cormorant upright';
   font-size: 20px;
   color: #183662;
   text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
   padding-right: 5%;
   text-align: right
}

.banner {
   font-size: 13px;
   background-color: #BEC1AF;
   border-radius: 5px;
   color: #404438;
   border: 3px solid dimgrey;
   width: 300px;
   line-height: 1.5;
}


.container {
   color: #404438;
   border: 3px solid dimgrey;
   font-size: 16px;
   width: 640px;
   line-height: 1.5;
   padding: 2%;
   background-color: #BEC1AF;
   border-radius: 5px;
   text-transform: uppercase;
}

.description {
   width: 95%;
}

.var {
   width: 5%;
}

input{
   width: 85px;
   height: 28px;
   background-color: #BEC1AF;
   color: #404438;
}

td{
  text-align: left;
  whitespace: no-wrap;
}

.inputbox {
   margin-top: 5px;
}

.cintro {
   font-size: 15px;
   margin-bottom: 1%;
   background-color: #404438;
   color: white;
   padding-left: 1%;
}

.button {
   width: 40em;
   line-height: 2;
   margin-top: 1.3em;
   color: #25150D;
   position: relative;
   font-family: 'IM Fell English SC';
   display:flex;
}

.buttonleft{
   width: 30em;
}

.name {
   width: 20em;
   margin-top: 2%;
   margin-left: 4%;
   font-size: 24px;
   color: #183662;
   text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
   display:flex;
}


.inputname {
   width: 22em;
   height: 2em;
   background-color: #BEC1AF;
   font-family: 'Press Start 2P';
   font-size: 0.6em;
   color: #404438;
   margin: 0.5em auto 0 0.9em;
}


.barcode {
   margin-left: 1em;
   margin-top: 1.5em;
   border-radius: 5px;
   height: 2.5em;
   width: 12em;
   background-image: url(barcode.png);
   background-size: 100%;
   background-repeat: no-repeat;
}


.generate {
   border: 7px solid rgb(0,0,0,0.5);
   width: 8em;
   height: 8em;
   text-align: center;
   background: linear-gradient(rgb(0,128,0,0.8),rgb(0,128,0,0.5));
   color: white;
   border-radius: 50%;
   line-height: 1.8;
   font-family: 'Press Start 2P';
   font-size: 0.9em;
   text-transform: uppercase;
   position: absolute;
   right: 3%;
   top: 2%;
}

.generatetext {
   margin-top: 25%;
}

.generate:hover {
   cursor: pointer;
   background-color: darkgreen;
}

.generate p {
   margin: auto;
}


/*RECEIPT*/

.receipt {
   display: none;
   margin-left: 5%;
   box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.5);
   padding: 30px 10px;
   width: 400px;
   background-image: url(receipt_background.jpg);
   background-size: cover;
   text-transform: uppercase;
}


.top {
   line-height: 70%;
}

.info {
   margin: 8% 5% 0% 5%;
   line-height: 50%;
}

.mid {
   margin: 0% 4.5%;
}

.endinfo {
   line-height: 50%;
   margin-top: 5%;
}

.end {
   margin-top: 10%;
}

.quantity {
   width: 15%;
}

.item {
   width: 60%;
}

.amount {
   width: 20%;
}

.itemtext {
   font-size: 15px;
}

.midheader, .midend {
   border-top: solid 1px black;
   border-bottom: solid 1px black;
   display: flex;
   line-height: 0;
}

.qheader {
   width: 57px;
   padding-left: 0.5%;
}

.iheader {
   width: 211px;
   padding-left: 0.5%;
}

.aheader {
   width: 70px;
   padding-left: 1%;
}

.totalinput {
   text-align: right;
   width: 100%;
   padding-right: 3%;
}

.receipt table {
   width: 100%;
}

.rowrecycling, .rowdiet, .rowshopping, .rowclothes, .rowdine, .rowelectronic {
   display: none;
}


.end img {
   width: 20%;
}


.reference {
   padding: 3% 5%;
}


.rcontainer {
   padding: 2%
}


/*REPONSIVE COMPATIBILITY*/


/*for tablet*/

@media (max-width: 1024px) {


   .macro {
      display: flex;
      margin: 1em auto;
   }

   /*  LEFTBAR */

   .leftbar {
      padding: 0.5em;
   }

   .methodology {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .regenerate {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .contact {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   /*CALCULATOR*/

   /*   //TOP//*/
   .carboncalc {
      width: 40%;
      height: fit-content;
      margin: 1.5em 0.5em;
   }

   .ctop {
      display: flex;
      flex-direction: column;
   }

   .headline {
      font-size: 1.5em;
      width: 80%;
      padding-top: 5%;
   }

   .model {
      font-size: 0.9em;
   }

   .banner {
      font-size: 0.7em;
      margin-left: -1.5em;
      width: 100%;
   }


   /*  / MIDDLE /*/
   .container {
      width: 98%;
      margin: auto;
      font-size: 12px;
   }


   .cintro {
      font-size: 12px;
   }


   /*  /BOTTOM / */

   .button {
      width: 10em;
      display:flex;
      flex-direction: column;
      margin-top: 0.2em;
   }

   .buttonleft {
      width: 20em;
      display:flex;
      flex-direction: column;
   }


   .name {
      width: 20em;
      font-size: 20px;
      display:flex;
      flex-direction:row;
   }


   .inputname {
      width: 11em;
      height: 2em;
      font-size: 0.6em;
      margin: 0.1em 0.8em;
   }

   .barcode{
      margin: 1.5em 0 0.5em 1em;
   }

   .generate {
      width: 7.5em;
      height: 5em;
      font-size: 0.7em;
      right: -13em;
      top: 5em;
      border: 4px solid rgb(0,0,0,0.5);
      position: absolute;
      border-radius: 10%;
   }

   .generatetext{
      margin-top: 0.5em;
   }

   .generate:hover {
      cursor: pointer;
      background-color: darkgreen;
   }


   /*   RECEIPT*/
   .receipt {
      margin: auto;
      width: 30%;
      margin: 2em auto;
   }

   .top {
   line-height: 100%;
   font-size: 1em;
   }

   .top h2 {
   font-size: 1.3em;
   }

   .top h3 {
   font-size: 1.1em;
   }

   .ctopright{
         margin-left:2em;
   }

/*for ipad mini*/

@media (max-width: 770px) {


   .macro {
      display: flex;
      margin: 1em auto;
   }

   /*  LEFTBAR */

   .leftbar {
      padding: 0.5em;
   }

   .methodology {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin: 0.3em;
   }

   .regenerate {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .contact {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   /*CALCULATOR*/

   /*   //TOP//*/
   .carboncalc {
      width: 40%;
      height: fit-content;
      margin: 1.5em 0.5em;
   }

   .ctop {
      display: flex;
      flex-direction: column;
   }

   .headline {
      font-size: 1.5em;
      width: 80%;
      padding-top: 5%;
   }

   .model {
      font-size: 0.9em;
   }

   .banner {
      font-size: 0.6em;
      margin-left: -1.5em;
      width: 100%;
   }


   /*  / MIDDLE /*/
   .container {
      width: 98%;
      margin: auto;
      font-size: 12px;
   }


   .cintro {
      font-size: 12px;
   }


   /*  /BOTTOM / */

   .button {
      width: 100%;
      display:flex;
      flex-direction: column;
      margin-top: 0.2em;
   }

   .buttonleft {
      width: 80%;
      display:flex;
      flex-direction: column;
   }


   .name {
      width: 15em;
      font-size: 20px;
      display:flex;
      flex-direction:row;
   }


   .inputname {
      width: 50%;
      height: 2em;
      font-size: 0.6em;
      margin: 0.1em 0.8em;
   }

   .barcode{
      margin: 1.5em 0 0.5em 1em;
      width: 50%;
   }

   .generate {
      width: 7.5em;
      height: 5em;
      font-size: 0.7em;
      right: 2em;
      top: 5em;
      border: 4px solid rgb(0,0,0,0.5);
      position: absolute;
      border-radius: 10%;
   }

   .generatetext{
      margin-top: 0.5em;
   }

   .generate:hover {
      cursor: pointer;
      background-color: darkgreen;
   }


   /*   RECEIPT*/
   .receipt {
      margin: auto;
      width: 30%;
      margin: 2em auto;
   }

   .top {
   line-height: 100%;
   font-size: 1em;
   }

   .top h2 {
   font-size: 1.2em;
   }

   .top h3 {
   font-size: 1em;
   }

   .ctopright{
         margin-left:2em;
   }


/*for iphone*/

@media (max-width: 640px) {


   .macro {
      display: block;
      margin: 1em auto;
   }

   /*  LEFTBAR */

   .leftbar {
      padding: 0% 2% 2% 2%;
   }


   .l {
      margin: 0 2%;
      padding: 2%;
   }


   .methodology {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .regenerate {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .contact {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   /*CALCULATOR*/

   /*   //TOP//*/
   .carboncalc {
      width: 95%;
      height: fit-content;
      margin: 1.5em;
   }

   .ctop {
      display: flex;
      flex-direction: column;
   }

   .headline {
      font-size: 1.5em;
      width: 80%;
      padding-top: 5%;
   }

   .model {
      font-size: 0.9em;
   }

   .banner {
      font-size: 0.7em;
      margin-left: -2em;
   }


   /*  / MIDDLE /*/
   .container {
      width: 98%;
      margin: auto;
      font-size: 12px;
   }


   .cintro {
      font-size: 12px;
   }


   /*  /BOTTOM / */

   .button {
      width: 10em;
      display:flex;
      flex-direction: column;
      margin-top: 0.2em;
   }

   .buttonleft {
      width: 20em;
      display:flex;
      flex-direction: column;
   }


   .name {
      width: 20em;
      font-size: 20px;
      display:flex;
      flex-direction:row;
   }


   .inputname {
      width: 11em;
      height: 2em;
      font-size: 0.6em;
      margin: 0.1em 0.8em;
   }

   .barcode{
      margin: 1.5em 0 0.5em 1em;
   }

   .generate {
      width: 7.5em;
      height: 5em;
      font-size: 0.7em;
      right: -13em;
      top: 5em;
      border: 4px solid rgb(0,0,0,0.5);
      position: absolute;
      border-radius: 10%;
   }

   .generatetext{
      margin-top: 0.5em;
   }

   .generate:hover {
      cursor: pointer;
      background-color: darkgreen;
   }


   /*   RECEIPT*/
   .receipt {
      margin: auto;
      width: 70%;
      margin: 2em auto;
   }

   .top {
   line-height: 100%;
   font-size: 1em;
   }

   .top h2 {
   font-size: 1.3em;
   }

   .top h3 {
   font-size: 1.1em;
   }

   .ctopright{
         margin-left:2em;
   }

   .itemtext {
      font-size: 0.8em;
   }


/*for android*/

@media (max-width: 344px) {


   .macro {
      display: block;
   }

   /*  LEFTBAR */

   .leftbar {
      padding: 0% 2% 2% 2%;
   }


   .l {
      margin: 0 2%;
      padding: 2%;
   }


   .methodology {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .regenerate {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   .contact {
      width: 11em;
      height: 3em;
      font-size: 0.7em;
      margin:0.3em;
   }

   /*CALCULATOR*/

   /*   //TOP//*/
   .carboncalc {
      width: 95%;
      height: fit-content;
      margin: 1.5em;
   }

   .ctop {
      display: flex;
      flex-direction: column;
   }

   .headline {
      font-size: 1.5em;
      width: 80%;
      padding-top: 5%;
      margin-left: 0.5em;
   }

   .model {
      font-size: 0.9em;
   }

   .banner {
      font-size: 0.7em;
      margin-left: -2.2em;
      width: 24em;
   }


   /*  / MIDDLE /*/
   .container {
      width: 98%;
      margin: auto;
      font-size: 12px;
   }


   .cintro {
      font-size: 12px;
   }


   /*  /BOTTOM / */

   .button {
      width: 10em;
      display:flex;
      flex-direction: column;
      margin-top: 0.2em;
   }

   .buttonleft {
      width: 20em;
      display:flex;
      flex-direction: column;
   }


   .name {
      width: 20em;
      font-size: 20px;
      display:flex;
      flex-direction:row;
   }


   .inputname {
      width: 11em;
      height: 2em;
      font-size: 0.6em;
      margin: 0.1em 0.8em;
   }

   .barcode{
      margin: 1.5em 0 0.5em 0.8em;
      width: 10em;
   }

   .generate {
      width: 7.5em;
      height: 5em;
      font-size: 0.7em;
      right: -10em;
      top: 5em;
      border: 4px solid rgb(0,0,0,0.5);
      position: absolute;
      border-radius: 10%;
   }

   .generatetext{
      margin-top: 0.5em;
   }

   .generate:hover {
      cursor: pointer;
      background-color: darkgreen;
   }


   /*   RECEIPT*/
   .receipt {
      margin: auto;
      width: 70%;
      margin: 2em auto;
      font-size: 0.4em;
   }


   .itemtext {
      font-size: 0.4em;
   }

   .top {
   line-height: 100%;
   font-size: 1em;
   }

   .top h2 {
   font-size: 1.3em;
   }

   .top h3 {
   font-size: 1.1em;
   }

   .ctopright{
         margin-left:2em;
   }


}/*ends here*/






