@import url("https://fonts.googleapis.com/css?family=Lato");

@font-face {
  src: url(./fonts/Poppins-Regular.ttf);
  font-family: Poppins;
}

@font-face {
  src: url(./fonts/Poppins-Bold.ttf);
  font-family: Poppins-Bold;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #fcc1b2, #484686);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.converter-container,
.captions-container {
  position: relative;
  padding: 5% 0;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-family: Poppins !important;
  margin-bottom: 30px;
  color: #333;
  font-weight: 900;
  font-size: 2em;
}

.input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
}

#linkInput,
#conversionType, #usernameInput {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex: 1;
}



#linkInput {
  flex: 3;
}

#conversionType {
  flex: 1;
  cursor: pointer;
}

button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1em;
  color: #e47a5e;
  background-color: #fde6e0;
  border: 1px solid #e47a5e;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  opacity: 0.8;
}

#output,
#copyMessage {
  font-size: 1em;
  margin-top: 15px;
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

#output {
  text-align: flex-start;
  font-weight: bold;
  color: #000;
  word-wrap: break-word;
}

#copyMessage {
  text-align: center;
  color: #fff;
  display: none;
  font-size: large;
}

.buttonConvert {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin-top: 30px;
  border-radius: 20px;
}

.buttonLook {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin-top: 30px;
  border-radius: 20px;
}

#topic-input {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.file-input-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  border-radius: 20px !important;
}

.file-input {
  width: 100%;
  height: 40px;
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.file-input-label {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: black;
  color: white;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  font-family: Poppins;
  transition: background-color 0.3s;
}

.file-input-label:hover {
  background-color: #0056b3;
}

#selectedImage {
  max-width: 150px;
  max-height: 300px;
  height: auto;
  margin-top: 20px;
  display: block;
  object-fit: contain;
}

#captions-generator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.download-link {
  color: #FFF;
  background-color: #000;
  border-radius: 25px;
  padding: 5% 5%;
}

.download-link:hover {
  background-color: #FFF;
  color: #000;
  opacity: 0.7 !important;
}

.lds-default {
  display: none;
  align-self: center;
  position: relative;
  height: 100px;
}
.lds-default div {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 37px;
  left: 7px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 52px;
  left: 11px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62px;
  left: 22px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66px;
  left: 37px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62px;
  left: 52px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 52px;
  left: 62px;
}
@keyframes lds-default {
  0%,
  20%,
  80%,
  100% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.7);
  }
}

.tables-container {
  margin-top: 20px;
  gap: 20px;
  width: 100%;
}

.table-responsive {
  margin-bottom: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  font-size: 14px;
  font-family: Poppins;
  padding: 8px;
  border: 1px solid #000;
}

.table th {
  background-color: #f4f4f4;
}

#englishTable,
#spanishTable,
h3 {
  color: black;
  font-family: Poppins;
}

#englishTable th,
#spanishTable th,
#englishTable td,
#spanishTable td {
  color: black;
}

.tables-container h3 {
  color: black;
}

.checker-container {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  width: 100%; 
  margin-top: 20px;
}

.checker-container h1 {
  font-family: "Poppins-Bold", sans-serif;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333; /* Color del texto */
}

#button-satelite {
  margin-top: 10px;
}

.button-check-satelites {
  font-family: "Poppins-Bold", sans-serif;
  font-size: 1.2em;
  padding: 10px 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #484686, #fcc1b2);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-check-satelites:hover {
  background: linear-gradient(135deg, #fcc1b2, #484686);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#satellitesList {
  display: grid;
  grid-template-columns: repeat(9, 1fr); 
  gap: 10px; 
  width: 100%; 
  padding: 5%;
}

.satellite-item {
  background-color: #f0f0f0; 
  color: #FFF; 
  font-family: "Poppins", sans-serif;
  font-size: 1em; 
  padding: 10px;
  border: 1px solid #ddd; 
  border-radius: 5px; 
  text-align: center; 
  text-decoration: none;
  transition: all 0.5s ease;
}

.satellite-item:hover {
  background-color: #000 !important;
  color: #FFF !important;
  opacity: 0.7 !important;
}

.satellite-item.online {
  background-color: #228b22; 
  text-decoration: none;
}

.satellite-item.online:hover{
  background-color: #3700ff !important;
  color: #FFF !important;
  opacity: 0.7 !important;
}

.satellite-item.offline {
  background-color: #b22222; 
  text-decoration: none;
}
