/* Ensure body and html take full height */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Flexbox container styling */
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Helvetica, Apple Color Emoji, Arial, Segoe UI Emoji, Segoe UI Symbol;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  min-height: 100vh;
}

/* Top bar styling */
.top-bar a {
  text-decoration: none;
  color: inherit;
}

.top-bar {
  background-color:#37525b;
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 30px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: padding-left 1s;
}

.bar-image {
  height: 40px;
  width: 40px;
  transition: height 0.5s, width 0.5s;
}

.bar-text {
  color: #ecf0f1;
  font-size: 25px;
  font-weight: bold;
  margin-left: 5px;
  transition: font-size 0.5s;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* Responsive styling for top bar */
@media screen and (max-width: 600px) {
  .top-bar {
    padding-left: 20px;
  }

  .bar-image {
    height: 30px;
    width: 30px;
  }

  .bar-text {
    font-size: 22px;
  }
}

.premium-crown{font-size:1.35rem;margin-left:.45rem;line-height:1;}

/* Main content container */
.first-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f7f6;
  padding-top: 70px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

/* Top buttons */
.all-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  height: auto;
  padding: 5px 20px;
  margin: 40px auto;
  margin-bottom: 5px;
}

.all-buttons button {
  background-color: #5d5e61;
  color: white;
  padding: 15px 20px;
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
}

.all-buttons button:hover {
  background-color: #72777b;
}


/* Container for the content */
.content-container {
  width: 90%;
  max-width: 1200px;
  height: auto;
  padding: 20px 20px;
  margin: 5px auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

/* Heading styling */
.content-container h1 {
  font-size: 40px;
  color: #333;
  margin-bottom: 20px;
}

.content-container h1 .chapter-title {
  color: #333;
  font-weight: normal;
}

.chapter-img-container {
  text-align: center;
  margin-bottom: 20px;
}

.image-attribute {
  text-align: center;
  font-size: 12px;
}

.chapter-img {
  width: 450px;
  height: 300px;
}

.content-container h2 {
  font-size: 25px;
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 20px;
}

.content-container h3 {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 20px;
}

.content-container p {
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  list-style: none;
  padding-left: 0;
}
ul li{
  line-height: 1.8;
  font-size:18px;
}
.combo_img_container {
  display: flex;
  justify-content: center; /* Align images horizontally centered */
  gap: 10px; /* Optional: add space between images */
  flex-wrap: wrap; 
}
.chapter-img-container {
  text-align: center;
  padding: 10px;
  flex: 1 0 50px;
}
.chapter-img {
  width: 80px;
  height: 140px;
}
.chapter-traffic_lights_img {
  width: 70px;
  height: 140px;
}
.chapter-traffic_lights_lane_img {
  width: 140px;
  height: 60px;
}
.chapter-hand_img {
  width: 100px;
  height: 150px;
}


@media screen and (max-width: 800px) {
  .content-container h1 {
    font-size: 30px;
  }
  .combo_img_container {
    gap: 5px; 
  }
  .chapter-img {
    width: 60px;
    height: 120px;
  }
  .chapter-traffic_lights_img {
    width: 60px;
    height: 120px;
  }
  .chapter-traffic_lights_lane_img {
    width: 120px;
    height: 50px;
  }
  .chapter-hand_img {
    width: 70px;
    height: 120px;
  }
  .all-buttons button {
    font-size: 15px;
    padding: 10px 5px;
  }
}

@media screen and (max-width: 400px) {
  .chapter-img {
    width: 50px;
    height: 100px;
  }
  .chapter-traffic_lights_img {
    width: 40px;
    height: 80px;
  }
  .all-buttons button {
    font-size: 12px;
    padding: 5px 5px;
  }
  .chapter-hand_img {
    width: 60px;
    height: 100px;
  }
}

/* Bottom panel styling */
.bottom-panel {
  background-color:#37525b;
  color: #ecf0f1;
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

.bottom-panel p {
  margin: 5px 0;
}

.bottom-links {
  display: flex;
  justify-content: center;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.bottom-links a {
  color: #A3D9E0;   /* pale teal  — contrast ≈4.8:1 */
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 10px;
}


.bottom-links a:hover,
.bottom-links a:focus {
  color: #FFC857;           /* or whatever hover color you choose */
  text-decoration: underline;
}

.cookie-policy {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

@media screen and (max-width: 800px) {
  .bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .bottom-links a {
    margin: 2px 0;
  }
}
