@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
    font-family: 'Roboto';
    background-color: #c9ffc5;
    text-align: center;
    color: #292929;
}

header {
    position: fixed;
    background-color: #0408038c;
    height: 80px;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    backdrop-filter: saturate(180%) blur(15px);
}

header .logo div {
    height: 80px;
    width: 170px;
    background-image: url(../img/header_logo.png);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    float: left;
}

#change_lang {
    position: absolute;
    top: 35px;
    right: 27px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

#prev_price {
    font-weight: bold;
    font-size: 14px;
}

#finish_it {
    display: none;
    width: 100vw;
    max-width: 800px;
}

#finish_it.show {
    display: inline-block;
}

#recorder_it {
    display: inline-block;
    transform: translateY(20vh);
    transition: all ease 0.3s;
    width: 100vw;
    max-width: 800px;
    margin-top: 90px;
}

#recorder_it.ended {
    transform: translateY(0);
}

.separator {
    display: block;
}

#title {
    font-size: 26px;
    margin: 20px 12px;
}

#permission_button {
    height: 130px;
    width: 130px;
    background-color: #60845b;
    border-radius: 100%;
    border: none;
    box-shadow: 0 0 25px #ffffff45;
    background-image: url(../img/micro.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 35%;
    transform: scale(1);
    position: relative;
    cursor: pointer;
}

#permission_button.recording {
    background-color: #bf0534;
    background-image: url(../img/pause.png);
    animation: recording 1s ease-in-out infinite;
    background-size: 30%;
}

#permission_button.loading {
    background-image: url(../img/loading.gif);
    background-size: 45%;
}

#permission_button.error {
    background-image: url(../img/no_micro.png);
    background-size: 45%;
    background-color: #fd4545;
}

#permission_button::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    height: calc(100% + 10px);
    width: calc(100% + 10px);
    border: 5px solid #ff0040;
    border-radius: 100%;
    opacity: 0;
}

#permission_button.recording::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    height: calc(100% + 10px);
    width: calc(100% + 10px);
    border: 5px solid #ff0040;
    border-radius: 100%;
    animation: recording_before 1s ease-in-out infinite;
}

#line {
    margin-top: 20px;
    width: 90%;
    height: 10px;
    background-color: #b9b9b9;
    display: inline-block;
    position: relative;
    transition: all ease 0.2s;
}

#line #progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #009aff;
    transition: all linear 1s;
}

#line #circle {
    position: absolute;
    left: 0%;
    transform: translateX(-10px);
    top: -5px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #005cda;
    transition: all linear 1s;
}

#line.finish {
    background-color: #009aff;
}

#line.finish #progress {
    background-color: #ff81d8;
}

#line.finish #circle {
    background-color: #ff00b1;
}

#time {
    top: 15px;
    width: 90%;
    left: 0;
    font-size: 45px;
    text-align: center;
    transition: all linear 0.3s;
    display: inline-block;
    height: 60px;
}

#time.ended {
    font-size: 25px;
    text-align: right;
    color: #005cda
}

#line.ended {
    left: 30px;
    margin-top: 20px;
    width: 82%;
}

#triangle {
    display: none;
    height: 50px;
    width: 50px;
    transform: translate(15px, -93px);
    position: relative;
    color: #464646;
    background-image: url(../img/play1.png);
    background-size: cover;
    position: absolute;
    cursor: pointer;
}

#triangle.paused {
    background-image: url(../img/pause1.png);
}

#blob_audio {
    display: none;
}

#your_name {
    width: 550px;
    height: 60px;
    border-radius: 100px;
    font-size: 28px;
    text-align: center;
    border: none;
    display: inline-block;
}

#your_name.error {
    -webkit-appearance: none;
    -moz-appearance: none;
    animation: no_name 1s ease-in-out 1;
}

#text_description {
    font-size: 16px;
    width: 90%;
    display: inline-block;
    margin: 15px 0px;
}

#tip_box {
    margin-top: 25px;
    width: 320px;
    text-align: right;
    font-size: 22px;
    color: #383838;
    font-weight: bold;
    display: inline-block;
}

#tip_box span {
    font-size: 12px;
    font-weight: normal;
}

#disable_page {
    height: 100vh;
    width: 100vw;
    background-color: #599755;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    display: none;
}

#disable_page_logo {
    height: 200px;
    width: 400px;
    background-image: url(../img/header_logo.png);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 10vw;
    left: 50%;
    transform: translateX(-50%);
}

#disable_page_text {
    width: 80%;
    color: #fff;
    font-size: 20px;
    display: inline-block;
    position: absolute;
    left: 10%;
    font-weight: bold;
    top: calc( 10vw + 200px);
}

#loading {
    height: 100vh;
    width: 100vw;
    background-color: #c9ffc5f2;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    opacity: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 35%;
    display: none;
}

#loading span {
    font-size: 22px;
    font-weight: bold;
    color: #60845b;
    top: 40vh;
    text-align: center;
    transform: translateY(-100px);
    width: 100%;
    left: 0;
    position: absolute;
}

.lds-ring {
    display: inline-block;
    position: absolute;
    width: 80px;
    height: 80px;
    top: 40vh;
    left: 50vw;
    transform: translate(-40px, -40px) scale(1.8);
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #60845b;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #60845b transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

#no_permission {
    border: 2px solid #f00;
    font-size: 20px;
    padding: 12px;
    position: absolute;
    top: 100px;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fd4545;
    border-radius: 10px;
    color: #000;
    display: none;
    z-index: 99;
}

#open_mobile {
    display: block;
    position: absolute;
    top: 85px;
    right: 10px;
    width: 150px;
}

#open_mobile span {
    font-size: 14px;
    display: block;
}

#open_mobile #open_mobile_qr {
    height: 110px;
    width: 110px;
    background-color: #d7d7d7;
    border: 1px solid #60845b;
    display: inline-block;
    background-size: cover;
}

#footer {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 11px;
    color: #0000003d;
    display: none;
    text-align: left;
}

#footer a {
    text-decoration: none;
    color: #0000003d;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2),
(max-width: 850px) {
    #footer {
        position: static;
        bottom: 0;
        left: 0;
        width: 96%;
        font-size: 11px;
        color: #0000003d;
        text-align: center;
        padding: 2%;
        display: none;
    }
    .footer_thanks {
        position: absolute !important;
    }
    #disable_page_logo {
        height: 200px;
        width: 100vw;
        top: 30vw;
    }
    #disable_page_text {
        top: calc( 30vw + 200px);
    }
    header {
        height: 45px;
    }
    header .logo div {
        height: 45px;
        width: 110px;
    }
    #change_lang {
        top: 16px;
    }
    .separator {
        display: none;
    }
    #finish_it {
        max-width: none;
        width: auto;
    }
    #recorder_it {
        margin-top: 50px;
        max-width: none;
        display: block;
        width: auto;
    }
    #finish_it.show {
        display: block;
    }
    #line.ended {
        width: 72%;
    }
    #tip_box {
        width: 90%;
    }
    #your_name {
        width: 90%;
        height: 45px;
        font-size: 22px;
        border: none
    }
    #no_permission {
        top: 60px;
        width: 87%;
    }
    #open_mobile {
        display: none;
    }
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes recording {
    0% {
        background-color: #bf0534;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1);
        background-color: #ff0040;
    }
    100% {
        background-color: #bf0534;
        transform: scale(0.9);
    }
}

@keyframes recording_before {
    0% {
        transform: scale(0.8);
        opacity: 0;
        border-color: #bf0534;
    }
    20% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        border-color: #ff0040;
    }
    100% {
        opacity: 0;
        transform: scale(1.1)
    }
}

@keyframes no_name {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 #00000000;
    }
    20% {
        box-shadow: 0 0 10px 5px #00a1ffbd;
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        box-shadow: 0 0 10px 5px #00a1ffbd;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 #00000000;
    }
}

#payment_methods {
    display: block;
    margin: 18px auto 0;
    max-width: 440px;
}

.payment_methods_title {
    color: #383838;
    font-size: 18px;
    margin-bottom: 12px;
    text-align: center;
}

.payment_method {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin: 10px 0;
    min-height: 52px;
    padding: 12px 18px;
    width: 100%;
}

.payment_method:disabled {
    cursor: wait;
    opacity: .65;
}

.payment_method_paypal {
    background: #ffc439;
    color: #142c8e;
}

.payment_method_stripe {
    display: flex;
    padding: 12px 18px;
    overflow: hidden;
    margin-top: 20px;
    background: linear-gradient(135deg, #232627, #1d2021);
    align-items: center;
    justify-content: space-between;
    gap: 0;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.payment_wallet_logos { display: flex; align-items: center; flex: 3; min-width: 0; }
.payment_card_label, .payment_wallet_badge { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: clamp(12px, 3.5vw, 17px); font-weight: 500; }

.payment_card_label { flex: 1.2; font-weight: 400; white-space: nowrap; padding-right: 14px; }
.payment_wallet_badge { flex: 1; gap: 4px; border-left: 1px solid #ffffff60; padding: 0 12px; white-space: nowrap; font-weight: 400; }
.payment_wallet_badge img { display: block; width: 20px; height: 23px; object-fit: contain; filter: brightness(0) invert(1); }
.payment_wallet_google img { filter: none; }
.payment_wallet_bizum { gap: 8px; }
@media (max-width: 420px) {
    .payment_method_stripe { padding: 12px 10px; }
    .payment_wallet_badge { padding: 0 7px; font-size: 13px; }
    .payment_wallet_badge img { width: 17px; height: 21px; }
    .payment_card_label { padding-right: 8px; font-size: 13px; }
}
.payment_card_label::before { flex-shrink: 0; }
.payment_card_label::before { content: ''; display: inline-block; width: 22px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; margin-right: 9px; vertical-align: -2px; background: linear-gradient(transparent 25%, currentColor 25%, currentColor 40%, transparent 40%); }

.payment_method small { display: block; font-size: 12px; font-weight: 400; margin-top: 5px; line-height: 1.5; }
.payment_paypal_logo { display: block; width: 100px; height: auto; margin: 0 auto; }
.payment_method:hover:not(:disabled) { filter: brightness(.95); }
.payment_method:focus-visible { outline: 3px solid #0070ba; outline-offset: 3px; }
