/*=====================General=====================*/
*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  height: 100%;
}

body {
  margin: 0;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
}

/*================Header -> Logo================*/
#header {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 999;
  top: 0;
  background-color: #f5f5f5;
  display: flex;
  justify-content: space-between;
}

#header .logo {
  height: 80px;
  line-height: 80px;
}

#header .logo img {
  width: 100%;
  max-width: 202px;
  min-width: 152px;
  height: auto;
  transition-duration: 0.4s;
}

#header .logo img:hover {
  opacity: 0.7;
}

#header ul {
  float: right;
  list-style: none; /* Hides list points */
  margin: 0;
  padding: 0;
}

#header ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

#header ul li a {
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  color: #000;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: all 0.5s;
}

a.active, #header ul li a:hover {
  background: rgba(153, 153, 153, 0.4);
}

/* Hamburger menu */
.checkbtn {
  font-size: 30px;
  color: #000;
  float: right;
  width: fit-content;
  line-height: 80px;
  padding: 0;
  cursor: pointer;
}

#check {
  display: none;
}

@media (max-width: 390px) {
  #header .logo {
    width: 162px;
    padding: 0 25px;
  }
}

/* Hide the hamburger button on larger screens */
@media (min-width: 1471px) {
  .checkbtn {
    display: none;
  }

  #header ul {
    position: static;
    width: auto;
    height: auto;
    background: none;
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: flex-end; /* Align to the right */
  }

  #header ul li {
    display: inline-block;
    margin: 0 10px; /* Spacing between items */
  }
}

/* Media query for smaller screens (already in place) */
@media (max-width: 1470px) {
  .checkbtn {
    display: block !important;
    margin-right: 40px;
  }

  #header ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 80px;
    left: -100%;
    background: #BfBfBf;
    transition: all 0.5s;
    text-align: center;
  }

  #check:checked ~ ul {
    left: 0;
  }
}

/*===============Main -> Intro==============*/
#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url("./../images/glowna-zdjecie.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

#intro h1 {
  font-size: clamp(2rem, 12vw, 8rem) !important;
  font-family: 'Philosopher', sans-serif;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  cursor: default;
}

#intro h2 {
  font-size: clamp(2rem, 4vw, 8rem);
  font-family: 'Philosopher', sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  margin: 5px;
  cursor: default;
}

#intro a button {
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 7rem);
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.4);
  border: 2px solid #fff;
  background: none;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

#intro a button:hover {
  transform: scale(1.1);
  transition-duration: 0.3s;
}

/*===============content Section==============*/
#content {
  padding: 5vw;
  background: linear-gradient(#adadad 70%, #fff);
}

.my-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#content h2, #content h1{
  text-align: center;
}

#content img {
  max-width: 300px; /* Make the image smaller */
  height: auto;
  border: 3px solid #525252;
  border-radius: 20px;
  margin: 10px;
}

.my-content a {
  text-decoration: none;
  color: #fff;
}

.next-page-button {
  padding: 5px 5px;
  font-size: 18px;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.next-page-button:hover {
  background-color: #555;
}

/*===============Container Gallery==============*/
.container-gallery {
  display: flex;
  justify-content: center; /* Center images horizontally */
  flex-wrap: wrap; /* Allow wrapping */
  gap: 20px; /* Spacing between images */
}

.container-gallery img {
  max-width: 250px; /* Smaller image size */
  height: auto;
  border-radius: 15px;
}

#gallery-h2 {
  text-align: center; /* Center the text */
  margin: 20px 0; /* Optional: add some vertical spacing */
  width: 100%; /* Ensure full width */
  background-color: rgba(190, 190, 190, 0.4); 
}

#gallery-h2 h2 {
  margin: 0; /* Remove default margin for better centering */
}

/*===============Desc Section==============*/
.desc {
  text-align: center; /* Center the text */
  font-family: 'Merriweather Sans', sans-serif;
  color: #333;
  font-size: 1.2rem;
  margin-top: 20px;
}

/*===============LinkedIn Container==============*/
.linkedin-logo-container {
  display: flex;
  justify-content: center; /* Center the logo */
  margin-top: 20px;
}

.linkedin-text-container {
  display: flex; /* Use flexbox to center content */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
}

.linkedin-text-container img {
  max-width: 200px; /* Make the image smaller */
  border: 3px solid #525252;
  border-radius: 20px;
  height: auto; /* Maintain aspect ratio */
  margin: 0 auto; /* Center image */
}


/*===============Stylized Containers==============*/
.linkedin-text-container,
#blog-link,
#contact-form-container {
  border: 2px solid #cccccc; /* Add a subtle border */
  border-radius: 10px;
  padding: 20px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a shadow for depth */
  margin-top: 30px;
  text-align: center; /* Center text within containers */
}

#blog-link h2, #contact-form-container h2, .linkedin-text-container h2 {
  font-size: 1.5rem;
  color: #444;
}

/*===============Contact Form Container==============*/
#contact-form-container {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Align to the start of the container */
  justify-content: center;
  padding: 20px; /* Padding inside the container */
}

#contact-form-container label {
  margin-top: 10px; /* Add space above labels */
  font-size: 1rem; /* Font size for labels */
  width: 100%; /* Full width for better alignment */
}

#contact-form-container input,
#contact-form-container textarea {
  width: 100%;
  padding: 10px 0px; /* Add padding for comfort */
  padding-left: 3px;
  margin-top: 5px; /* Space between label and input */
  border: 1px solid #ccc; /* Border for inputs */
  border-radius: 5px; /* Rounded corners */
}

#contact-form-container button {
  margin-top: 15px; /* Space above the button */
  padding: 10px 20px; /* Padding for the button */
  border: none; /* Remove default border */
  border-radius: 5px; /* Rounded corners */
  background-color: #007BFF; /* Button color */
  color: #fff; /* Button text color */
  cursor: pointer; /* Pointer on hover */
  max-width: 200px; /* Limit button width */
}

#contact-form-container button:hover {
  background-color: #0056b3; /* Darker button color on hover */
}

/*===============Social Icons==============*/
.social-icons {
  display: flex;
  justify-content: center; /* Center icons */
  margin-top: 10px;
}

.social-icons a {
  margin: 0 10px;
  color: #000;
  font-size: 1.5rem; /* Size of icons */
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #454545;
}

/*===============Progress Bars============*/
.chart {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8.3vw;
  height: clamp(20px, 3.3vw, 50px);
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.bar {
  animation: load 3s forwards; /* Triggers the animation */
  background: #515151;
  border-radius: 8.3vw;
  min-height: clamp(20px, 2.5vw, 50px);
  width: 0;
  transition: width 3s; /* Smooth transition for width change */
  --progress-value: 0%; /* Default value to ensure bars start from 0 */
}

@keyframes load {
  0% {
    width: 0;
  }
  100% {
    width: var(--progress-value); /* Uses the custom property to set the final width */
  }
}

#value1, #value2, #value3, #value4 {
  color: #fff;
  font-weight: bolder;
}

/*===============Footer===================*/
footer {
  background: linear-gradient(#fff 1%, #adadad 99%);
  text-align: center;
  padding: 20px;
  color: #333;
  font-family: 'Philosopher', sans-serif;
}

footer h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

footer a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  color: #555;
}

footer .social-icons {
  margin-top: 15px;
}

footer .social-icons a {
  font-size: 1.5em;
}

footer .social-icons a:not(:last-child) {
  margin-right: 15px;
}

/*===============Media Queries===============*/
@media (max-width: 690px) {
  .my-content {
    flex-direction: column;
    align-items: center;
  }

  #intro h1, #intro h2 {
    text-align: center;
  }
}

/*===================Cookies=================*/
.cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

.cookie-container img {
  max-width: 50px;
  margin-right: 15px;
}

.cookie-container p {
  flex: 1;
  margin: 0;
  padding: 0;
}

.cookie-container button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.cookie-container.hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/*===================Blog Posts=====================*/
.blog-posts {
  width: min(1200px, 100%);
  padding: 5px 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  cursor: pointer;
  font-family: 'Merriweather Sans', sans-serif;
}

.blog-posts a{
  text-decoration: none;
  width: calc(30% - 10px);
  overflow: hidden;
}

a .post-image {
  width: 95%;
  border-radius: 6px;
  transition: 0.3s linear;
}

a .post-content {
  background-color: #ffffffdd;
  margin: 0 20px;
  padding: 30px;
  border-radius: 6px;
  transform: translateY(-60px);
  transition: 0.3s linear;
}

a .post-content h3 {
  font-size: clamp(8px, 1.5vw, 16px);
  margin-bottom: 10px;
  color: #303030;
}

a .date {
  font-size: clamp(7px, 1.5vw, 15px);
  font-style: italic;
  color: rgb(110, 110, 110);
}

a .post:hover .post-image {
  transform: translateY(20px);
}

a .post:hover .post-content {
  transform: translateY(-80px);
}

@media (max-width: 700px) {
  a .post-content {
    display: none;
  }

  .blog-posts {
    width: max(100%, 280px);
  }

  .blog-posts a{
    width: calc(50% - 5px);
  }
}

/*===========This Post Is Made By==========*/
.post-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  border: 2px solid #ccc;
  border-radius: 10px;
  width: 20%;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 10px 0;
}

.post-container:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.admin-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.admin-text {
  color: #333;
  font-size: 14px;
}

@media (max-width: 768px) {
  .post-container {
      width: 50%;
  }

  .admin-text {
      font-size: 12px;
  }
}

/*==============Post List===========*/
.post-list-container {
  width: 50%;
  max-width: 600px;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Styl nagłówków */
.post-list-container h2 {
  color: #333;
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-align: center;
}

/* Stylizacja dla paragrafu */
.post-list-container p {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Stylizacja linków */
.post-list-container a {
  color: #666;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.post-list-container a:hover {
  color: #000;
  border-bottom: 1px solid #888;
}

/* Stylizacja dla różnych klas linków */
.a1, .a2, .a3, .a8 {
  padding-left: 5px;
}

.a1:hover, .a2:hover, .a3:hover, .a8:hover {
  color: #444;
}

/* Stylizacja responsywna */
@media (max-width: 768px) {
  .post-list-container {
      width: 90%;
  }

  .post-list-container h2 {
      font-size: 16px;
  }

  .post-list-container a {
      font-size: 14px;
  }
}

/*===============Code Blocks============*/
pre {
  margin: 20px auto;
  width: 70%;
  max-width: 100%; /* Ensures it doesn't overflow */
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap; /* Allows wrapping on small screens */
  word-wrap: break-word; /* Break long words if needed */
}

@media screen and (max-width: 960px) {
  pre {
    width: 280px; /* Adjusts width for smaller screens */
  }
}

/*===============Flask Shop============*/
.container {
  flex: 1 0 auto;
  padding-top: 80px;
  padding-bottom: 20px;
  margin: 0 1.5rem;
  overflow: auto;  
  background: #fff;
}

ul.product-list,
ul#cart-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
ul.product-list li,
ul#cart-list li {
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}
ul.product-list li:last-child,
ul#cart-list li:last-child {
  border-bottom: none;
}
ul.product-list li a {
  color: #007bff;
  text-decoration: none;
}
ul.product-list li a:hover {
  text-decoration: underline;
}

button,
input[type="submit"] {
  display: inline-block;
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
button:hover,
input[type="submit"]:hover {
  background-color: #218838;
}

form {
  margin: 1rem 0;
}
form label {
  display: block;
  margin-bottom: 0.5rem;
}
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[name="name"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form h2 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: #333;
}

#cart-summary {
  margin: 1rem 0;
  font-size: 1.1rem;
}
#cart-summary strong {
  color: #000;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #6c757d;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.product-image {
  flex: 1 1 250px;
  max-width: 300px;
}

.product-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-info {
  flex: 2 1 300px;
}

.product-info h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.product-info .price {
  font-size: 1.25rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.extra-info h2 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.extra-info p {
  white-space: pre-wrap;  /* honoruje nl2br */
  margin-bottom: 1rem;
}