:root {
    height: 100%;
    box-sizing: border-box;
    background: #FFF;
    --brand-color: rgb(0, 159, 227);
    --brand-color-first: rgb(51, 178, 233);
    --brand-color-second: rgba(102, 197, 238, 1);
    --brand-color-third: rgba(178, 226, 247, 1);
    --brand-secondary: rgba(0, 64, 112, 1);
    --brand-secondary-first: rgb(52, 102, 141);   
    --brand-secondary-second: rgba(102, 140, 169, 1);
    --brand-secondary-third: rgba(178, 197, 212, 1);
    --brand-grey: rgb(191, 197, 202);
    --brand-grey-first: rgba(203, 208, 212, 1);
    --brand-grey-second: rgba(216, 220, 223, 1);
    --brand-grey-third: rgba(236, 238, 239, 1);
    --valid-color: rgb(0, 159, 227);
    --invalid-color: rgb(207, 46, 46);
}

body {
    --webkit-text-size-adjust: 100%;
    background-color: #FFF;
    font-family: 'barlowregular';
    color: #000;
    min-height: 100vh;
    padding-bottom: 220px;
    display: flex;
    flex-direction: column;
}

html {
    padding: 0;
    height: 100%;
}

/*Footer*/
footer {
    clear: both;
    padding-bottom: 0;
    background-color: var(--brand-color);
}

.foot-box {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.foot-box p {
    font-size: 1rem;
}
    
.copyright {
    font-size: 0.95rem;
    font-family: 'barlowregular';
    font-weight: 500;
    letter-spacing: -2%;
}

.box {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.box .foot-link {
    font-size: 0.95rem;
    font-family: 'barlowsemibold';
    font-weight: 700;
    text-decoration: underline;
    letter-spacing: 0%;
    color: #000; 
    margin: 0 0.5rem 0 0.5rem;
}

a:link, a:visited {
    color: #000;
    text-decoration: none;
}

a:active, a:hover {
    color: #000;
    text-decoration: none;
}

/*Modals*/
.modal-body ol li {
    font-size: 1rem;
    font-family: 'barlowregular';
}

/*Bootstrap Table Styling*/
.table-primary th {
    background-color: var(--brand-color) !important;
}

.table-secondary th {
    background-color var(--brand-color-grey) !important;
}

.table-striped th {
    background-color: var(--brand-color-third) !important;
}

.custom-hover tbody tr:hover {
    background-color: var(--brand-color-third) !important;
}

th, td  {
    font-family: 'barlowregular';
    font-size: 1rem;
}

.alert-success {
    background-color: var(--brand-color-first) !important;
    border-color: var(--brand-color-first) !important;
}

/*Forms*/
form, label {
    font-family: 'barlowregular';
    font-size: 1rem;
}

.form-control:focus, 
.form-select:focus {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0,159,227)!important;
} 

.form-control:valid, 
.form-select:valid {
    color: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.was-walidated .form-control:valid:focus, 
.form-control.is-valid:focus {
    color: #000;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0,159,227)!important;
}

.was-validated .form-select:valid:focus, 
.form-select.is-valid:focus {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0,159,227)!important;
}

.form-control:valid::-webkit-validation-bubble,
.form-control:invalid::-webkit-validation-bubble {
    display: none !important;
}

.form-control:valid,
.form-select:valid {
    position: relative; 
    background-image: none !important; /* Remove the default background checkmark icon */
}

/*Inputs*/
form input, 
form select, 
form textarea {
    border: 1px solid var(--brand-grey-first) !important;
    border-radius: 0 !important;
}


/*Login*/
/* Login not in proper use in Tampere OL, and as such, not styled */
.login-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#login {
	overflow: hidden;
	border: 1px solid var(--brand-grey-second) !important;
	border-radius: 10px !important;
	box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

#login p a {
    text-decoration: underline;
}

.alternative {
    margin-left: 40px;
    text-align: start;
    white-space: pre-line;
    font-size: 1rem;
}

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

.login-body {
	padding: 2rem;
}

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

.login-text {
    text-align: center;
}

.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: 5px;
	outline: none;
	background: transparent;
}

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

.loginForm-input input:focus::placeholder {
	color: var(--brand-grey-third);
}

.form-box button {
    font-family: 'barlowbold';
	margin-top: 10px;
	border: 0px solid var(--brand-color) !important;
	cursor: pointer;
	background: var(--brand-color) !important;
	color: #FFF;
	font-size: 1rem;
	font-weight: 400;
	transition: 0.5s ease;
	padding: 10px 20px;
    border-radius: 25px !important;
	width: 100%;
}

.form-box button:hover {
	background: var(--brand-color-third) !important;
    border: 0px solid var(--brand-color-third) !important;
    color: #000;
	transition: 0.5s ease;
}
/*---End Login ---*/

/*Headings*/
h1 {
    font-family: 'barlowblack';
    font-size: 2.625rem;
    letter-spacing: -0.02em;
    line-height: 120%;
    color: rgba(0, 0, 0, 1);
}

h2 {
    font-family: 'barlowsemibold';
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 120%;
    color: rgba(0, 0, 0, 1);
}

h3 {
    font-family: 'barlowsemibold';
    font-size: 1.75rem;
    letter-spacing: normal;
    line-height: 120%;
    color: rgba(0, 0, 0, 1);
}

h4 {
    font-family: 'barlowsemibold';
    font-size: 1.5rem;
    letter-spacing: normal;
    line-height: 120%;
    color: rgba(0, 0, 0, 1);
}

p {
    font-family: 'barlowregular';
    font-size: 1rem;
    letter-spacing: normal;
    color: rgba(0, 0, 0, 1);
}

.description {
    font-family: 'barlowregular';
    font-size: 1.5rem;
    line-height: 120%;
    color: #000;
}

.subtitle {
    font-family: 'barlowregular';
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: normal;
    color: #000;
    padding: 0 0 2rem 0;
}

/*Fonts*/
@font-face {
    font-family: 'barlowblack';
    src: url('../ext/font-barlow-1.0.0/barlow-black-webfont.woff2') format('woff2');
         font-weight: normal;
         font-style: normal;
}

@font-face {
    font-family: 'barlowbold';
    src: url('../ext/font-barlow-1.0.0/barlow-bold-webfont.woff2') format('woff2');
         font-weight: normal;
         font-style: normal;
}

@font-face {
    font-family: 'barlowsemibold';
    src: url('../ext/font-barlow-1.0.0/barlow-semibold-webfont.woff2') format('woff2');
         font-weight: normal;
         font-style: normal;
}

@font-face {
    font-family: 'barlowregular';
    src: url('../ext/font-barlow-1.0.0/barlow-regular-webfont.woff2') format('woff2');
         font-weight: normal;
         font-style: normal;
}

/*Navs*/
.navbar-one {
    color: #FFF;
    height: 90px;
    margin 0;
    top: 0;
    width: 100%;
    clear: both;
    align-items: left;
    cursor: pointer;
}

#container {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#logo {
    padding-left: 2%;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.logo {
    max-width: 15rem;
    width: auto;
    height: auto;
    display: block;
}

.navbar-custom {
    background-color: #FFF;
    color: #000;
}

#main-bar .navbar-brand {
    padding-left: 2%;
}

#end-custom {
    padding-right: 4%;
}

#mainmenu {
    background: #FFF !important;
} 

#mainmenu .nav-link {
    font-family: 'barlowregular';
    font-size: 1rem;
    color: #000 !important;
}

#mainmenu .nav-link:hover {
    background-color: var(--brand-grey-third);
}

.navbar-brand, 
.navbar-brand:hover, 
.navbar-brand:active {
    font-family: 'barlowsemibold';
    font-weight: 500;
    text-decoration: none;
    color: #000;
}

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

.nav-link:focus, 
.nav-link:hover {
    font-family: 'barlowregular';
    font-size: 1rem;
    color: #000;
}

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

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

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

.navbar-collapse.collapsing, 
.navbar.collapse {
    background-color: rgba(255, 255, 255, 1);
}

/*Buttons*/
/*General Button Styles*/
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    border: solid var(--brand-color)!important;
    background: var(--brand-color);
    color: #000 !important;
    font-family: 'barlowbold';
    font-size: 1rem;
    letter-spacing: 1.1%;
    line-height: 110%;
    padding: 10px 35px;
    border-radius: 25px !important;
    margin: 0.1rem;
    outline: none;
} 

.btn-primary:hover {
    background: var(--brand-color-third)!important;
    border: solid var(--brand-color-third)!important;
    text-decoration: none;
    outline: none;
    transition: all 0.3s ease;
}

.btn-primary:focus, 
.btn-primary:active,
.btn-secondary:focus,
.btn-seconday:active
.btn-secondary:visited {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled {
    background: var(--brand-grey-first)!important;
    border: solid var(--brand-grey-first)!important;
    color: #000;
}

.btn-secondary, 
#btn-temporary {
	border: solid var(--brand-color)!Important;
	background: #FFF;
	color: #000 !important;
    font-family: 'barlowbold';
    font-size: 1rem;
    letter-spacing: 1.1%;
    line-height: 110%;
    padding: 10px 35px;
    border-radius: 25px !important;
    margin: 0.1rem;
}

.btn-secondary:hover, 
#btn-temporary:hover {
    background: var(--brand-color) !important;
    color: #000;
    text-decoration: none;
    border: solid var(--brand-color) !important;
    transition: all 0.3s ease;
}

/*Additional Button Styling*/
#c-button, 
#btn-temporary {
    padding: 15px 35px;
}

#btn-location,
#btn-picker {
	border: solid var(--brand-color)!Important;
	background: #FFF;
    outline: none !important;
	color: #000 !important;
    font-family: 'barlowbold';
    font-size: 1rem;
    letter-spacing: 1.1%;
    line-height: 110%;
    padding: 15px 35px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
    margin: 0;
}

#btn-picker {
	border: solid var(--brand-color)!Important;
	background: var(--brand-color) !important;
}

#btn-location:hover {
    background: var(--brand-color) !important;
    color: #000 !important;
    text-decoration: none;
    border: solid var(--brand-color) !important;
    transition: all 0.3s ease;
}

#btn-picker:hover {
    background: var(--brand-color-third)!important;
    border: solid var(--brand-color-third)!important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-picker:focus, 
.btn-picker:active,
.btn-location:focus,
.btn-location:active {
    outline: none !important;
    box-shadow: none !important;
}

#btn-map {
	border: solid var(--brand-color)!Important;
	background: #FFF;
	color: #000 !important;
    font-family: 'barlowbold';
    font-size: 1rem;
    letter-spacing: 1.1%;
    line-height: 110%;
    padding: 10px 15px;
    border-radius: 10px !important;
    margin: 0.1rem;
}

#btn-map:hover {
    background: var(--brand-color) !important;
    color: #000 !important;
    text-decoration: none;
    border: solid var(--brand-color) !important;
    transition: all 0.3s ease;
}

.btn-info, 
.btn-info:hover {
    left: 10px;
    background: var(--brand-color-third);
    border: none;
    font-family: 'barlowbold';
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-dark, 
.btn-dark:hover {
    background: var(--brand-color-second);
    border: none;
    font-family: 'barlowbold';
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

#btn-auth {
    background: #FFF;
    border: solid 2px var(--brand-color);
    font-family: 'barlowbold';
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

#btn-auth:hover {
    background: var(--brand-color);
}

.btn-outline-primary {
    border: 1px solid var(--brand-grey-third) !important;
    background-color: var(--brand-grey-third) !important;
    color: #000 !important;
}

.btn-outline-primary .fa-plus {
    color: #000;
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.btn-outline-primary:hover {
    background-color: var(--brand-grey-third) !important;
    border: 1px solid var(--brand-grey-third) !important;
    color: #000 !important;
}

#btn-like {
    color: #000;
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
    padding: 8px 16px;
    outline: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
}


#btn-like:hover {
    background-color: var(--brand-grey-third) !important;
    border: var(--brand-grey-third) !important;
    color: #000 !important;
    display: block;
    background-size: 100%;
    top: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    transition: background-color: 0.3s ease, border-color 0.3s ease. color 0.3s ease;
}

/*Tabs and Nav Links*/
.connection-project-page-head ul li .nav-link.active { 
    color: #000;
    background-color: var(--brand-grey-third);
    border-color: var(--brand-grey-third);
}

.connection-project-page-head ul li .nav-link:hover, 
.connection-project-page-head ul li .nav-link:focus {
    color: #000;
    background-color: var(--brand-grey-third);
    border-color: var(--brand-grey-third);
}

.nav-pills .nav-link{ 
    font-family: 'barlowsemibold';
    border-radius: 0.25rem;
    margin: 0.1rem;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for color change */
}

.nav-pills .pill-1 .nav-link:not(.active) {
    background-color: var(--brand-grey-third);
    color: #000;
}

.nav-pills .pill-2 .nav-link:not(.active) {
    background-color: var(--brand-grey-third);
    color: #000;
}

.nav-pills .pill-1 .nav-link {
    color: #fff;
    background-color: var(--brand-color);
    font-family: 'barlowsemibold';
    border-color: var(--brand-color)!important;
    border-radius: 10px !important;    
}

.nav-pills .pill-2 .nav-link {
    color: #fff;
    background-color: var(--brand-color);
    font-family: 'barlowsemibold';
    border-color: var(--brand-color)!important;
    border-radius: 10px !important;    
}

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

#price-estim {
  color: #000;
}

/*Icons*/
.fa {
    color: var(--brand-color);
}
/* Specific icons */

.dropdown-toggle::after {
   color: var(--brand-color)!important; 
}
        
.table .dropdown-toggle::after {
    color: var(--brand-color)!important; 
}

.table-primary th a i.fa-edit {
     color: #000 !important;
} 

.table-primary .modify-buttons .dropdown-toggle a i.fa-edit {
   color: var(--brand-color) !important;  /* Change the modify icon to blue */
}

.table-primary th a i.fa-plus,
.table-primary th a i.fa-plus::before {
    color: #000 !important;
}

.table.primary .modify-buttons .dropdown-toggle.caret,
.table-primary .modify-buttons .dropdown-toggle::after { 
    color: #000 !important;
}

#btn-load i.fa-download {
    color: #000 !important;
}

#btn-load:hover i.fa-download {
    color: var(--brand-color) !important;
}

/*Cards*/
.background-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    text-align: center;
    background-color: #fff;
}

.background-container .title {
    margin-bottom: 3rem;
}

.card-deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card-deck .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.basic-card {
    object-fit: cover;
    height: 75px;
    width: 100%;
    max-width: 350px;
    flex: 1 1 calc(50% - 1.5rem); /* Allow 2 cards per row with a gap between */
    margin: 0 auto;
    text-align: center;
}

.basic-card {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 20rem;
}

.basic-card .card-body {
   justify-content: space-between;
} 

.basic-card p {
    line-height: 1.4rem;
    font-size: 1rem;
    min-height: 10rem; 
}

.basic-card a {
    align-self: center;
    bottom: 1rem;
    margin: 0.5rem;
}

.basic-card {
    flex: 1;
    height: 100%;
}

#special {
    line-height: 1.4rem;
    font-size: 1rem;
    min-height: 6rem; 
}


.button-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

@media all and (max-width: 1231px) {
    .nav-bar {
        flex-basis: auto;
        flex-wrap: wrap;
    }
}
@media (min-width: 992px) {
    #brand {
        padding-left: 100px;
    }
    .navbar-expand-lg  {
        padding-right: 100px;
        padding-left: 100px;
    }

}
@media all and (max-width: 991px) {
    #brand {
        width: 8rem;
    }
}

@media all and (max-width: 768px) {
    .basic-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .card-deck {
        gap: 1rem;
    }
}

@media all and (max-width: 670px) {
    
}

@media all and (max-width:540px) {
}

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

@media (orientation: landscape) {
    body {
        flex-direction: row;
    }
}

@media (orientation: portrait)  {
    body {
        flex-direction: column;
    }
}
