/* Button Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
body { font-family: Arial, sans-serif; margin: 20px; }
.editor-wrapper { margin-bottom: 20px; }
.preview { border: 1px solid #ccc; padding: 10px; margin-top: 20px; }

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}


.inter-400 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.full-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw; /* Larghezza a tutto schermo */
    height: 100vh; /* Altezza a tutto schermo */
    position: fixed; /* Rende il div fisso */
    top: 0;
    left: 0;
    background-size: cover; /* Assicura che l'immagine di sfondo copra l'intero div */
    background-position: center; /* Centra l'immagine di sfondo */
    background-repeat: no-repeat; /* Impedisce la ripetizione dell'immagine */
}

.language-selector, .incoming-call, .in-call {
    text-align: center;
    width: 100%; /* Assicura che i contenuti siano centrati e occupino tutta la larghezza */
}

.language-selector {
    display: flex;
    flex-direction: row; /* Disponi le bandiere orizzontalmente */
    justify-content: center;
    align-items: center;
}

.language-button {
    border: none;
    background: none;
    cursor: pointer;
    margin: 20px; /* Aumentato il margine per dare più spazio attorno ai pulsanti */
    padding: 10px; /* Aggiunto padding per aumentare la dimensione del pulsante */
    transition: transform 0.3s ease; /* Aggiunge un effetto di transizione per il feedback visivo */
}

.language-button:hover {
    transform: scale(1.1); /* Effetto di ingrandimento all'hover per un feedback interattivo */
}

.language-button img {

    display: block; /* Assicura che l'immagine non abbia spazio extra intorno */
}

.button-slide {
    will-change: transform;  /* Suggerisce al browser che questa proprietà cambierà frequentemente */
}


.Phone {
    position: relative;
    display: block;
    margin: 0;
    width: 1em;
    height: 1em;
    font-size: 25vmin;
    background-color: #3498db;
    border-radius: 0.5em;
    box-shadow:
            0 0 0 0em rgba(#3498db, 0),
            0em 0.05em 0.1em rgba(#000000, 0.2);
    transform: translate3d(0, 0, 0) scale(1);
}

.accept{
    background: green;
}
.decline{
    background: red;
    transform: rotate(134deg) ;
}

.Phone::before,
.Phone::after {
    position: absolute;
    content: "";
}

.Phone::before {
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100%;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0);
}

.Phone::after {
    top: 0.25em;
    left: 0.25em;
    width: 0.5em;
    height: 0.5em;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTYuNiAxMC44YzEuNCAyLjggMy44IDUuMSA2LjYgNi42bDIuMi0yLjJjLjMtLjMuNy0uNCAxLS4yIDEuMS40IDIuMy42IDMuNi42LjUgMCAxIC40IDEgMVYyMGMwIC41LS41IDEtMSAxLTkuNCAwLTE3LTcuNi0xNy0xNyAwLS42LjQtMSAxLTFoMy41Yy41IDAgMSAuNCAxIDEgMCAxLjIuMiAyLjUuNiAzLjYuMS40IDAgLjctLjIgMWwtMi4zIDIuMnoiIGZpbGw9IiNmZmZmZmYiLz48L3N2Zz4=);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(0, 0, 0);
}

.Phone.is-animating {
    animation: phone-outer 3000ms infinite;

    &::before {
        animation: phone-inner 3000ms infinite;
    }

    &::after {
        animation: phone-icon 3000ms infinite;
    }
}

.call-duration {
    font-size: 36px;
    color: white;
    margin-top: 10px;
    text-align: center;
    font-weight:100
}

@keyframes phone-outer {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow:
                0 0 0 0em rgba(52, 152, 219, 0),
                0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }
    33.3333% {
        transform: translate3d(0, 0, 0) scale(1.1);
        box-shadow:
                0 0 0 0em rgba(52, 152, 219, 0.1),
                0em 0.05em 0.1em rgba(0, 0, 0, 0.5);
    }
    66.6666% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow:
                0 0 0 0.5em rgba(52, 152, 219, 0),
                0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow:
                0 0 0 0em rgba(52, 152, 219, 0),
                0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }
}

@keyframes phone-inner {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(0);
    }
    33.3333% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(0.9);
    }
    66.6666% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0);
    }
}

@keyframes phone-icon {
    0% { transform: translate3d(0em, 0, 0); }
    2% { transform: translate3d(0.01em, 0, 0); }
    4% { transform: translate3d(-0.01em, 0, 0); }
    6% { transform: translate3d(0.01em, 0, 0); }
    8% { transform: translate3d(-0.01em, 0, 0); }
    10% { transform: translate3d(0.01em, 0, 0); }
    12% { transform: translate3d(-0.01em, 0, 0); }
    14% { transform: translate3d(0.01em, 0, 0); }
    16% { transform: translate3d(-0.01em, 0, 0); }
    18% { transform: translate3d(0.01em, 0, 0); }
    20% { transform: translate3d(-0.01em, 0, 0); }
    22% { transform: translate3d(0.01em, 0, 0); }
    24% { transform: translate3d(-0.01em, 0, 0); }
    26% { transform: translate3d(0.01em, 0, 0); }
    28% { transform: translate3d(-0.01em, 0, 0); }
    30% { transform: translate3d(0.01em, 0, 0); }
    32% { transform: translate3d(-0.01em, 0, 0); }
    34% { transform: translate3d(0.01em, 0, 0); }
    36% { transform: translate3d(-0.01em, 0, 0); }
    38% { transform: translate3d(0.01em, 0, 0); }
    40% { transform: translate3d(-0.01em, 0, 0); }
    42% { transform: translate3d(0.01em, 0, 0); }
    44% { transform: translate3d(-0.01em, 0, 0); }
    46% { transform: translate3d(0em, 0, 0); }
}

/* Button Style */


/* Phone Layout*/

body, html {
    height: 100%;
    margin: 0;
  }


.phone-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 32px;
    background: linear-gradient(to bottom, #2980b9, #6dd5fa); /* Gradient background */
}
.caller-info {
    text-align: center;
    color: white;
    padding: 0 0 0em;
}
.caller-info h1 {
    margin: 0.2em 0 0.1em 0;
    font-size: 28px;
    font-weight: 200
}
.caller-info h2 {
    margin: 0;
    font-size: 18px; /* Subtitle */
    font-weight: 100;
    opacity: 0.7;
}
.caller-avatar {
    width: 6em;
    height: 6em;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin:auto;
}
.caller-avatar img {
    width: 100%;
}
.call-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: fixed;
    bottom: 0;
    bottom: 24px;
}
.phone-top {
    width: 100%; /* Assicura che la sezione si estenda per tutta la larghezza del contenitore */
    text-align: center; /* Centra il testo e gli elementi all'interno */
    padding: 6px 0; /* Aggiunge spazio sopra e sotto per separazione */
    background-color: rgba(0, 0, 0, 0.5); /* Leggero sfondo trasparente per migliorare la leggibilità */
    color: white; /* Testo bianco per contrasto */
    position: absolute; /* Posizionamento assoluto per controllare la sua posizione */
    top: 0; /* Allinea al top del container */
    left: 0; /* Allinea a sinistra del container */
    backdrop-filter: blur(4px);
}

.no-animation {
    animation: none !important;
    transition: none !important;
}

/* Phone Layout*/

/* Ended Call Style Page*/
.ended-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: white; /* Sfondo bianco fisso */
    text-align: center;
}

.dynamic-content {
    color: #333;
    font-size: 24px;
    padding: 20px;
}

.replay-button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}

.replay-button:hover {
    background-color: #2980b9;
}

.related-articles {
    margin-top: 30px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles ul li {
    margin: 5px 0;
}

.related-articles ul li a {
    color: #3498db;
    text-decoration: none;
}

.related-articles ul li a:hover {
    text-decoration: underline;
}

.sponsors {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sponsor-item {
    text-align: center;
}

.sponsor-item img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}
/* Container principale che occupa tutta la schermata */
.waiting-container {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Centra verticalmente */
    align-items: center;  /* Centra orizzontalmente */
    width: 100vw;
    height: 100vh;
    background-color: white;  /* Sfondo bianco per lo stato "waiting" */
    text-align: center;
}

/* Sezione del selettore delle lingue */
.language-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;  /* Aggiunge uno spazio tra i pulsanti */
}

/* Stile per i pulsanti di selezione della lingua */
.language-button {
    border: none;
    background: none;
    cursor: pointer;
    margin: 10px;
}

.language-button img {

    transition: transform 0.3s ease;  /* Transizione per l'effetto hover */
}

.language-button img:hover {
    transform: scale(1.1);  /* Effetto di ingrandimento al passaggio del mouse */
}

/* Ended Call Style Page*/