/* RESET */

* {
    margin: 0;
    padding: 0;
    font-family: "K2D", "Raleway", "Helvetica", "Arial", sans-serif;
}

/* BODY */

body {
    width: auto;
    max-width: 100vw;
    max-height: 100vh;
}

/* COMMON CLASSES */

.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.disappear {
    opacity: 0;
}

/* RADAR INFOGRAPHIC */

.radar-infographic {
    position: relative;
    max-height: 100vh;
    overflow: hidden;
    width: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.dot-text {
    text-align: left;
    color: #000;
    padding-left: 4px;
    padding-right: 4px;
    font-weight: inherit;
    font-size: 1em;
    position: relative;
    -ms-transform: translate(0,-50%);
    transform: translate(0,-50%);
}

.dot {
    position: absolute;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-weight: bold;
    bottom: -13%;
    left: 50%;
    font-weight: 500;
    will-change: transform;
    transform-box: view-box;
    transition: transform 0.5s ease-out;
    box-shadow: 5px, 10px, rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: opacity .25s ease-out, transform 0.5s ease-out;
}

/* Small screens (less than 768 px) */
@media (max-width: 768px) {
    .dot {
        font-size: 10px;
        font-weight: 600;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .dot {
        font-size: 12px;
    }
}

/* Medium devices (tablets, 992px and up) */
@media (min-width: 992px) {
    .dot {
        font-size: 14px;
    }
}

/* Large devices (desktops, 1300px and up) */
@media (min-width: 1300px) {
    .dot {
        font-size: 14px;
    }
}

/* Extra large devices (large desktops, 1500px and up) */
@media (min-width: 1500px) {
    .dot {
        font-size: 16px;
    }
    
}

.dot:hover {
    transform: scale(1.05);
    transform-origin: center;
}

 .reverse-text {
    flex-direction: row-reverse;
    text-align: right;
    left: auto;
} 

.square {
    height: 0.67em;
    border-radius: 2px;
    margin: 2%;
    flex-basis: 29%; /* distribute squares into two rows */
}
  
.square-container {
    display: flex;
    flex-direction: row;
    width: 2em;
    flex-wrap: wrap; /* wrap squares into two rows */
    position: relative;
    font-size: inherit;
    align-content: flex-start;
    -ms-transform: translate(0,-50%);
    transform: translate(0,-50%);
}
  

.label-box, .label-text {
    transition: opacity 0.5s ease-out;
}

.label-box {
    fill: rgb(216, 197, 175);
}

.field {
    fill: rgb(216, 197, 175);
    transition: opacity 1s ease-out;
}

.afproev {
    opacity: 0.6;
}

.hold-oeje {
    opacity: 0.4;
}

.afvent {
    opacity: 0.2;
}

.klar, #klar-label-box {
    transition: transform 0.5s ease-out;
    transform-box: fill-box;
}

.klar {
    transform-origin: bottom;
}

#klar-label-box {
    transform-origin: right;
}
/* SVG */

#svg-overlay {
    position: absolute;
    height: 100%;
    width: 100%;

}

svg {
    max-width: 100%;
    max-height: 100vh;
    position: relative;
    margin: 0;
    left: 0;
    bottom: 0;
}

.fill-out {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* BUTTON */

button {
    cursor: pointer;
}

/* COLOR KEY */

.color-key {
    height: 9%;
    width: 49%;
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: 0;
    right: 0;
    align-content: center;
    justify-content: space-around;
}

.administration {
    height: 100%;
    width: 16.66%;
}

.big-square {
    margin-left: 25%;
    margin-right:25%;
    height: 60%;
    border-radius: 4px;
}

/* SCREEN SIZE FLEXBOX */

.screen-size-flexbox {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
}


/* HEADINGS */

h1 {
    font-size: 18px;
}

@media (max-width: 869px) {
    .administration h1 {
        font-size: 12px;
    }
}

@media (min-width: 870px) and (max-width: 1399px) {
    .administration h1 {
        font-size: 18px;
    }
}
    
@media (min-width: 1400px) {
    .administration h1 {
        font-size: 24px;
    }
}

.administration h1 {
    text-align: center;
}

/* ANIMATIONS */

@keyframes tap {
0% {
    transform: scale(1);
}
20% {
    transform: scale(1.1);
}
50% {
    transform: scale(1.2);
}
}

.zoom-field {
    transform-origin: bottom;
    transform-box: fill-box;
    animation: zoom-field 1.2s ease-out forwards;
    z-index: 11;
}

@keyframes zoom-field {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2.73);
    }
}

/* INFO BOX */

.info-box-header{
    display:flex;
    width:100%;
    justify-content: space-between;
    align-items:center;
    background-color: #D8C5AF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

}

#infographic-name{
    flex-grow:1;
}

.horizontal-center {
    display:flex;
    padding:5%;
    height:200px;
    position: relative;
}

.info-box-right-side{
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    flex-shrink: 1;
    padding:20px;
    font-size: 14px;
    margin-top: 1%;
    margin-left: 2%;
}

@media only screen and (max-width: 1200px) {
    .info-box-right-side{
        font-size:12px;
    }
}


.pictogram-overlay{
    position: absolute;
    top:0;
    left: 0;
    min-width: 20vw;
    height: 200px;
    background-color: #D8C5AF35;
    margin-left: 5%;
    margin-top: 5%;

}

.horizontal-center > img {
    min-width: 20vw;
}

p {
    margin-bottom: 12px;
}

.center-all {
    position: absolute;
    height: 100%;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top-right-button {
    width: 64px;
    height: 64px;
    font-weight: bold;
    font-size: 24px;
    border: none;
    background: none;
}

.close:hover .button:hover {
    color: #27665e;
    transition: color .2s;
}

.fullscreen-info {
    display: block;
    z-index: 1000;
    position: fixed;
    min-height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    background-color: rgb(255, 255, 255);
    text-align: center;
}

.info-box-container {
    background-color:rgba(0, 0, 0, 0.66);
    transition: transform 1s;
    position: absolute;
    top: -8px;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.translate-y-100 {
    transform: translateY(-100%);
}

.radar-background {
    display: flex;
    justify-content: center;
}

.info-box {
    background-color: rgb(255, 255, 255);
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    left:17%;
    top:20%;
        z-index: 10000;
    text-align: center;
    max-width:60vw;
    
}

.loader {
    position: fixed;
    background-color: #fff;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.read-more {
    border-radius: 0;
    border: 2px solid white;
    background-color: #D8C5AF;
    border-radius: 5px;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 4%;
    padding-right: 4%;
    margin-top:-4px;
    display: inline-block;
    color: #000000;
    font-weight: 400;
    text-decoration: none;
    transition: color 1s, background-color 0.5s, box-shadow 0.5s;
}

.read-more:hover {
    box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
    border:2px solid #D8C5AF;
}

/* PICTOGRAM */

.pictogram {
    max-width: 8vmax;
    image-rendering: -moz-crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

/* COLOR CLASSES */

.bu-color {
    background-color: #eb2f2c;
}

.velfaerd-color {
    background-color: #ea7c3c;
}

.ks-color {
    background-color: #7b3794;
}

.oea-color {
    background-color: #a5a5a5;
}

.tm-color {
    background-color: #65b14f;
}

.komstab-color {
    background-color: #f2eb51;
}

/* LOADER */

/* From https://loading.io/css/ */

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #000;
    border-color: #000 transparent #000 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}