@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

        body {
            margin: 0;
            font-family: 'Inter', Arial, sans-serif;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            background-color: #040c44;
        }

        video {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 600;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            margin-bottom: 30px;
        }

        #nameInput {
            margin-bottom: 20px;
            padding: 15px 20px;
            font-size: 16px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            outline: none;
            width: 250px;
            text-align: center;
        }

        #nameInput:focus {
            border-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
        }

        .button-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }

        button {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(15px);
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #ffffff;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
        }

        button:disabled {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            color: rgba(255, 255, 255, 0.5);
            cursor: not-allowed;
        }

        #audioPreview {
            margin-top: 20px;
            width: 90%;
            max-width: 400px;
            display: none;
        }

        #customAudioPlayer {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 90%;
            max-width: 400px;
            position: relative;
            margin-top: 20px;
        }

        #playPauseButton,
        #resetButton {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        #progressBar {
            flex-grow: 1;
            appearance: none;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
            cursor: pointer;
        }

        #progressBar::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
        }

        #timeDisplay {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            color: #fff;
        }

        #status {
            margin: 10px 0;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            padding: 5px 15px;
            border-radius: 15px;
            backdrop-filter: blur(5px);
        }

        #visualizer {
            width: 90%;
            max-width: 400px;
            height: 100px;
            background-color: rgba(0, 0, 0, 0.3);
            margin: 15px auto;
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(5px);
        }

        .recording-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #ff3b30;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.3;
            }

            100% {
                opacity: 1;
            }
        }

        .visualizer-bar {
            position: absolute;
            bottom: 0;
            background: linear-gradient(to top, #3498db, #2ecc71);
            width: 4px;
            border-radius: 2px 2px 0 0;
            box-shadow: 0 0 4px rgba(46, 204, 113, 0.5);
        }

        #warningMessage {
            margin: 5px 0 15px 0;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            text-align: center;
            background: rgba(255, 59, 48, 0.3);
            padding: 5px 15px;
            border-radius: 15px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 59, 48, 0.5);
        }

        /* Responsive adjustments for mobile */
        @media (max-width: 768px) {
            body {
                height: 80vh;
            }

            h1 {
                font-size: 2rem;
                margin-bottom: 20px;
            }

            #nameInput {
                width: 80%;
                max-width: 250px;
            }

            #visualizer {
                width: 85%;
                max-width: 320px;
                height: 80px;
            }

            .button-container {
                gap: 15px;
            }

            button {
                width: 60px;
                height: 60px;
                font-size: 18px;
            }

            #warningMessage {
                font-size: 12px;
            }

            #status {
                font-size: 12px;
            }

            #customAudioPlayer {
                width: 85%;
            }
        }

        .profile-img {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px;
            border: 2px solid white;
            border-radius: 50%;
            object-fit: cover;
        }

        /* Aggiustamento layout */
        .developer {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            margin-bottom: 12px;
        }

        .developer:last-child {
            margin-bottom: 0;
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

        .name-container {
            flex-grow: 1;
            overflow: hidden;
        }

        /* Resto dello stile */
        #creditsButton {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 70px;
            height: 70px;
            border-radius: 35px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(15px);
            background: rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            overflow: hidden;
            padding: 0;
            z-index: 1000;
        }

        #creditsButton.active {
            width: 260px;
            height: 140px;
            border-radius: 20px;
        }

        .credits-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        #creditsButton.active .credits-text {
            opacity: 0;
            transform: translate(-50%, -30px);
        }

        .credits-content {
            opacity: 0;
            padding: 15px;
            transform: scale(0.8);
            transition: all 0.3s ease;
        }

        #creditsButton.active .credits-content {
            opacity: 1;
            transform: scale(1);
        }

        @keyframes typing {
            from {
                width: 0
            }

            to {
                width: 100%
            }
        }

        .name {
            font-style: italic;
            color: white;
            font-size: 20px;
            overflow: hidden;
            white-space: nowrap;
            width: 0;
            animation: typing 0.5s forwards;
            vertical-align: bottom;
        }

        .developer:first-child .name {
            animation-delay: 0.3s;
        }

        .developer:last-child .name {
            animation-delay: 0.6s;
        }