﻿body {
}
.header , .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.slider-container {
    width: 80%; /* Slider container width to control the slider's width */
    display: flex;
    justify-content: center; /* Center the slider within the container */
}

#mySlider {
    width: 100%; /* Slider takes full width of its container */
}

.logo {
    width: 50%;
    height: auto; /* Adjust height automatically to maintain aspect ratio */
    margin-top: 10px; /* Optional: Add some space between the slider and the logo */
}

#site {
    width: 100%;
    text-align: center;
    margin-top: 10px; /* Optional: Add some space between the logo and the site description */
}


/* Additional styling to ensure elements are properly aligned and spaced */
.pt-0, .mt-0, .pb-0, .mb-0 {
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}


.form-group, .form-group.select-container, .weight-info {
    max-width: 100%; /* Maximum width of 70% of the screen */
    margin-left: auto; /* Auto margin for horizontal centering */
    margin-right: auto; /* Auto margin for horizontal centering */
}


.select-container {
    /*display: flex;*/ /* Enable flexbox for horizontal layout */
    /*align-items: center;*/ /* Align items vertically */
    /*justify-content: space-between;*/
    /*  gap: 10px; Space between the select-with-label container and the button */
}

.alert-prompt {
    font-weight: bold;
    color: red;
    
}

.alert, .save{
    text-align: center;
}

.bolder{
    font-weight: bold;
}

.light-weight-info {
    font-size: 2vw;
    line-height: 1;
}


.axle {
    font-size: 1.5vw;
    line-height: 1.1;
    font-weight: bold;
}

#truck {
    min-width: 50%;
}

#btnAddNewTruck {
    max-width: 40%;
}

#saveWeight{
    min-width: 40%;
    color:blue;
    text-align:right;
}


.input-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .input-button-container .form-control {
        flex-grow: 1; /* Allow the select input to take up available space */
    }

    .input-button-container .btn {
        margin-left: 10px; /* Add some space between the select input and the button */
        max-width: 30%; /* Set a maximum width for the button */

    }

.select-with-label {
    display: flex; /* Enable flexbox for vertical layout */
    flex-direction: column; /* Stack items vertically */
    flex-grow: 1; /* Allow this container to take up the remaining space */
}

.select-container .btn {
    width: 200px; /* Set fixed width for the button */
    flex-shrink: 0; /* Prevent the button from shrinking */
}

.new-truck {
    display: flex; /* Enable flexbox for vertical layout */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the start (left-aligned) */
    gap: 4px; /* Space between the label and the button group */
}

    .new-truck .btn {
        width: 150px; /* Set fixed width for the button */
        flex-shrink: 0; /* Prevent the button from shrinking */
    }

.newtruck-button-group {
    display: flex; /* Enable Flexbox */
    align-items: center; /* Vertically align items in the middle */
    gap: 10px; /* Spacing between elements */
}

.large-select {
    font-size: 3vw; /* Larger font size */
    font-weight: bold;
    /* Additional styling as needed */
}

    .large-select option {
        font-size: 3vw; /* Larger font size */
        font-weight: bold; /* Bold font */
        /* Additional styling as needed */
    }


.large-hdr {
    font-size: 3vw; /* Larger font size */
    /* Additional styling as needed */
}


#mySlider {
    -webkit-appearance: none; /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 25px; /* Specified height */
    background: #d3d3d3; /* Grey background */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
    margin: 0 10px; /* Adds margin to left and right of the slider */
    flex-grow: 1; /* Allows the slider to grow and take available space */
}

    #mySlider:hover {
        opacity: 1; /* Fully opaque on hover */
    }

/*.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;*/ /* Align items to the start */
    /*padding: 10px;
    background-color: transparent;
    white-space: nowrap;*/ /* Prevent wrapping */
    /*overflow-x: auto;*/ /* Optional: horizontal scrolling if content overflows */
/*}




    .header img {
        flex-shrink: 0;*/ /* Prevents the image from shrinking */
    /*}*/

.pit {
    margin-left: 10px; /* Space between slider and label */
    font-size: 3vw; /* Adjust size as needed */
    flex-shrink: 0; /* Prevents the label from shrinking */
}


html, body {
    height: 100%; /* Necessary for vertical centering */
    margin: 0; /* Remove default margin */
}

.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical centering */
    align-items: center; /* Horizontal centering */
    height: 100%; /* Full height of the viewport */
    text-align: center; /* Center text */
}

    .centered-content > div {
        margin-bottom: 3px;
    }




.start, .ok-cancel-buttons, .prompt {
    text-align: center;
    line-height: 1.1;
}



.button-container {
    width: 80%;
    margin: 0 auto; /* This centers the div */
    padding: 10px 0; /* Add some padding above and below each button */
}

    .button-container button {
        width: 100%; /* Make the button expand to the full width of its container */
        margin: 5px 0; /* Optional: Adds some space between the buttons */
    }

/*.prompt {
    
    
}*/
.prompt {
    width: 100%;
}

/*.input-hdr, .select-container, .form-group {
    text-align: left;
}*/





.font-std {
    /*background-color: pink;*/
    font-size: 3.5vw;
    min-height: 3.5vw;
    white-space: nowrap;
    overflow: hidden;
}

    .font-std option {
        font-size: 3.5vw;
    }

.control-label.font-std {
    margin-bottom: 0px;
    margin-top: 10px;
    
}

select {
    margin-top: 0px; /* Adjusts space above the select */
    margin-bottom: 0px; /* Adjusts space below the select */


}

.btn-std {
    max-width: 100%;
   
}

.font-med {
    /*background-color: mediumpurple;*/
    font-size: 4.5vw;
    min-height: 4.5vw;
    white-space: nowrap;
    overflow: hidden;
}

.weight-font {
    /*color: forestgreen;*/
    font-size: 8vw;
    min-height: 8vw;
}

@media (min-width: 900px) {

    .logo {
        width: 20%;
        height: auto; /* Adjust height automatically to maintain aspect ratio */
        margin-top: 10px; /* Optional: Add some space between the slider and the logo */
    }

    .form-group, .form-group.select-container, .weight-info {
        max-width: 60%; /* Maximum width of 70% of the screen */
        margin-left: auto; /* Auto margin for horizontal centering */
        margin-right: auto; /* Auto margin for horizontal centering */
    }


    .font-std {
        /*background-color: yellow;*/
        font-size: 1.5vw;
        min-height: 1.5vw;
    }

        .font-std option {
            font-size: 1.5vw;
            min-height: 1.5vw;
        }

    .btn-std {
        max-width: 50%;
        /*    font-weight: bold;*/
    }

    .weight-font {
        /*color: red;*/
        font-size: 4vw;
        min-height: 4vw;
        white-space: nowrap;
        overflow: hidden;
    }

    .font-med {
        /*background-color: orange;*/
        font-size: 2vw;
        min-height: 2vw;
        white-space: nowrap;
        overflow: hidden;
    }
}

/* When the screen width is smaller than 400px, set a minimum font size */
/*@media (max-width: 300px) {
    .prompt {

        font-size: 10px;*/ /* Minimum font size */

/*}
}*/
