

@import url(https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:500);
@import url(https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:700);
@import url(https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:900);
input {
  all: unset;
  box-sizing: border-box;
}
.intro, .block, .fill, .title, .solution, span {
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
    font-weight: 900;
    word-wrap:break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    text-align: justify;
}

a, input {
    color: #bbb;
}
* {
    color: #ddd;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    min-height: 100%;
    background: #222222;
    /*background: grey;*/
    background: radial-gradient(ellipse at center, #111111 44%, #181818 100%);
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
p {
    line-height: 1.5;
    position: relative;
    z-index: 2;
    padding: 1em;
    color: #00ee00;
}

.hidden {
    display: none;
}
.main {
    padding: 50px 20px;
}

.title {
    flex: 0 0 100%;
    height: auto;
    width: 0;
    margin: 5px;
    font-weight: 900;
    padding: 5px 15px;
    position: relative;
    color: #eee;
    text-shadow: 0 0 2px #aaa;
    letter-spacing: 2px;
    font-size: 22px;
    text-align: center;
    /*background-color: rgb(48, 51, 54);*/
}
.content {
    border: 2px solid #333;
    background: #151515;
    display: flex;
    justify-content: space-around;
    flex-flow: row wrap;
    
    padding: 0 0 5px 0;
    margin: auto;
    width: 100%;
    list-style: none;
    max-width: 1000px;
}

.question-wrapper {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-align: center;
    display: table;
}
.question-id {
    z-index: 1;
    text-align: center;
    display: inline-block;
    display: table-cell;
    vertical-align: middle;
    fill: #ddd;
    text-shadow: 0px 0px 15px #ccc;
    font-family: "Barlow Semi Condensed", Arial, sans-serif;
    font-size: 2.55vw;
}

.intro small {
    display: inline-block;
    font-size: 18px;
    color: #bbb;
}
.intro {
    
    flex: 1 0 10px;
    height:auto;
    width: 0;
    margin: 0 0;
    position: relative;
    font-weight: 500;
    margin: 5px;
    padding: 5px 5px 5px 10px;
    position: relative;
    color: #ddd;
    font-size: 25px;
}
.visualizer {
    flex: 1 0 10px;
    height:auto;
    width: 0;
    margin: 0 0;
    position: relative;
}
.visualizer:before {
    content:'';
    float:left;
    padding-top:100%;
}
.select {
    margin: 0 0;
    width: 0;
    flex: 1.5 0 10px;
    height:auto;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.solution b {
    font-weight: 700;
    color: #fff;
}
.solution {
    
    font-weight: 500;
    margin: 5px;
    padding: 5px 15px;
    position: relative;
    color: #ddd;
    
    font-size: 25px;
    flex: 6 0 auto;
}
/*
 * border-draw-link-1
 */
.link-1, .border-draw-link-1 {
    display: inline-block;
    position: relative;
    flex: 1 0 auto;
    position: relative;
    padding: 3px;
    margin: 5px;
    color: #000;
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}
.border-draw-link-1 {
    background-repeat: no-repeat;
    background-image: linear-gradient(to right, #0a0 100%, #0a0 100%), linear-gradient(to bottom, #0a0 100%, #0a0 100%), linear-gradient(to right, #0a0 100%, #0a0 100%), linear-gradient(to bottom, #0a0 100%, #0a0 100%);
    background-size: 0 3px, 3px 0, 0 3px, 3px 0;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;

}
.border-draw-link-1:hover, .border-draw-link-1:active, .border-draw-link-1:focus {
    -webkit-animation: 1s draw-border-1 forwards;
    animation: 1s draw-border-1 forwards;
}
.fill span{
    text-align: center;
}
.fill {
    display: inline-block;
    z-index: 10;
    overflow: hidden;
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 12px 18px;
    color: #fff;
    background-color: rgb(48, 51, 54);
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transform: perspective(1px) translateZ(0);
    display: flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
}
.fill::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #00aa00;
    transition: transform 0.4s ease-in-out, opacity 0.3s;
    transform: translate3d(-150%, 0, 0) skewX(75deg);
}
.fill:active::before, .fill:focus::before {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(0deg);
}

.highlight {
    border: 0px solid #fff;
	padding: 3px;
	transition: border-color 0.6s linear;
}
.highlight:active, .highlight:hover, .highlight:focus{  

	margin: 0px;
    border: 3px solid #0a0;
}
#answer {
    padding-left: 15px;
}
@-webkit-keyframes draw-border-1 {
    0% {
        background-size: 0 3px, 3px 0, 0 3px, 3px 0;
    }
    25% {
        background-size: 100% 3px, 3px 0, 0 3px, 3px 0;
    }
    50% {
        background-size: 100% 3px, 3px 100%, 0 3px, 3px 0;
    }
    75% {
        background-size: 100% 3px, 3px 100%, 100% 3px, 3px 0;
    }
    100% {
        background-size: 100% 3px, 3px 100%, 100% 3px, 3px 100%;
    }
}

@keyframes draw-border-1 {
    0% {
        background-size: 0 3px, 3px 0, 0 3px, 3px 0;
    }
    25% {
        background-size: 100% 3px, 3px 0, 0 3px, 3px 0;
    }
    50% {
        background-size: 100% 3px, 3px 100%, 0 3px, 3px 0;
    }
    75% {
        background-size: 100% 3px, 3px 100%, 100% 3px, 3px 0;
    }
    100% {
        background-size: 100% 3px, 3px 100%, 100% 3px, 3px 100%;
    }
}


/* Small screens */
@media screen and (max-width: 40em) {
    .visualizer {
        flex: 0 0 100%;
    }
    .intro {
        flex: 0 0 100%;
    }
    .select {
        flex: 0 0 100%;
    }
    .main {
	padding: 20px 10px;
    }
    .textinput {
        padding: 15px;
    }
}

.slidecontainercontainer {    
    width: 100%;
    bottom: 20px;
    position: absolute;
}
.slidecontainer {
    width: 150px; /* Width of the outside container */
    height: 20px;
    position: relative;
    margin: auto;
    z-index: 2;
}

/* Mouse-over effects */
.slider:hover {
    opacity: 1; /* Fully shown on mouse-over */
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;  
    background: #2d323b;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: #565f70;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #565f70;
    cursor: pointer;
}
