/*
Code is written by n-do.de for signmax.de
*/
/*
    Created on : Jan 11, 2014, 7:35:51 AM
    Author     : ndo84bw
*/
/* @import url("toolbar.css") all; */

/* variables */
/* https://coolors.co/33cc33-fbfbff-eaeaea-01baef-0b4f6c */
:root {
  --d17-color--accent: #33cc33;
  --d17-color--color1: #fbfbff;
  --d17-color--color2: #eaeaea;
  --d17-color--color3: #01baef;
  --d17-color--color4: #0b4f6c;
  --d17-color--border-dark: #1B1E34;
}
/* paps */
/* https://coolors.co/33cc33-fbfbff-eaeaea-353F59-2C354A */
:root {
  --d17-color--accent: #33cc33;
  --d17-color--color1: #fbfbff;
  --d17-color--color2: #eaeaea;
  --d17-color--color3: #353F59;
  --d17-color--color4: #2C354A;
  --d17-color--border-dark: #1B1E34;
}

/* 28.02.2019 Farben von Website übernommen*/
/* https://coolors.co/33cc33-ff9900-ffffff-d8dbe2-443f3f */
:root {
  --d17-color--accent: #33cc33;
  --d17-color--color1: #ff9900;
  --d17-color--color1_inv: #ffffff;
  --d17-color--color2: #ffffff;
  --d17-color--color3: #d8dbe2;
  --d17-color--color4: #443f3f;
  --d17-color--border-dark: #1B1E34;
  --d17-max-width: 1000px;
}

.d17-color-text--accent {
  color: var(--d17-color--accent);
}

html, body, .mdl-layout__container {
   /* font-family: sans-serif; */
   /* font-size: 12px; */
   /* -webkit-tap-highlight-color: rgba(0,0,0,0); */
   /* -webkit-tap-highlight-color: transparent; */

   /* to use full vh on andoid phones wiht addressbar set 100vh */
   height: calc(100vh);
   /* height: 100%; */
}

#td_nav, #td_main, #td_aside {
    display: block;
}

#trikotdesigner {
  background-color: #FF55FF;
  width: 1100px;
  margin: 0 auto;
}

#td_nav {
    background-color: green;
    width: 210px;
    float: left;
}

#td_main {
  background-color: orange;
  margin-left: 220px;
  margin-right: 230px;
}

#td_aside {
  background-color: #808000;
  width: 220px;
  float: right;
}

.d17-drawer-header {
  box-sizing: border-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 16px;
  background-color: var(--d17-color--color4);
}

.d17-navigation {
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  background-color: var(--d17-color--color3);
}
.d17-layout .d17-navigation .mdl-navigation__link {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 500;
}
.d17-layout .d17-navigation .mdl-navigation__link:hover {
  background-color: var(--d17-color--accent);
  color: var(--d17-color--color1);
}
.d17-navigation .mdl-navigation__link .material-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.56);
  margin-right: 32px;
}

.d17-header {
  position: relative;
  background-color: var(--d17-color--color4);
  color: var(--d17-color--color2);
  /* box-shadow: none; */
}

.d17-header .mdl-layout__drawer-button {
    color: inherit !important;
    margin-left: calc( (100vw - var(--d17-max-width) ) / 2 );
}

/* @media screen and (max-width: var(--d17-max-width)) { */
@media screen and (max-width: 1000px) {
  .d17-header .mdl-layout__drawer-button {
      margin-left: unset;
  }

}

.d17-header .mdl-layout__header-row {
  position: relative;
  width: 100vw;
  max-width: var(--d17-max-width);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 0px;
}

.d17-header #inquiry .material-icons {
  color: var(--d17-color--accent);
}

.nowrap {
  white-space: nowrap;
}

.mdl-layout__content {
  display: block;
}


/*  */
/* normal tabs */
/*  */
.mdl-tabs__tab-bar {
  height: 36px;
  background-color: #eaeaea;
  border-bottom: 0px;
}

.mdl-tabs__tab {
  color: var(--d17-color--color4);
  font-weight: bold;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: auto;
  margin-bottom: auto;
  height: 36px;
  line-height: 36px;
}

.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active {
  background-color: var(--d17-color--color3);
  color: var(--d17-color--color1);
}

.mdl-badge.mdl-badge--overlap.thumb_typ_wrapper {
  margin-right:0px;
  pointer-events: none;
}

.mdl-badge.mdl-badge--overlap.thumb_typ_wrapper:after {
  right: 2px;
  top: 2px;
}

/* tabs in bottom have to be stretcht till bottom. only for this a flex is needed */
.mdl-layout.is-upgraded #fixed-tab-1.mdl-layout__tab-panel.is-active {
  display: flex;
}
.mdl-layout.is-upgraded #fixed-tab-3.mdl-layout__tab-panel.is-active {
  display: flex;
}

.thumb_typ_wrapper {
  display: inline-block;
  width: calc(20% - 2px);
  cursor: pointer;
}


.thumb_typ {
   /* float: left; */
   /* display: block; */
   /* width: calc(100% - 0px); */
   width: 100%;
   height: calc(100% -2px);

   /* cursor: pointer; */

   /* border-radius: 1px; */
   /* margin: 0px; */
   transition: all 0.2s ease-out; /* explorer 10 */
   -webkit-transition: all 0.2s ease-out; /* chrome & safari */
   -moz-transition: all 0.2s ease-out; /* firefox */
   -o-transition: all 0.2s ease-out; /* opera */

   /* position:  absolute; */
   /* top: 0; */
   /* left: 0; */
   /* bottom: 0; */
   /* right: 0; */
   border-width: 1px;
   border-style: dashed;
   border-color: rgba(0, 0, 0, 0);
   border-radius: 5px;

   pointer-events: all;
}

.thumb_typ_active {
  border-color: var(--d17-color--color2);
  background-color: rgba(100, 100, 100, 0.2);
  transition: all 1s ease-out; /* explorer 10 */
  -webkit-transition: all 1s ease-out; /* chrome & safari */
  -moz-transition: all 1s ease-out; /* firefox */
  -o-transition: all 1s ease-out; /* opera */
}


.cl_table {
  display: table;
  width: calc(100%);
}

.cl_table_row {
  display: table-row;
}

.cl_table_cell {
  display: table-cell;
  width: 50%;
  height: calc(30px - 2*2px);
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  padding: 2px;

  /* border: 1px solid grey; */
  line-height: 0em;
}

.cl_table_cell span {
  display: block;
  text-align: right;
  width: 100%;
  color: white;
  font-size: 1.3em;
  text-decoration-color: var(--d17-color--accent);
  transition: text-decoration 0.2s ease-in-out; /* explorer 10 */
  -webkit-transition: text-decoration 0.2s ease-in-out; /* chrome & safari */
  -moz-transition: text-decoration 0.2s ease-in-out; /* firefox */
  -o-transition: text-decoration 0.2s ease-in-out; /* opera */
}

div.colorPickerItem {

  /* margin: 5px; */
  width: calc(20% - 4px - 2*5px);
  padding-top: calc(20% - 4px - 2*5px); /* 1:1 Aspect Ratio */
  border-radius: 50%;
  border: 2px solid var(--d17-color--color3);
  display: inline-flex;

  margin: 5px;

  /* display: none;
  width: calc(100% - 2*1px);
  margin: 0px;
  height: calc(100% - 2*1px); */
  cursor: pointer;
  transition: all 0.2s linear; /* explorer 10 */
  -webkit-transition: all 0.2s linear; /* chrome & safari */
  -moz-transition: all 0.2s linear; /* firefox */
  -o-transition: all 0.2s linear; /* opera */
}

div.colorPickerItem:hover {
  /* width: calc(20% - 4px); */
  /* padding-top: calc(20% - 4px); */
  /* border-width: 2px; */

  border-color: var(--d17-color--color4);

  /* width: calc(100%); */
  /* height: calc(100%); */
}

div.colorPickerItemActive {
  /* width: calc(100% - 0*1px) !important;
  height: calc(100% - 0*1px) !important;
  -moz-box-shadow:    inset 0 0 10px #222;
  -webkit-box-shadow: inset 0 0 10px #222;
  box-shadow:         inset 0 0 10px #222; */
  border-color: var(--d17-color--accent);
}

.cl_table_cell span.colorPickerItemLabelActive {
  /* text-decoration: underline;
  text-decoration-color: var(--d17-color--accent); */
}

#colorPalette {
  /* margin: 25px 8px 8px 8px; */
  margin: 8px 25px 8px 8px;
  /* margin: 8px; */
  line-height: 0em;
  text-align: left;
  /* width: calc(100vw - 2*8px); */
  width: calc(100% - 2*8px);
  /* margin-top: 20px; */
}

.colorPaletteItem {
   display: inline-block;
   width: calc(100% / 11 - 2*1vw - 2*2px);
   padding-top: calc(100% / 11 - 2*1vw - 2*2px);
   width: calc(100% / 8 - 2*1% - 2*2px);
   padding-top: calc(100% / 8 - 2*1% - 2*2px);
   margin: calc(1%);
   /* margin: 5px; */
   /* border: 1px solid var(--d17-color--color4) */
   border: 2px solid var(--d17-color--color4);
   border-radius: 50%;
   cursor: pointer;

   transition: all 0.4s ease-out; /* explorer 10 */
   -webkit-transition: all 0.4s ease-out; /* chrome & safari */
   -moz-transition: all 0.4s ease-out; /* firefox */
   -o-transition: all 0.4s ease-out; /* opera */
}

.colorPaletteItem:hover {
   display: inline-block;
   /* width: calc(100% / 11 - 2*1vw);
   padding-top: calc(100% / 11 - 2*1vw);
   margin: calc(1vw); */

   border-color: var(--d17-color--color3);
   /* cursor: pointer; */
}

.colorPaletteItemActive {
  /* width: calc(100% / 11 - 2*1vw);
  padding-top: calc(100% / 11 - 2*1vw); */

  /* border-width: 0px !important; */
  border-color: var(--d17-color--accent);
  -moz-box-shadow:    inset 0 0 3px #222;
  -webkit-box-shadow: inset 0 0 3px #222;
  box-shadow:         inset 0 0 3px #222;
}

#colorPalette_wrapper {
  /* width: 100%;
  height: 100%;
  background-color: var(--d17-color--color3);
  top: 0px;
  left: 0px;
  margin: 0px;
  z-index: 1;
  position: absolute;
  display: none; */

  /* max-height: 100vh; */
  overflow: hidden;
  /* max-height: unset; */

  /* pos needed to make a absolute positioning inside */
  position: relative;
}

#colorPalette_wrapper.colorPalette_wrapper_hide {
  /* display: none; */
  /* max-height: 0px; */
  max-height: 0px;
}

#designerDesigns-top {
  flex: 1 99999999 auto;
  display: flex;
  /* height is nessesary that the flex is not larger than the max-height */
  height: 10px;
}

#designerDesigns-top .mdl-tabs__tab-bar {
  flex-shrink: 0;
}

#designerDesigns-top .mdl-tabs {
  display: flex;
  flex-flow: column;
}

#colorPalette_wrapper i.d17-close {
  /* float: right; */
  font-size: 3em;
  cursor: pointer;
  display: block;
  /* color: var(--d17-color--accent); */
}

#colorPalette_wrapper > #colorPalette_name {
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  margin: 0px;
  padding: 0.5em;
  font-size: 1.5em;
  pointer-events: none;
}

.workspace_on_click_action {
  cursor: pointer;
}

#d17-loading-cycle, #d17-loading-cycle-welcome {
  /* background-color: red; */
  /* color: yellow; */
  position: absolute;
  bottom: 10px;
  right: 10px;

}

div.designer-workspace .mdl-tooltip {
  text-align: left;
  top: 77px !important;
  font-size: 1em;
}

#d17-loading-cycle .mdl-spinner__layer-1 { border-color:var(--d17-color--accent) }
#d17-loading-cycle .mdl-spinner__layer-2 { border-color:var(--d17-color--accent) }
#d17-loading-cycle .mdl-spinner__layer-3 { border-color:var(--d17-color--accent) }
#d17-loading-cycle .mdl-spinner__layer-4 { border-color:var(--d17-color--accent) }

#d17-p1 {
  width: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 1;
}

#d17-p1.mdl-progress--indeterminate > .bar1,
#d17-p1.mdl-progress--indeterminate > .bar3 {
  background-color: var(--d17-color--color1);
      background-image: linear-gradient(to right,rgba(255,153,0,.9),rgba(255,153,0,.9)),
                        linear-gradient(to right,var(--d17-color--color3),var(--d17-color--color3));
}

#d17-p1.mdl-progress--indeterminate > .bar2 {
  background-color: var(--d17-color--color3);
}

#d17-p1.mdl-progress--indeterminate > .bufferbar {
  background-image: linear-gradient(
    to right,
    var(--d17-color--color2),
    var(--d17-color--color2)),
    linear-gradient(
      to right,
      var(--d17-color--color3),
      var(--d17-color--color3));
}

.d17-info-position {
  position: absolute;
  top: 20px;
  right: 20px;
}


.d17-designcode {
  color: var(--d17-color--color4);
  display: block;
  /* border-top: 1px dotted var(--d17-color--color3); */
  padding: 0.5em;
  position: absolute;
  right: 0px;
  bottom: 0px;
  z-index: 1;
}

.d17-designcode::before {
  content: "Designcode: "
}

.d17-tooltip--left-bottom {
  /* top: 80px !important; */
}

.d17-snackbar {
  background-color: var(--d17-color--color1);
  /* color: var(--d17-color--color4); */
  background-color: var(--d17-color--accent);
  /* color: var(--d17-color--color4); */
  z-index: 20;
}

.d17-dlg {
  display: none;
  background-color: var(--d17-color--color2);
  border: 2px solid var(--d17-color--color3);
  z-index: 11;
  position: absolute;
  top: 100px;
}

.d17-dlg .mdl-textfield {
  padding-top: 20px;
  padding-bottom: 20px;
}

.d17-dlg input[type=submit], .d17-dlg button.d17-dlg-close  {
  float: right;
}

.d17-dlg-grayout, .d17-intro {
  position: fixed;
  left: 0px;
  top: 0px;
  height: 100vh;
  width: 100vw;
  z-index: 10;
  display: none;
  overflow: hidden;
}

.d17-dlg-grayout {
  background-color: black;
  opacity: 0.7;
}

.d17-intro {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.d17-intro .d17-intro-wrapper {
  padding: 20px;
  max-width: calc(100vw - 2*20px);
  /* width: 100%; */
  max-height: calc(100vh - 2*20px);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.d17-intro img {
  margin: 0px auto 0px auto;
  max-height: calc(100% - 2*20px);
}

.d17-intro .d17-intro-out {
  color: var(--d17-color--color3);
  padding: 0.5em;
}

#designerTypeSwitcher > li, #designerTypeColorPalette > li {
  padding-top: 10px;
  padding-bottom: 10px;
}


li.inverterLi > span.mdl-list__item-secondary-action > label {
  padding-left: 40px;
}

li.motiveLi {
  padding-top: 0px;
  padding-bottom: 0px;
  min-height: 2em;
}

.motiveBtn {
  font-size: 1em;
}



div.d17-content {
  max-width: 1080px;
  /* calc full width if workspace widt is target */
  max-width: calc(850px + (2/10)*850px);
  /* fix width of all and calculate workspace to get quadrat box */
  max-width: 1000px;

  /* max-width: 980px; */
  /* background-color: var(--d17-color--color4); */
  padding: 0px;
  /* border: 1px solid grey; */
  height: 100%;
  /* max-height: 50vh; */
  min-height: 100%;

  /* background: linear-gradient(0deg, #eaeaea, #fafafa); */
  background: #fafafa;
}

.designer-trikot, .designer-trikot svg {
  width: 100%;
  max-width: calc(1000px/12*10);
  /* min-height: 300px; */
  max-height: calc(1000px/12*2*4);
  max-height: 60vh;
}

.d17-main {
  background-color: #eee;
}

.d17-workspace {
  /* background-color: var(--d17-color--color4); */
  align-self: stretch;
  display: flex;
  align-items: center;
  position: relative;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

.mdl-button.d17-category-menu-btn {
    border-radius: 0px;
    width: auto;
    margin: 0px 0px;
    padding-right: 5px;
    padding-left: 5px;
    cursor: pointer;
}

.mdl-button.d17-category-menu-btn-active::after {
      height: 2px;
      width: 100%;
      display: block;
      content: " ";
      bottom: 0;
      left: 0;
      position: absolute;
      background: var(--d17-color--accent);
      -webkit-animation: border-expand .5s cubic-bezier(.4,0,.4,1).01s alternate forwards;
      animation: border-expand .5s cubic-bezier(.4,0,.4,1).01s alternate forwards;
      transition: all 1s cubic-bezier(.4,0,1,1);
}

.mdl-button.d17-category-menu-btn > img {
    left: calc(24px / 2 + 5px);
}

.mdl-button.d17-category-menu-btn > label {
  padding-left: calc( 24px + 5px );
  cursor: pointer;
}

.categoryBox {
  flex: 1 1 auto;
  flex-flow: column nowrap;
  align-items: flex-start;

  background-color: var(--d17-color--color3);
  color: var(--d17-color--color4);
}

                               /* grow shrink basis */
.categoryBox > div:nth-child(1) { flex: 0 2 auto; }
.categoryBox > div:nth-child(2) { flex: 1 1 auto; }
.categoryBox > div:nth-child(3) { flex: 0 2 auto; }


.categoryBox-header {
  background-color: var(--d17-color--color4);
  color: var(--d17-color--color2);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 1.2em;
  font-family: "Roboto","Helvetica","Arial",sans-serif;
  padding: 1em;
  justify-content: center;
  display: none;
}

.categoryBox-footer {
  background-color: var(--d17-color--color4);
  color: var(--d17-color--color2);

  /* to view over the tab bars */
  z-index: 1;
}

.categoryBox-footer > div {
  text-align: center;
  text-align: center;
  vertical-align: middle;
  margin-left: auto;
}

#categoryBox-design-select span, #categoryBox-option span {
  display: block;
  text-align: center;
  width: 100%;
  color: white;
  font-size: 1.3em;
  /* padding-top: 1em; */
}

#categoryBox-option {
  background-color: var(--d17-color--color4);
}

.mdl-textfield {
  padding: 10px 0px;
}


#categoryBox-motive > div.mdl-cell--stretch {
  text-align: center;
  vertical-align: middle;
  padding: 4vw;
}


.motive_action {
  stroke-opacity: 0.4;
  fill-opacity  : 0.4;
}

.motive_action:hover {
  stroke-opacity: 0.8;
  fill-opacity  : 0.8;
}

.motive_sym_action * {
  /* stroke-opacity: 1; */
  /* fill-opacity: 1; */
  /* fill: var(--d17-color--accent); */
}

.motive_active {
  stroke-opacity: 1 !important;
  fill-opacity  : 1 !important;
}

#corner-bottom-right{
  border-color: var(--d17-color--border-dark);
  border: 1px solid;
  min-height: 140px;
}

#corner-bottom-right-box {
  text-align: center;
}

.getmdl-select .mdl-textfield__input {
  background-color: var(--d17-color--color2);
  border-color: var(--d17-color--border-dark);
  border: 1px solid;
  padding-left: 5px;
  width: calc(100% - 2*1px - 5px);
}

.getmdl-select .mdl-icon-toggle__label {
  color: var(--d17-color--accent)
}

.mdl-button {
  font-size: 1.2em;
  text-transform: none;
  /* padding: 0 7px; */
}

.mdl-button {
  line-height: 2em;
  transition: box-shadow .2s cubic-bezier(.4,0,1,1),
  background-color .2s cubic-bezier(.4,0,.2,1),
  color .2s cubic-bezier(.4,0,.2,1)
}

#designerDesignsContent {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-top: 5px;
  padding-bottom: 5px;
  /* position: absolute; */
  /* height: calc(100% - 5px - 5px); */
}

/* fix because pulldown menue, if no fix a scrollbar is vissible */
div.mdl-textfield div.mdl-menu__container {
  bottom: 50px;
  height: 208px;
}

div.d17-content ::-webkit-scrollbar {
  width: 8px;
}

div.d17-content ::-webkit-scrollbar-button {
  /* background-color: red; */
  /* border: 1px solid var(--d17-color--border-dark); */
}

div.d17-content ::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: var(--d17-color--color3);
  border-top: 1px solid var(--d17-color--border-dark);
  border-bottom: 1px solid var(--d17-color--border-dark);

  /* border-radius: 10px; */
}

div.d17-content ::-webkit-scrollbar-thumb {
  /* border-radius: 10px; */
  /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); */
  border: 1px solid var(--d17-color--border-dark);
  background-color: var(--d17-color--color4);
}

div.d17-footer {
  background-color: var(--d17-color--color4);
  color: var(--d17-color--color2);
  /* text-align: center; */
  padding: 10px;
  display: flex;
  /* flex: 1 1 auto; */
  /* align-content: stretch; */
}

div.d17-footer > span {
  /* width: 100%; */
  margin: auto;
}

#d17-overlay {
  display: none;
  width: 100vw;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  background-color: var(--d17-color--color4);
}

#d17-overlay-panel {
  margin: 0 auto 0 auto;
  width: calc(100vw - 2*2px);
  height: calc(100vh - 2*2px);
  /* min-width: 200px; */
  min-height: 400px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0px;
  border: 2px solid var(--d17-color--accent);
  position: absolute;
  left: 0%;
  top: 0%;
  -moz-box-shadow:    inset 0 0 10px #222;
  -webkit-box-shadow: inset 0 0 10px #222;
  box-shadow:         inset 0 0 10px #222;
}

.d17-type_btn {
  display: block;
  float: left;
  width: 23%;
  max-width: 300px;
  /* min-width: 140px; */
  /* height: 200px; */
  margin: 1%;
  /* background-color: grey; */
  cursor: pointer;
  background-color: white;
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* On mouse-over, add a deeper shadow */
.d17-type_btn:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.d17-type_btn img {
  width: 100%
}

.d17-type_btn h4 {
  /* font-size: 1.2em; */
  /* line-height: 1.2em; */
  margin: 2px;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
}

.clearfix {
  overflow: auto;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.mdl-layout-title {
  background-color: var(--d17-color--accent);
}

.mdl-layout-title > img {
  max-width: calc( 100% - 16px );
}

.d17-drawer-separator {
  height: 1px;
  background-color: #dcdcdc;
  margin: 8px 0;
}

.mdl-layout__drawer span.mdl-navigation__link.mdl-navigation__link {
  color: var(--d17-color--accent);
}

.mdl-layout__drawer .mdl-navigation__link[target="_blank"]::after {
  font-family: "Material Icons";
  content: " \E89E";
}

.drawer__footer {
  display: block;
  bottom: 0px;
  right: 0px;
  padding: 16px;
  color: #a2a2a2;
}

body::before {
  display: none;
  content: "ALL";
  position: absolute;
  top: 100px;
  left: 0px;
  color: red;
  z-index: 2;
}

/* DESKTOP */
@media (min-width: 840px) {
  body::before {
    content: "DESKTOP";
  }

  div.d17-content , div.categoryBox, .d17-workspace {
    max-height: 555px;
    height: 555px;
    min-height: unset;
  }

  .designer-trikot, .designer-trikot svg {
    max-height: 100vh;
  }

  #designerDesignsContent {
    overflow-x: hidden;
    overflow-y: auto;
    white-space: inherit;
    padding: 5px;
    height: auto;
    flex-grow: 1;
    flex-shrink: 1;
  }
  .thumb_typ_wrapper {
    float: left;
  }

  /* To stretch content correct */
  .categoryBox-header {
    display: inherit;
  }
}

/* TABLET */
@media (max-width: 839px) and (min-width: 480px) and (orientation: landscape) {
  body::before {
    content: "TABLET Quer";
  }
  .mdl-cell--8-col-tablet--landscape {
    width: 50% !important;
  }
  .categoryBox {
    width: 50% !important;
  }
  .colorPaletteItem {
    width: calc(100% / 11 - 2*0.5vw - 2*2px);
    padding-top: calc(100% / 11 - 2*0.5vw - 2*2px);
    margin: 0.5vw;
   }
   #designerDesignsContent {
     overflow-x: hidden;
     overflow-y: auto;
     white-space: inherit;
     padding: 5px;
     height: auto;
     flex-grow: 1;
     flex-shrink: 1;
   }
}

@media (max-width: 839px) and (min-width: 480px) and (orientation: portrait) {
  body::before {
    content: "TABLET Hoch";
  }

  .d17-content {
    flex-flow: column nowrap;
  }


  #designerDesignsContent {
    /* max-height: 10vh; */

  }
  .d17-type_btn h4 {
    font-size: 1.2em;
    line-height: 1.2em;
  }

  div.colorPickerItem {

    width: calc(10% - 4px);
    padding-top: calc(10% - 4px); /* 1:1 Aspect Ratio */
    border-radius: 50%;
    border: 2px solid var(--d17-color--color3);
    margin: 1px;
  }

  .colorPaletteItem {
    width: calc(100% / 16 - 2*0.5vw - 2*2px);
    padding-top: calc(100% / 16 - 2*0.5vw - 2*2px);
    margin: 0.5vw;
   }
}

/* PHONE */
@media (max-width: 479px) and (orientation: landscape) {
  body::before {
    content: "PHONE Quer";
  }
}

@media (max-width: 479px) and (orientation: portrait) {
  body::before {
    content: "PHONE Hoch";
  }

  .d17-content {
    flex-flow: column nowrap;
  }

  #designerDesignsContent {
    /* max-height: 10vh; */
    overflow-x: scroll;
  }
  .d17-type_btn {
    width: 48%;
    margin: 1%;
  }

  .mdl-button.d17-category-menu-btn > label {
    display: none;
  }

  .mdl-button.d17-category-menu-btn > img {
    left: 50%;
  }

  .colorPaletteItem {
    width: calc(100% / 11 - 2*0.5vw - 2*2px);
    padding-top: calc(100% / 11 - 2*0.5vw - 2*2px);
    margin: 0.5vw;
   }
}

/*Old Stuff*/



.designer-workspace {
  width: 100%;
  /* min-height: 400px; */
}

.clear {
   clear: both;
}

.dotted-botton-line {
   border-bottom: #aaaaaa dotted 2px;
}

.center {
   text-align: center;
}
