﻿:root {
  /* --websiteBkgColor: rgb(12, 47, 36); */
  --websiteBkgColor: rgba(255, 222, 89, 0.3);
  --MainFontColor: rgb(43, 42, 36);
  --navBurgerColor: rgb(255, 222, 89);
  --h3BkgColor: rgb(255, 222, 89);
  --mobileNavBkgColor: linear-gradient(
    135deg,
    rgb(123, 242, 255) 0%,
    rgb(255, 154, 38) 50%,
    rgb(165, 255, 44) 100%
  );

  --ctaHoverColor: rgb(144, 196, 37);
  --footerBKGcolor: rgb(255, 222, 89);
  --darker30percent: rgba(0, 0, 0, 0.3);
  --darker50percent: rgba(0, 0, 0, 0.5);
  --gap: 1rem;
  --fontSize: 1rem;
  --imageBorder: 5px solid white;
  --imageDropShadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
  --box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  --text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.4);
  --buttonColor: rgb(241, 232, 178);
  --buttonTextColor: rgb(12, 47, 36);
  --colorBlueDroplet: rgb(0, 122, 196);
  --colorPurpleDroplet: rgb(130, 25, 119);
  --colorGreenDroplet: rgb(144, 196, 37);
  --colorYellowDroplet: rgb(241, 189, 0);
}

@media (min-width: 60em) {
  :root {
    --imageBorder: 10px solid white;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: var(--fontSize);
}

body {
  /* background-image: url("../images/wall_001.webp"); */
  color: var(--MainFontColor);
  background-color: var(--websiteBkgColor);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.5;
  margin-bottom: 1em;
  text-align: center;
}

h1 {
  font-weight: 900;
  font-size: 2rem;
}

h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

h3 {
  font-weight: 500;
  font-size: 1.2rem;
}

h4 {
  font-weight: 200;
  font-style: italic;
  font-size: 1rem;
}

h5 {
  font-weight: 500;
  font-size: 0.8rem;
}

p {
  line-height: 1.3;
  margin-bottom: 1em;
}

input {
  border: none;
  border-radius: 5px;
  margin-left: 0.6rem;
  height: 1.8rem;
  box-shadow: var(--box-shadow);
}

.file-input {
  background-color: white;
  min-width: 400px;
  text-align: center;
  padding-inline: 2rem;
}

.file-input button {
  background-color: blueviolet;
  transition: all 0.5s;
}

button {
  padding: 0.5rem 2rem;
  background-color: lightseagreen;
  color: white;
  border: none;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: all 0.5s;
  margin-inline: 1rem;
}

button:hover {
  background-color: var(--ctaHoverColor);
}

.container {
  width: 100%;
}

.page {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
}

.hero {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
  margin-bottom: 1em;
}

.categories {
  width: 100%;
  text-align: center; /* Center the h3 elements */
}

.categories h3 {
  background-color: var(--h3BkgColor);
  border-radius: 10px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5em; /* Adjust spacing as needed */
}

.categories a {
  text-align: center;
  display: inline-block; /* Align the list with the centered h3 */
  width: fit-content;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 3em;
  text-decoration: none;
  text-transform: uppercase;
  padding-inline: 2rem;
  transition: all 0.5s;
  margin-bottom: 0.5em; /* Adjust spacing between list items */
  max-width: 85%;
}

.categories a:hover {
  background-color: var(--ctaHoverColor);
  border-radius: 5px;
}

.top-rule {
  background-color: var(--h3BkgColor);
  width: 95%;
  margin-top: 5em;
  margin-inline: auto;
  border-radius: 10px 10px 0 0;
  height: 50px;
  color: white;
  margin-bottom: 4em;
  text-shadow: var(--text-shadow);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
  background-color: var(--h3BkgColor);
  width: 95%;
  margin-top: 5em;
  margin-inline: auto;
  border-radius: 0 0 10px 10px;
  padding-top: 1rem;
  /* text-shadow: var(--text-shadow); */
}

.footer p {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--MainFontColor);
  text-align: center;
}

.footer a {
  text-decoration: none;
  color: var(--ctaHoverColor);
}

.footer a:hover {
  color: black;
}

.form-container {
  width: 100%;
  display: flex;
  justify-content: center;
  /* border: 1px solid lime; */
}

form {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border-radius: 10px;
  padding: 2em;
  background-color: var(--h3BkgColor);
  width: 100%;
}

.keywords-form {
  justify-items: end;
}

.error-message {
  display: none;
  color: red;
  position: absolute;
  background-color: #ffdddd;
  border: 1px solid #ffcccc;
  border-radius: 5px;
  padding: 5px;
  margin-top: -3em;
  z-index: 1000; /* Make sure the tooltip appears above other elements */
}

.error-highlight {
  color: red;
}

.form-group {
  position: relative; /* Needed to position the tooltip */
}

.keyword {
  display: flex;
  flex-direction: column;
  justify-content: left;
  width: 100%;
  text-align: left;
  margin-bottom: 1em;
}

/* Encapsulate label and tooltip in a container for hover interaction */
.label-container {
  position: relative; /* Positioning context for the tooltip */
  display: inline-block; /* Shrink-wrap to content for accurate hover area */
  cursor: pointer; /* Indicates interactivity */
  width: fit-content;
}

.tooltip {
  visibility: hidden;
  background-color: var(--ctaHoverColor); /* Using a CSS variable for color */
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  top: -115%;
  left: 40px; /* Align with the start of the label */
  white-space: nowrap;
}

.label-container:hover .tooltip {
  visibility: visible; /* Show the tooltip when label-container is hovered */
}

/* Additional styling for labels */
.form-group label {
  cursor: pointer; /* Ensures the cursor changes to a pointer on hover */
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
input::placeholder {
  color: var(--ctaHoverColor);
  font-style: italic; /* Make it italic */
}

/* Microsoft Edge */
input::-ms-input-placeholder {
  color: var(--ctaHoverColor);
  font-style: italic; /* Make it italic */
}
