@font-face
{
    font-family: 'Ailerons';
    src: url(assets/fonts/53123d263cb63e4597b2.woff2) format('woff2'),
        url(assets/fonts/1bb85400b660a657542f.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection
{
    /* color: #aaaaaa; */
    background: #ffffff22;
}

html,
body
{
    overflow: hidden;
    background-color: #000000;
    scrollbar-gutter: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.experience
{
    position: fixed;
    width: 100vw;
    height: 100vh;
}

.toolbar
{
    position: absolute;
    padding: 24px;
    width: 100%;

    display: flex;
    flex-direction: row;
    gap: 16px;
    z-index: 100;
}

.grow {
    flex-grow: 1;
}

svg {
    /* cursor: pointer; */
    color: white;
}

.toolbar svg
{
    width: 24px;
    height: 24px;
}

.credits
{
    /* position: absolute; */
    /* top: 60px; */
    /* right: 20px; */
    color: #ffffff;
    /* text-align: right; */
    font-family: 'Roboto', sans-serif;
    /* font-size: 0.8rem; */
    z-index: 100;
    padding-top: 16px;
}

.credits p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.hidden
{
    display: none !important;
}

.credits a
{
    color: inherit;
}

.title
{
    position: absolute;
    top: calc(50% - 14vmin / 2);
    left: 0;
    width: 100%;
    color: #ffffff;
    font-size: 14vmin;
    text-transform: uppercase;
    text-align: center;
    outline: none;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.logo svg {
    width: 20px;
    width: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 4px;

    text-decoration: none;

    font-size: 20px;
    color: white;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.start
{
    position: absolute;
    top: calc(50% - 5vmin / 2);
    left: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
}

.start.hidden {
    display: none !important;
}

.start button
{
    color: #ffffff;
    font-size: 4vmin;
    text-transform: uppercase;
    text-align: center;
    outline: none;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    
    background: none;
    border: 2px solid #ffffff;
    padding: 12px 24px;

    transition: background-color 0.3s;
    /* cursor: pointer; */
    opacity: 1;
}

.start button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
}

.start button.fadeout {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.controls {
    position: absolute;
    bottom: 8vh;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12vw;
}

.error {
    position: absolute;
    bottom: 24px;
    left: 24px;
    max-width: 500px;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 24px;
    color: #ef4444;

    background-color: #fef2f222;
    font-family: Helvetica, Arial, sans-serif;
}

.error-heading {
    display: flex;
    justify-content: space-between;
    /* cursor: pointer; */
    padding-bottom: 8px;
}

.controls button {
    background: none;
    border: 2px solid #ffffff;
    width: 8vh;
    height: 8vh;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0.2;
    transition: opacity 0.2s ease-in-out;
}

.controls button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
}

.controls button svg {
    width: 4vh;
    height: 4vh;
}

.controls button.microphone {
    border: 2px solid #ef4444;
}

.controls button.microphone.on {
    border: 2px solid #ffffff;
}

.microphone.on svg.on {
   display: inline;
}

.microphone.on svg.off {
    display: none;
}

.microphone svg.on {
    display: none;
}

.microphone svg.off {
    display: inline;
    color: #ef4444;
}   

.connection svg.disconnect {
    display: none;
}

.connection.connected svg.connect {
    display: none;
}

.connection.connected svg.disconnect {
    display: inline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.pt-4 {
    padding-top: 4px;
}

.pt-10 {
    padding-top: 10px;
}

.costs {
    font-family: monospace, Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #ffffff;
    vertical-align: middle;
    height: 24px;
    line-height: 24px;
}

.modal .modal-content {
    position: relative;
    margin: auto;
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    color: white;
    font-family: Helvetica, Arial, sans-serif;
}

/* Settings Modal Styles */
.settings-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tab-button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tab-button.active {
    color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal.medium .modal-content {
    width: min(500px, 90vw);
}

.modal.large .modal-content {
    width: min(600px, 90vw);
}

.hint {
    font-size: 12px;
    color: #aaa;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: default
}

.modal .close:hover {
    color: #fff;
}

.modal h2 {
    margin-top: 0;
    text-align: center;

    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal label {
    display: block;
    margin: 12px 0 8px;

    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal .checkbox label {
    display: inline;
    font-size: 14px;
    vertical-align: middle;
}

.modal .input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-grow {
    flex-grow: 1;
}

.modal input, .modal select, .modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff; /* White text */
}

.modal input[type="checkbox"] {
    width: inherit;
}

.modal input[type="number"] {
    width: calc(100% - 30px);
}

.modal button[type="submit"] {
    padding: 10px 20px;
    border: 1px solid #fff;
    background: none;
    color: #fff;
    /* cursor: pointer; */
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s;

    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 8px;
}

.modal button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
}

.modal #deleteApiKey {
    margin-left: 10px;
    width: 100px;
}

.voice-preview {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    margin-left: 10px;
}

.voice-preview svg {
    width: 24px;
    height: 24px;
}

.voice-preview .stop {
    display: none;
}

.voice-preview.playing .play {
    display: none;
}

.voice-preview.playing .stop {
    display: inline;
}

#addToHomeScreen {
    display: none;
}

#addToHomeScreen .modal-content {
    max-width: 320px;
}

.install-steps {
    margin-top: 1rem;
    line-height: 1.5;
}

.install-steps p {
    margin-bottom: 1rem;
}

.install-steps svg {
    vertical-align: middle;
    margin: 0 0.25rem;
}

/* Hide platform-specific instructions by default */
.ios-steps, .android-steps {
    display: none;
}
