/* GDPR */
#gdpr-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  z-index: 9999;
}

#reject-btn {margin-left: 20px; }

#gdpr-popup > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
}

/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Roboto Condensed */
@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/RobotoCondensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Lato */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif!important;
}

a, button {
  font-family: 'Roboto Condensed', sans-serif!important;
}

p, ul, ol {
  font-family: 'Lato', sans-serif!important;
  font-size: 20px;
}

.keskitetty {text-align: center!important;}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
	background-image: url('../images/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
	position: relative;
}

body::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: -1; 
}

/*Fontit */
.rivi {line-height: 5px;} 
.sivupalkki {font-size: 26px; font-weight: bold;}
h1, h2, h3 {font-size:26px!important;}
h4, h5, h6 {font-size:20px!important;}
.mobile-menu {display:none;}

.boxed-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
	background-color:white;
}

/* Headerin tyylit */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	background-color: #00C853;
	padding: 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo-kuva {width: 280px; height: auto; }

.custom-box {
    display: flex;
    align-items: center;
}

.custom-box-column {
    padding: 5px;
}

.custom-box img {
    width: 100px;
    height: 100px;
	border-radius: 50%;
	box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.custom-box-text {
    flex: 1;
	margin-left: 15px;
	margin-right: 15px;
	background-color: white;
	border-radius: 5px;
	padding: 10px;
	box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.footerLinkki {color:white!important; text-decoration: none; font-weight: bold; letter-spacing:1.2px;}

@keyframes pulse {
    0% {
        transform: scale(1); 
    }
    50% {
        transform: scale(0.95); 
    }
    100% {
        transform: scale(1); 
    }
}

/* PC/Tablet valikko */
.main-menu {
    background-color: #009624;
	padding: 10px;
	display: flex;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-menu li {
    margin-right: 20px;
	background-color: #64DD17;
	border-radius: 50px;
	cursor: pointer;
	padding: 10px;
	box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.main-menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
	padding: 10px;
	font-size: 22px;
}


/* Mobiili valikko */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
	margin-top: 15px;
    width: 30px;
    height: 30px;
}

.menu-icon, .menu-icon:before, .menu-icon:after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000;
    transition: all 0.3s ease;
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    bottom: -8px;
}

.mobile-menu-open .menu-icon {
    transform: rotate(45deg);
}

.mobile-menu-open .menu-icon:before {
    transform: translateY(8px) rotate(-90deg);
}

.mobile-menu-open .menu-icon:after {
    display: none;
}

/* Otsikko alue */
.banner { 
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    padding: 100px 0;
	margin: -20px -20px 20px -20px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
}

/* Sivupalkin kanssa kontsa */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.layout-with-sidebar {
    display: flex;
    flex-direction: column; 
}

.sidebar {
    flex-basis: 25%;
    padding-left: 10px;
	padding-right: 10px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; border-radius: 10px; padding: 20px;
}

.content {
    flex-basis: 75%;
	margin-right: 20px!important;
}

/* Ilman sivupalkkia */
.layout-without-sidebar .content {
    width: 100%;
}

/* Footerin tyylit */
footer {
    background-color: #1B5E20;
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 16px;
    color: white!important;
}
.language-selector select { margin-top: 7px;background-color:#64DD17; padding: 6px; font-weight: bolder; font-size: 16px; border-radius: 5px; border: none;}
/* Tablet/PC näyttö */
@media screen and (min-width: 768px) {
	
    .layout-with-sidebar {
        flex-direction: row; 
        justify-content: space-between;
        align-items: flex-start; 
    }
	
	.grid-system {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
	margin-bottom: 30px;
	
	}

	.grid-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
	text-align: center;
	
	}
}

/* Mobiili näyttö */
@media screen and (max-width: 768px) {
	.banneriKuvake{width:100%!important; height:auto;}
	.taulukko{max-width: 800px; overflow-x: auto;}
	#reject-btn {margin-left: 0px !important; margin-top: 15px!important; }
	.container {text-align: center!important}
	ul, li {list-style: none!important; text-align: left!important;}
	.banner-content hr {margin-right: 0px!important; margin-left: 0px!important;}
    .custom-box {display:none;}
	.main-menu {display:none;}
	.logo-kuva {width: 250px; height: auto; }
	body {background-image: none!important;}
    .mobile-menu ul {
        display: inline-block; 
		text-align: center;
    }
	.banneriKuva{margin:0px;}
	.language-selector {text-align: center;}
	.language-selector select {margin-bottom: 20px;}
    .mobile-menu li {
        margin-right: 0;
        margin-bottom: 10px;
		background-color: #64DD17;
		list-style: none;
		border-radius: 15px;
		padding: 10px;
    }

.mobile-menu li a {color: black;text-decoration: none; font-weight: bold; font-size:20px;}

    .mobile-menu {
        display: none;
		background-color: #00C853;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-open .main-menu {
        display: block;
    }

    .mobile-menu-open .logo {
        margin-right: 30px;
    }
    
    .layout-with-sidebar {
        flex-direction: column; 
    }

    .sidebar {
        flex-basis: 100%;
        padding-bottom: 20px; 
    }

    .content {
        flex-basis: 100%;
		margin-right:  0px!important;
    }
	
	.grid-item {margin-bottom: 20px; padding: 10px; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; border-radius: 10px;text-align: center; }
    .footer-content {
        flex-direction: column;
    }
    .footer-row {
        flex-basis: 100%;
    }
}

/* Kopiointi suoja */
@media print {html, body {display: none;}}
p, h1, h2, h3, h4, h5, h6, img, iframe, br, li, ul, a, div{-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
img, picture, a {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/*Kustom selaus palkki */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px grey; 
  border-radius: 0px;
	border: 0px!important;
}
 
::-webkit-scrollbar-thumb {
  background:  black;
	height: 10px;
}


/* Style for the feedback container */
.feedback-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Laskuri */
        table {
            margin: 0 auto;
        }

        table td {
            padding: 5px 5px;
        }

	   form {
            text-align: center;
			margin-right: 20px;
        }

        label {
            display: block;
            margin-bottom: 10px;
        }

        input[type="number"] {
            width: 100%;
            padding: 5px;
            margin-bottom: 10px;
        }
		.laskuri {text-align: center;}
		.kaava {
            font-size: 20px;
            line-height: 1.5;
        }
/* UKK Banneri */
.ukk { 
	background-image: url('../images/ukk-alueen-tausta.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 5px 0;
	margin: 20px -20px 20px -20px;
	
}

.ukk-content {
    max-width: 800px;
    margin: 0 auto;
	
}

.ukk h2, .ukk h3 {
    font-size: 26px;
    margin-bottom: 20px;
	font-weight:bolder!important;
}

		table {
            width: 100%;
            border-collapse: collapse;
			
        }

        table, th, td {
            border: 1px solid #ccc;
        }

        th, td {
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2; 
        }

        tr:not(:first-child) {
            background-color: #fff; 
        }

        .nappi {
            background-color: #0074cc;
            color: white;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
			border-radius: 10px;
			font-size: 20px;
			cursor: pointer;
			margin: 5px;
        }

        .hidden {
            display: none;
        }
		
		.lainaTyypit {
            text-align: center;
            margin-bottom: 20px;
        }
		
		.lainaNappi {
    background-color: #FF824C;
    color: #fff;
    padding: 5px 10px;
	font-size: 20px;
    border: none;
    cursor: pointer;
	border-radius: 10px; 
	color: white; 
	animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1); 
    }
    50% {
        transform: scale(0.95); 
    }
    100% {
        transform: scale(1); 
    }
}
.banneriKuvake {margin-top: 30px; } 
.banneriKuva {text-align: center!important;}

.social-share-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    background-color: #fff;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    padding: 10px;
}

.share-button {
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.share-button img {
    width: 30px; 
    height: 30px; 
}

#copy-url-button {
    background: none; 
	padding: 0px!important;
	border: none;
    width: 30px; 
    height: 30px; 
}