@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Gilda+Display&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
   .raleway- {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

html{
    background-color:black;
    
}
   
   body {
    font-family: "Gilda Display", serif;
    margin: 0;
    padding: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Center text */
    background-image: linear-gradient(355deg, rgb(172 48 101) 0.4%, rgb(206 118 118) 100.3%);
    
    z-index: -1;
}


/* Update the existing .mobile class CSS */
.mobile {
    /*border: 7.5px solid #ffffff66;*/
    /*border-radius: 70% 70% 86% 92%;*/
    /*padding: 41px 40px;*/
    /*box-shadow: -13px 0px 76px -54px;*/
    /*border-top-width: 26px;*/
    /*transition: all 0.3s ease;*/
}

/* Add these new animation keyframes right after the existing .mobile class */
@keyframes pulseBox {
    0% {
        box-shadow: -3px 0px 56px -24px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: -3px 0px 76px -14px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: -3px 0px 56px -34px rgba(255, 255, 255, 0.1);
    }
}

/* Replace both .mobile.playing and .mobile.audio-playing with this: */
.mobile.playing {
    /*animation: pulseBox 2s ease-in-out infinite;*/
    /*transition: all 0.5s ease;*/
    /* Prevent any transform issues that might cause shaking */
    transform: none !important;
}


h1 {
   font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: white;
  text-shadow: 0px 0px 1.3px;
}
h2{
    	color: cadetblue;
	font-size: inherit;
}

h3 {
    	color: cadetblue;
	font-size: inherit;
}


form {
    margin-bottom: 20px;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Stack input fields vertically */
    align-items: center; /* Center inputs */
}

input[type="text"] {
    width: 80%; /* Make input responsive */
    max-width: 520px; /* Limit max width */
    padding: 10px;
    margin: 5px 0; /* Vertical margin for spacing */
    border: .5px solid #ccc;
    border-radius: 30px;
    color:#ebebeb;
    background-color:#484848;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

textarea {
  width: 100%;
  height: 100px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1.5;
  color: #333;
}

textarea:hover {
  border-color: #999;
  background-color: #fff;
}

textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
  background-color: #fff;
}

textarea::placeholder {
  color: #999;
  opacity: 0.7;
}

input::placeholder{
   
    color: #bababa;
  opacity: 0.9; 
}

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10rem;
  color: #dadada;
  text-transform: uppercase;
  font-size: 1rem;
  width: fit-content;
  letter-spacing: 0.15rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin:3px;
  cursor:pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
.button:after {
  content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #443a98;
	border-radius: 10rem;
	z-index: -2;
}
.button:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #ffc52c;
  transition: all 0.3s;
  border-radius: 10rem;
  z-index: -1;
}
.button:hover {
  color: #fff;
}
.button:hover:before {
  width: 100%;
}


footer {
    font-family: "Gilda Display", serif;
    margin-top: auto;
    padding: 15px;
    /*background-color:#d0e1ff ;*/
    color: black;
    text-align: center;
	border-radius: 0 0 30px 30px;
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#mail{
    
    font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
    padding:20px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-response {
    color: #dadada;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    overflow-x: hidden;
    white-space: normal;
    word-wrap: break-word;
    font-family: "Oxygen", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    max-width: 500px;
    animation: fadeIn 0.5s ease-out; /* Apply the fade-in animation */
}

.bot-response.animate {
    animation: fadeIn 0.5s ease-out;
}

  /* Modal Styles */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1000; /* Sit on top */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
        }

        .modal-content {
            position: relative;
            background-color: #fefefe;
            margin: 10% auto; /* 10% from the top and centered */
            padding: 0;
            border: 1px solid #888;
            width: 80%;
            max-width: 800px; /* Could be more or less, depending on screen size */
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .modal-header {
            padding: 10px 20px;
            background-color: #333;
            color: white;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-body {
            padding: 20px;
            background-color: #fff;
        }

        .close {
            color: white;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: #bbb;
            text-decoration: none;
        }

        /* Responsive iframe */
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 */
            padding-top: 25px;
            height: 0;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

#response-text{
    animation: fadeIn 1.0s ease-out;
    
    
}

audio {
    background-color: transparent !important;
    border: none;
    /* Responsive width */
}
@media (max-width: 700px) {
    input[type="text"], button {
        width: 90%; /* Wider inputs and buttons on small screens */
        border-radius: 30px;
    color:#ebebeb;
    background-color:#3f3e3e;
    }
    .mobile{
        
      /*border: 7.5px solid #ffffff42;*/
	/*border-radius: 100% 100% 169% 178%;*/
	/*padding: 41px 40px;*/
	box-shadow: -13px 0px 76px -69px;
	/*border-top-width: 82px;*/
    }
}

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3) { 

 .mobile{
        
      /*border: 7.5px solid #ffffff42;*/
	/*border-radius: 100% 100% 169% 178%;*/
	/*padding: 41px 40px;*/
	box-shadow: -13px 0px 76px -69px;
	/*border-top-width: 82px;*/
    }

}




 .audio-wrapper {
      width: 70%;
      max-width: 600px;
      padding: 20px;
    }

    /* Base audio element styling */
    audio {
      width: 100%;
      height: 40px;
      filter: opacity(0.7);
    }

    /* Webkit (Chrome & Safari) specific styles */
    audio::-webkit-media-controls-enclosure {
      background: transparent;
      border-radius: 8px;
    }

    audio::-webkit-media-controls-panel {
      background: transparent;
    }

    audio::-webkit-media-controls-current-time-display,
    audio::-webkit-media-controls-time-remaining-display {
      color: white;
    }

    audio::-webkit-media-controls-play-button,
    audio::-webkit-media-controls-mute-button {
      background-color: transparent;
      opacity: 0.8;
    }

    audio::-webkit-media-controls-play-button:hover,
    audio::-webkit-media-controls-mute-button:hover {
      opacity: 1;
    }

    audio::-webkit-media-controls-timeline {
      background-color: rgba(255, 255, 255, 0);
      border-radius: 10px;
      height: 4px;
    }

    audio::-webkit-media-controls-volume-slider {
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      height: 4px;
    }

    audio::-webkit-media-controls-seek-back-button,
    audio::-webkit-media-controls-seek-forward-button,
    audio::-webkit-media-controls-rewind-button,
    audio::-webkit-media-controls-return-to-realtime-button,
    audio::-webkit-media-controls-toggle-closed-captions-button {
      opacity: 0.8;
    }

    /* Firefox specific styles */
    audio::-moz-range-thumb {
      background: white;
    }

    audio::-moz-range-track {
      background: rgba(255, 255, 255, 0.2);
    }
    
     /* Add these new styles for file upload section */
        .file-upload-section {
            margin: 20px 0;
            padding: 20px;
            border-radius: 10px;
            background-color: rgba(255, 255, 255, 0.1);
            width: 80%;
            max-width: 520px;
        }

        .file-input-wrapper {
            position: relative;
            margin: 15px 0;
            width: 100%;
            text-align: center;
        }

        #file-input {
            width: 80%;
            max-width: 520px;
            padding: 10px;
            margin: 5px 0;
            border: .5px solid #ccc;
            border-radius: 30px;
            color: #ebebeb;
            background-color: #484848;
        }

        #analysis-result {
            margin-top: 20px;
            padding: 15px;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            animation: fadeIn 0.5s ease-out;
            text-align: left;
        }

        /* Add to your existing styles */
        .file-upload-section h3 {
            color: white;
            margin-bottom: 15px;
            font-family: "Raleway", sans-serif;
            font-weight: 700;
        }
