@font-face {
	font-family: 'Roboto';
    src: url('Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Medium';
    src: url('Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Light';
    src: url('Roboto-Light.ttf') format('truetype');
}

body {
    padding: 1em;
}

body, button, input {
    font-family: Roboto;
}

input[type="checkbox"] {
    transition: transform 0.5s ease-in-out;
}

#captcha-init {
    padding: 1em;
    display: flex;
    width: 300px;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    border: 1px solid #aaa;
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.05s ease-in-out, box-shadow 0.05s ease-in-out, background 0.05s ease-in-out;
}

#captcha-init:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#captcha-init:active {
    background: #fff;
    transform: scale(1.01);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    cursor: wait;
}

#captcha-init img {
    height: 2em;
}
#captcha-init span {
    flex-grow: 1;
    text-align: left;
    margin-left: 1ch;
    opacity: 0.6;
}

.hidden {
    opacity: 0;
}

#captcha-container {
    transition: opacity 0.5s ease-in-out;
    display: inline-flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 1px;
}

#captcha-header {
    padding: 1em;
    font-size: 0.9em;
}

#captcha-header > * {
    margin: 0;
}

#captcha-header h1 {
    font-family: 'Roboto Medium';
    width: 400px;
}

#captcha-header h1 img {
    display: block;
    margin: 15px 0;
}

#captcha-container button {
    align-self: flex-end;
    text-transform: uppercase;
    padding: 1em 2em;
    border: none;
    border-radius: 2px;
    font-size: 0.75em;
    cursor: pointer;
    transition: filter 0.1s ease-in-out;
}

#captcha-container button:hover {
    filter: brightness(110%);
}

#captcha-container button:active {
    filter: brightness(75%);
}

.blue {
    background: #4a90e2;
    color: #fff;
}

#captcha {
    margin-top: 4px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ccc;
    grid-gap: 4px;
    grid-template-columns: repeat(4, 1fr);
    display: inline-grid;
}

.captcha {
    width: 100px;
    height: 100px;
    transition: transform 0.1s ease-in-out, opacity 0.5s ease-in-out;
    cursor: pointer;
}

.captcha.selected {
    transform: scale(0.85);
}

.captcha.selected:after {
    content: "✔";
    background: #4a90e2;
    color: #fff;
    display: inline-block;
    width: 2ch;
    height: 2ch;
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 1.25em;
    border-radius: 50%;
    padding: 8px;
    text-align: center;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.5); 
}