@font-face {
  font-family: "Archivo";
  src: url("fonts/static/Archivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Archivo-expanded";
  src: url("fonts/static/Archivo_Expanded-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  line-height: 1.6;
  color: #343434;
}

header {
  position: relative;
  padding: 0;
}

#img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0); /* Add a semi-transparent background to the navbar */
}

#header-content nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

#header-content nav li {
  margin-left: 1rem;
  font-size: 1.2rem;
}

#header-content nav ul li a:hover {
  color:rgb(220, 79, 140);
  cursor: pointer;
}

#header-content nav li a{
  text-decoration: none;
  color: #F5B9C0;
}

#header-text {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 50%;
  padding-left: 25%;
}

#header-text-content {
  font-size: 2rem;
  line-height: 1.6;
  color: #e6efe9;
  font-family: 'Archivo', 'poppins', sans-serif;
}

#gallery {
  border: none;
  background-color:rgb(210, 152, 159);
  color: #08503B;
  border-radius: 5px;
  padding: 0.2rem;
  font-size: 0.9rem;
}

#gallery:hover {
  color: #08503B;
  background-color:rgb(232, 139, 150);
}

#gallery a strong{
  color: white;
}

#header-link {
  color: #F5B9C0;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: 'poppins', sans-serif;
  font-weight: bold;
}

#header-box {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: -1.7rem;
}

#header-box button {
  border-radius: 12px;
  background-color: #F5B9C0;
  padding: 0.5rem;
  color: #08503B;
  font-family: 'Archivo-expanded', 'Poppins', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: bold;
  letter-spacing: 0.04rem;
  min-width: 250px;
  transition: all 0.3sec ease;
}

#header-box button:hover {
  background-color:rgb(229, 154, 163);
  color:rgb(3, 137, 103);
}

.line {
  width: 60%;
  height: 2px;
  color: black;
  border-radius: 9999px;
  background-color: yellow;
  border: none;
}

nav {
  color: #F5B9C0;
  font-family: 'poppins', sans-serif;
  font-weight: bold;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 0.5rem;
  font-family: 'poppins', sans-serif;
  font-size: 1.2rem;
}

.question {
  border-left: gray solid 2px;
  border-bottom: gray solid 2px;
  padding: 15px;
  left: 0px;
  text-align: left;
  border-bottom-left-radius: 12px;
}

.hidden-answer {
  max-height: 0px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s, padding 0.7s;
}

#pookalam-answer {
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.show-answer {
  max-height: 1050px;
  opacity: 1;
}

#introduction {
  line-height: 1.8rem;
  font-size: 1.2rem;
}

.participate-inner-box {
  border: solid 2px #F5B9C0;
  transition: all 0.3s ease;
  border-radius: 12px;
  margin: 20px;
  min-width: 200px;
  width: 220px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.participate-inner-box:hover {
  border: solid 2px #F5B9C0;
  transform: scale(1.05);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#what-is-a-pookalam {
  transition: all 0.3s ease;
}

#what-is-a-pookalam:hover {
  padding-left: 20px;
}

#get-inspired {
  color: #08503B;
}

.box {
  max-width: 900px;
  height: auto;
  line-height: 1.6rem;
  font-size: 1.2rem;
}

#question-2 {
  //border: gray solid 2px;
  padding: 15px;
  left: 0px;
  text-align: center;
  font-size: 2.0rem;
  color: #08503B;
  //border-radius: 12px;
}

.gap-images {

}

#participate_box {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  text-align: center;
}

#competition-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 1rem;
  padding-left: 2rem;
  background-image: url("./images/wallpaper.jpg");
  width: 100%;
  color:rgb(255, 255, 255);
  background-size: cover;
  background-position: center;
  font-family: 'Archivo', 'poppins', sans-serif;
  line-height: 2rem;
  letter-spacing: 0.04rem;
}

#details h2 {
  font-size: 2.4rem;
  letter-spacing: 0.08rem;
}

#details ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  letter-spacing: 0.08rem;
}

#details {
  z-index: 20;
}

#Rules {
  font-size: 1.2rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  height: auto;
  line-height: 1.2rem;
}

#Rules h2 {
  font-size: 2.4rem;
  letter-spacing: 0.08rem;
  color: #08503B;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

#Rules ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  letter-spacing: 0.04rem;
  line-height: 2.0rem;
  font-size: 1.2rem;
  font-family: "Archivo", sans-serif;
  text-align: left;
  list-style: none;
  padding-left: 0;
}

#Rules li::before {
  content: '🌸';
  margin-right: 0.5rem;
}

.header-flower {
  height: 4rem;
  width: 4rem;
  z-index: 999;
}

.inspired-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.inspired-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.inspired-grid img:hover {
  transform: scale(1.05);
}

#faq {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin-top: 2rem;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  background: #fff;
  overflow: hidden;
}

#faq-div {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* better spacing between questions */
  font-family: 'Archivo', 'poppins', sans-serif;
}

.faqq {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.faqq:hover {
  background: #f0f8ff; /* subtle highlight on hover */
  transform: translateX(5px); /* slight shift on hover */
}

.faq-que {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}


footer {
  background-image: url("./images/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
  color: white;
  font-family: 'Archivo', sans-serif;
}

#footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#footer-logo a,
#source-code a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

#footer-logo a:hover,
#source-code a:hover {
  color: #007bff;
}

#footer-contact h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

#source-code p {
  margin: 0;
  font-size: 1rem;
}

#john-cena {
  color: #08503B;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  right: 3rem;
  position: absolute;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color:rgb(255, 222, 32);
  margin: 4px 0;
  right: 2rem;
}

@media (max-width: 1024px) {
  #header-text {
    width: 70%;
    padding-left: 15%;
  }
}

@media (max-width: 768px) {
  #header-content {
    flex-direction: row;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    visibility: hidden;
    position: absolute;
    top: 70px;
    right: 2rem;
    width: 50%;
    background-color: rgba(255, 255, 255, 1.0);
    color: #08503B;
    padding: 1rem;
    margin: 0.2rem;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 12px;
  }

  .nav-menu.show-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-list li {
    margin: 0;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #F5B9C0;
    color: #08503B;
  }

  .nav-list li:last-child {
    border-bottom: none; 
  }

  .nav-list li a {
    color: #08503B;
  }

  #header-content nav li a {
    color: #08503B;
  }

  #header-text {
    width: 90%;
    padding-left: 5%;
  }

  #header-text-content {
    font-size: 1.8rem;
  }

  #participate_box {
    flex-direction: column;
    align-items: center;
  }

  .inspired-grid {
    grid-template-columns: 1fr;
  }

  #faq {
	  border: solid 2px gray;
  }

  #footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 1rem 0;
  }

  #footer-contact {
    margin-right: 0;
    margin-top: 1rem;
  }

  #footer-tinkerhub {
    margin: 1rem 0 0 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  #header-text-content {
    font-size: 1.6rem;
  }

  .box {
    font-size: 1.1rem;
  }

  #question-2 {
    font-size: 1.6rem;
  }

  #details h2 {
    font-size: 2rem;
  }

  #details ul {
    font-size: 1.1rem;
  }

  #Rules h2 {
    font-size: 2rem;
  }

  #Rules ul {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #header-text-content {
    font-size: 1.5rem;
  }

  #header-link {
    font-size: 1rem;
  }

  #header-box button {
    font-size: 1rem;
    min-width: 200px;
  }

  main {
    padding: 0.2rem;
  }

  .box {
    font-size: 1rem;
    padding: 0.5rem;
  }

  #question-2 {
    font-size: 1.5rem;
  }

  #details h2 {
    font-size: 1.8rem;
  }

  #details ul {
    font-size: 1rem;
    line-height: 1.8rem;
  }

  #Rules h2 {
    font-size: 1.8rem;
  }

  #Rules ul {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
