/*------------- Global Styles -------------*/

/* Reset margin for the body element and set a default font */
html,
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* Make the body a flex container */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Styling for images */
img {
  display: block;
  height: auto;
  width: 100%;
}

/*------------- Header Styles -------------*/

/* Styling for the header section */
header {
  align-items: center;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 25px 30px;
}

/* Styling for the logo container */
.logo {
  align-items: center;
  display: flex;
  font-size: 12px;
}

/* Styling for the heading inside the logo container */
.logo h1 {
  color: #333;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

/* Styling for the image inside the logo container */
.logo img {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
  width: 50px;
}

/* Styling for the logo link */
.logo-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* Styling for the logo link on hover */
.logo-link:hover {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}

/* Scaling effect for the logo image on hover */
.logo-link:hover .logo img {
  transform: scale(1.08) rotate(2deg);
}

/* Styling for the mobile header */
.mobile-header {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/*------------- Navigation Styles -------------*/

/* Styling for the navigation bar */
nav {
  display: flex;
  flex-direction: row;
}

/* Styling for anchor links inside the navigation bar */
nav a {
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  margin: 0 8px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Styling for anchor links hover inside the navigation bar */
nav a:hover {
  background: #007acc;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Styling for the hamburger menu (for mobile devices) */
.hamburger {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  padding: 8px;
  transition: all 0.3s ease;
}

/* Styling for the hamburger menu on hover */
.hamburger:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

/* Styling for each line in the hamburger menu */
.hamburger div {
  background-color: #333;
  border-radius: 2px;
  height: 3px;
  margin: 3px 0;
  transition: all 0.3s ease;
  width: 25px;
}

/* Styling for each line in the hamburger menu on hover */
.hamburger:hover div {
  background-color: #007acc;
}

/*------------- Main Content Styles -------------*/

/* Styling for the main content area */
main {
  align-items: flex-start;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 20px;
}

/* Styling for the container inside the main content area */
.container {
  max-width: 900px;
  width: 100%;
}

/*------------- Main Content Text Styles -------------*/

/* Section styling */
section {
  margin-bottom: 40px;
  padding: 20px 0;
}

/* Headings */
h2 {
  color: #333;
  border-bottom: 2px solid #eee;
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

h3 {
  color: #444;
  font-size: 20px;
  margin: 25px 0 15px 0;
}

h4 {
  color: #555;
  font-size: 16px;
  margin: 20px 0 10px 0;
}

/* Paragraphs */
p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Links */
a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  color: #005999;
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin: 15px 0;
  padding-left: 30px;
}

li {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Nested lists */
li ul,
li ol {
  margin: 8px 0;
}

/* Code styling */
code {
  background-color: #f4f4f4;
  border-radius: 3px;
  color: #d63384;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 2px 6px;
}

pre {
  background-color: #f8f8f8;
  border-left: 4px solid #007acc;
  border-radius: 5px;
  margin: 15px 0;
  overflow-x: auto;
  padding: 15px;
}

pre code {
  background: none;
  color: #333;
  padding: 0;
}

/* Strong/Bold text */
strong {
  color: #333;
  font-weight: 600;
}

/* Emphasis styling */
em {
  color: #555;
  font-style: italic;
}

.app-screenshot img {
  max-width: 300px;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Styling for the Connect IQ download badge */
#connect-iq-download {
  max-width: 200px;
  margin: 1.5rem auto;
}

/*-------------------- Footer Styles --------------------*/

/* Styling for the footer section */
footer {
  background-color: #333;
  color: white;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

/* Styling for paragraphs inside the footer */
footer p {
  color: white;
  margin: 15px 0;
}

/* Styling for links inside the footer */
footer a {
  color: #66a3ff;
  text-decoration: none;
}

/* Styling for links hover inside the footer */
footer a:hover {
  text-decoration: underline;
}

/*-------------------- Media Queries --------------------*/

/* Media query for screens with a maximum width of 1000px */
@media (max-width: 1000px) {

  /* Styling for header section on medium screens */
  header {
    flex-direction: column;
  }

  /* Styling for mobile header */
  .mobile-header {
    width: 100%;
  }

  /* Hide navigation menu on smaller screens */
  nav {
    display: none;
    flex-direction: column;
  }

  /* Display the navigation menu when active */
  nav.active {
    align-items: center;
    display: flex;
  }

  /* Styling for links inside the active navigation menu */
  nav.active a {
    padding: 15px 0;
    text-align: center;
    width: 100%;
  }

  /* Display the hamburger menu in mobile view */
  .hamburger {
    display: flex;
  }
}