* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  margin-top: 80px;
  background-image: url(./img/top\ left.png);
  background-repeat: no-repeat;
  background-position: 81.84% 5%;
  background-size: 85%;
  background-attachment: fixed;
}


header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ruk {
  width: 100%;
  height: 2300px;
  background-color: white;
  margin-top: 800px;
  z-index: 1;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 45px;
  text-align: center;
}

.logo {
  height: 50px;
}

.navbar {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed; /* Makes the navbar fixed on the screen */
  top: 0; /* Positions it at the top */
  left: 0; /* Aligns it to the left */
  width: 100%; /* Spans the full width of the screen */
  background-color: white; /* Ensures a white background */
  z-index: 1000; /* Keeps it above other elements */
  border-bottom: 1px solid #ccc; /* Optional: Adds a bottom border */
  padding: 10px 20px; /* Adjust padding as needed */
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
}

.nav-links li a {
  text-decoration: none;
  color: #636363;
  font-size: 14px;
  padding: 5px 10px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-links li a:hover {
  color: red;
}

.nav-links li a.active {
  color: white;
  background-color: red;
  border-radius: 5px;
}

.search-container {
  position: relative;
}

.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
  outline: none;
}

.search-bar {
  display: none;
  width: 200px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search-bar.active {
  display: inline-block;
  transition: width 0.3s ease;
}

main {
  text-align: center;
  margin: 50px 20px;
  position: relative;
  padding-top: 100px;
}

.logo-section {
  margin-top: 20px;
  position: relative;
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: white;
  line-height: 1.5;
}

.english-title {
  display: block;
  font-size: 20px;
  color: #ffcc00;
  margin-bottom: 5px;
}

.main-title {
  font-size: 40px;
  color: white;
}

footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  overflow: hidden;
}

.insta {
  width: 25px;
  height: 25px;
  border-radius: 50px;
}

.insta:hover {
  background-color: red;
}

.so {
  font-family: 'Times New Roman', Times, serif;
  color: crimson;
  font-size: 32px;
}

.org {
  display: inline-block; /* Make sure images are inline */
  margin: 10px; /* Add space between images */
  text-align: center; /* Center the images */
}

.sot {
  font-family: 'Times New Roman', Times, serif;
  color: crimson;
  font-size: 16px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* Add some space between the items */
  padding: 0;
  width: 100%;
  justify-items: center; /* Center the items within each grid cell */
  align-items: center; /* Align the items vertically in the grid */
}

.skolija {
  display: flex; /* Use flexbox to ensure images and text are aligned */
  flex-direction: column; /* Stack the image and text vertically */
  justify-content: center;
  align-items: center; /* Center the content horizontally */
  width: 100%; /* Ensure each item takes up full width available */
}

.shko {
  width: 320px; /* Make sure the images are fixed width */
  height: 320px;
  object-fit: cover; /* Ensure images fit properly */
}

.shtip {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  color: gray;
  font-size: 25px;
  text-decoration: none;
  margin-top: 10px; /* Add some space between the image and the text */
  margin-bottom: 150px;
}

a {
  text-decoration: none;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
  /* Adjust header layout */
  header {
    flex-direction: column;
    padding: 10px;
  }

  .logo {
    height: 30px;
  }

  /* Stack navigation links vertically */
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .main-title {
    font-size: 30px;
  }

  .title {
    font-size: 26px;
  }

  .ruk {
    font-size: 35px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    gap: 10px;
  }

  .shko {
    width: 200px; /* Smaller images on mobile */
    height: 200px;
  }

  .search-bar {
    width: 100%;
  }

  footer {
    padding: 15px;
  }

  .insta {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 480px) {
  .main-title {
    font-size: 24px;
  }

  .title {
    font-size: 22px;
  }

  .ruk {
    font-size: 28px;
  }

  .logo {
    height: 25px;
  }

  .nav-links {
    gap: 10px;
  }

  .search-bar {
    width: 100%;
  }

  footer p {
    font-size: 12px;
  }
}

.italica {
  font-size: 35px;
  color: navy;
}

.vaka {
  font-size: 25px;
  text-align: center;
}

.slikichki {
  width: 250px;
  height: 250px;
  padding: 90px;
  
}

.counter-container {
  text-align: center; /* Center the counter */
  margin-top: 20px; /* Add space at the top */
  padding: 10px;
  background-color: #f3f4f6; /* Light gray background */
  border: 2px solid #4caf50; /* Green border */
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Make it fit content */
}


.pred {
  text-align: left;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto; /* Centers the text on the page */
  padding: 20px 0; /* Removes the box-like appearance */
  font-size: 25px;
  color: black; /* Ensures the text color is black */
  line-height: 1.8; /* Adds spacing between lines */
}

.pred strong {
  color: black; /* Keeps strong text black */
}

.pred em {
  font-style: italic;
  color: black; /* Ensures italic text is black */
}

.pred a {
  color: black;
  text-decoration: underline; /* Makes links underline for emphasis */
  font-weight: bold;
}

.pred a:hover {
  text-decoration: none; /* Removes underline on hover */
}

.donation-section {
  flex: 3; /* Allows the image section to take up more space */
  display: flex;
  justify-content: flex-start; /* Aligns the image closer to the text */
  align-items: center; /* Vertically aligns the image with the text */
  margin-left: 600px; /* Moves the image closer to the text */
}

/* Donation image styling */
.donation-image {
  width: 80%; /* Scales the image to 80% of the container width */
  max-width: 300px; /* Prevents the image from becoming too large */
  height: auto; /* Maintains the image's aspect ratio */
  border: none; /* Removes any borders */
  margin-right: 20px; /* Controls spacing between the image and text */
}

/* Text section styling */
.donation-text {
  flex: 2; /* Allows the text to take up more space */
  font-size: 18px; /* Adjust font size for clarity */
  line-height: 1.8;
  color: #333; /* Dark text for readability */
  text-align: left; /* Aligns the text to the left */
  margin-left: 30px; /* Adds padding to the left for alignment */
}

.donation-text p {
  margin-bottom: 15px; /* Adds spacing between paragraphs */
}

.donation-text strong {
  color: #007BFF; /* Use blue for emphasis */
}