/* GDPR */
#gdpr-popup {
  display: none;
}

#reject-btn {margin-left: 20px; }

#gdpr-popup > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('../fontit/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

a, button {
  font-family: 'Roboto Condensed', sans-serif!important;
}

/* Roboto Condensed */
@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fontit/RobotoCondensed-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;
  font-size: 28px !important;
}

/* Lato */
@font-face {
  font-family: 'Lato';
  src: url('../fontit/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

p, ul, ol, main {
  font-family: 'Lato', sans-serif!important;
}

.sticky-header {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  margin-right: auto;
  font-size: 32px;
}
.nav-link {font-size: 26px;}
/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}
.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-section p {
  font-size: 1.2rem;
}
/* Text area */
  #text-area {
    padding: 40px 0;
  }
  #text-area h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #333;
  }
  #text-area p {
    font-size: 1.1rem;
    color: #666;
  }

  /* Sidebar */
  .content-section {
    background-color: #5BBAB5;
    border-radius: 10px;
    padding: 20px;
  }
  .content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
  }
  .content-section p {
    font-size: 1rem;
    color: #666;
  }
  
  /* Promo Stuff */
    .listing-item {
      border: none;
      margin-bottom: 20px;
      padding: 20px;
      position: relative;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      transition: all 0.3s ease;
      background-color: #f8f9fa; /* Default background color */
    }
    .listing-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .listing-item .number {
      position: absolute;
      top: -10px;
      left: -10px;
      background-color: #dc3545; /* Red color */
      color: #fff;
	  font-weight:bold;
      padding: 10px 15px;
      border-radius: 50%;
    }
    .listing-item img {
      max-width: 100%;
      border-radius: 5px;
    }
    .promo-text {
      font-size: 20px;
      font-weight: bold;
      margin-top: 20px;
	  margin-bottom: 10px;
	  text-align: center;
	  letter-spacing: 0.8px;
    }
	
	.promo {position: relative;
    top: -30px;
    background-color: white;
    border-radius: 10px;
    border: solid;
    text-align: center;
    height: 40px;
	padding: 5px 0px;}
	
	.promo h2 {font-size:0.9em!important; font-weight: bold;}
	.promoKuva {margin-top: -25px!important; margin-bottom: -15px!important; width: 100%!important; height: auto;}
	.white p{color:black !important; letter-spacing: 0.8px!important; font-weight: normal;}
	.white > .promo-text {font-size: 20px!important; font-weight: bold;}
	
.highlight {background-color: #dff0d8; font-weight: bold;}

#stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.sahko {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s, transform 0.3s;
}


#highest-price {
    background-color: #ff6f61; 
    color: #000;
}

#lowest-price {
    background-color: #4db6ac; 
    color: #000;
}

#average-price {
    background-color: #ffca28; 
    color: #333;
}

.sahko:hover {
    background-color: #e0e0e0;
    transform: translateY(-5px);
}

.soppari {
	padding: 20px;
    background-color: #f4f4f9;
	border-radius: 10px;
	margin-bottom: 20px;}
	
	table {
		width: 100%;
		border-collapse: collapse;
		margin-bottom: 20px;
		background-color:white;
	}
	.taulukko {
	  max-width: 1280px; 
	  margin: 0 auto; 
	  border-collapse: collapse;
	  overflow-x: auto;
	}
	th, td {
	  padding: 10px;
	  
	}
	
	th {background-color: #007BFF;color:white; font-size: 20px; }
    tr:nth-child(even) { background-color: #E9EFFF;}
    tr:hover {background-color: #D6F0EE;}
	
	.listing-item > .text-center {letter-spacing: 0.8px;}
	
    /* Review Section Styling */
    .review {
      margin: 20px 0px;
	  text-align:center;
    }
    .review-label {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 10px;
	  letter-spacing: 0.8px;
    }
    .progress {
      height: 10px!important;
      border-radius: 10px!important;
      overflow: hidden!important; 
    }
    .progress-bar {
      transition: width 0.5s ease-in-out!important;
      background-color: #ffc107!important;
      background-image: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%)!important;
	  color: #000;
	  font-weight: bold;
    }
    /* Button Styling */
    .btn-custom {
      background-color: #A70039;
      color: #fff;
      border: none;
	  letter-spacing: 0.8px;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%; 
      animation: pulse 0.7s infinite alternate; 
    }
    .btn-custom:hover {
      animation: none;
	  background-color: #A70039;
	  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	  color:white!important;
    }
	.btn-gene {
      background-color: #A70039;
      color: #fff;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
    }
    .btn-gene:hover {
	  background-color: #A70039;
	  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	  color:white!important;
    }
	#result{margin-top:10px;}
	.mobile{margin-bottom: 10px;}
    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      100% {
        transform: scale(1.03);
      }
    }
/* Footer Section */
footer {
  padding: 20px 0;
}
footer p {
  font-size: 1rem;
  color: #ccc;
}
.footerLinkki{color: white!important;}
  .pc{display:block;}
  .mobile{display:none;}
/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  /* Adjustments for smaller screens */
  .top-bar  {
    display: none;
  }
  .sticky-header {
    padding: 10px 0;
  }
  .navbar-brand {
    margin-right: 0;
  }
  .hero-section {
    padding: 80px 0;
  }
  .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  .hero-section p {
    font-size: 1rem;
  }
}
@media (max-width: 991px) {  .mobile{display:block;}
@media (max-width: 575px) {  .img-fluid{width: 100%; height: auto;}}
.pc{display:none;}}
/* 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;
}
