* {
  box-sizing: border-box;
}

html {
  font-family: system-ui;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 1.25rem;
  background: black;
  color: white;
  padding: 0;
  overflow: hidden;
}

section {
  height: 70vh;
}

nav {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20rem;
  padding-block: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

nav.active {
  transform: translateX(0);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.nav-list a {
  color: white;
  display: block;
  text-decoration: none;
}

.nav-item {
  padding-block: 1rem;
  padding-inline: 2rem;
  margin-inline: 1rem 0;
}

.nav-item.active {
  background: #123;
  border-radius: 100vw 0 0 100vw;
}

.toggle-button {
  position: fixed;
  top: 0.5rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 15;
}

main {
  padding: 100px 5%;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.subtitle {
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
}

.name-box {
  border: 2px solid #ff4081;
  padding: 2.0rem 3.5rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 10px;
}

.name {
  font-size: 2rem;
  color: #ff4081;
  margin: 0;
}

.spacer {
  height: 10%;
}

/* Makes the logo a rounded circle */
#chatbot-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;  /* Adjust the size as needed */
  height: 50px;
  border-radius: 50%;
  z-index: 1000;
  transition: all 0.3s ease;
}


/* Makes the iframe responsive */
#bot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 100%;
  max-width: 400px; /* Maximum width of the iframe */
  height: 600px;
  max-height: 75vh; /* Maximum height as a percentage of viewport height */
  border: none;
}



/* Responsive Adjustments for Animation and Scaling */
@media (max-width: 1200px) {
  .subtitle {
    font-size: 2.5rem;
  }

  .name-box {
    padding: 1.5rem 2.5rem;
  }

  .name {
    font-size: 1.8rem;
  }

}

@media (max-width: 768px) {
  .subtitle {
    font-size: 2rem;
  }

  .name-box {
    padding: 1rem 2rem;
    letter-spacing: 5px;
  }

  .name {
    font-size: 1.5rem;
  }

}

@media (max-width: 480px) {
  .subtitle {
    font-size: 1.2rem;
  }

  .name-box {
    padding: 0.8rem 1.5rem;
  }

  .name {
    font-size: 1.2rem;
  }

}


/* Media query for smaller screens */
@media (max-width: 768px) {
  #bot {
    width: 90%;  /* Make the bot take up 90% of the screen width */
    height: 500px; /* Adjust height for smaller screens */
    bottom: 10px;  /* Add a little space at the bottom */
  }
}

/* Media query for very small screens like mobile portrait */
@media (max-width: 480px) {
  #bot {
    width: 95%;  /* Make the bot take up 95% of the screen width */
    height: 450px; /* Adjust height for very small screens */
    bottom: 10px;
  }
}
