﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

a#pipespecs-button > i, a#pitsize-button > i, a#buy-button > i {
    font-size: 3rem !important;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Patua One', cursive;
}


.top-row {
    height: 3.7rem;
    display: flex;
    align-items: center;
}

.main-title {
    text-align: center;
    margin-top: 3.0rem;
}

.button-container {
    text-align: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.button-wrapper {
    text-align:center;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.table-wrapper {
    margin-bottom: 20px;
}

#checkbox-wrapper {
    margin-top: 25px;
}

input[type="checkbox"] {
    opacity: 100 !important;
    pointer-events: all !important;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

input[type="number"] {
    padding-left: 10px !important;
    width: 98.8% !important;
    border-bottom: none !important;
}

.main {
    flex: 1;
    padding-left: 15px;
    padding-right: 15px;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.top-row.pl-4.navbar.navbar-dark {
    background-color: #fff;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pipe-results-section {
    height: 25vh;
}

#results {
    padding-bottom: 100px;
}

h3, h4, h5 {
    text-align: center;
}

form {
    max-width: 800px;
    margin: 0 auto;
}

table {
    max-width: 800px;
    margin: 0 auto;
}

#pipe-specs-form {
    margin-top: 10px;
    margin-bottom: 10px;
}
#pipe-specs-submit, #pit-submit, #pitsize-button {
    margin-top: 5px;
}

#buy-button {
    margin-top: 20px;
    width: 50%;
    background-color: white;
    color: #352c65;
}

.submit-wrapper {
    margin-top: 30px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.selector {
    margin-bottom: 10px;
}

#home-button, #new-specs-button {
    width: 25%;
    background-color: #352c65 !important;
}

.editValueButton {
    background-color: #352c65 !important;
}

#pitsize-button, #pipespecs-button, #pipe-specs-submit, #pit-submit {
    background-color: #352c65 !important;
}

#pipe-specs-submit, #pit-submit {
    width: 25%;
}

#pipespecs-button, #pitsize-button, #buy-button {
    height: 20%;
    line-height: 1.25 !important;
    padding: 10px;
}

#pipespecs-button, #pitsize-button, #buy-button {
    width: 220px !important;
    height: 220px !important;
    max-width: 60% !important;
    padding-top: 50px !important;
}
@media (max-width: 320px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        height: 160px !important;
        padding-top: 20px !important;
    }
}

@media (max-height: 500px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        padding-top: 15px !important;
    }
}

  

i.medium {
    font-size: 4rem !important;
}
button:focus {
    background-color: #716c8a !important;
}

.valueDisplay {
    background-color: #fff;
    font-size: 0.6rem;
    cursor: pointer;
    padding: 0px !important;
    border-radius: 5px;
}

/*Image output*/
#img-wrapper {
margin-top: 30px;
margin-bottom: 50px;
}

#img-wrapper > img {
    width: 100%;
}

.editValueInput {
    width:50px !important;
}
.editValueForm {
    
    padding: 5px;
    padding-right: 20px;
}

/*Nav Footer*/
#nav-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3rem;
    background-color: #352c65; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 500;
}

.nav-footer-button {
    width: 100%;
    display: inline-block;
    padding: 0;
    margin: 0;
    border: none;
    height: 100%;
    text-align: center;
    background-color: transparent !important;
}

.nav-footer-button {
    padding-top: 10px;
}

#rep-info {
    margin-top: 80px !important;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
}

#state-selector {
    max-width: 300px !important;
    margin: 0 auto;
    display: block;
}


#rep-info thead > tr > td {
    text-align: center;
}
#contact-header {
    margin-top: 75px;
}

.hidden {
    display: none;
}

/* migrating bootstrap collapse content*/
.collapse {
    display: none;
}

    .collapse.show {
        display: block;
    }

tr.collapse.show {
    display: table-row;
}

tbody.collapse.show {
    display: table-row-group;
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.navbar-collapse {
    
    flex-basis: 100%;
    -webkit-box-flex: 1;
    
    flex-grow: 1;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.navbar-expand-sm .navbar-collapse {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    
    flex-basis: auto;
}

.navbar-expand-sm .navbar-toggler {
    display: none;
}

.navbar-expand-sm .dropup .dropdown-menu {
    top: auto;
    bottom: 100%;
}

.valueDisplay > p {
    margin: 0;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: #352c65;
    color: white;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
button.navbar-toggler {
    margin-right: 15px;
}
    .navbar-toggler:hover, .navbar-toggler:focus {
        text-decoration: none;
    }

    .navbar-toggler:not(:disabled):not(.disabled) {
        cursor: pointer;
    }

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%;
}

a.navbar-brand {
    padding: 7px;
    padding-top: 17px;
}


/* end */

ul.nav.flex-column {
    background-color: #352c65;
    margin-bottom: 0;
    padding-left: 10px;
    box-shadow: 1px 4px 9px #000000cc;
}


.sidebar {
    position: fixed;
    width: 100%;
    z-index: 500;
    box-shadow: 0 2px 2px -2px rgba(0,0,0,.2);
}

.navbar-brand > img {
    height: auto;
    max-height: 49px;
    width: 301px;
    max-width: 75vw;
    margin-top: -2px;
}


    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #fff;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
    padding-bottom: 4.0rem;
}

.navbar-toggler {
    margin: 0 auto;
}

.valid.modified:not([type=checkbox]) {
    
}
input.modified.invalid {
    border-bottom: none !important;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#contact-link {
    text-align: center;
    margin-top: 50px;
}

@media (min-width: 750px) {
    .valueDisplay {
        font-size: 1rem;
        
    }
}

@media (max-height: 668px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        line-height: 1 !important;
    }
}
@media (min-height: 900px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        
    }
}
@media (min-height: 1000px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        
    }
}



@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 1025px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 301px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
        height: 49px;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar {
        background-color: #352c65;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .sidebar .navbar-brand {
        height:49px;
        margin-top: -3px;
    }

    ul.nav.flex-column {
        background: none;
        box-shadow: none;
    }

    .main .top-row {
        background-color: #fff;
        border-bottom: none;
        justify-content: flex-end;
    }

    a.navbar-brand {
        padding-left: 5px;
        padding-top: 0px;
    }

    #nav-footer {
        display: none;
    }

    button#pipe-specs-submit, button#pit-submit, button#home-button, button#new-specs-button {
        width: 15%;
    }

    #pipespecs-button, #pitsize-button, #buy-button {
        height: 20%;
        width:20%;
    }
    .valueDisplay {
        font-size: 1rem;
        padding: 5px 10px !important;
    }
    .navbar-brand > img {
        margin-top: 8px;
    }


}

@media (min-width: 1919px) {

}

#pipespecs-button, #pitsize-button, #buy-button {
    height: 200px;
}

#buy-button {
    margin-top: 5px;
}

ul.nav.flex-column {
    margin-block-start: 0px;
    border-top: 3px solid #282059;
    border-radius: 0px 0px 2px 2px;
}

.sidebar .nav-item:first-of-type {
    padding-top: .5rem;
}

a#pipespecs-button > i, a#pitsize-button > i, a#buy-button > i {
    font-size: 54px;
    line-height: 65px;
}

#home-button, #new-specs-button {
    width: 125px;
}

#pipe-specs-submit, #pit-submit {
    width: 175px;
}

button i.material-icons.right {
    margin-left: 0px;
}

form {
    margin: 1rem auto;
}

    form label {
        font-size: 0.85rem;
        color: #5a5a5a;
    }

    form select, form input {
        margin-bottom: .5rem;
        border: 2px solid #d5d5d5 !important;
    }

    form input {
    }

@media (max-width: 380px) {
    #pipespecs-button, #pitsize-button, #buy-button {
        height: 160px !important;
        padding-top: 30px !important;
    }
}

/* graphic placement breakpoints*/
@media (min-width: 300px) {
    .valueDisplay {
        font-size: 0.4rem;
        padding: 0px !important;
    }
}
@media (min-width: 400px) {
    .valueDisplay {
        font-size: 0.5rem;
        padding: 0px !important;
    }
}
@media (min-width: 500px) {
    .valueDisplay {
        font-size: 0.5rem;
        padding: 0px !important;
    }
}
@media (min-width: 600px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 0px !important;
    }
}
@media (min-width: 700px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 3px 3px !important;
    }
}
@media (min-width: 800px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 3px 3px !important;
    }
}
@media (min-width: 900px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 3px 3px !important;
    }
}
@media (min-width: 1000px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 3px 3px !important;
    }
}

@media (min-width: 1100px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 4px 4px !important;
    }
}

@media (min-width: 1200px) {
    .valueDisplay {
        font-size: 0.6rem;
        padding: 4px 4px !important;
    }
}

@media (min-width: 1300px) {
    .valueDisplay {
        font-size: 0.7rem;
        padding: 5px 5px !important;
    }
}

@media (min-width: 1400px) {
    .valueDisplay {
        font-size: 0.8rem;
        padding: 5px 5px !important;
    }
}

@media (min-width: 1500px) {
    .valueDisplay {
        font-size: 0.9rem;
        padding: 5px 5px !important;
    }
}

@media (min-width: 1600px) {
    .valueDisplay {
        font-size: 0.9rem;
        padding: 5px 5px !important;
    }
}

@media (min-width: 1700px) {
    .valueDisplay {
        font-size: 1rem;
        padding: 5px 10px !important;
    }
}

.valueDisplay {
    box-shadow: 1px 1px 0px 0px black;
    background-color: whitesmoke;
}
