@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');

/* Global Styles */
body, html {
  margin: 0;
  padding: 0;
  width: 390px;
  height: 844px;
  font-family: "Dosis";
  display: flex;
  background: #f0f4ff;
  background-size: cover;
  overflow: hidden;
  text-align: center;
}

/* Onboarding Page Styles */
.onboarding {
  text-align: center;
  position: relative;
  width: 390px;
  height: 920px;
  background: #f0f4ff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.onboarding-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.onboarding-slide.active {
  opacity: 1;
  pointer-events: auto;
}

h1 {
  text-align: center;
  margin-top: 100px;
  position: relative;
}

h2 {
  text-align: center;
  margin-top: 300px;
  position: relative;
}

.circle-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #2e469a, #4a6bc5);
  border-radius: 100% 100% 0 0;
  transform: translateY(0); /* Default state */
  transition: transform 0.8s ease-in-out, border-radius 0.8s ease-in-out;
}

.circle-container.up {
  transform: translateY(-155%);
  border-radius: 0 0 100% 100%;
}

.circle-container.down {
  transform: translateY(0);
  border-radius: 100% 100% 0 0;
}


.circle-container.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}



.prev-btn, .next-btn {
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Dosis";
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.continue-btn {
  margin: 50px;
padding: 12px 30px;
border: none;
border-radius: 20px;
font-size: 18px;
font-family: "Dosis";
font-weight: 700;
cursor: pointer;
transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.get-started-btn{
margin: 50px;
padding: 12px 30px;
border: none;
border-radius: 20px;
font-size: 18px;
font-family: "Dosis";
font-weight: 700;
cursor: pointer;
transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
pointer-events: auto;
}

.prev-btn.active,
.next-btn.active,
.get-started-btn.active {
  display: inline-block; /* Show active buttons */
}

.prev-btn:hover, .next-btn:hover {
  background: #ffffff;
  color: #2e469a;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
  transition: background 0.5s, transform 0.3s;
}

.continue-btn:hover, .get-started-btn:hover{
  background: #ffffff;
  color: #2e469a;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
  transition: background 0.5s, transform 0.3s;
}

.onboarding-slide {
  opacity: 0;
  display: none;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.onboarding-slide.active {
  display: block;
  opacity: 1;
}

.content {
  display: block;
}

/* Basic page styles */
.page {
  display: none;
  transform: translateX(100%); /* Off-screen initially */
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;

}

.page.active {
  display: block;
  justify-content: ccenter;
  align-items: center;
  opacity: 1;
  transform: translateX(0);
}

.page.slide-left {
  transform: translateX(-100%);
}

.page.slide-right {
  transform: translateX(100%);
}

/* Fade-in only (optional for specific use cases) */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.fade-in.active {
  opacity: 1;
}

.fade-out {
  opacity: 1;
  animation: fadeOut 0.5s forwards;
}


/* Slide-left for transitions */
.slide-left {
  opacity: 0;
  transform: translateX(100%);
  animation: slideLeft 0.5s forwards;
}

.slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide-right for transitions (optional reverse) */
.slide-right {
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Optional: Add smoothness for page visibility transitions */
.page {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Verification Popup Styles */
.popup-container {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  background:white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.code-inputs {
  display: flex;
  margin-left: 20px;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.code {
  width: 30px;
  height: 40px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.code:focus {
  outline: none;
  border-color: #007bff;
}

.submit-button {
  margin: 30px;
  padding: 12px 30px;
  border: none;
  border-radius: 20px;
  font-size: 20px;
  font-family: "Dosis";
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
  background: #ffffff;
  color: #2e469a;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
  transition: background 0.5s, transform 0.3s;
}

.action-btn {
  font-family: "Dosis";
  display: block;
  margin: 20px auto;
  width: 100%;
  text-align: center;
  background: #2e469a;
  color: white;
  padding: 10px;
  border-radius: 5px;
}


#circleAnim {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#circleAnim.active {
  visibility: visible;
  opacity: 1;
}

/* Circle animation */
.circle {
  position: absolute;
  display: flex;
  width: 50px;
  height: 50px;
  background-color: #2e469a;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Start invisible */
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.circle.animate {
  opacity: 1;
  animation: bounceEnlarge 3s ease-in-out forwards;
}

.final-message {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #eaf4ff;
  opacity: 0;
  font-size: 15px;
  animation: showMessage 1s ease-in 1s forwards;
}

.circle-animation span {
  font-size: 75px;
  font-weight: bold;
  color: #eaf4ff;
  transform: scale(2); /* Scale it up */
  transition: transform 1s ease; /* Smooth transition effect */
}

@keyframes checkAppear {
  0% {
    opacity: 0; /* Initially invisible */
    transform: scale(0) rotate(-45deg); /* Start small and rotated */
  }
  50% {
    opacity: 1; /* Gradually appear */
    transform: scale(1.2) rotate(0deg); /* Overshoot for a bouncy effect */
  }
  100% {
    transform: scale(1); /* Settle at the original size */
  }
}

.checkmark {
  font-size: 100px;
  font-weight: bold;
  margin-bottom: 10px;
	animation: checkAppear 1s ease-out forwards;
}

.final-message p {
font-family: "Dosis";
  font-size: 50px;
  margin: 0;
}
/* Animations */
@keyframes bounceEnlarge {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.5); 
    background-color: #1e3a8a; 
  }
	50% {
		 transform: scale(0.9); 
    background-color: #1e3a8a; 
	}
	
	70% {
		 transform: scale(2.5); 
    background-color: #1e3a8a; 
	}
	
	80% {
		 transform: scale(1.3); 
    background-color: #1e3a8a; 
	}
	
	90% {
		 transform: scale(5); 
    background-color: #1e3a8a; 
	}
	
	100% {
		 transform: scale(50); 
    background-color: #1e3a8a; 
	}
}

@keyframes showMessage {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#homePage {
    background: linear-gradient(to bottom, #eaf3ff, #d1e7ff);
    background-size: cover;
    text-align: center;
    margin: 0;
    overflow: hidden;
    background-attachment: fixed;
    display:none;
}


.screen {
  flex: 1;
  width: 100%;
  height: 100vh;
}



/* Home Page Styles */
.container {
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
}


.location-label {
  font-size: 20px;
  margin-bottom: 10px;
	font-family: "Dosis";
	border-radius: 10px;
	text-align: left;
}

input {
  width: 80%;
  padding: 10px;
  border-radius: 3px;
}

#enter-btn {
  margin: 40px;
  margin-top: 10px;
  margin-bottom: 50px;
  padding: 12px 30px;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-family: "Dosis";
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  pointer-events: auto;
  }

#enter-btn:hover {
  background: #ffffff;
  color: #2e469a;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
  transition: background 0.5s, transform 0.3s;
}



#bus-btn:hover {
  transform: scale(1.1);
  background-color:#5777b3;
  border-radius: 30%;
}

#car-btn:hover {
  transform: scale(1.1);
  background-color:#5777b3;
  border-radius: 30%;
}

#train-btn:hover {
 transform: scale(1.1);
 background-color:#5777b3;
 border-radius: 30%;
}

#transport-buttons {
  position: relative;
  height: 60px;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-top: -30px;
  display: flex; /* Ensure proper alignment */
  align-items: center; /* Center content */
  padding: 10px 20px;
}

.transport-buttons:hover {
  transform: scale(1.1);
  background-color: #d1e7ff;
  color: #2e469a;
}

/* Change image on hover */
.transport-buttons.active img {
  content: url("trainHover.png");
  transform: scale(1.1);

}


/* Change image on active (clicked) state */
#trainBtn.active img {
  content: url("trainHover.png");
}
.option-button {
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.3s ease;
  font-family: "Dosis";
}

.option-button:hover {
  background-color: #d1e7ff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#selectRoute-btn {
   margin: 20px auto; /* Add margin and center it */
  display: block; /* Ensure it's a block element */
  background-color: white;
  border: none;
  color: #333;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 18px;
  font-family: "Dosis";
  font-weight: bold;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#selectRoute-btn:hover {
  background-color: #fb8c00;
  transform: scale(1.2);

}


.dropdown {
  position: relative;
}

#dropdown-btn {
  background-color: #2e469a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Dosis";
}



.dropdown-option {
  padding: 10px;
  cursor: pointer;
}


route-box {
  display: none; /* Hidden by default */
  position: absolute;
  left: 120%;
  top: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  padding: 10px;
  font-family: "Dosis";
}

.route-box .route-option {
  padding: 6px 8px;
  font-size: 12px;
  font-family: "Dosis";
  color: #333;
  cursor: pointer;
	border-radius: 5px;
	text-align: center;
  background: #ffa726;
}

/* Dynamically Set Background Color */
.route-option[data-color] {
  background-color: var(--dynamic-color, white); /* Default color */
}

.route-option:hover {
  filter: brightness(85%); /* Slightly darker on hover */
}
.dropdown-option:hover .route-box {
  display: block; /* Show route box on hover */
}
#selectRoute-btn {
  background-color: #ffa726;
  color: white;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  font-family: "Dosis";
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#select-route-btn:hover {
transform: scale(1.2);
}


/* Navigation Styles */
#navigation {
  width: 100%;
  height: 25%;
  position: fixed;
  bottom: 0;
  background: #C8Dff2;
  display: flex;
  justify-content: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Ensure navigation is above other content */
}

.navigation ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%; /* Ensure the nav spans the full width */
}

.navigation ul li {

  text-align: center;
  flex: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer; /* Pointer for all nav items */
  margin: 0;
  padding: 0;
}

/* Hover effect for all nav buttons */
.navigation ul li:hover {
  transform: scale(1.1); /* Slight zoom-in effect */
  color: #333; /* Change text color on hover */
}

/* Active state for nav buttons */
.navigation ul li.active {
  transform: scale(1.2); /* Slightly larger when active */
  color: #5777b3;
}

/* Icon container for all buttons */
.navigation ul li .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
  margin-top: -150px;
}

/* Hover effect for icons */
.navigation ul li:hover .icon {
  transform: scale(1.2); /* Enlarge icon on hover */
}

/* Active state for icons */
.navigation ul li.active .icon {
  transform: scale(1.3); /* Enlarge icon slightly more when active */
}

/* Text below icons */
.navigation ul li .text {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
  transition: color 0.3s ease;
  font-weight: 600;
}

/* Hover effect for text */
.navigation ul li:hover .text {
  color: #5777b3; /* Match hover color */
}

/* Specific styling for <a> tag in the "Lifestyle" button */
.navigation ul li a {
  text-decoration: none;
  color: inherit; /* Inherit color from parent */
  display: inline-block;
  width: 100%; /* Full clickable area */
  height: 100%;
}

.indicator {
  position: absolute;
  width: 70px;
  height: 70px;
  background: linear-gradient(#c0d9fa, #5777b3);
  border-radius: 50%;
  transition: 0.4s ease;
  bottom: 160px;
  left: 0px;
  z-index: -1;
  cursor: pointer;
}

.indicator::before {
	content: '';
	position: absolute;
	top: 70%;
	left: -30px;
	width: 30px;
	height: 20px;
	background: transparent;
	border-top-right-radius: 20px;
	box-shadow: -1px -10px 0 0 #c8dff2;
}

.indicator::after{
	content: '';
	position: absolute;
	top: 70%;
	right: -30px;
	width: 30px;
	height: 20px;
	background: transparent;
	border-top-left-radius: 20px;
	box-shadow: -1px -10px 0 0 #c8dff2;
}

.list .icon {
  z-index: 1; /* Ensure icons are above the indicator */
  position: relative; /* To allow proper stacking */
}

.navigation ul li:nth-child(1).active ~ .indicator {
	transform: translateX(calc(0px * 0));
}

.navigation ul li:nth-child(2).active ~ .indicator {
	transform: translateX(calc(0px * 1));
}

.navigation ul li:nth-child(3).active ~ .indicator {
	transform: translateX(calc(0px * 2));
}

.navigation ul li:nth-child(4).active ~ .indicator {
	transform: translateX(calc(0px * 3));
}

.header {
	position: relative;
	background-color: #2e469a;
	color: white;
	text-align: center;
	padding: 20px 0;
	width: 100%;
	margin: 0;
}

.main-content {
	width: 90%;
	max-width: 1000px;
	margin: 20px 0;
}

.highlight-image img {
	width: 100%;
	border-radius: 8px;
}

.icon img {
  width: 70%;
  height: auto;
  display: block;
  align-items: center;
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 50px 0;
}

.section-title h2 {
	margin: 0;
	color: #000000;
}

.badge {
	background-color: red;
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
}

.carousel-container {
  position: relative;
  width: 90%; 
	overflow: hidden;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Carousel Slide */
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
	box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 25px;
	z-index: 1;
}

.left-btn {
  left: 10px;
}

.right-btn {
  right: 10px;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}