body {
  font-family: 'Gotham', sans-serif;
}

ion-content {
  --padding-start: 0;
  --padding-end: 0;
  --padding-top: 0;
  --padding-bottom: 0;

  --overflow: hidden; 
}


.main-container {
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center; 
  padding: 10px;
}

.main-container,
.main-container * {
  box-sizing: border-box;
}

input,
select,
textarea,
button {
  outline: 0;
}

/* .translate-button {
  position: relative;
  width: 60px;
  height: 30px;
  margin: auto;
  top: 70px;
  left: 0;
  background: #0f4bb4;
  z-index: 2;
  border-radius: 5px;
}

.translate-span {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 60px;
  height: 30px;
  top: 0;
  left: 0;
  color: #ffffff;
  font-family: Gotham, var(--default-font-family);
  font-size:12px;
  font-weight: 500;
  line-height: 9.6px;
  text-align: center;
  z-index: 6;
} */


.s-to-t-section {
  flex-grow: 1;
  position: relative;
  margin: 10px 0;
  align-items: center;
  max-width: 600px;
  top: 80px;
  width: 100%;
  height: 550px;
  font-size: 0px;
  z-index: 10;
}
.sign-to-text {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  position: relative;
  color: #000000;
  font-family: Gotham, var(--default-font-family);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  z-index: 12;
}

.rectangle-3 {
  position: absolute;
  width: 100%;
  height: 600px;
  top: 0;
  left: 0;
  bottom: 20px;
  background: #ececec;
  z-index: 11;
  border-radius: 20px;
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 55px;
  color: #0f4bb4;
  font-family: Gotham, var(--default-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  z-index: 1;
}

/* // LE PHONE screen size Galaxy S24 FE */
.screen-size {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
}

.sub-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 40px;
  width: 100%;
  height: 45px;
  color: #0f4bb4;
  font-family: Gotham, var(--default-font-family);
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-align: center;
  z-index: 2;
}


#videoElement {
  position: relative;
  top: 10px;
  width: 95%;
  height: 90%;
  margin: 5px auto 10px;
  /* background-color: black; */
  z-index: 13;

  object-fit: cover; 
  border-radius: 20px;
  transform: scaleX(-1);
}
#errorMessage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Gotham, sans-serif;
  color: #d32f2f;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  display: none;
  z-index: 16;
}


#subtitleBox {
  position: relative;
  top: 5px;
  margin: 15px auto 10px;
  padding: 15px;
  bottom: 5px;
  width: 95%;
  height: 50px;
  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: Gotham, sans-serif;
  font-size: 16px;
  text-align: center;
  border-radius: 15px;
  z-index: 15;
}

.floatingBtn {
  position: fixed;
  right: 10px;           
  bottom: 10px;       
  width: 80px;      
  z-index: 100;      
  padding: 10px 15px;
  background-color: #0f4bb4;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}


/* Pop-up card app information */
.card button {
  position: static;
  width: auto;
  margin-top: 50px;
  border-radius: 10px;
  padding: 5px;
}

.card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  height: 250px;
  width: 500px;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  z-index: 111;
}

.card {
  animation: pop 0.3s ease;
}




/* Popup installation prompt */
#install-popup {
    display: none; /* Hidden by default, JS will show it */
    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;
    background: #ffffff;
    color: #333;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: sans-serif;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
}

/* Flex containers for icon and text */
.popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-icon {
    border-radius: 8px;
}

.popup-text strong {
    display: block;
    font-size: 14px;
}

.popup-text span {
    font-size: 12px;
    color: #666;
}

.popup-buttons {
    display: flex;
    gap: 8px;
}

#popup-close {
    background: none;
    border: none;
    color: #888;
    padding: 5px 10px;
    cursor: pointer;
}

#popup-install-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}