*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
body{
    width: 100%;
    height: 100vh;
    background-image: url("bg.jpg");
    background-size: 100% 100%;
    overflow-x: hidden;
    background-repeat: no-repeat;
}
/* Prevent extra white space at the bottom */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensures it covers the full height of the viewport */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    box-sizing: border-box;
}

/* Ensure main content fills available height */
main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 60px); /* Adjust for the height of your nav/footer if applicable */
    padding-bottom: 0;
}

nav, .speak-page {
    box-sizing: border-box;
}

/* Ensure footer or additional content adjusts */
.speak-page {
    margin-top: auto; /* Pushes it to the bottom if there’s extra space */
}

/* General Reset (optional, recommended for consistency) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}
nav{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    z-index: 20;
}
.logo{
    color: white;
    font-size: 40px;
}
.select-box{
    width: 200px;
    position: absolute;
    top:0;
    right:60px
}
.select-heading{
    background-color: aliceblue;
    width: 100%;
    padding: 10px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    cursor: pointer;
}
.select-heading img{
    transition: all 0.3s;
}
.options{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap:10px;
    background-color: rgba(240, 248, 255, 0.838);
    backdrop-filter: blur(5px);
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    border-radius: 20px;
    display:none;
}
.active-options{
    display: flex;
}
.rotate{
    transform: rotate(180deg);
   
}
.option{
    border-radius: 20px;
    padding: 10px;
    transition: all 0.4s;
    cursor: pointer;
}
.option:hover{
    background-color: aliceblue;
    letter-spacing: 1px;
}
.right-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:20px;
    position: relative;
}
main{
    width: 100%;
    height: calc(100% - 80px);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.chat-box{
position: absolute;
width: 30%;
height: 80%;
bottom: 10%;
right:5%;
background-color: rgba(240, 248, 255, 0.457);
border-radius: 20px;
backdrop-filter: blur(5px);
padding: 10px;
transform: translateX(600px);
transition: all 0.5s;
z-index: 25;
}
.active-chat-box{
    transform: translateX(0px);
}
.chat-container{
    width: 100%;
    height: 80%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap:20px;
    font-size: 20px;
}
/* General Chatbox Styling */
.chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 100%;
    height: 500px;
    display: none;
    flex-direction: column;
    background: #271c1c;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
  }
  
  .chat-box.active-chat-box {
    display: flex;
  }
  
  .chat-container {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
  }
  
  .input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #1f4205;
    border-radius: 10px;
  }
  
  .input-area input {
    flex-grow: 1;
    border: 1px solid #c31616;
    border-radius: 5px;
    padding: 10px;
  }
  
  .input-area button {
    margin-left: 10px;
    padding: 10px;
    background: #007bff;
    color: #eb2a2a;
    border: none;
    border-radius: 5px;
  }
  
  /* Media Query for Small Screens */
  @media (max-width: 600px) {
    .chat-box {
      width: 95%;
      height: 80%;
      bottom: 10px;
      right: 10px;
      
    }
  
    .chat-container {
      font-size: 14px;
    }
  
    .input-area input {
      padding: 10px;
    }
  
    .input-area button {
      padding: 8px;
    }
  }
  
.input-area{
    width: 96%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:20px;
    position: fixed;
    bottom: 0;
}
.prompt{
    width: 60%;
    padding: 20px;
    background: rgb(50, 15, 15);
    color: yellow;
    font-size: 19px;
    border-radius: 20px;
    outline: none;
}
.input-area button{
    padding: 10px;
    background: green;
    border: none;
    border-radius: 50px;
}
.user-chat-box{
    width: 80%;
padding: 20px;
background-color: rgb(241, 6, 6);
border-radius: 50px 0px 50px 50px;
position: relative;
left:90px;
color:rgb(43, 24, 24);

}
.ai-chat-box{
    width: 80%;
padding: 20px;
background-color: rgb(45, 228, 45);
border-radius: 0px 50px 50px 50px;
position: relative;
left: 0px;
color:rgb(38, 32, 32)
}
.h1{
    font-size: 3vw;
    text-align: center;
}
#chatbotimg{
    cursor: pointer;
}
.options a{
    text-decoration: none;
    color: black;
}
.bgtext{
    font-size: 10vw;
    text-align: center;
    color: rgba(240, 248, 255, 0.482);
    
}
.svgs{
width: 50%;
height: 70%;
display: flex;
align-items: center;
overflow-x: scroll;
overflow-y: hidden;
position: absolute;
border-radius: 20px;
gap:10px;
right:10%;
bottom: 20%;
background-color: rgba(255, 255, 255, 0.603);
backdrop-filter: blur(5px);

}
.svgs::-webkit-scrollbar{
    width: 0px;
}
.svgs img{
    width: 400px;
}
.virtual-assistant{
    position: absolute;
    bottom: 5%;
    left:5%;
    filter:drop-shadow(2px 2px 10px rgb(65, 152, 214));
    
}
.speak-page{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.525);
    backdrop-filter: blur(5px);
    z-index: 30;
    top:0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap:20px;
    display: none;
}

.speak-page h1{
    color: white;
}
#voice{
    margin-top:30px;
    border-radius: 50%;
}
.virtual-assistant img{
    cursor: pointer;
}
/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Specific font size for mobile screens */
@media (max-width: 768px) { /* Target devices with width 768px or less */
    h1, .h1 {
        font-size: 24px; /* Increase for better readability */
    }

    .bgtext {
        font-size: 20px; /* Adjust background text size */
    }

    .select-box .select-heading span {
        font-size: 18px;
    }

    .prompt {
        font-size: 16px; /* Increase input field font size */
    }

    nav .logo {
        font-size: 22px; /* Adjust logo font size */
    }

    .option {
        font-size: 18px; /* Adjust dropdown options */
    }
}

/* Optional: Specific smaller sizes */
@media (max-width: 480px) {
    h1, .h1 {
        font-size: 20px;
    }

    nav .logo {
        font-size: 18px;
    }

    .prompt {
        font-size: 14px;
    }
}
