body {
    color: #404040;
    font-family: 'Merriweather', serif;
    font-size: 18px;
}

.form-check-input {
    padding: 5px !important;
}

.red-message {
    color: #c0392b;
}

.yellow-message {
    color: #f1c40f;
}

.green-message {
    color: #2ecc71;
}

a.green {
    color: #07b3a0 !important;
}

.green a {
    color: #07b3a0 !important;
    padding-left: 25% !important;
}

.green a:hover {
    font-weight: bold;
    text-decoration: none;
}

.divider-green {
    border-bottom: #07b3a0;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    margin-bottom: 10px;
    margin-top: 10px;
    width: 10%;
    height: 2px;
}

.was-validated .form-control:invalid {
    border: #dc3545 solid 2px !important;
}

.styled-button {
    background-color: #07b39f !important;
    border-color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    color: #fff !important;
    text-transform: uppercase;
    border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
    border: none;
    font-size: 0.9em;
    line-height: 1.5em;
}

.styled-button:hover {
    background-color: #048677 !important;
}

h1 {
    font-size: 24px;
}

.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E) no-repeat right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select#dcode {
    max-width: 50% !important;
}


/*Traffic lights*/

.traffic-light-container {
    background-color: #666;
    border-radius: 15px;
    border: 0.2em solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 0;
    height: 135px !important;
    width: 70px !important;
    box-shadow: 0px 0px 1px 1px rgba(95, 74, 74, 0.75);
    -webkit-box-shadow: 0px 0px 1px 1px rgba(95, 74, 74, 0.75);
    -moz-box-shadow: 0px 0px 1px 1px rgba(95, 74, 74, 0.75);
}

.traffic-light-container-h {
    background-color: #333;
    border-radius: 15px;
    border: 0.2em solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 0;
    height: 135px !important;
    transform: rotate(90deg);
    width: 70px !important;
}

.circle {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 100%;
    position: relative;
    height: 20px;
    width: 20px;
}

.circle::after {
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 100%;
    content: ' ';
    position: absolute;
    top: 2.5px;
    left: 0px;
    width: 15px;
    height: 15px;
}

.circle.red {
    background-color: #c0392b;
    box-shadow: 0 0 10px 2.5px #c0392b;
}

.circle.yellow {
    background-color: #f1c40f;
    box-shadow: 0 0 10px 2.5px #f1c40f;
}

.circle.green {
    background-color: #2ecc71;
    box-shadow: 0 0 10px 2.5px #2ecc71;
}

.traffic-light {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 22.5em;
    width: 10em;
    background: #333;
    border: 0.5em solid #eee;
    border-radius: 2em;
    z-index: 10;
}

.traffic-light::before {
    content: "";
    width: 3em;
    height: 8em;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #eee;
    background: linear-gradient(top, rgba(236, 191, 191, 0.9), #1acbfc 70%);
    z-index: 0;
}

.light {
    width: 6em;
    height: 5.5em;
    background: #000;
    border-top: 0.5em solid #000;
    border-radius: 50%;
    margin: 1em auto;
}

.px-75 {
    padding-left: 12.5% !important;
    padding-right: 12.5% !important;
}

.fc16 {
    font-size: 16px;
}


/* Extra small devices (phones, 600px and down) */

@media only screen and (max-width: 600px) {
    .traffic-lights-row {
        display: none;
    }
}


/*Apply padding to mobile devices*/

@media only screen and (max-width: 812px) {
    body {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

@media only screen and (min-width: 813px) {
    select#dcode {
        max-width: 20% !important;
    }
}