/* 
IKO RED COLOR HEX: #C1272D
DARK GREY FOOTER: #232323
MID GREY FOOTER: #454545
*/


html {
    position: relative;
    min-height: 100%;
}

body{ 
    padding-top: 70px;
    font-family: 'Open Sans', sans-serif;
    color: #000;
}


/* BREADCRUMB */

.breadcrumb {
    margin-top: 20px;
    padding: 1px 0px;
    list-style: none;
    background-color: #fff;
    font-style: italic;
    /* border-bottom: 1px solid #494a4e; */
    font-size: smaller;
    border-radius: 0;
}

.breadcrumb>li+li:before {
    color: #ccc;
    content: ">" !important;
    padding: 0 2px;
}

.breadcrumb >.active {
    color: #C1272D;
 }





/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    color: #000;
    font-family: 'Open Sans', sans-serif;
}

/*
h1 {
    border-bottom: 5px solid #C1272D;
}
*/

/*  h1 CENTERED */
h1 {
    overflow: hidden;
    text-align: center;
}
h1:before,
h1:after {
    background-color: #C1272D;
    content: "";
    display: inline-block;
    height: 5px;
    position: relative;
    vertical-align: middle;
    width: 50%;
}
h1:before {
    right: 0.5em;
    margin-left: -50%;
}
h1:after {
    left: 0.5em;
    margin-right: -50%;
}


/*  h1 LEFT INDENT 
h1 {
    display: flex;
    flex-direction: row;
}
h1:before,
h1:after {
    content: "";
    border-bottom: 5px solid #C1272D;;
    margin: auto;
}
h1:before {
    margin-right: 20px;
    flex: 1 1 50px;
}
h1:after {
    margin-left: 20px;
    flex: 10 1;
}
*/



/* jump to help but xx px above */
#help {
    scroll-margin-top: 300px;
  }




/* NUMBERED CIRCLE */
.numberCircle {
    display: inline-block;
    line-height: 0px;
    border-radius: 50%;
    border: 2px solid #C1272D;
    font-size: 24px;
    font-weight: bold;
    background: #C1272D;
    color: #fff;
}
.numberCircle span {
    display: inline-block;
    padding-top: 50%;
    padding-bottom: 50%;
    margin-left: 8px;
    margin-right: 8px;
}
.numberCircle:before {
    padding-left: 8px;
}

.numberCircle:after {
    padding-right: 8px;
}




/* ALERTS */

.alert-warning{
    background-color: #5e5858 !important;
    color:#fff !important;
}





/* COLLAPSE */

[data-bs-toggle="collapse"].collapsed .if-not-collapsed {
    display: none;
}
[data-bs-toggle="collapse"]:not(.collapsed) .if-collapsed {
    display: none;
}




/* PAGINATION */

.page-item.active .page-link {
    background-color: #C1272D;
    border-color: #C1272D;
}



/* CAROUSEL */

.carousel-item {
    height: 40vh !important;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }

  .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
  }




/* CARDS */

.card-body{
    padding: 1.25rem;
}




/* TABLES */

.table > tbody > tr > td {
    vertical-align: middle;
}



/* LINKS */

a{
    text-decoration: none;
}

/* Bootstrap 5 tweak: do not underline links unless hovered over */
a:not([class*="btn"]) {
    text-decoration: none;
}
a:not([class*="btn"]):hover {
    text-decoration: underline;
}




/* BUTTONS */

.btn:focus {
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}






/* ICONS FONTAWESOME: https://fontawesome.com/docs/web/setup/upgrade/whats-changed */
.fa-circle-info, .fa-check-square, .fa-circle-question, .fa-calculator {
    color: #C1272D;
}




/* INPUT SUMMARY */

#input_summary, #dimensions_summary{
    border-top: 1px solid #149ded;
    /*font-size: smaller;*/
}

.input_summary_col{
    border-bottom: 1px solid #dee2e6;
}






/* FORMS */

input {
    filter: none;
}

.input-group>.input-group-text {
    flex: 0 0 40%;
}

#AnglesMeasurmentUnit, #AnglesMeasurmentUnit_ExactMeasures {
    padding: 0;
}

#MiniCalcAnglesMeasurmentUnit {
    padding-left: 5px;
}

.form-group {
    margin-bottom: 1rem;
}




/* ROOF TYPE AND ADDITIONS TYPE FORM */

/* decrease line spacing between form rows */
#roof-type .form-group, #additions-type .form-group {
    margin-bottom: 5px;
}

/* for roof with exact measueres images are a bit larger (420x230px) than for predefined roofs (320x230px), so we must limit their view size */ 
#myimg{
    max-width: 300px;
}




/* SELECTIONS - THUMBS */

.img-thumbnail-white {
    padding:1px;
    background-color: #fff;
    border: 3px solid #fff;
    max-width: 100%;
    height: auto;
}

.img-thumbnail-red {
    padding:1px;
    background-color: #fff;
    border: 3px solid #C1272D;
    max-width: 100%;
    height: auto;
}

.thumb_div{
    position: relative;
    padding-top: 10px;
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
}

.img-thumbnail-checkmark {
    position: absolute;
    top:9px;
    right:11px;
}







/* SAVE AND BACK TO SELECTIONS */

.selections_div{
    position: relative; 
}

.selections_saveandback{
    position: absolute; 
    top:-240px;
}




/* sticky FOOTER */

html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
.content {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}



/* BROWSERS */

/* remove input number scroller in Firefox */
input[type=number] { 
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0; 
  }

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
      -webkit-appearance: none; 
      margin: 0; 
}

/* hide reveal (eye, show) pass in Edge and Chrome */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}
