﻿.container {
    width: 100%;
    box-sizing: border-box;
}

.label-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: block;
    color: #333;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 15px 0;
    cursor: pointer;
    background: transparent;
}

    input[type="range"]:focus {
        outline: none;
    }
   
    /* Chrome, Safari, Edge */
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        height: 20px;
        width: 20px;
        border-radius: 50%;
        background: var(--accent);
        cursor: pointer;
        margin-top: -6px; 
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        transition: transform 0.1s;
    }

    /* Firefox */
    input[type="range"]::-moz-range-thumb {
        height: 20px;
        width: 20px;
        border: none;
        border-radius: 50%;
        background: var(--accent); 
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        transition: transform 0.1s;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
        transform: scale(1.1);
    }

    input[type="range"]::-moz-range-thumb:hover {
        transform: scale(1.1);
    }

    /* Chrome, Safari, Edge */
    input[type="range"]::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        border-radius: 4px;
        background: #e0e0e0;
    }

    /* Firefox  */
    input[type="range"]::-moz-range-track {
        width: 100%;
        height: 8px;
        background: #e0e0e0; 
        border-radius: 4px;
    }

    /* Для Firefox */
    input[type="range"]::-moz-range-progress {
        height: 8px;
        background: #999999; 
        border-radius: 4px;
    }

#result-label {
    font-size: 1.15rem;
    margin: 20px 0;
    min-height: 55px;
    line-height: 1.6;
    color: #444;
}


.image-container {
    position: relative;
    width: 100%; 
    padding-top: 71%;
    margin: 25px auto 0 auto;   
    background-image: url('/Pics/os5.JPG');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    outline: 1px dashed #ccc;
}

.dynamic-line {
    position: absolute;
    top: 50.3%;
    left: 50%;
    width: 30%;
    height: 3px;
    background-color: #da3d04;
    transform-origin: left center;
    transform: translateY(-50%) rotate(0deg);
    z-index: 2;
    box-shadow: 0 0 6px rgb(245 41 24);
    border-radius: 4px;
}

/* Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;   
    background: transparent;
}

.calc-theory figure {
    margin: 20px auto;
    padding: 10px;
    max-width: 350px; 
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}
    .calc-theory figure img {
        width: 100%; 
        height: auto; 
        display: block;
        border-radius: 4px;
    }

.calc-theory figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666666;
    font-style: italic;
}
