/* Tool general styles */
#color-contrast {
    border-radius: var(--wy-border-radius1);
    width: 700px;
    margin: auto auto;
    box-sizing: border-box;
    padding: 2rem;
    border: 1px solid var(--wy-light-gray3);
    /*position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);*/
}

/* character */
#jill {
    width: 220px;
    height: 220px;
    margin: auto auto;
    border-radius: 100%;
}

/* SVG */
@-moz-keyframes blink {
    0% {
        ry: 5;
    }

    49% {
        ry: 5;
    }

    50% {
        ry: 0;
    }

    51% {
        ry: 5;
    }
}

@-webkit-keyframes blink {
    0% {
        ry: 5;
    }

    49% {
        ry: 5;
    }

    50% {
        ry: 0;
    }

    51% {
        ry: 5;
    }
}

@keyframes blink {
    0% {
        ry: 5;
    }

    49% {
        ry: 5;
    }

    50% {
        ry: 0;
    }

    51% {
        ry: 5;
    }
}

.skin {
    fill: #eab38f;
}

.eyes {
    fill: #1f1f1f;
    animation: blink 10s alternate infinite;
    -webkit-animation: blink 10s alternate infinite;
    -moz-animation: blink 10s alternate infinite;
}

.hair {
    fill: #2f1b0d;
}

.line {
    fill: none;
    stroke: #2f1b0d;
    stroke-width: 2px;
}

.arm,
#mouth,
#smile,
.eyes,
.hand,
.eyebrow {
    transition: all 0.25s;
}

/* boxes */
#boxes {
    display: flex;
    margin-top: 1.5rem;
    flex-direction: column;
}

@media screen and (max-width: 600px) {
    #boxes {
        flex-direction: column;
    }
}

@media screen and (min-width: 600px) {
    #boxes {
        flex-direction: row;
    }
}

#boxes>div {
    display: flex;
    flex: 1;
    margin-bottom: 45px;
}

#boxes>div>div {
    flex: 1;
    text-align: center;
    background: #081;
    color: white;
    padding: 0.5rem 0;
    margin-left: 10px;
    border-radius: var(--wy-border-radius1);
    transition: background 0.5s;
    position: relative;
}

#boxes>div>div::after {
    content: "✓ Pass";
    display: block;
    position: absolute;
    color: #000;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

#boxes>div>div.fail {
    background: #d32;
}

#boxes>div>div.fail::after {
    content: "✕ Fail";
}

#boxes>div:first-child {
    margin-right: 0;
}

#boxes span:first-child {
    font-size: 0.75em;
    display: block;
    margin-bottom: 0.5em;
}

/* demo */
#sample-text {
    margin: 1.5rem 0 1.6rem 0;
    padding: 1rem;
    background: #fff;
    color: #000;
    text-align: center;
    font-size: 20px;
    border: 1px solid gray;
    border-radius: var(--wy-border-radius1);
}

/* sliders */
#bars {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#bars>div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#bars>div:first-child {
    margin-left: 0.5rem;
}

#bars>div:last-child {
    margin-right: 0.5rem;
}

#bars>div>div {
    display: flex;
    margin-bottom: 0.5rem;
}

#bars label {
    display: inline-block;
    color: white;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 2px;
    box-sizing: border-box;
}

label.red {
    background: #d32;
}

label.green {
    background: #081;
}

label.blue {
    background: #26e;
}

#bars input[type="range"] {
    flex: 1;
}

#bars input[type="number"] {
    text-align: center;
    width: 3rem;
    border-radius: 2px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    height: 2rem;
    box-sizing: border-box;
    line-height: 2rem;
    padding: 0;
}

#bars input[type="text"] {
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1rem;
    height: 2rem;
    box-sizing: border-box;
    line-height: 2rem;
    direction: ltr;
}