/* styles.css */

:root {
    --radio-size: 20px; /* Adjust this value to change the size of the radio buttons */
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1 {
    text-align: center;
}

#quiz-container {
    max-width: 800px;
    margin: 0 auto;
}


/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #e0e0df;
    border-radius: 13px;
    margin-bottom: 20px;
    height: 25px;
    border: 1px solid black;
}

.progress {
    height: 100%;
    background-color: #eb6502;
    width: 0%;
    border-radius: 13px;
    transition: width 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Question Block */
.question-block {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

/* Scale Buttons */
.scale {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.scale label {
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scale-option {
    position: relative;
    margin: 0 5px;
}

.scale-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.scale-option:hover .custom-radio {
    border-color: #000;
}

.scale-option input[type="radio"]:checked ~ .custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--radio-size) * 0.5);
    height: calc(var(--radio-size) * 0.5);
    background-color: #555;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio {
    width: var(--radio-size);
    height: var(--radio-size);
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #555;
    display: inline-block;
    position: relative;
}

.scale input[type="radio"] {
    margin-bottom: 5px;
}

/* Pagination Buttons */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1 1 auto; /* Allow buttons to grow and shrink */
    max-width: 200px; /* Optional: Set a maximum width for buttons */
}

/* Primary Button Style */
.btn-next {
    background-color: #007BFF;
    color: #fff;
}

.btn-next:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Secondary Button Style */
.btn-previous {
    background-color: #6c757d;
    color: #fff;
}

.btn-previous:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Disabled Button Style */
.btn:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    padding: 10px 20px;
    font-size: 16px;
}

.spacer {
    flex: 1;
}


/* Result Page Styles */
#quiz-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#quiz-container div {
    font-size: 16px;
    line-height: 1.5;
}



/* Scale Labels */
.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.scale-label {
    font-size: 14px;
}

.left-label {
    text-align: left;
}

.right-label {
    text-align: right;
}

/* Slider Container */
.slider-container {
    width: 100%;
    margin: 20px 0; /* Adjust margin as needed */
}

/* Slider */
.slider-container .slider {
    -webkit-appearance: none;
    width: 100%;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(to right, #76c7c0 0%, #76c7c0 var(--value), #ccc var(--value), #ccc 100%);
    outline: none;
    margin: 0;
    transition: background 0.3s ease-in-out;
}

/* Slider Thumb */
.slider-container .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.slider-container .slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Update Slider Background on Input */
.slider-container .slider {
    background: linear-gradient(to right, #c6d950 0%, #c6d950 var(--value), #4fbbc4 var(--value), #4fbbc4 100%);
}

/* Adjustments for Mobile View */
@media (max-width: 800px) {

    /* Slider Container */
    .slider-container {
        margin: 20px 0;
    }

    /* Slider */
    .slider {
        height: 32px; /* Increase the height of the slider track */
        border-radius: 12px;
    }

    /* Slider Thumb */
    .slider::-webkit-slider-thumb,
    .slider::-moz-range-thumb {
        width: 32px;  /* Increase the width of the thumb */
        height: 20px; /* Increase the height of the thumb */
    }

    /* Scale Labels */
    .scale-label {
        font-size: 16px; /* Increase font size for better readability */
    }

    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-next {
        order: -1; /* Move Next button to the top */
        margin-bottom: 10px;
    }

    .btn-previous,
    .btn-next {
        max-width: none; /* Allow buttons to take full width */
    }
}

header {
    background-color: #f8f9fa; /* Light background color */
    padding: 10px 0;
    text-align: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
}



/* Footer Styles */
footer {
    background-color: #f8f9fa; /* Light background color */
    padding: 10px 0;
    margin-top: 40px; /* Add some space above the footer */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Align content to the left */
    padding-left: 20px; /* Optional: Add left padding for spacing */
}

.footer-logo {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    display: inline-block; /* Ensure proper alignment */
    /* Remove any margin auto that might center it */
    margin: 0;
}

.header-logo,
.footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}
