@import "https://fonts.googleapis.com/css?family=Roboto:300,400,500";

* {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
}

html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg: white;
  --text-color: #444444;
  --bg-dx: #f4f5f5;
  --text-color-border: rgb(220, 220, 220);
  --bg-result: #0187f7;
  --text-currency: #bf5dce;
}

/* .dark-theme {
  --bg: #282d32;
  --text-color: #696c70;
  --bg-dx:#353a3f;
  --text-color-border: #8e9193;
  --bg-result: #4cb480;
  --text-currency: #b24cab;
} */

.dark-theme {
  --bg: rgb(60, 60, 60);
  --text-color: rgb(220, 220, 220);
  --bg-dx: rgb(80, 80, 80);
  --text-color-border: rgb(50, 50, 50);
  --bg-result: #39cccc;
  --text-currency: #01ff70;
}

.btn {
  position: absolute;
  transition: 0.5s ease;
  background-color: Transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  z-index: 10;
}

.btn:hover {
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -ms-transform: scale(1.25);
  -o-transform: scale(1.25);
}

.version {
  position: fixed;
  right: 2%;
  bottom: 3%;
  font-size: 80%;
  color: var(--bg-result);
  z-index: 100;
}

/* ----- SVG Icons - svgicons.sparkk.fr ----- */

.btn > .svg-icon {
  width: 2em;
  height: 2em;
}

.btn > .svg-icon-big {
  width: 5em;
  height: 5em;
}

.btn > .svg-icon path,
.btn > .svg-icon-big path,
.btn > .svg-icon polygon,
.btn > .svg-icon rect {
  fill: var(--bg-result);
}

.svg-icon circle,
.svg-icon-big circle {
  stroke: var(--bg-result);
  stroke-width: 1;
}

/* -------------- BTNs --------------*/

.toggle-theme {
  display: inline-block;
  top: 20px;
  left: 20px;
}

.save-btn {
  display: inline-block;
  top: 20px;
  left: 54px;
}

.import-btn {
  display: inline-block;
  top: 20px;
  left: 88px;
}

.settings-btn {
  display: inline-block;
  top: 20px;
  right: 20px;
}

.listen-btn {
  position: fixed;
  bottom: 3%;
  left: 45%;
}

.show {
  transition: opacity 650ms;
  cursor: pointer;
}

.hide {
  opacity: 0;
}

/* ----------------------------------*/

body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  background-color: var(--bg);
  color: var(--text-color);
}

nav {
  height: 60px;
  width: 100%;
  border-bottom: 1px solid var(--text-color-border);
}

.content {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  position: absolute;
  overflow-y: auto;
  overflow-x: hidden;
  top: 60px; /* same height as navbar */
  left: 0;
  right: 0;
  bottom: 0;
}

div.left {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  margin-left: 10%;
}

div.right {
  position: absolute;
  right: 0;
  top: 0;
  min-height: 100%;
  width: 30%;
  background-color: var(--bg-dx);
  border-left: 1px solid var(--text-color-border);
  border-top: 1px solid var(--text-color-border);
}

.row {
  position: relative;
  letter-spacing: 0.075em;
}

.formatted,
.editable,
.result {
  padding: 16px 16px 8px 16px;
  min-height: 20.5px;
}

.result-cell {
  color: var(--text-color-border);
  background-color: var(--bg-result);
  border-radius: 6px;
}

.formatted {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  user-select: none;
}

.row > div:nth-child(2) {
  position: relative;
  -webkit-text-fill-color: transparent;
  /* Chrome: make text transparent */
  text-fill-color: transparent;
  color: black;
  /* But keep caret black */
}

.numbers {
  color: #7fdbff;
  font-weight: bold;
}

.units {
  color: rgb(31, 113, 221);
  font-weight: bold;
}

.currencies {
  color: var(--text-currency);
  font-weight: bold;
}

.headers {
  color: var(--text-color);
  font-weight: bold;
}

.comments {
  color: rgb(120, 120, 120);
  font-weight: normal;
}

[contenteditable]:focus {
  outline: 0px solid transparent;
}

.couponcode:hover .coupontooltip {
  display: block;
}

.coupontooltip {
  display: none;
  background-color: var(--bg-result);
  color: var(--bg);
  font-size: 50%;
  text-align: center;
  margin-left: 25px;
  padding: 4px;
  border-radius: 4px;
  position: absolute;
  z-index: 100;
  width: 70px;
  height: 10px;
}

.couponcode {
  /* margin: 52px 20px; */
}

/* -------------- CUSTOM SCROLLBAR --------------*/

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--bg-dx);
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: var(--bg-result);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-result);
}

@media screen and (max-width: 1000px) {
  body {
    font-size: 20px;
  }
}

@media screen and (max-width: 700px) {
  body {
    font-size: 18px;
  }

  div.left {
    margin-left: 5%;
    width: 70%;
  }

  div.right {
    width: 25%;
  }
  .couponcode:hover .coupontooltip {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  body {
    font-size: 14px;
  }

  div.left {
    margin-left: 0%;
    width: 80%;
  }

  div.right {
    width: 20%;
  }
  .result {
    font-size: 65%;
  }
  .couponcode:hover .coupontooltip {
    display: none;
  }
}
