@import url('https://fonts.googleapis.com/css?family=Aldrich|Advent Pro'); 

:root {
    --black: #212121;
    --lightblack: #31363B;
    --blue: #1BA1E2;
    --lightblue: #3DAEE9;
    --highlightblue: #1FF1FF;
    --shadowblue: rgba(27, 161, 226, 0.5);
    --blackalpha: rgba(33, 33, 33, 0.8);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Aldrich', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    background-color: var(--black);
    color: var(--blue);
    margin: 0;
}

/* mobile friendly alternative to using background-attachment: fixed */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: var(--black);
    background-image: url(../images/earth.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


h1 {
    font-family: 'Advent Pro';
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
}

h1, p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

label {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    border: none;
}

.container {
    width: 100%;
    margin: 3.125rem auto 0 auto;
}

@media (min-width: 576px) {
    .container {
      max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
      max-width: 720px;
    }
}

.header {
    color: var(--highlightblue);
    padding: 0 0.625rem;
    margin-bottom: 1.875rem;
}

.description {
    font-weight: 200;
    text-shadow: 1px 1px 1px rgba(31, 241, 255, 0.4);
}

.clue {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    color: var(--lightblue);
  }

.text-center {
    text-align: center;
}

/* form */

form {
    background: var(--blackalpha);
    padding: 2.5rem 0.625rem;
    border-radius: 0.25rem;
    border: 1px solid var(--blue);
    box-shadow: 2px 2px 4px var(--shadowblue), -2px -2px 4px var(--shadowblue);
}

@media (min-width: 480px) {
    form {
      padding: 2.5rem;
    }
}

.form-group {
    margin: 0 auto 1.25rem auto;
    padding: 0.25rem;
}

.form-control {
    display: block;
    width: 100%;
    height: 2.375rem;
    padding: 0.375rem 0.75rem;
    color: var(--highlightblue);
    background-color: var(--black);
    background-clip: padding-box;
    border: 1px solid var(--blue);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:hover {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 2px 2px 4px var(--shadowblue), -2px -2px 4px var(--shadowblue);
}

.input-radio,
.input-checkbox {
    display: inline-block;
    margin-right: 0.625rem;
    min-height: 1.25rem;
    min-width: 1.25rem;
}

.input-textarea {
    min-height: 120px;
    width: 100%;
    padding: 0.625rem;
    resize: vertical;
    background-color: var(--black);
    border: 1px solid var(--blue);
    color: var(--highlightblue);
}

.input-textarea:hover {
    box-shadow: 2px 2px 4px var(--shadowblue), -2px -2px 4px var(--shadowblue);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--black);
    color: inherit;
    border: 1px solid var(--blue);
    border-radius: 2px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: var(--highlightblue);
    font-weight: bold;
    color: var(--black);
    box-shadow: 2px 2px 4px var(--shadowblue), -2px -2px 4px var(--shadowblue);
}

/* Hide default radio and checkbox */
[type="radio"], [type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* custom checkbox and radio */
.custom-check, .custom-radio {
    position: inherit;
    display: inline-block;
    margin-bottom: 0.1em;
    margin-right: 0.625em;
    min-height: 1.25rem;
    min-width: 1.25rem;
    background-color: var(--black);
    border: 1px solid var(--blue);
}

input:checked ~ .custom-check,
input:checked ~ .custom-radio {
    background-color: var(--highlightblue);
}

/* Create the checkmark/indicator (hidden when not checked) */
.custom-check:after, .custom-radio:after {
    content: "";
    position: inherit;
    display: none;
}

/* Show the checkmark when checked */
input:checked ~ .custom-check:after,
input:checked ~ .custom-radio:after {
    display: block;
}

/* Style the checkmark/indicator */
.custom-check:after,
.custom-radio:after {
    width: 18px;
    height: 18px;
    border: 2px solid var(--black);  
}

/* custom radio button */
.custom-check,
.custom-check:after {
    border-radius: 20%;
}

/* custom radio button */
.custom-radio,
.custom-radio:after {
    border-radius: 50%;
}

input:hover ~ .custom-radio,
input:hover ~ .custom-check {
  box-shadow: 2px 2px 4px rgba(27, 161, 226, 0.5), -2px -2px 4px rgba(27, 161, 226, 0.5);
}
