/*
    Styling for the site base template.
 */

body {
    color: #383838;
    width: 100%;
    margin: 0;
    background: white;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    line-height: 15px;
    height: auto;
}

.container {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
}

section.main-body div.container {
    width: 1170px;
    background-color: white;
}

.app-section {
    background-color: white;
    border: 1px solid #8898ba;
    padding: 5px;
}

header {
    height: 125px;
    background: white;
}

header .container {
    width: 1280px;
}

header div.outer-row {
    margin-right: -15px;
    margin-left: -15px;
    padding-top: 25px;
}

header div.row {
    display: flex;
    flex-direction: row;
}

header div.col {
    display: flex;
    flex-direction: column;
}

header div.middleground {
    flex-grow: 2;
}

header div.link-boxes {
    font-size: 15px;
    font-weight: bold;
    justify-content: flex-end;
}

header div.staging-text{
    font-size: 36px;
    color: red;
}

header div.biggener {
    flex-grow: 3;
}

header div.link-box.link1 {
    background-color: #c8d0df;
}

header div.link-box.link1 > div.underlay {
    background-color: #a1afc8;
}

header div.link-box.link2 {
    background-color: #8898ba;
}

header div.link-box.link2 > div.underlay {
    background-color: #687ca7;
}

header div.link-box.link3 {
    background-color: #55b84e;
}

header div.link-box.link3 > div.underlay {
    background-color: #42973c;
}

header div.link-box {
    padding: 13px 25px 13px 25px;
    margin-left: 5px;
    -moz-transform: skewX(-23deg);
    -o-transform: skewX(-23deg);
    -ms-transform: skewX(-23deg);
    -webkit-transform: skewX(-23deg);
    transform: skewX(-23deg);
    cursor: pointer;
}

header div.link-box:hover div.underlay {
    width: 100%;
}

header div.link-box div.underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    opacity: 0.7;
    z-index: 1;
    transition: width 0.3s;
}

header div.link-box div.texty-twister {
    -moz-transform: skewX(23deg);
    -o-transform: skewX(23deg);
    -ms-transform: skewX(23deg);
    -webkit-transform: skewX(23deg);
    transform: skewX(23deg);
    z-index: 2;
}

header div.link-boxes a {
    text-decoration: none;
    color: white;
}

header div.profile-box {
    padding: 6px 0 5px 10px;
}

header div.profile-box:hover {
    opacity: 0.7;
    transition: opacity 0.3s;
}

header div.profile-box img {
    width: 28px;
    height: auto;
}

header div.menu {
    margin-top: 21px;
    font-size: 15px;
    font-weight: bold;
    color: black;
}

header div.menu:hover > div {
    opacity: 0.4;
    transition: opacity 0.3s;
}

header div.menu-link {
    padding-left: 20px;
}

header div.menu-link a {
    text-decoration: none;
    color: inherit;
}

header div.menu > div:hover {
    opacity: 1 !important;
    transition: opacity 0.3s;
}

header div.menu div.contact {
    color: #8898ba;
    font-weight: bold;
    padding-left: 20px;
}

header div.menu div.contact.email a {
    border-right: 1px solid #8898ba;
    padding-right: 15px;
}

header div.menu div.contact.phone-icon {
    padding-left: 15px;
}

header div.menu div.contact.phone-icon i {
    margin-top: -3px;
}

header div.menu div.contact.phone-number {
    padding-left: 1px;
}

header div.contact a {
    text-decoration: none;
    color: #8898ba;
}

header a.logo > img {
    width: 300px;
    height: auto;
}

nav.main-nav {
    display: block;
    float: left;
    position: relative;
    left: auto;
    top: auto;
    clear: both;
    margin-top: 5px;
}

nav.main-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.main-nav > ul:hover > li {
    opacity: 0.5;
    transition: opacity 1s;
}

nav.main-nav  > ul > li:hover {
    opacity: 1;
}

nav.main-nav > ul > li {
    display: inline;
    position: relative;
    padding-left: 20px;
    float: left;
}

nav.main-nav li.menu-link {
    text-align: center;
}

nav.main-nav > ul > li {
    font-weight: bold;
    color: #515151;
    font-size: 18px;
    line-height: 20px;
    padding-bottom: 30px;
    margin-bottom: -30px;
    cursor: pointer;
}

nav.main-nav li > a {
    text-decoration: none;
    font-weight: bold;
    color: #515151;
}

nav.main-nav ul.submenu {
    opacity: 0;
    display: block;
    list-style: none;
    transition: all 0.3s;
    padding-left: 0;
}

nav.main-nav > ul:hover > li > ul.submenu {
    opacity: 1;
}

nav.main-nav > ul > li > ul.submenu  > li {
    padding: 10px 0 10px 5px;
    float: left;
}

ul.submenu  > li {
    opacity: 1 !important;
}

section.main-body {
    padding: 10px;
}

body.rollovers header nav.main-nav:hover a {opacity: 0.5;}
body.rollovers header nav.main-nav li a:hover {opacity: 1;}
header nav.main-nav li.current a {box-shadow: inset 0 -12px 0 0 #e5e5e5 !important;}
/*header nav.main-nav li.current a:after {content: ''; position: absolute; left: 0; bottom: -27px; width: 100%; height: 9px; background: #e5e5e5;}*/

footer {
    height: 125px;
    background: white;
}

footer .container {
    width: 1280px;
}

footer div.main-row {
    padding: 10px;
}

footer div.company-name {
    font-size: 15px;
    font-weight: bold;
    color: #8898ba;
}

header ul.social-media {
    padding-left: 30px;
    border-left: 1px solid #d7d7d7;
}

ul.social-media {
    margin-top: 7px;
    margin-right: 30px;
    padding-top: 3px;
    padding-bottom: 3px;

}
ul.social-media li { display:inline-block; vertical-align:middle; }
ul.social-media li + li { margin-left:15px; }
ul.social-media li img { width: 20px; height: 20px;}

/**
    Global mods to Material components
 */
.md-button-small {
    font-size: 0.8em;
    min-width: 1%;
}

/*
    .. just take a step to the right..
 */
.timewarp {
    float: right;
}

h2.header-with-button {
    display: inline-block;
}

/**
    Calc pages
 */

.alutecrow{
    display: table-row;
    height: 34px;
}

.alutecrow
{
    display: table;
    width: 100%; /*Optional*/
    table-layout: fixed; /*Optional*/
    border-spacing: 3px; /*Optional*/
    line-height: 16px;
}

.aluteccolumn
{
    display: table-cell;
    vertical-align: top;
}

.aluteccolumn > h2 {
    margin-top: -3px;
}

div.two-row-column {
    text-align: center;
    line-height: 22px;
}

.numberInput{
    width: 35px;
    text-align: right;
    line-height: 11px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#locationStats {
    /* sits at top right of the map div */
    background: white;
    border-radius: 7px;
    border: 1px solid #8fc3d7;
    padding: 5px 5px 5px 5px;
    width: 220px;
    transition: top 0.5s, left 0.5s;
}

#rainfallTown {
    font-weight: bold;
}

.leaflet-container {
    font-family: Verdana, Geneva, sans-serif !important;
    font-size: 0.8em !important;
    cursor: default;
}

/*
    Highlight result changes
 */
span.result-value {
    font-weight: bold;
    transition: 0.5s color ease;
    color: black;
}

.result-changed {
    outline: none;
    border-color: #9ecaed;
    box-shadow: 0 0 10px blue;
    border-radius: 10%;
    padding-top: 5px;
    padding-bottom: 5px;
}

div.result-pass {
    border: 2px solid green;
    color: green;
}

div.result-pass > span.result-summary {

}

div.result-fail {
    color: red;
    border: 2px solid red;
}

div.result-fail div.fail-reason {
    font-size: 0.7em;
    padding: 0 5px 0 5px;
}

div.result-pass div.pass-extra {
    font-size: 0.7em;
    padding: 0 5px 0 5px;
}

span.result-incorrect {
    color: red !important;
}

div.result-pending {
    color: black;
    border: 2px solid black;
}

label.result-col-header {
    font-weight: bold;
}

.missing-input {
    outline: none;
    border-color: #9ecaed;
    box-shadow: 0 0 10px red;
}

.howto-highlight {
    color: red;
}

.qtip-red {
    font-size: 18px;
    line-height: 20px;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: #D95252
}

.alutec-button {
    background-color: #8797bb !important;
    color: white !important;
}

.howto-section ul {
    list-style: disc outside none;
}

/*
    Colour picker
 */

md-dialog.colour-picker {
    width: 600px;
}

md-dialog.colour-picker div.colour-item {
    padding-bottom: 10px;
}

img.colour-img, div.colour-tile{
    width: 125px;
    height: 125px;
}

div.colour-tile {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 5px solid #949599;
    padding: 7px;
}

div.colour-tile > div.desc {
    font-size: 20px;
    font-weight: bold;
}

div.colour-tile > div.name {
    padding-top: 8px;
    font-size: 14px;
}

div.colour-item {
    padding-left: 10px;
    display: inline-block;
}

div.colour-item:hover {
    opacity: 0.3;
    cursor: pointer;
}

/*
    Outlet select screen used on Flatroof calc and NBS document interface
 */
div.range-list {
    width: 650px;
    padding-bottom: 11px;
}

div.range-list div.range-item {
    width: 193px;
    text-align: center;
    border: 1px solid gray;
    padding: 8px;
}

div.range-list span.range-name {
    font-weight: bold;
}

div.range-list img.range-image {
    height: 115px;
    width: 100px;
    object-fit: cover;
    cursor: pointer;
}

div.range-list img.range-image:hover {
    opacity: 0.5;
}

div.outlet-select {
    height: 450px  !important;
}

#CookielawBanner {
    padding: 0 !important;
}

#CookielawBanner p {
    font-size: 10px;
    line-height: 17px;
}

li.auth-button {
    color: #8797bb;
    font-size: 12px;
}

li.auth-button a[href] {
    text-decoration: none;
    font-weight: bold;
}

li.auth-button a:visited{
    color: #8797bb;
}

div.calc-button > div.image-holder img {
    width: 312px;
    height: 247px;
}


/*
    This makes the default placeholder text in Material input boxes slightly bolder.
 */
md-input-container label {
    color: black;
}

/* The same for select boxes */
md-select .md-select-value.md-select-placeholder {
    color: black;
}

fieldset.fixed-labels label {
    width: 150px;
    display: inline-block;
    padding-bottom: 10px;
}

/*
    Pin animation for the rainfall map.
 */

.bounce-top {
	-webkit-animation: bounce-top 1s both;
	        animation: bounce-top 1s both;
}

@-webkit-keyframes bounce-top {
  0% {
    -webkit-transform: translateY(-45px);
            transform: translateY(-45px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    -webkit-transform: translateY(-24px);
            transform: translateY(-24px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  65% {
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  82% {
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  93% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  100% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    opacity: 1;
  }
}
@keyframes bounce-top {
  0% {
    -webkit-transform: translateY(-45px);
            transform: translateY(-45px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    -webkit-transform: translateY(-24px);
            transform: translateY(-24px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  65% {
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  82% {
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  93% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  100% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    opacity: 1;
  }
}
