* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
}

.question {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #112450;
    background-color: rgb(244, 241, 241);
}

.text {
    color: #112450;
    margin: 60px;
    font-size: 40px;
    font-weight: 500;
}

.range {
    height: 80px;
    width: 380px;
    background: #fff;
    border-radius: 10px;
    padding: 0 65px 0 45px;
}


.range .sliderValue {
    position: relative;
    width: 100%;
}

.range .sliderValue span {
    position: absolute;
    height: 45px;
    width: 45px;
    color: #fff;
    font-weight: 500;
    top: -40px;
    transform: translate(-50%) scale(0);
    transform-origin: bottom;
    transition: transform 0.3s ease-in-out;
    line-height: 55px;
    z-index: 2;

}

.range .sliderValue span.show {
    transform: translate(-50%) scale(1);
    font-size: 20px;

}

.range .sliderValue span::after {
    position: absolute;
    content: "";
    height: 45px;
    width: 45px;
    background: #112450;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 3px solid #fff;
    z-index: -1;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.range .field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #fff;

}

.range .field .value {
    position: absolute;
    font-size: 26px;
    font-weight: 600;
    color: #112450;
}

.range .field .value.left {
    left: -22px;
    background-color: #fff;
    color: #112450;

}

.range .field .value.right {
    right: -43px;
    background-color: #fff;
    color: #112450;
}

.range .field input {
    -webkit-appearance: none;
    height: 3px;
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    border: none;


}

.range .field input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #112450;
    border-radius: 50%;
    border: 1px solid #112450;
    cursor: pointer;


}

.range .field input::-moz-range-progress {
    background: #112450;
}

.ans-btn {
    margin: 60px;
    font-size: 20px;

}

.submit-answer {
    background-color: white;
    padding: 15px;
    border-radius: 20px;
    font-size: 80%;
    color: #112450;
    font-weight: 600;
    cursor: pointer;
}

.submit-answer:hover {
    background-color: #112450;
    color: #fff;
    transition: background-color 0.3s, border 0.2s, color 0.2s;
    padding: 16px;
    border-radius: 20px;
}

svg {
    display: none;
}

.final-result {

    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #fff;
    height: 80vh;
    display: none;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    padding: 10px;
}

.thnx {
    padding-bottom: 50px;
}

#mood-type {
    margin-bottom: 25px;
    padding-bottom: 5%;
}


#text-here {
    font-size: 30px;
    font-weight: 400;
    padding-bottom: 5%;
}

#restart {
    background-color: #fff;
    margin-left: 30px;
    padding: 15px;
    border-radius: 20px;
    font-size: 80%;
    transition: background-color 0.3s, border 0.2s, color 0.2s;
}

#restart:hover {
    background-color: #112450;
    color: #fff;
    cursor: pointer;
    font-size: 90%;
}


.icon-button {
    position: absolute;
    top: 20px;
    left: 20px;
    border: none;
    cursor: pointer;
}

.fa-circle-left {
    font-size: 50px;
    color: #112450;
}

.icon-button:hover {
    transform: translateX(-4px);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #112450;
    font-size: 30px;
    transition: 0.2s ease-out;
    text-decoration: none;
}

.back-to-top span {
    transition: 0.2s ease-out;
}

.back-to-top:hover span {
    transform: translateY(-4px);
}