@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sen:wght@400;700;800&display=swap');

:root {
    --primary-color: #bc955c;
    --secondary-color: ;
    --text-color: ;
    --field-color: ;
}

body {
    font-family: "Jost";
    font-family: "Almarai", sans-serif;
    width: 100%;
}

main {
    background-image: url(../images/bg.jpg);
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

main.start-challenge {
    align-items: center;
    justify-content: center;
}

main.active + main {
    display: none;
}

.start-challenge {
    padding-bottom: 70px;
}

.start-challenge img {
    width: 100%;
    max-width: 550px;
}

button.custom-btn {
    width: 220px;
    height: 75px;
    font-size: 22px;
    background-color: var(--primary-color);
    color: #fff;
    border: solid 1px var(--primary-color);
    border-radius: 8px;
    box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
}

.step-bar {
    display: flex;
    justify-content: space-between;
    height: auto;
    width: 95%;
    margin: 0 auto;
}

.step-bar .bar {
    background-color: rgb(226, 226, 226);
    width: 33%;
    height: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.step-bar .bar .fill {
    background-color: var(--primary-color);
    transition: 0.5s linear;
    width: 0;
    height: 100%;
}

form {
    flex: 1;
    margin-top: 20px;
    display: grid;
}

fieldset {
    overflow: hidden;
}

.steps {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.step-inner {
    flex: 1;
    background-image: url(../images/1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: grid;
    align-content: center;
    text-align: center;
    padding: 30px 120px;
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.59);
}

.radio-field {
    position: relative;
    margin: 0 auto;
    display: grid;
    place-content: center;
    margin-bottom: 20px;
    width: 100%;
    padding: 15px 6px;
}

.radio-field input {
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background-color: rgb(242, 242, 242);
    width: 100%;
    height: 100%;
    transition: 0.5s;
    border: solid 3px transparent;
    cursor: pointer;
}
.radio-field.correct input{
    border: 2px solid green;
    background-color: #d4edda;
}
.radio-field.incorrect input{
    border: 2px solid red;
    background-color: #f8d7da;
}
.radio-field label {
    font-size: 21px;
    color: rgb(0, 0, 0);
    pointer-events: none;
    position: relative;
    transition: 0.5s;
    z-index: 10;
}

.radio-field input:checked {
    border-color: var(--primary-color);
}

.radio-field input:checked~label {
    color: var(--primary-color);
}

.quiz-question {
    font-size: 35px;
    color: rgb(255, 255, 255);
    font-weight: 800;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 10px 6px;
    position: relative;
}

.step-number {
    font-size: 20px;
    width: max-content;
    margin: 0 auto;
    color: var(--primary-color);
    border-bottom: solid 3px var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.next-prev {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

.next-prev button {
    border: solid 1px rgb(255, 255, 255);
    border-radius: 8px;
    background-color: rgb(218, 215, 215);
    box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
    font-size: 18px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    padding: 12px 24px;
}

.next-prev .next {
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
}

.next-prev button i {
    margin-right: 8px;
    position: relative;
    top: 1px;
}

#error div {
    position: fixed;
    top: 20px;
    left: 20px;
}