/* Global Styles based on user request */
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #131420; /* Requested background color */
  color: white; /* Requested text color */
}

#content {
  width: 100%;
  min-height: 100vh;
}

#background {
  /* Container for the main content */
  padding: 20px;
}

/* Navigation Bar Styling */
#navigation {
  display: flex;
  justify-content: flex-end; /* Align to top-right */
  padding: 10px 0;
  border-bottom: 1px solid #58de84;
  margin-bottom: 40px;
}

.nav-button {
  background: none;
  border: none;
  color: white;
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  opacity: 0.8;
}

/* Home Button Specific Style */
.nav-button#home-button {
  color: black; /* Requested color */
  background-color: #58de84; /* Requested background color */
  border-radius: 5px;
}

/* Typography */
#title,
#sub-title {
  color: white;
  padding-left: 20px;
}
#title {
  font-size: 2.5em;
  text-align: center;
}
#sub-title {
  font-size: 1.8em;
  margin-bottom: 30px;
}

/* Links and Lists */
#tools_link a,
#link-event,
ul a {
  color: #58de84;
  text-decoration: none;
}
ul {
  list-style: none;
  padding-left: 20px;
}
ul li {
  margin-bottom: 10px;
  padding: 5px;
  border-left: 3px solid #58de84;
  padding-left: 10px;
}

/* Form Styling */
form {
  max-width: 400px;
  margin: 40px 20px;
  padding: 20px;
  border: 1px solid #58de84;
  border-radius: 5px;
}
form input[type="text"],
form input[type="email"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #58de84;
  background-color: #20212f;
  color: white;
  border-radius: 3px;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
}

.form-buttons input[type="submit"],
.form-buttons button {
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  flex: 1;
  margin-right: 10px;
}
.form-buttons input[type="submit"] {
  background-color: #58de84;
  color: black;
}
.form-buttons button {
  background-color: #444555;
  color: white;
}
.form-buttons button:last-child {
  margin-right: 0;
}

.content-container-section2 {
  display: flex;
  margin: 20px;
  gap: 30px;
  border-top: #f6852a solid 0.2em;
  padding-top: 20px;
  padding-left: 80px;
  padding-right: 80px;
}

.left-content {
  flex: 1;
}

/* Placeholder Divs */
#background-image {
  flex: 1;
  height: 358px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 0 50px 0 0;
}

#ai-driven-img {
  flex: 1;
  height: 200px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-image: url("/static/images/ai_suggestion.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 20px;
}
#flicker-free-img {
  flex: 1;
  height: 200px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-image: url("/static/images/free-testing.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 20px;
}
#ab-testing-img {
  flex: 1;
  height: 200px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-image: url("/static/images/ab-test.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 20px;
}
#collaboration-img {
  flex: 1;
  height: 200px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-image: url("/static/images/ab-test-2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 20px;
}
#revenue-retention-img {
  flex: 1;
  height: 200px;
  background-color: #20212f;
  border-radius: 0.5em;
  background-image: url("/static/images/revenue.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 20px;
}

.topic-content {
  flex: 1;
  min-width: 300px; /* Ensures content has enough space on small screens */
}

#ai-driven-img,
#flicker-free-img,
#ab-testing-img,
#collaboration-img,
#revenue-retention-img {
  flex: 0 0 auto; /* Don't grow, don't shrink, use base width */
  width: 450px; /* Adjust as needed */
  height: 250px;
  order: 2; /* Makes the image appear after content in the flex container */
  margin: 40px 50px 0 0;
}

#track_event,
.reset {
  color: white;
  border: none;
}

#track_event::before,
.reset::before {
  color: white;
  content: "✔ ";
}

#logo {
  background-image: url("/static/images/optimizely-logo.png");
  width: 150px; /* Set appropriate width based on your logo */
  height: 40px; /* Set appropriate height based on your logo */
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: auto;
}

#section2 {
  background: #395b4a;
  border-radius: 32px;
  padding-bottom: 20px;
}

#section2 h1 {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
}
#example,
#tools_link {
  text-align: center;
  margin-top: 20px;
}

.section1-content-container {
  border-radius: 32px;
  background: #191e28e6;
  padding: 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Space between rows */
}

.content-row {
  display: flex;
  gap: 20px; /* Space between columns */
}

.overview-content-section1 {
  flex: 1;
  padding: 15px;
}

/* Optional: Add a subtle border or background to each section */
.overview-content-section1 {
  border: 1px solid rgba(88, 222, 132, 0.1);
  border-radius: 8px;
  padding: 20px;
}
@media (max-width: 768px) {
  .content-row {
    flex-direction: column;
  }

  .overview-content-section1 {
    margin-bottom: 20px;
  }
}

#testing-form {
  max-width: 400px;
  margin: 40px auto; /* Changed from 40px 20px to 40px auto for horizontal centering */
  padding: 20px;
  border: 1px solid #58de84;
  border-radius: 5px;
}
.topic-container-section2 {
  flex: 1;
  border-top: #4bcafd solid 0.2em;
  margin: 20px;
  padding-top: 20px;
  padding-left: 80px;
  padding-right: 80px;
  /* Add these new properties */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

#ai-driven ul li {
  border-left: 3px solid #8821fb;
}
#flicker-free ul li {
  border-left: 3px solid #f6852a;
}
#beyond-abtesting ul li {
  border-left: 3px solid #58de84;
}
#collaboration ul li {
  border-left: 3px solid #3235fb;
}
#revenue-retention ul li {
  border-left: 3px solid #4bcafd;
}

#optimizely_variation {
  display: flex;
  margin: 10px;
  gap: 30px;
  padding: 10px;
  text-align: center;
  max-width: 100%;
  background: linear-gradient(to right, #131420, #58de84);
}
