/*
    PERCEPTA CURSOS
    DESENVOLVIDO POR DIALWEB.COM.BR
*/

@import url(//fonts.googleapis.com/css?family=Inter:200,400,600);

:root {
    --width-total: 80rem;
    --color-green: #63c76a;
    --color-green-hover: #59bd60;
    --color-gray-light: #f4f4f4;
    --color-gray-light2: #ddd;
    --color-gray: #444;
    --color-gray2: #777;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: var(--color-gray);
}

/* LINKS */
a {
    color: var(--color-gray);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ALERT */
.alert {
    color: #1b1e21;
    background-color: #d6d8d9;
    border: 1px solid #c6c8ca;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

.alert > .badge {
    float: left;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: baseline;
    text-transform: capitalize;
    margin: 3px 10px 0 0;
    border-radius: 10px;
}

.alerta > .text {
    float: left;
}

.alert.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert.error > .badge {
    color: #fff;
    background: #dc3545;
}

.alert.success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.alert.success > .badge {
    color: #fff;
    background: #28a745;
}

.alert.warning {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeeba;
}

.alert.warning > .badge {
    color: #212529;
    background: #ffc107;
}

/* FORM */
form label {
    display: block;

    margin-top: 10px;
}

form label > span {
    font-weight: bold;
}

form input,
form select,
form textarea {
    display: block;
    height: 45px;
    color: var(--color-gray);
    border: 1px solid #ccc;
    padding: 0 20px;
    width: 100%;
    border-radius: 5px;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #032a51;
}

form textarea {
    height: auto;
    padding: 10px;
    resize: none;
}

form input[type="checkbox"],
form input[type="radio"] {
    display: inline;
    padding: 0;
    width: auto;
    height: auto;
}

form button {
    display: block;
    width: 100%;
    height: 45px;
    margin: 20px auto 0 auto;
    padding: 0 35px;
    border: 0;
    background: #ddd;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.25s;
}

form button:hover {
    background: #ccc;
}

form button.btnGreen {
    color: #fff;
    background: var(--color-green);
}

form button.btnGreen:hover {
    background: var(--color-green-hover);
}

form label.col {
    float: left;
    width: 50%;
    margin-left: 2%;
}

form label.col.f {
    margin-left: 0;
}

form label.col.small {
    width: 18%;
}

form label.col.medium {
    width: 49%;
}

form label.col.large {
    width: 79%;
}

form label.col.three {
    width: 32%;
}

form label.col.threeLarge {
    width: 60%;
}

form label.col.threeSmall {
    width: 18%;
}

form .btnCenter {
    text-align: center;
}

form .btnCenter > button {
    display: inline-block;
    width: auto;
    margin: 30px 1% 0 1%;
}

/* TITULOS */
h1 {
    font-weight: bold;
    font-size: 32px;
    letter-spacing: -1px;
    margin: 0;
}

h2 {
    font-weight: bold;
    font-size: 24px;
    margin: 0;
}

/* ALIGNMENTS */
.alignCenter {
    text-align: center;
}

.alignRight {
    text-align: right;
}

/* STRUCTURE */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/ico_carregando.gif) center center no-repeat
        rgba(0, 0, 0, 0.75);
    z-index: 999;
}

#content {
    width: var(--width-total);
    margin: 2rem auto;
}

#content > .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 2rem;
}

#content > .pagination > a {
    padding: 0 0.5rem;
    margin: 0 0.5rem;
}

#content > .pagination > a:hover,
#content > .pagination > a.active {
    font-weight: bold;
    background: #eee;
}

/* HEADER */
header > .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--width-total);
    margin: 0 auto;
    padding: 1rem 0;
}

header > .header > .logo > img {
    display: block;
    height: 3rem;
}

header > .header > .menu > .user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header > .header > .menu > .user > .icon {
    font-size: 2rem;
}

header > .header > .menu > .user > .button {
    padding-left: 1rem;
}
header > .header > .menu > .user > .button > button {
    font-size: 0.75rem;
    color: #fff;
    padding: 0 1rem;
    border: 0;
    border-radius: 3px;
    line-height: 2rem;
    font-weight: bold;
}

header > .header > .menu > .user > .button > button.signin {
    background: var(--color-green);
}

header > .header > .menu > .user > .button > button.signin:hover {
    background: var(--color-green-hover);
}

header > .header > .menu > .user > .button > button.logout {
    background: #c1392b;
}

header > .header > .menu > .user > .button > button.logout:hover {
    background: #a23124;
}

header > .bar {
    border: 1px solid var(--color-gray-light2);
    padding: 0.75rem 0;
}

header > .bar > .alignBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--width-total);
    margin: 0 auto;
}

header > .bar > .alignBar > form {
    display: flex;
    min-width: 25rem;
}

header > .bar > .alignBar > form > input {
    height: 2.25rem;
    background: var(--color-gray-light);
    font-size: 0.75rem;
    border: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

header > .bar > .alignBar > form > button {
    width: 4rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    background: var(--color-gray-light);
    border: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

header > .bar > .alignBar > div {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

/* FILTERS */
#filters {
    background: var(--color-gray-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-gray-light2);
}

#filters > .alignFilters {
    width: var(--width-total);
    margin: 0 auto;
    font-size: 0.75rem;
}

#filters > .alignFilters > div {
    display: flex;
    gap: 2%;
}

#filters > .alignFilters > div > label {
    margin: 0;
    width: 23.5%;
}

#filters > .alignFilters > div > label select,
#filters > .alignFilters > div > label input,
#filters > .alignFilters > div > label .choices__button {
    height: auto;
}

#filters > .alignFilters > div > label .choices__button {
    padding: 0 1rem;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}

#filters > .alignFilters > .buttons {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1rem;
    margin-top: 1rem;
}

#filters > .alignFilters > .buttons > a {
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.75;
}

#filters > .alignFilters > .buttons > a:hover {
    opacity: 1;
}

#filters > .alignFilters > .buttons > a:hover > span {
    text-decoration: underline;
}

#filters > .alignFilters > .buttons > a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

#filters > .alignFilters > .buttons > button {
    display: inline-block;
    width: auto;
    background: #c1392b;
    color: #fff;
    margin: 0;
}

#filters > .alignFilters > .buttons > button:hover {
    background: #a23124;
}

#filters .choices {
    margin-bottom: 0 !important;
}

.guideButtons {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
}

.guideButtons > a {
    text-decoration: none;
}

.guideButtons > a:hover > span {
    text-decoration: underline;
}

/* QUESTIONS */
.boxQuestion {
    margin-bottom: 3rem;
}

.boxQuestion > .header {
    display: flex;
    background: var(--color-gray-light);
    line-height: 2.5rem;
}

.boxQuestion > .header > .counter {
    background: #fff;
    border: 1px solid var(--color-gray-light);
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.boxQuestion > .header > .id {
    background: var(--color-gray2);
    color: #fff;
    padding: 0 1rem;
    font-weight: bold;
}

.boxQuestion > .header > .subject {
    padding: 0 1rem;
    font-size: 0.75rem;
}

.boxQuestion > .subheader {
    display: flex;
    gap: 1.5rem;
    line-height: 2.5rem;
    font-size: 0.75rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--color-gray-light2);
}

.boxQuestion > .question {
    margin: 1.5rem 0;
    padding: 0 1.5rem;
}

.boxQuestion > .question > .answer {
    display: table;
    margin: 0 0 0 auto;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.boxQuestion > .question > .answer.correct {
    border-color: var(--color-green);
    color: var(--color-green);
}

.boxQuestion > .question > .answer.incorrect {
    border-color: #c1392b;
    color: #c1392b;
}

.boxQuestion > .question > .text {
    text-align: justify;
}

.boxQuestion > .question > .text > table {
    max-width: 100%;
    overflow-x: auto;
}

.boxQuestion > .question > .options > .option {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1.5rem;
    cursor: pointer;
}

.boxQuestion > .question > .options > .option:hover > .cut > i {
    left: 0;
    opacity: 1;
}

.boxQuestion > .question > .options > .option.selected > .letter {
    background: #a70000;
    color: #fff;
}

.boxQuestion > .question > .options > .option.cutted > .cut > i {
    left: 0;
    opacity: 1;
    background: var(--color-gray-light2);
}

.boxQuestion > .question > .options > .option.cutted > .text {
    text-decoration: line-through dashed;
    font-style: italic;
    color: var(--color-gray2);
}

.boxQuestion > .question > .options > .option > .cut {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.6rem;
    overflow: hidden;
}

.boxQuestion > .question > .options > .option > .cut > i {
    position: absolute;
    color: var(--color-gray2);
    left: -2rem;
    width: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;
    border: 1px solid var(--color-gray-light2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.15s;
}

.boxQuestion > .question > .options > .option > .cut > i::after {
    position: absolute;
    content: "";
    display: block;
    width: 0.8rem;
    top: 50%;
    left: 1.5rem;
    border-top: 1px dashed var(--color-gray-light2);
    transform: translateY(-50%);
}

.boxQuestion > .question > .options > .option > .letter {
    flex-shrink: 0;
    width: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;
    font-weight: bold;
    color: #a70000;
    border: 1px solid #a70000;
    border-radius: 50%;
}

.boxQuestion > .question > .options > .option > .text {
    padding-left: 0.75rem;
    text-align: justify;
    flex-grow: 1;
}

.boxQuestion > .question .text img {
    max-width: 100%;
    height: auto;
}

.boxQuestion > form > button {
    display: inline-block;
    width: 8rem;
    background: #a70000;
    color: #fff;
    line-height: 2.5rem;
    padding: 0 1rem;
    font-weight: bold;
    margin-left: 1.5rem;
    border: 0;
    border-radius: 0.25rem;
}

.boxQuestion > form > button:disabled {
    opacity: 0.5;
}

.boxQuestion > form > .result {
    display: none;
    margin-left: 1.5rem;
    font-size: 0.75rem;
    line-height: 2rem;
    padding: 0 1rem;
    border-left: 2px solid #000;
    background: var(--color-gray-light);
}

.boxQuestion > form > .result.success {
    color: #0e4c36;
    background: #ecf9f5;
    border-color: #a7e5cf;
}

.boxQuestion > form > .result.error {
    color: #a70000;
    background: #fff2f2;
    border-color: #fda2ab;
}

.boxQuestion > .question > .options > .option.correct,
.boxQuestion > .question > .options > .option.correct > .letter {
    color: var(--color-green);
    border-color: var(--color-green);
}

.boxQuestion > .question > .options > .option.correct.selected > .letter {
    color: #fff;
    background: var(--color-green);
}

.boxQuestion > .question table p {
    margin: 0;
}

.boxQuestion > .question > .options > .option > .text p {
    margin: 0;
}

.boxQuestion > .footer {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem 0;
    margin-top: 1rem;
    font-size: 0.75rem;
    border-top: 2px solid var(--color-gray-light2);
}

.boxQuestion > .footer > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boxQuestion > .footer > a:hover {
    text-decoration: none !important;
}

.boxQuestion > .footer > a > i {
    font-size: 1.5rem;
}

.boxQuestion > .footer > a:hover > div {
    text-decoration: underline;
}

.boxQuestion > .comments {
    display: none;
    position: relative;
    background: var(--color-gray-light);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

.boxQuestion > .comments > .close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
}

.boxQuestion > .comments > form {
    position: relative;
}

.boxQuestion > .comments > form > textarea {
    height: 8rem;
    padding-right: 3rem;
}

.boxQuestion > .comments > form > button {
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 8rem;
    background: var(--color-green);
    color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.boxQuestion > .comments > form > button:hover {
    background: var(--color-green-hover);
}

.boxQuestion > .comments > form > button:disabled {
    opacity: 0.5;
}

.boxQuestion > .comments > .title {
    font-size: 1.5rem;
    font-weight: bold;
}

.boxQuestion > .comments > .comments-list {
    margin: 1rem 0 2rem;
}

.boxQuestion > .comments > .comments-list > .comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.boxQuestion > .comments > .comments-list > .comment > .user {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10rem;
    padding-top: 1rem;
}

.boxQuestion > .comments > .comments-list > .comment > .user > i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.boxQuestion > .comments > .comments-list > .comment > .user > .badge {
    background: var(--color-gray2);
    color: #fff;
    font-size: 0.5rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: 3px;
}

.boxQuestion > .comments > .comments-list > .comment > .text {
    flex-grow: 1;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.boxQuestion > .comments > .comments-list > .comment > .text > .date {
    color: var(--color-gray2);
}

.boxQuestion > .comments > .comments-list > .comment > .text > .text {
    margin: 1rem 0;
}

.boxQuestion > .comments > .comments-list > .comment > .text > .buttons {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
}

.boxQuestion
    > .comments
    > .comments-list
    > .comment
    > .text
    > .buttons
    > a
    > i {
    font-size: 1rem;
}

.boxQuestion > .comments > .comments-list > .comment > .text > .buttons > a,
.boxQuestion
    > .comments
    > .comments-list
    > .comment
    > .text
    > .buttons
    > a:hover {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.boxQuestion
    > .comments
    > .comments-list
    > .comment
    > .text
    > .buttons
    > a:hover
    > span {
    text-decoration: underline;
}

.boxQuestion > .comments > .moreComments {
    display: block;
    background: #fff;
    line-height: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    border: 1px solid var(--color-gray2);
    border-radius: 5px;
}

.boxQuestion > .comments > .moreComments:hover {
    text-decoration: none;
    border-color: #c1392b;
    color: #c1392b;
}

/* RESULTS */
.noResult {
    text-align: center;
    padding: 5rem 0;
}

.noResult > i {
    font-size: 5rem;
}

.noResult > .title {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: bold;
}

.noResult > .subtitle {
    margin-top: 1rem;
}

/* HISTORY */
.col-history {
    float: left;
    width: 47%;
    margin: 0 0 6% 6%;
}

.col-history.f {
    margin: 0;
}

/* FOOTER */
#footer {
    width: 100%;
    bottom: 0;
    background: #495057;
    color: #fff;
    padding: 50px 0;
}

#footer > .footer {
    width: var(--width-total);
    margin: 0 auto;
    text-align: center;
}

#footer > .footer > .titulo {
    text-transform: uppercase;
}

#footer > .footer > .developed {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
}

#footer > .footer > .developed > a {
    display: inline-block;
    width: 110px;
    height: 30px;
    background: url(../images/developed.png) top center no-repeat;
    margin-top: 5px;
    text-indent: -999px;
    overflow: hidden;
    transition: background-position 0.15s;
}

#footer > .footer > .developed > a:hover {
    background-position: center -30px;
}

#footer a {
    color: #fff;
}

#footer a:hover {
    text-decoration: none;
}

#footer .titulo {
    font-size: 24px;
    font-weight: bold;
    line-height: 24px;
}

/* DIALOG */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.dialog > form,
.dialog > .modal {
    position: absolute;
    width: 30em;
    top: 50%;
    left: 50%;
    padding: 3rem;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 1rem;
}

.dialog > form > .logo {
    display: block;
    margin: 0 auto;
}

.dialog > form > h1 {
    margin: 1rem 0;
}

.dialog > form > .noAccess {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
}

.dialog > .modal > .close {
    position: absolute;
    top: -1.5rem;
    right: 0;
    color: #fff;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
}

#dialog-explanation > .modal {
    width: auto;
    padding: 0;
}

#dialog-explanation > .modal > .video {
    position: relative;
    max-width: 640px;
    max-height: 360px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
}

/* MOBILE */
.mobHide {
}

.mobShow {
    display: none;
}

@media screen and (max-width: 1199px) {
    .mobHide {
        display: none;
    }

    .mobShow {
        display: block;
    }

    header > .header {
        width: 94%;
        flex-direction: column;
    }

    header > .header > .menu {
        margin-top: 1rem;
    }

    header > .bar > .alignBar {
        width: 94%;
        gap: 3rem;
    }

    header > .bar > .alignBar > form {
        width: 100%;
        min-width: auto;
    }

    #filters > .alignFilters {
        width: 94%;
    }

    #content {
        width: 94%;
    }

    #footer > .footer {
        width: 94%;
    }

    .boxQuestion > .comments > .comments-list > .comment {
        flex-direction: column;
        align-items: center;
    }

    .boxQuestion > .comments > .comments-list > .comment > .text {
        width: 100%;
    }

    #filters > .alignFilters > div {
        flex-wrap: wrap;
    }

    #filters > .alignFilters > div > label.f {
        width: 100%;
    }

    #filters > .alignFilters > div > label {
        display: block;
        width: 100%;
        margin-top: 1rem;
    }

    header > .bar > .alignBar {
        flex-direction: column;
        gap: 1rem;
    }

    .boxQuestion > .header > .subject {
        line-height: normal;
        padding: 0.5rem 1rem;
    }

    .boxQuestion > .subheader {
        padding: 0.5rem 1.5rem;
        line-height: normal;
    }

    #dialog-explanation > .modal > .video {
        width: 96vw;
    }

    .col-history,
    .col-history.f {
        float: none;
        width: 100%;
        margin: 2rem 0 0 0;
    }

    #dialog-login > form {
        width: 96%;
    }
}
