:root {
    --midnight-blue: #0d294b;
    --dim-grey: #6b6b6b;
    --dark-slate-blue: #003a73;
    --alice-blue: #e6f1ff;
    --white: white;
    --ghost-white: #fafbff;
    --dark-slate-grey: #005f46;
    --royal-blue: #004bd6;
    --alice-blue-2: #e2eefa;
    --white-smoke: whitesmoke;
    --light-white: #fafafa;
    --black: black;
    --blue-violet: #6e2ed8;
    --663399: #602bb6;
    --deep-pink: #fc0a7e;
    --medium-violet-red: #b32e6e;
    --medium-slate-blue: #955df1;
}


/* Montserrat Regular */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Oxygen';
    font-style: light;
    font-weight: 300;
    src: url('/fonts/Oxygen-Light.ttf') format('truetype');
}


@font-face {
    font-family: 'Oxygen';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Oxygen-Regular.ttf') format('truetype');
}


@font-face {
    font-family: 'Oxygen';
    font-style: bold;
    font-weight: 700;
    src: url('/fonts/Oxygen-Bold.ttf') format('truetype');
}

/* Montserrat Italic */
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    src: url('/fonts/Montserrat-Italic.ttf') format('truetype');
}

/* Montserrat Medium */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/Montserrat-Medium.ttf') format('truetype');
}

/* Montserrat SemiBold */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Montserrat-SemiBold.ttf') format('truetype');
}

/* Montserrat Bold */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Montserrat-Bold.ttf') format('truetype');
}

/* Montserrat ExtraBold */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/Montserrat-ExtraBold.ttf') format('truetype');
}

/* Montserrat Black */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/Montserrat-Black.ttf') format('truetype');
}


html,
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background-color: var(--light-white);
}

.dashboard h1 {
    font-weight: 700 !important;
    font-size: 2rem !important;
    ;
    margin: 100px 0 !important;
}

.heading-element {
    max-width: 540px !important;

    padding: 12px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-bottom: 24px;

}


h1 {
    font-family: 'Oxygen';
    color: var(--midnight-blue);
}


html:has(.user-view) {
    background-image: url('/media/img/quiz-background.png');
    background-color: var(--alice-blue);
}

@media(max-width: 720px) {
    html:has(.user-view) {
        background-image: none !important;
        background-color: var(--alice-blue);
    }
}


html:has(.user-view)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    position: fixed;
    height: 100dvh;
    width: 100dvw;
}

.user-view {
    max-width: 620px !important;
    ;
    background-color: transparent;
    display: flex;
    padding-top: 120px;
    align-items: flex-start;
    flex-direction: column;
    ;
    min-height: 100dvh;
}

.data-range-wrapper {
    margin-top: 80px !important;
    margin-bottom: 35px;
}

.potg-info {
    margin-top: 64px !important;
    line-height: 1.5;
    font-size: 1.05rem;
    margin-bottom: 80px;
}

#quiz-container,
.note-health,
.card-white {
    background-color: white !important;
    padding: 40px;
    height: fit-content;
    width: 540px;
    ;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.note-health.good {
    border: 2px solid green;
}

.note-health.bad {
    border: 2px solid rgb(239, 139, 77);
}

.note-health.good p.score {
    background-color: #cbe1d0;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 48px !important;
}

.note-health.bad p.score {
    background-color: #ffcfcf;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 48px !important;
}

.note-health p {
    font-size: 1.2rem;
}

.button-container {
    gap: 18px !important;
}

.btn-arrow:disabled {
    opacity: 0.5;
    background-color: rgb(231, 231, 231);
    color: var(--dim-grey);
    cursor: not-allowed;
}

.count-questions {
    text-align: right;
    font-size: 14px;
    color: var(--dim-grey);
    margin-top: 18px;
}

.btn-arrow {
    transition: all 0.2s ease-in-out;
    border: none !important;
    background-color: white;
    color: var(--royal-blue);
    margin-top: 20px;
    border-radius: 6px;
    flex-wrap: nowrap;
    place-content: space-between center;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

#optionsContainer label input {
    display: none;
}

.whole-quiz-elements {
    display: flex;
    flex-direction: row;
    height: fit-content;
    gap: 10px;
}

.whole-quiz-elements button {
    margin-top: 0 !important;
}

#optionsContainer label:has(input:checked) {
    border: 2px solid var(--royal-blue);
    background-color: var(--white-smoke);
    font-weight: 700;
}

#questionText {
    margin-top: 12px !important;
    margin-bottom: 40px !important;
    ;
}

#optionsContainer label {
    border-radius: 0.375rem;
    padding: 12px;
    transition: all 0.2s ease-in-out;
    width: -webkit-fill-available;
    width: -moz-available;
    border: 2px solid transparent;
    background-color: var(--light-white);
}

#optionsContainer label:hover {
    background-color: var(--alice-blue-2);
}

label {
    cursor: pointer;
}

/* SWITCH */

.quiz-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* zamiast space-x-4 */
}

/* podstawowy styl przycisku */
.switch-option {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--midnight-blue);
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    border: none;
    font-family: 'Oxygen', sans-serif;
    font-size: 1.25rem;
    min-width: 100px;
}

.btn:hover {
    opacity: 0.9;
}

.switch-option:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 2px solid gray;
}

.switch-options-wrapper {
    border-radius: 0.375rem;
    border: 1px solid black;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* hover */
.switch-option:hover {
    background: var(--alice-blue-2);
}

/* zaznaczona opcja */
.selected-switch {
    background: var(--royal-blue) !important;
    color: var(--white) !important;
    border-color: var(--royal-blue);
}

/* RADIO */

.radio-option-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* odstęp między kółkiem a etykietą */
    margin-bottom: 0.75rem;
    /* przestrzeń między kolejnymi opcjami */
    cursor: pointer;
}

/* Ukryj domyślne radio */
.radio-option-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Styl własnego "kółka" */
.radio-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--dark-slate-blue);
    border-radius: 50%;
    position: relative;
    transition: border-color .2s, background .2s;
}

/* Kropka wewnątrz - domyślnie ukryta */
.radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--royal-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .2s;
}

/* Gdy input jest checked, pokazujemy kropkę i zmieniamy kolor obramowania */
.radio-option-wrapper input[type="radio"]:checked+.radio-custom {
    border-color: var(--royal-blue);
}

.radio-option-wrapper input[type="radio"]:checked+.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Tekst przy opcji */
.radio-option-wrapper span {
    color: var(--midnight-blue);
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    background: var(--white-smoke);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 0.75rem;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1280px;
    ;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: var(--royal-blue);
    transition: width 0.3s ease;
}

#optionsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

#optionsContainer label {
    margin-bottom: 15px;
    ;
}

.follow-up {
    color: var(--dark-slate-blue);
}

.btn {
    font-weight: 600;
    border-radius: 6px;
    flex-wrap: nowrap;
    place-content: space-between center;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.primary-btn {
    background-color: var(--royal-blue) !important;
    color: white !important;
}

.user-view:has(.health-score) {
    display: flex;
    align-items: center;
    padding-bottom: 34px;
}

.logo-login {
    height: 80px;
}

.note-health-text {
    margin-bottom: 40px !important;
}

.w-100,
.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.data-range-wrapper {
    display: flex;
    flex-direction: column;
}

.data-range-wrapper label {
    font-weight: 700;
}

.dashboard form:has(.logout-btn) {
    padding: 100px 20px;
    margin-bottom: 0 !important;
}

.red-btn {
    background-color: #d53215;
    color: white !important;
}

.green-btn {
    background-color: var(--dark-slate-grey);
    color: var(--white);
    font-weight: 600;
    border-radius: 6px;
    flex-wrap: nowrap;
    place-content: space-between center;
    align-items: center;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.whole-quiz-elements .finish-btn {
    border: 0;
    width: 100%;
    margin-top: 40px !important;
}

.only-desktop {
    display: flex;
    flex-direction: column;
}


main:has(.dashboard) {
    background-color: var(--white-smoke) !important;
}

@media (max-width: 720px) {

    .potg-info {
        margin-top: 22px !important;
    }

    .dashboard form:has(.logout-btn) {
        padding: 100px 0px;
    }

    .only-desktop {
        display: none;
    }

    .note-health {
        width: unset !important;
    }

    .heading-element {
        padding: 12px 24px;
    }

    .button-container {
        padding-bottom: 40px !important;
        ;
    }


    .note-health .button-container {
        padding-bottom: 20px !important;
    }

    .whole-quiz-elements {
        width: 100%;
    }

    #quiz-container,
    .note-health {

        padding: 20px;
    }

    .user-view {
        padding-top: 28px !important;
    }

}

@media (max-width: 440px) {

    #quiz-container,
    .note-health {

        padding: 10px;
    }

    .whole-quiz-elements {
        gap: 6px;
    }
}

.question-admin {
    width: 100%;
    max-width: 48%;
}

@media(max-width: 720px) {
    .question-admin {
        max-width: 100%;
    }

    #quiz-container {
        width: 100% !important;
    }


    .card-white,
    .note-health {
        width: unset;

    }

    .note-health {
        padding: 8px 12px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .download-images img {
        height: 46px;
        ;
    }

}


.thank-you-wrapper {
    padding-top: 32px !important;
    display: none;
}


.thank-you-wrapper h1 {
    color: var(--dark-slate-blue);
    font-family: Oxygen, sans-serif;
}

.thank-you-wrapper.active {
    display: flex;
    flex-direction: column;
}

.whole-quiz-elements .finish-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thank-you-and-restart:has(.active) {
    min-height: 100dvh;
}


.download-images {
    display: flex;
    gap: 20px;
    margin-top: 34px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}


.download-images img {
    height: 54px;
    ;
}

.thank-you-wrapper p {
    font-size: 1.2rem !important;
}

.tooltip-box {
    border-radius: 6px;
    padding: 16px 22px;
    background-color: hsl(218.57deg 73.68% 92.55%);
    margin-bottom: 48px !important;
    line-height: 1.4;
}

@media(max-width: 440px) {
    .tooltip-box {
        border-radius: 6px;
        padding: 16px 12px;
        background-color: hsl(218.57deg 73.68% 92.55%);
        margin-bottom: 48px !important;
    }
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    align-items: center;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.yellow-shape {
    position: absolute;
    top: 2%;
    left: 5%;
    width: 680px;
    z-index: -1;
    height: 680px;
    background-color: #f0c443;
    border-top-left-radius: 10%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

@media (max-width: 720px) {
    .yellow-shape {
        width: 480px;
        height: 480px;
        top: 5%;

    }

}

@media (max-width: 720px) {
    .yellow-shape {
        display: none;

    }

}