Spaces:
Paused
Paused
| /* Reset some default browser styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| /* Make the body take up the full viewport height */ | |
| body { | |
| font-family: 'Arial', sans-serif; | |
| background-color: #2c2f33; | |
| color: white; | |
| height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| /* Center container and add padding for mobile devices */ | |
| .container { | |
| width: 90%; | |
| max-width: 1200px; | |
| margin: auto; | |
| text-align: center; | |
| padding: 20px; | |
| background-color: #1c1e22; | |
| border-radius: 12px; | |
| box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4); | |
| transition: all 0.3s ease; | |
| } | |
| /* Add hover effect for container */ | |
| .container:hover { | |
| box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.6); | |
| } | |
| /* Style the headings */ | |
| h1 { | |
| margin: 20px 0; | |
| font-size: 2.5rem; | |
| color: #7289da; | |
| } | |
| /* Make the audio-panel responsive using flexbox */ | |
| .audio-panel { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: space-around; | |
| margin: 20px 0; | |
| } | |
| .audio-upload { | |
| width: 45%; | |
| min-width: 300px; | |
| padding: 10px; | |
| margin-bottom: 20px; | |
| background-color: #40444b; | |
| border-radius: 10px; | |
| transition: transform 0.2s; | |
| } | |
| .audio-upload:hover { | |
| transform: translateY(-5px); | |
| } | |
| h2 { | |
| font-size: 1.25rem; | |
| margin-bottom: 10px; | |
| color: #99aab5; | |
| } | |
| /* Style for file input */ | |
| input[type="file"] { | |
| display: block; | |
| margin: 10px 0; | |
| background-color: #7289da; | |
| color: white; | |
| padding: 10px; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| transition: background-color 0.3s; | |
| } | |
| input[type="file"]:hover { | |
| background-color: #5b6bb0; | |
| } | |
| /* Style the audio players */ | |
| audio { | |
| width: 100%; | |
| margin: 10px 0; | |
| } | |
| /* Style buttons with consistent design */ | |
| button { | |
| padding: 12px 25px; | |
| font-size: 1rem; | |
| background-color: #7289da; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| transition: background-color 0.3s, transform 0.2s; | |
| margin: 10px 5px; | |
| } | |
| button:hover { | |
| background-color: #5b6bb0; | |
| transform: translateY(-3px); | |
| } | |
| /* Loader and result display */ | |
| #loader { | |
| font-size: 1.25rem; | |
| color: #7289da; | |
| margin: 20px 0; | |
| } | |
| .results { | |
| margin-top: 20px; | |
| background-color: #40444b; | |
| padding: 20px; | |
| border-radius: 10px; | |
| color: #99aab5; | |
| text-align: left; | |
| } | |
| .results h3 { | |
| margin-bottom: 10px; | |
| color: #7289da; | |
| } | |
| #results p { | |
| font-size: 1.1rem; | |
| margin: 5px 0; | |
| } | |
| /* Media query to ensure responsiveness on smaller screens */ | |
| @media (max-width: 768px) { | |
| .audio-upload { | |
| width: 100%; | |
| margin-bottom: 20px; | |
| } | |
| h1 { | |
| font-size: 2rem; | |
| } | |
| button { | |
| width: 100%; | |
| padding: 15px; | |
| } | |
| } | |
| /* Add recording animation style */ | |
| .recording-active { | |
| animation: pulse 1s infinite; | |
| background-color: red; | |
| color: white; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); | |
| } | |
| 70% { | |
| box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); | |
| } | |
| 100% { | |
| box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); | |
| } | |
| } | |