@import url('https://fonts.googleapis.com/css2?family=Scada:ital,wght@0,400;0,700;1,400&display=swap');

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    font-family: 'Scada', sans-serif;
}

/* Removes yellow default background from input fields */
@keyframes autofill {
    to {
        color: inherit;
        background: transparent;
    }
}

@-webkit-keyframes autofill {
    to {
        color: inherit;
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-name: autofill;
    animation-name: autofill;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

input {
    -webkit-appearance: none;
}

/* Main styling */
.jumbotron {
    border-radius: 0;
    background-color: #f0f8ff;
}

.card {
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.contacts p {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.note p {
    font-style: italic;
    font-size: 0.95rem;
}

ul.myList li {
    list-style-type: none;
    margin-bottom: 0.5rem;
}

ul.myList li::before {
    content: "\2022";
    color: #e50914;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.5em;
    line-height: 0;
}

.mark, mark {
    background-color: #ffe974;
}

footer {
    border-top: 1px solid #bababa;
    background-color: #f5f5f5;
    border-bottom-left-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
}

/* end of Main styling */

/* Main Landing Page styling */
h1.display-3 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.section-title-border {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.section-title-border::after {
    content: "";
    display: block;
    position: relative;
    height: 3px;
    width: 113px;
    background-color: #17a2b8;
    margin: 15px auto;
}

section.why-take-test,
section.disclaimer,
section.test-available {
    background-color: #f0f8ff;
    padding: 1.5rem 0;
}

section.how-to-do-test {
    background-color: #f0f8ff;
    padding: 1.5rem 0 0 0;
}

/* gradient-list */
ol.gradient-list > li, ol.gradient-list > li::before {
    box-shadow: 0.25rem 0.25rem 0.6rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.125rem rgba(75, 0, 0, 0.05);
}

ol.gradient-list {
    counter-reset: gradient-counter;
    list-style: none;
    padding-left: 1rem;
}

ol.gradient-list > li {
    background: white;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    counter-increment: gradient-counter;
    margin-top: 2rem;
    min-height: 3rem;
    padding: 1rem 1rem 1rem 2.8rem;
    position: relative;
}

ol.gradient-list > li::before, ol.gradient-list > li::after {
    background: linear-gradient(135deg, #14a3b8 0%, #6adff1 100%);
    border-radius: 1rem 1rem 0 1rem;
    content: '';
    height: 3rem;
    left: -1rem;
    overflow: hidden;
    position: absolute;
    top: -1rem;
    width: 3rem;
}

ol.gradient-list > li::before {
    align-items: flex-end;
    content: counter(gradient-counter);
    color: #1d1f20;
    display: flex;
    font: 700 1.5em/1 'Scada';
    justify-content: flex-end;
    padding: 0.125em 0.25em;
    z-index: 1;
}

/* accordion */
.accordion .fa {
    margin-right: 0.5rem;
}

.accordion .card-body p:last-child {
    margin-bottom: 0;
}

.accordion .btn-link {
    font-size: 1.2rem;
    text-decoration: none;
}

.accordion .btn-link:hover {
    color: #212529;
}

.accordion .card .card-header {
    -webkit-transition: all 500ms;
    transition: all 500ms;
}

.accordion .card .card-header:hover {
    background-color: #f0f8ff;
}

/* how-to-do-test */
.how-to-do-test ul {
    list-style: none;
    margin: 2em 0 0;
    padding: 0;
}

.how-to-do-test ul::after {
    clear: both;
    content: "";
    display: table;
}

.how-to-do-test ul li {
    margin-bottom: 2em;
}

.how-to-do-test ul li h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.25em;
    line-height: 2.5em;
    font-weight: 400;
    letter-spacing: 1px;
}

.how-to-do-test ul li h3:before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #5ccbe8;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
}

.how-to-do-test ul li h3 span {
    padding-left: 15px;
}

.how-to-do-test ul li p {
    padding-left: 15px;
    font-size: 1.1em;
    line-height: 1.6875em;
    font-weight: 400;
}

/* end of Main Landing Page styling */

/* Buttons styling */
.bg-gradient-indigo {
    background: #6610f2 linear-gradient(180deg,#7d34f4,#6610f2) repeat-x!important;
    color: #fff;
}

.bg-gradient-indigo.btn:hover {
    background: #6610f2 linear-gradient(180deg,#7030d7,#560bd0) repeat-x!important;
    border-color: #510bc4;
    color: #ececec;
}
/* end of Buttons styling */

/* Media Queries */
@media only screen and (min-width: 700px) {
    .how-to-do-test ul li {
        float: left;
        width: 47.5%;
        margin-right: 5%;
    }

    .how-to-do-test ul li:nth-child(2n) {
        margin-right: 0;
    }
}

@media only screen and (max-width: 620px) {
    h1.display-3 {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 420px) {
    h1.display-3 {
        font-size: 2.5rem;
    }

    .accordion button .accordion-title {
        font-size: 1.2rem;
    }
}