:root {
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    --background-and-text-white: hsl(0,0%,100%);
    --background-grey: hsl(0,0%,97.3%);
    --grey-lines: hsl(210,3.6%,89%);
    --accent-and-text-green: hsl(149,100%,32%);
    --text-black: hsl(210,2.7%,14.5%);
    --text-black-hover-faded: hsl(210,2,7%,55%);
    --text-link-hover-green: hsl(129,40.3%,28.2%);
    --text-link-green: hsl(149,100%,32%);
    --text-link-hover-green-faded: hsl(129, 40.3%, 55%);
    --btn-color-green: hsl(149,100%,32%);
}


/*Fonts*/
@font-face {
    font-family: 'itc_avant_garde_gothicmedium';
    src: url('../ext/font-ITC-avant-garde-gothic-1.0.0/itc_avant_garde_gothic_medium-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'itc_avant_garde_gothic_demiRg';
    src: url('../ext/font-ITC-avant-garde-gothic-1.0.0/itc_avant_garde_gothic_demi-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'itc_avant_garde_gothicbold';
    src: url('../ext/font-ITC-avant-garde-gothic-1.0.0/itc_avant_garde_gothic_bold-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
}

body {
    --webkit-text-size-adjust: 100%; /*adjusting for IOS 12 or earlier*/
     min-height: 100vh;
     box-sizing: border-box;
     background-color: var(--background-and-text-white);
     font-family: 'Helvetica', 'Arial', 'sans-serif';
     font-size: 1.25rem;
     line-height: 1.5rem;
     color: var(--text-black);
     font-weight: 400;
}

a:link, a:visited {
    color: var(--text-link-green);
    text-decoration: none;
}

a:active {
    color: var(--accent-and-text-green);
    text-decoration: none;
}

footer {
    clear: both;
    padding-bottom: 0;
}

.footer-img .img {
    width: auto !important;
    height: auto;
    max-width: 100%;
    max-height 40px !important;
}

footer .text-white {
    text-align: left;
}

/*Headings*/
h1 {
	font-size: 3rem;
	line-height: 3.8rem;
    margin-bottom: 2rem;
    font-style: bold;
    font-weight: 400;
    color: var(--accent-and-text-green);
    font-family: 'itc_avant_garde_gothicbold';
}

h2 {
	font-size: 1.32rem;
	line-height: 1.45rem;
    font-style: normal;
    font-weight: 400;
    color: var(--accent-and-text-green);
    font-family: 'itc_avant_garde_gothicmedium';
}

h3 {
	font-size: 1.3rem;
	line-height: 1.4rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-black);
    font-family: 'itc_avant_garde_gothicmedium';
}

h4 {
	font-size: 1.2rem;
	line-height: 1.3rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-black);
    font-family: 'itc_avant_garde_gothic_demiRg';
}

h5 {
	font-size: 1.15rem;;
	line-height: 1.2rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-black);
    font-family: 'itc_avant_garde_gothic_demiRg';
}

h6 {
	font-size: 1.1rem;
	line-height: 1.12rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-black);
    font-family: 'itc_avant_garde_gothic_demiRg';
}

p {
    font-size: 1rem;
    font-family: 'Helvetica', 'Arial', 'sans-serif';
}

.undertitle {
    font-size: 2rem !important;
}

/*Modals*/
.modal-body ol li {
    font-size: 1rem;
    font-family: 'Helvetica', 'Arial', 'sas-serif':
}

.modal {
    z-index: 999999 !important;
}

.modal-header h1 {
    line-height: 1.65em !important;
}


/*Bootstrap Table Styling*/
th, td {
    font-family: 'Helvetica', 'Arial', 'sans-serif';
    font-size: 1rem;
}

#connection-new-address-input {
    margin-right: 10px;
}


/*Forms*/
form ,label {
    font-size: 1rem;
    font-family: 'Helvetica', 'Arial', 'sans-serif';
}


.page-container {
    width: 80%;
    margin 0 auto;
    padding-top: 1rem;
}

#main-div {
    padding-top: 1rem;
}

.background-container {
    margin: 0 auto;
    width: 85%;
    padding-top: 1.5rem;
}

/*Login*/
.login-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#login {
	overflow: hidden;
	border: 0 !important;
	border-radius: 20px !important;
	box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.login-alternative {
    text-align: start;
    white-space: pre-line;
}

.login-alternative  p {
    font-size: 1rem;
}

.img-left {
	width: 45%;
	background: url('../../assets/images/loginimg.jpg')center;
	background-size: cover;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #18A254;
}

.login-body {
	padding: 2rem;
}

.login-title {
	margin-bottom: 2rem;
}

.loginForm-input {
	position: relative;
}

.loginForm-input input {
	width: 100%;
	height: 45px;
	padding-left: 40px;
	margin-bottom: 20px;
	box-sizing: border-box;
	box-shadow: none;
	border: 1px solid #00000020;
	border-radius: 15px;
	outline: none;
	background: transparent;
}

.loginForm-input input:focus, .loginForm-input input:valid {
	border: 2px solid #007bff;
}

.loginForm-input input:focus::placeholder {
	color: #454b69;
}

.form-box button {
    font-family: 'itc_avant_garde_gothicmedium';
	margin-top: 10px;
	border: 0px solid #18A254 !important;
	cursor: pointer;
	border-radius: 15px;
	background: var(--accent-and-text-green);
	color: var(--background-and-text-white);
	font-size: 90%;
	font-weight: 600;
	transition: 0.5s ease;
	padding: 10px 20px;
    border-radius: 10px !important;
	width: 100%;
}

.form-box button:hover {
	background: var(--text-link-hover-green-faded);
	transition: 0.5s ease;
}

/*Navs*/

#main-bar {
    background-color: var(--text-link-green);
}

#main-bar .nav-link, #main-bar .text, #main-bar .nav-brand {
    font-family: 'itc_avant_garde_gothicmedium';
    color: #fff;
}

#container1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    position: relative;
    top 0;
}


#container2 {
    flex-direction: row;
    align-items: space-between;
    gap: 0.1em;
    position: relative;
    top 0;
}

#logo {
    display: block;
    margin: 25px auto;
    margin-top: 1rem;
}

#logo2 {
    display: block;
    margin: 25px auto;
    margin-top: 1rem;
    float: right;
}

#brand {
    padding-bottom: 0.2rem;
    padding-top: 0.5rem;
}

#mainmenu {
    background: #009e4C !important;
}


.navbar-one, .navbar-two {
    width: 100vw;
    height: 150px;
}

.language-button {
    font-size: 0.8rem;
    color: #fff;
}

.nav-link:focus, .av-link:hover {
    color: #000;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #FFF;
    color: #18A254;
}

nav ul, nav li {
    list-style: none;
}

nav ul a, nav li a {
    text-decoration:none;
    color: #000;
}

/*Buttons*/

.btn-primary, .btn-secondary {
    color: var(--background-and-text-white) !important; 
    font-family: 'itc_avant_garde_gothicmedium';
    border-radius: 10px !important;
    padding: 10px 20px:
}

.btn-primary, .btn-primary:active, .btn-primary:visited {
    background-color: hsl(149,100%,32%)!important;
    outline: none;
    border: 0px solid #18A254 !important;
}

.btn-primary:hover {
    background-color: hsl(129,40.3%,55%) !important;
    transition: 0.7s ease;
}

.btn-outline-primary {
        color: #18A254;
        border-color: #18A254;
}

.btn-outline-primary:hover {
        color: #fff;
        background-color: #18A254;
        border-color: #18A254;
}

.btn-secondary, .btn-secondary:active, .btn-secondary:visited {
    background-color: hsl(210,2.7%,14.5%) !important;
    outline: none;
    border: none;
}

.btn-secondary:hover {
    background-color: hsl(210,2,7%,55%) !important;
    transition: 0.7s ease;
}

#btn-meter {
    padding-left: 0.5em:
}

.connection-project-page-head ul li .nav-link.active {
        color: #fff;
        background-color: #18A254;
}

#menu-p .nav-link:not(.active),
#menu-ps .nav-link:not(.active) {
    background-color: rgba(255, 254, 254, 0.8);
    color: var(--btn-color-green);
}

#menu-p .nav-link, 
#menu-ps .nav-link {
    color: #fff;
    background-color: var(--btn-color-green);
    font-family: 'itc_avant_garde_gothicmedium';
    border-color: var(--btn-color-green);
    margin: 15px 0 15px 0 !important;    
}

#menu-p .nav-link:hover, 
#menu-ps .nav-link:hover {
    color: #fff;
    background-color: var(--btn-color-green);
    font-family: 'itc_avant_garde_gothicmedium';
    border-color: var(--btn-color-green);
    margin: 15px 0 15px 0 !important;    
}


.nav-fill .nav-item {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
}

/*Cards*/

/*BEGIN index cards*/
.index-card {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.index-card img {
    width: 100%%;
    height: 100%;
    object-fit: cover;
}

.index-card p {
    line-height: 1.4em;
    font-size: 0.95rem;
}

.index-card a {
    float: left;
    margin: 0.1rem;
}
/* END index cards */


/* BEGIN front page */

.front-page-card {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.front-page-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-page-card .card-body {
    height: 100%;
}

.front-page-card a {
    float: left;
    margin: 0.1rem;
}

/* END front page (index) */

/* BEGIN connection change page */

.connection-change-card {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.connection-change-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connection-change-card .card-body {
    height: 100%;
}

.connection-change-card a {
    size: auto;
}

/* END connection change page */

/* BEGIN contractor page */
.contractor-card{
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contractor-card .card-body {
    height: 100%;
}

#contractor-card a {
 size: auto;
}

.contractor-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* END contractor page */

/*BEGIN status cards*/

.task-card .modify-buttons {
    position: absolute;
    display: block;
    top: 0; right: 0;
    padding-right: 4px;
    padding-top: 4px;
}

.status-card {
    margin: 10px 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 10px 20px 10px;
    align-self: normal;
    align-items: center;
}

.time-stats {
    font-size: 0.67rem;
    margin-bottom: 10px;
    margin-top: auto;
}

.task-card {
    flex: 1;
    height: 16.8rem;
    padding-top: 7rem;
    text-align: center;
    align-items: center;
    background-size: 3.5rem;
    background-position: center 1.5rem;
    background-repeat: no-repeat;
}

.task-card.task-feedback-survey, 
.task-card.task-bill {
    background-size: 3.7rem;
    background-position: center 1.5rem;
}

.task-card.task-meter-removal, 
.task-card.task-meter-addition {
    background-size: 4.5rem;
    background-position: center 1.5rem;
}
.task-card.task-meter-relocation,
.task-card.task-meter-temporary-disconnection,
.task-card.task-electricity-production-application {
    background-size: 4.9rem;
    background-position: center 1.5rem;
}

.task-card .card-title {
    font-size: 0.9rem;
    margin: 10px 0;
}

.task-card.task-workorder {
    background-size: 4.9rem;
    background-position: center 1.5rem;
}

.task-card.task-general-information-form .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.3rem;
}

.task-card .card-body {
    padding: 4px;
    width: 100%;
}

.task-card.task-contract-connection        { background-image: url('../../assets/images/liittymasopimus.png');}
.task-card.task-contract-electricity       { background-image: url('../../assets/images/sahkosopimus.png');}
.task-card.task-electrical-network-build   { background-image: url('../../assets/images/verkon_rakennus.png');}
.task-card.task-electrical-network-connect { background-image: url('../../assets/images/liittymatyo.png');}
.task-card.task-electrical-network-design  { background-image: url('../../assets/images/suunnittelutyo.png');}
.task-card.task-feedback-survey            { background-image: url('../../assets/images/palaute.png');}
.task-card.task-general-information-form   { background-image: url('../../assets/images/yleistietolomake.png');}
.task-card.task-bill                       { background-image: url('../../assets/images/laskutus.png');}
.task-card.task-meter-removal                { background-image: url('../../assets/images/meterremoval.png');}
.task-card.task-meter-relocation             { background-image: url('../../assets/images/meterrelocation.png');}
.task-card.task-meter-addition               { background-image: url('../../assets/images/meteraddition.png');}
.task-card.task-electricity-production-application { background-image: url('../../assets/images/smallscaleproduction.png');}
.task-card.task-meter-temporary-disconnection     { background-image: url('../../assets/images/temporarydisconnection.png');}
.task-card.task-connection-work-order        { background-image: url('../../assets/images/liittymatyo.png');}
.task-card.task-desing-work-order        { background-image: url('../../assets/images/suunnittelutyo.png');}

/*END status cards*/

.info-plate {
    width: 400px;
    transition: transform 0.5s ease;
}

.info-plate:hover {
    -webkit-transform:scale(2.5);
    transform:scale(2.5);
}

ul.personlist {
    font-size: 1rem;
    padding-left: 0;
}

ul.personlist li {
    list-style: none;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.personlist .phone-link, .personlist .email-link {
    display: block;
}

@media all and (max-width: 1231px) {
    .nav-bar {
        flex-basis: auto;
        flex-wrap: wrap;
    }
}

@media all and (max-width: 925px) {
    #foot_logo {
        height: 35px;
    }
}

@media all and (max-width: 768px) {
    #foot_logo {
        height: 25px;
    }
}

/*mobile users only*/
@media all and (max-width(480px) {
    -webkit-text-size-adjust: 100%;
}

