@import url('https://fonts.googleapis.com/css2?family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');

body {
    margin: 0;
    background-color: #111;
    color: #fff;
}

* {
    font-family: "Radio Canada", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 15px 30px;
}

.cs-preloader_in {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 3px solid rgb(255 255 255 / .8);
    border-radius: 50%;

    &::after {
        content: "";
        border-width: 3px;
        border-style: solid;
        border-color: #007cdd #fff0 #fff0;
        border-radius: 50%;
        position: absolute;
        width: calc(100% + 6px);
        height: calc(100% + 6px);
        left: 50%;
        top: 50%;
        animation: 1s ease-in-out infinite spin;
        margin-left: -75px;
        margin-top: -75px;
    }

    img {
        max-width: 80px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}


.home-btn {
    background: #007CDD;
    border-radius: 6px;
    color: white;
    text-decoration: none;

    &:hover {
        color: #fff;
    }
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    height: calc(100vh - 150px);
    margin: 40px auto;
    gap: 30px;
}

.left-section {
    flex: 1;
    text-align: center;
}

.left-section h1 {
    font-size: 48px;

    @media screen and (max-width: 767px) {
        font-size: 36px;
    }
}

.left-section form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.left-section input {
    width: 100%;
    border: none;
    background-color: transparent;
    outline: none;
    color: white;
}

.heuristic_input {
    border-radius: 10px;
    width: 60%;
    padding: 10px;
    display: flex;
    border: 1px solid #ffff;
    justify-content: space-between;
    gap: 5px;

    @media screen and (max-width: 767px) {
        width: 90%;
    }

}

.left-section .btn-hu {
    background: #007CDD;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.left-section .btn-hu:hover {
    background: #0056b3;
}

.gauge-container {
    margin-top: 30px;
}

.score-text {
    font-size: 1.2rem;
}

.result-content {
    margin-top: 50px;
}

.btns-success {
    background-color: #009448;
}

.graph-container {
    min-height: 250px;
    --size: 25rem;
    --stroke-size: calc(var(--size) / 5);
    --rating: 0;
    position: relative;
    display: inline-flex;
    box-sizing: border-box;
    animation: 1s animateRating linear;

    .response-emoji {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9;

        i {
            font-size: 70px;
        }

        @media screen and (max-width: 767px) {
            top: 71%;
        }
    }

    @media screen and (max-width: 767px) {
        --size: 15rem;
        min-height: 170px;
    }
}

.emoji-img {
    width: 12vw;
    max-width: 70px;
}

.graph-container *,
.graph-container *::before,
.graph-container *::after {
    box-sizing: border-box;
}

.half-donut {
    width: var(--size);
    height: calc(var(--size) / 2);
    border-radius: var(--size) var(--size) 0 0;
    position: relative;
    overflow: hidden;
    filter: drop-shadow(0 0 0.3rem #0005);
}

.slice {
    --stroke-color: #000;
    --rotate: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--size) var(--size) 0 0;
    border: var(--stroke-size) solid var(--stroke-color);
    box-sizing: border-box;
    border-bottom: none;
    transform-origin: 50% 100%;
    background: #0000;
    transform: rotate(calc(var(--rotate)));
}

.slice .fa-regular {
    font-size: 2rem;
    color: #000;
    position: absolute;
    left: -2.5rem;
    top: 2.5rem;
    --emo-rotate: 90deg;
    transform: rotate(var(--emo-rotate));
}

.slice:hover {
    opacity: 0.8;
    cursor: pointer;
}

.slice:nth-child(1) {
    --stroke-color: #E23E44;
    --rotate: calc(36deg * (1 - 1));
}

.slice:nth-child(1) .fa-regular {
    --emo-rotate: calc(-36deg * (1 - 1));
}

.slice:nth-child(2) {
    --stroke-color: #EB9632;
    --rotate: calc(36deg * (2 - 1));
}

.slice:nth-child(2) .fa-regular {
    --emo-rotate: calc(-36deg * (2 - 1));
}

.slice:nth-child(3) {
    --stroke-color: #EDBE00;
    --rotate: calc(36deg * (3 - 1));
}

.slice:nth-child(3) .fa-regular {
    --emo-rotate: calc(-36deg * (3 - 1));
}

.slice:nth-child(4) {
    --stroke-color: #9CCF40;
    --rotate: calc(36deg * (4 - 1));
}

.slice:nth-child(4) .fa-regular {
    --emo-rotate: calc(-36deg * (4 - 1));
}

.slice:nth-child(5) {
    --stroke-color: #17C36B;
    --rotate: calc(36deg * (5 - 1));
}

.slice:nth-child(5) .fa-regular {
    --emo-rotate: calc(-36deg * (5 - 1));
}

.marker {
    position: absolute;
    z-index: 1;

    transform: translateX(-50%);
    --round-size: calc(var(--size) / 5);
    --round-o-size: calc(var(--round-size) * 0.52);
    width: var(--round-size);
    height: var(--round-size);
    left: 50%;
    bottom: 50px;
    border: var(--round-o-size) solid #D8D8D8;
    border-radius: 50%;
    --turn: calc(45deg + (36 * calc(var(--rating) * 1deg)));
    transform: translate(-50%, 50%) rotate(var(--turn));
    transform-origin: 50% 50%;
    transition: 0.2s linear;
}

.marker::before {
    content: "";
    position: absolute;
    border: calc(var(--round-size) / 3) solid transparent;
    border-right: calc(var(--size) * 0.34) solid #D8D8D8;
    left: 0%;
    bottom: 0;
    transform: translate(-100%, 50%) rotate(-45deg);
    transform-origin: 100% 50%;
}

@keyframes animateRating {
    50% {
        --rating: 5;
    }
}

#range {
    -webkit-appearance: none;
    width: 20rem;
    height: 0.5rem;
    background: #90caf9;
    outline: none;
    opacity: 0.7;
    border-radius: 0.5rem;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

#range:hover {
    opacity: 1;
}

#range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #2962ff;
    border: 0.5rem solid #fff;
    cursor: pointer;
}

#range::-moz-range-thumb {
    width: 2rem;
    height: 2rem;
    background: #2962ff;
    cursor: pointer;
}

.modal_style {
    .modal-content {
        background-color: #000000;
        text-align: center;
        border-radius: 24px;

        .form-control {
            background-color: transparent;
            color: #fff;
        }
    }
}