@import "colors.css";

body {
    overflow-x: hidden;
}

.pulse-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;

}

#survey .steps {
    display: none;
}
button.go-next {
    display: none;
}
.steps:has(input[type='radio']:checked) {
    button.go-next{
        display: block;
    }
}
.nav-holder {
    justify-content: center;
    gap: 5vw;
}
.restart {
    font-size: 30px;
    background-color: var(--main);
    padding: 20px;
    border-radius: 50%;
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    cursor: pointer;
}
#survey div.steps:first-of-type {
    display: block;
}
#survey div.steps:nth-of-type(2n+1) button.go-next{
    display: none !important;
    visibility: hidden;
}
#message-from-us{
    color: #fff;
    text-align: center;
    font-size: 20px;
}
#qrcode {
    width: 30vw;
    aspect-ratio: 1 / 1;
    margin: 50px;
}
.gap-2 {
    gap: 1.5rem;
}
button.navigation, #sendfeedback {
    margin: 0;
    color: #fff;
    background-color: var(--main);
}
.add-feedback {
    color: #fff;
    background-color: var(--main);
    border: none !important;
    margin: auto;
    display: block;
    padding: 10px 20px;
}
#feedback-area {
    display: none;
    text-align: center;
    color: #fff;
    padding: 10px;
    font-size: 20px;
    #pleasehelp{
        width: 100%;
        min-height: 30vh;
        margin: 40px 0 0 0;
        background-color: var(--main);
        color: #fff;
        padding: 20px;
        border: none;
    }
}
.question-title {
    ext-align: center;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 27px 0;
    grid-gap: 20px;
    align-items: center;

    &::after, &::before {
        content: " ";
        display: block;
        border-bottom: 1px solid #fff;
        border-top: 1px solid #fff;
        height: 5px;
        background-color: transparent;
    }
}

#atmosphere-rating {
    #rating-atmosphere {
        display: block;
        text-align: center;
        margin: 10px 0;
        background-color: var(--main);
        color: #fff;
        padding: 5px 0;
        transition: all linear 600ms;
    }
}

.like-1, .atmosphere-1 {
    background-color: #8B0000 !important;
}

.like-2 {
    background-color: #A31212 !important;
}

.like-3 {
    background-color: #BB2424 !important;
}

.like-4 {
    background-color: #D33636 !important;
}

.like-5, .atmosphere-2 {
    background-color: #E6A04A !important;
}

.like-6 {
    background-color: #AFC44A !important;
}

.like-7 {
    background-color: #7EBB3A !important;
}

.like-8 {
    background-color: #4FA82A !important;
}

.like-9 {
    background-color: #2F7F1D !important;
}

.like-10, .atmosphere-3 {
    background-color: #0F4F0F !important;
}


#waiter-rating {
    #rating-label {
        display: block;
        text-align: center;
        margin: 10px 0;
        background-color: var(--main);
        color: #fff;
        padding: 5px 0;
        transition: all linear 600ms;
    }

    input[type="range"] {
        --s: 4vw; /* control the size*/

        --_c: #7b7b7b 50%, #fff220 0;
        height: var(--s);
        aspect-ratio: attr(max type(< integer >));
        padding-inline: calc(var(--s) / 2);
        box-sizing: border-box;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 5 L79 95 L2 40 L98 40 L21 95 Z'/></svg>") 0/var(--s) var(--_m,);
        appearance: none;
        cursor: pointer;
        margin: auto;
        display: block;
    }

    input[type="range" i]::-webkit-slider-thumb {
        width: 1px;
        border-image: conic-gradient(at calc(50% + var(--s) / 2), var(--_c)) fill 0 / / var(--s) calc(20 * var(--s));
        appearance: none;
    }

    input[type="range"]::-moz-range-thumb {
        width: 1px;
        border-image: conic-gradient(at calc(50% + var(--s) / 2), var(--_c)) fill 0 / / var(--s) calc(20 * var(--s));
        appearance: none;
    }

    input[type="range"]:focus-visible {
        outline: 2px solid #000;
        outline-offset: -2px;
        --_m:, conic-gradient(from 90deg at 2px 2px, #0000 25%, #000 0) 0 0 / calc(100% - 2px) calc(100% - 2px);
    }

    @supports not (d:attr(d type(*))) {
        input[type="range"] {
            aspect-ratio: 10; /* max */
        }
    }


}

#happystatus {

    background: var(--main);
    background-size: 200%;
    transition: .5s ease-out;

}

#imnot span {
    justify-content: center;
}

#ifnot {
    background: var(--main);
    border: none;
    width: 100%;
    height: 150px;

    &:focus {
        border: none !important;
    }
}

.full-width {
    width: 100%;
}

.form-check {
    transition: all linear 600ms;
    background: linear-gradient(to left, var(--main) 50%,  var(--main)  50%) right;
    background-size: 200%;
    color: #fff;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    margin: 3vh 0;

}
.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    width: 100%;
    padding:  3vh;
    font-size: 20px;
}
input[type='radio'].form-check-input {
    opacity: 0;
    visibility: hidden;
}

.form-check:has(input[type='radio'][value='0']:checked){
    background: linear-gradient(to left, var(--main) 50%, green 50%) right;
    background-size: 200%;
    background-position: left;
}
.form-check:has(input[type='radio'][value='1']:checked){
    background: linear-gradient(to left, var(--main) 50%,  #E6A04A  50%) right;
    background-size: 200%;
    background-position: left;
}
.form-check:has(input[type='radio'][value='2']:checked){
    background: linear-gradient(to left, var(--main) 50%, #8B0000 50%) right;
    background-size: 200%;
    background-position: left;
}
#happystatus.no {
    background: linear-gradient(to right, var(--main) 50%, red 50%) left;
    background-size: 200%;
    background-position: right;
}
#areyouhappy {
    display: flex;
    flex-wrap: wrap;
    width: 60vw;
    margin: auto;

    span {
        background-color: var(--main);
        color: #fff;
        text-align: center;
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    #yeshappy, #kindof, #nothappy {
        width: 60px;
        height: 60px;
        background: green;
        display: flex;
        justify-content: center;
        border-radius: 20px 0 0 20px;
        cursor: pointer;
    }

    #nothappy {
        background: red;
        border-radius: 0 20px 20px 0;
    }
}

.change-direction {
    justify-content: center;
}

.change-direction.direction-bottom {
    justify-content: end;
}

.change-direction.direction-top {
    justify-content: start;
    align-items: center;
}

#logo_display {
    position: relative;
    top: unset;
    left: 50%;
    transform: translateX(-50%);
    transition: all linear 600ms;
    max-width: 300px;
    max-height: 300px;
    margin: unset !important;
}

.moveIt {
    position: fixed !important;
    top: 1vh !important;
    max-width: 150px !important;
    max-height: 150px !important;

}

.moveLeft {
    left: 10vw !important;
}

#welcome {
    position: relative;

    figure {
        border-radius: 50%;
        overflow: hidden;
        aspect-ratio: 1 /1;
        border: 5px solid var(--main);
        max-height: 25vw;
        margin: 20px auto;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        top: -25vw;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    #presentation {
        border-radius: 20px;
        background-color: rgba(91, 88, 40, .7);
        color: #fff;
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        font-size: 18px;
    }
}

/* Pulsing effect using a pseudo-element that scales from the circle size */
.pulse-circle::after {
    content: "";
    position: absolute;
    inset: 0; /* same size as parent */
    border-radius: 50%;
    background: var(--main);

    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.8); /* grows relative to original size */
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

#happystatus {
    width: 100%;
    justify-content: center;

}

#happystatus.yes {
    background: linear-gradient(to left, var(--main) 50%, green 50%) right;
    background-size: 200%;
    background-position: left;
}

#happystatus.no {
    background: linear-gradient(to right, var(--main) 50%, red 50%) left;
    background-size: 200%;
    background-position: right;
}
@media screen and (max-width: 1024px) {
    #welcome {
        position: relative;
        top: 3rem;
        & figure {
            border-radius: 50%;
            overflow: hidden;
            aspect-ratio: 1 /1;
            border: 5px solid var(--main);
          
            margin: 20px auto;
            left: 50%;
            transform: translateX(-50%);
            position: absolute;
            top: -60%;
            height: 9rem;
        }
    }
}