/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Style guide navigation
# Colors
# Text styles
# Icons
# Components
# # Tooltip

--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Style guide navigation
--------------------------------------------------------------*/
#styleguide-menu > .menu-item-type-custom:last-child,
#block-menu > .menu-item-type-custom:last-child {
  display: none;
}



/*.link-menu-column{
  margin-right: 50px;
}

.link-menu{
  list-style: none;
  display: inline-flex;
  margin-bottom: 50px;
  margin-left: 0;
  padding-left: 0;
}

.link-menu-column a{
  display: block;
  margin-right: 50px;
}

@media only screen and (max-width: 767px) {
  .link-menu{
    display: block;
  }
}
*/

.styleguide-inner-container {
  width: 23.5%;
  float: left;
  background-size: cover;
  background-position: center;
  margin-right: 2%;
  background-color: #fff;
  position: relative;
  margin-bottom: 30px;
}

.styleguide-inner-container:nth-child(4n) {
  margin-right: 0;
}

@media only screen and (max-width: 767px) {
  .styleguide-inner-container{
    width: 100%;
    margin-right: 0;
  }
}

/*--------------------------------------------------------------
# Colors
--------------------------------------------------------------*/
.color-container, .text-style-container, .komponent-container {
  margin-top: 30px;
}

.color-container .color{
  height: 150px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.color-container .color button {
  background-color: transparent;
  color: transparent;
  font-size: 16px;
  padding: 16px 20px;
  width: 100%;
  height: 100%;
  transition: all 0.3s;
}

.color-container .color .tooltip {
  background-color: transparent;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: all 0.3s;
}

.color-container .color:hover .tooltip {
  display: block;
  width: 100%;
  height: 100%;
}

.color-container .color:hover button {
  background-color: rgba(69, 71, 73, 0.2);
  color: #fff;
}

.color-info, .text-info{
  display: grid;
}

.color-container-grid{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 30px 0;
}


/*--------------------------------------------------------------
# Text styles
--------------------------------------------------------------*/

.text-style-container .styleguide-inner-container {
  margin-bottom: 30px;
  margin-top: 30px;
  width: 100%;
  float: none;
  clear:both;
  display: inline-block;
}

.text-style-container h1{
  color: #00A65C;
}

.text-preview h1,
.text-preview h2,
.text-preview h3,
.text-preview h4,
.text-preview h5,
.text-preview h6 {
  padding: 0;
  margin: 0;
}

.text-preview {
  padding: 20px 25px;
  border: 1px solid #dadfe2;
  margin-bottom: 20px;
  text-overflow: ellipsis;
  overflow:hidden;
  white-space: nowrap;
}

.text-preview a {
  cursor: pointer;
}

.text-preview .heading-big {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

p.muted{
  color: #616161;
}

p.heading-big{
  color: #00A65C;
  font-size: 64px;
  font-family: 'Lineto Circular Bold', sans-serif;
  line-height: 64px;
}

/*--------------------------------------------------------------
# Icons
--------------------------------------------------------------*/

.ikon-info {
  display: flex;
}

.ikon-container-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 25px;
}

.ikon-container .ikon-container-grid {
  padding-top: 40px;
}

.ikon-container-grid .svg-img-container {
  text-align:center;
  height: 160px;
  border: 1px solid #dadfe2;
  margin-bottom: 10px;
}

.ikon-container-grid .svg-img-container img {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.ikon-info .tooltip {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

.komponent-inner-container {
  width: 23.5%;
  float: left;
  background-size: cover;
  background-position: center;
  margin-right: 2%;
  background-color: #fff;
  position: relative;
  margin-bottom: 25px;
}

.komponent-inner-container:nth-child(4n) {
  margin-right: 0;
}

.komponent-btn-info{
  max-width: 500px;
  padding-bottom: 20px;
  padding-top: 20px;
}

.komponent-preview {
  text-align:center;
  height: 160px;
  border: 1px solid #dadfe2;
  margin-bottom: 10px;
  display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.komponent-preview-dark {
  background-color: #314e38;
}

.komponent-preview .filter-archive-form .style-select,
.komponent-preview .filter-archive-form {
  width: auto;
}


/*--------------------------------------------------------------
# Components: Tooltip
--------------------------------------------------------------*/

.js-copy {
  background: transparent;
  border: 0;
  position: relative;
}

.js-copy:before {
  content: '';
  display: none;
  position: absolute;
  z-index: 9998;
  top: 100%;
  left: 50%;
  margin-left: -14px;
  width: 28px;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 8px solid #90BD7F;
}

.js-copy:after {
  content: 'Kopiera\00a0till\00a0urklipp';
  color: #404040;
  display: none;
  position: absolute;
  z-index: 9999;
  top: calc(100% + 8px);
  width: 200px;
  left: 50%;
  margin-left: -100px;
  height: auto;
  padding: 16px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  background: #90BD7F;
  box-shadow: 0 14px 15px -10px rgba(0,0,0,0.20);
}

.js-copy:hover:before, .js-copy:hover:after {
  display: block;
}

.js-copy:active, .js-copy:focus {
  outline: none;
}

.js-copy.copied:after {
  content: 'Kopierad!' !important;
}

/*--------------------------------------------------------------
# Events
--------------------------------------------------------------*/

figure.cover {
  margin: 0;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}