@import url('https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap');

*{
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   font-family: "Signika", sans-serif;
   font-weight: 500;
   font-style: normal;

}

html{
    font-size: 16px;
    font-size: clamp(16px, 1.3vw, 24px);
}


input,
textarea,
select,
button,
label {
    font-size: inherit;
}




button{
    cursor: pointer;
}





header {
    background-color: #333;
    color: #fff;
    padding: .7rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.7);
  }
  

  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;

  }
  
  .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin: 0 0.5rem;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.3rem;
  }
  
  .nav-links a:hover {
    background-color: #444;
    border-radius: 4px;
  }
  
  /* Burger Menu */
  .burger-menu {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  
  /* Responsive Styles */
  @media (max-width: 608px) {
    .burger-menu {
      display: flex;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0.3em;
      background-color: #333;
      padding: 1rem;
      border-radius: 5px;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links li {
      margin: 0.5rem 0;
    }
  }
  



/* Basic Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.7);
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-nav {
    margin-top: 0.5rem;
  }
  
  .footer-nav a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
  }
  
  .footer-nav a:hover {
    color: #00bcd4;
  }
  



  /* Ensure footer is at the bottom on short pages */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }


  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
  
  
  










#homepage{
    color: white;
    margin: 3em 0 3em 0;
}

#homepage .title-box {
    background-color: rgb(0, 220, 0);
    padding: 3em 0 3em 0;
    margin: 3em 0 3em 0;
    text-align: center;
    position: relative;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  }


#homepage .title-box h1{
  margin: 0;
  padding: 0;

}

  #homepage .title-box img {
    vertical-align: middle;
    height: 0.8em;
    width: auto;
    margin: 0 0.1em 0 0.1em;
    padding: 0.1em;
    display: inline;  
    background-color: white;
    border-radius: 4px;
  }
  
  #homepage .title-box h1:first-of-type {
    transform: rotate(-90deg);
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%) rotate(-90deg);
  }



  
  @media (max-width: 668px) {
  
    #homepage .title-box h1:first-of-type {
        transform: rotate(0);
        white-space: nowrap;
        position: relative;
        top: 0%;
        left: 0%;
      }

}

#homepage section{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#homepage section .personal, #homepage section .your{
    background-color: rgb(0, 220, 0);
    padding: 1em;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#homepage a{
    text-decoration: none;
    border: 0.15rem rgb(0, 0, 0) solid;
    color: black;
    word-break: break-all;
    background-color: rgb(115, 255, 0);
    border-radius: 2px;
    padding: 0.3rem;
    display: block;
    margin: 1em auto 0;
    width: 50%;
}

#homepage a:hover{
    color: black;
    background-color: rgb(101, 223, 0);
}



#own_page{
    margin: 7em 0 7em 0;
    padding: 1em;
    background-color: rgb(45, 207, 0);
    color: white;
    text-align: center;
    
}


#own_page #own_page-title{
    background-color: rgb(34, 159, 0);
    padding: 1em;
    margin: 1em 0 1em 0;
}





#feedback-section{
    border: white 0.15rem solid;
    border-radius: 3px;
    margin: 5em 0 2em 0;
    background-color: rgb(34, 159, 0);
    padding: 1.2em;
}


#feedback-section h2{
    margin: 0.5em 0 0.5em 0;
}


#feedback-section input, #feedback-section textarea{
 width: 100%;
 padding: 0.3em;
 margin-bottom: 1em;
 border-radius: 2px;
 border: none;
 resize: vertical;
}


#feedback-section button{
    border-radius: 4px;
    padding: 0.3em;
    border: white solid 0.15em;
    background-color: rgb(45, 207, 0);
    color: white;
}

#feedback-section button:hover{

    background-color: rgb(40, 186, 0);

}


#feedback-section #response{
    margin: 0em auto 1.2em;
    padding: 0.5em;
    background-color: white;
    border-radius: 5px;
    width: 50%;
}





#feedbacks-section{
    background-color: white;
    color: black;
    border: black 0.15rem solid;
    padding: 1.5em;
    margin-top: 2em;
}


#feedbacks-section h1{
    display: block;
    margin: 0.5em 0 0.5em;
    text-align: center;
}

#feedbacks-section #feedback-list{
margin-top: 2em;
}

#feedbacks-section #feedback-list .the-feedback{
    border: black solid 0.15em;
    padding: 1em;
    margin-top: 1em;
    word-wrap: break-word;
    word-break: break-all;
}

#feedbacks-section #feedback-list .the-feedback .feedback-time{
    font-style: italic;
    color: #777;
}

#feedbacks-section #feedback-list .the-feedback .feedback-message{
    margin: 1em 0 0 0;
    display: block;
}

#feedbacks-section .pagination{
  margin: 1em 0 1em 0;
  border: solid black 0.15em;
  text-align: center;
  padding: 0.5em;
  
}

#feedbacks-section .pagination button{
 padding: 0.3em;
 border: black solid 0.15em;
 background-color: rgb(0, 211, 0);
 color: white;

}


#feedbacks-section .pagination button:hover{
  background-color: rgb(0, 232, 0);
 }


#feedbacks-section .pagination button:disabled {
  cursor: not-allowed;
  background-color: #d3d3d3;
  color: #808080;
  border: 1px solid #a9a9a9;
}

#feedbacks-section .pagination button:disabled:hover {
  cursor: not-allowed;
}





#feedbacks-section .pagination #prev-btn, #feedbacks-section .pagination #next-btn{
  margin: 0.2em;
}








.popular-posts{
  background-color: rgb(173, 239, 155);
  display: block;
  margin-top: 5em;
  padding: 1.5em;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
}




.popular-posts .like-btn{
  margin: 0.5em 0 0.5em 0;
  padding: 0.2em 0.3em;
  color: white;
  background-color: rgb(0, 208, 80);
  border: black solid 0.15em;
  border-radius: 2px;
 }

 .popular-posts .like-btn:hover{

  background-color: rgb(0, 230, 88);

 }

.popular-posts .post-content{
 text-align: center;
 margin: 1em 0 1em 0;
}

.popular-posts h1{
  text-align: center;
  color: black;
  display: block;
  margin: 0 0 0.3em;
}

.popular-posts h3{
  text-align: center;
  color: #555;
  display: block;
  margin: 0 0 3em;
}

.popular-posts .popular-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
  gap: 20px;
}


@media (max-width: 480px) {
  .popular-posts .popular-post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
  }
}




.popular-posts .popular-carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: center;
  align-items: center;
  margin-top: 0.5em;
}

.popular-posts .popular-carousel-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.popular-posts .popular-carousel-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
}

.popular-posts .popular-prev-btn, .popular-next-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5em;
  border: none;
  cursor: pointer;
}

.popular-posts .popular-carousel-dots {
  text-align: center;
  margin-top: 10px;
  z-index: 3;
}

.popular-posts .popular-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.popular-posts .popular-dot.active {
  background-color: #333;
}




.posting-place{
  background-color: rgb(45, 207, 0);
  display: block;
  margin-top: 3em;
  padding: 1.5em;
  color: white;
 
}

.posting-place h2{
  text-align: center;
}

.posting-place input, .posting-place textarea{
  padding: 0.3em;
  width: 100%;
  resize: vertical;
  border-radius: 2px;
  border: solid black 0.15em;
  margin-bottom: 0.5em;
}

.posting-place #putimage{
display: block;
margin: 1em auto;
border: black solid 0.15em;
padding: 0.3em;
background-color: rgb(34, 155, 0);
border-radius: 3px;
max-width: 40%;
cursor: pointer;
}

.posting-place #putimage:hover{
  background-color: rgb(39, 180, 0);
  }

.posting-place button[type="submit"]{
  padding: 0.3em;
  min-width: 25%;
  border: black solid 0.15em;
  display: block;
  margin: 0 auto;
  background-color: rgb(195, 255, 179);
}

.posting-place button[type="submit"]:hover{
  background-color: rgb(133, 255, 99);
}


.posting-place #posting-message{
  padding: 0.3em;
  margin: 0 auto 1em;
  width: 50%;
  border-radius: 3px;
  text-align: center;
}





#image-preview-container {
  display: flex;
  gap: 10px;
  margin: 1em 0 1em;
  flex-wrap: wrap;
  justify-content: space-between;
}

#image-preview-container img {
  width: calc(33.33% - 10px);
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 0.15em solid black;
  border-radius: 5px;
  background-color: white;
}


@media (max-width: 768px) {
  #image-preview-container img {
      width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  #image-preview-container img {
      width: 100%;
  }
}



#posting-section{
  background-color: white;
  color: black;
  border: black 0.15rem solid;
  padding: 1.5em;
  margin-top: 2em;
}


#posting-section h1{
  display: block;
  margin: 0em 0 0.5em;
  text-align: center;
}




#posting-section .pagination{
  margin: 1em 0 1em 0;
  border: solid black 0.15em;
  text-align: center;
  padding: 0.5em;
  
}

#posting-section .pagination button{
 padding: 0.3em;
 border: black solid 0.15em;
 background-color: rgb(0, 211, 0);
 color: white;

}


#posting-section .pagination button:hover{
  background-color: rgb(0, 232, 0);
 }


#posting-section .pagination button:disabled {
  cursor: not-allowed;
  background-color: #d3d3d3;
  color: #808080;
  border: 1px solid #a9a9a9;
}

#posting-section .pagination button:disabled:hover {
  cursor: not-allowed;
}







#post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
  gap: 20px;
}


@media (max-width: 480px) {
  #post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
  }
}

.post {
  margin: 0;
  padding: 1em;
  border: 1px solid #ddd;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  background-color: #f9f9f9;
  box-sizing: border-box;
  align-self: start;
  word-wrap: break-word;
  word-break: break-all;
}

.post img {
  width: 100%;
  height: auto;
}


.post h2 {
  margin: 0.5em 0 0.5em 0;
  text-align: center;
}

.post h4 {
  margin: 0;
  text-align: center;
}

.post .content {
  margin: 0.5em 0 0 0;
  text-align: center;
}


.post .time-ago{
  margin: 0.2em 0 0 0;
  font-style: italic;
  color: #555;
  text-align: center;
}


.post .carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0.5em;
}

.post .carousel-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.post .carousel-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
}

.post .prev-btn, .next-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5em;
  border: none;
  cursor: pointer;
}

.post .carousel-dots {
  text-align: center;
  margin-top: 10px;
  z-index: 3;
}

.post .dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.post .dot.active {
  background-color: #333;
}













#contact{
  background-color: rgb(27, 215, 43);
  color: white;
  padding: 1.5em;
  margin: 5em 0 5em 0;
  
}


#contact h1{
text-align: center;
display: block;

}

#contact input, #contact textarea{
width: 100%;
padding: 0.3em;
margin-bottom: 0.5em;
border: solid black 0.15em;
border-radius: 2px;
}

#contact button{
  min-width: 50%;
  margin: 0 auto;
  display: block;
  padding: 0.3em;
  border: solid black 0.15em;
  border-radius: 2px;
  background-color: rgb(158, 249, 158);
  }

  #contact button:hover{
    background-color: rgb(114, 255, 114);
  }

  #contact #form-response{
    text-align: center;
    background-color: white;
    padding: 0.5em;
    margin: 0.5em auto 1em;
    border-radius: 3px;
    min-width: 50%;
    max-width: 50%;
  }



#contact #loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em 0 1em 0;
}

#contact #loading-spinner .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000000;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}









.store-site .product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 5em 1.5em 3em;
}



@media (max-width: 1300px) {
  .store-site .product-container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .store-site .product-container {
      grid-template-columns: 1fr;
  }
}

.store-site .product-item {
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
  align-self: start;
  min-height: 250px;
}

.store-site .product-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.store-site .product-item p {
 display: block;
 margin: 0.5em 0 0.5em;
}


.store-site .product-item h3 {
  display: block;
  margin: 0.5em 0 0.5em;
  color: rgb(0, 132, 0);
 }