/* FORMATO PC */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

/* Google Traductor */
/********************/
.google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  overflow: hidden;
}
#google_translate_element .goog-te-gadget-simple {
  background: silver !important;
  border: none !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center;
  height: 34px;
  width: 100%;
}
#google_translate_element .goog-te-gadget-simple span:last-child {
  display: none;
}
#google_translate_element .goog-te-gadget-icon {
  margin-right: 4px;
}
#google_translate_element .goog-te-menu-value {
  margin: 0 !important;
  font-size: 12px !important;
}
#google_translate_element .goog-te-menu-value span {
  border: none !important;
}

.interface-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 90%;
    max-width: 1200px;
}

.viewer {
    position: relative;
    width: 100%;  
    height: 70vh; 
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.viewer-text {
  padding: 30px;
  color: white;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.viewer-text h3 {
  margin-top: 0;
  color: #00a8ff;
  font-size: 24px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-visor, .control_paises button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-visor:hover, .control_paises button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

input[type="number"] {
    width: 55px;
    height: 35px;
    font-size: 18px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.totalmedia {
    font-size: 28px;
    font-weight: bold;
}

#barra_sep {
    font-size: 24px;
}

.control_paises {
    position: fixed;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.loader {
  display: none;
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: #00a8ff;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  top: 30%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

@keyframes rotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* FORMATO MÓVIL */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        display: flex;
        flex-direction: column; 
        align-items: center;    
        justify-content: flex-start;
        padding: 20px;
        box-sizing: border-box;
    }

    .control_paises {
        position: static; 
        transform: none;
        width: auto;
        margin-bottom: 20px; 
        display: flex;
        justify-content: center;
    }

    .interface-container {
        width: 100%; 
        max-width: 450px;
        padding: 0;
        gap: 20px;
    }

    .viewer {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        max-height: 60vh;
    }

    .controls {
        width: 100%;
        justify-content: center;
        gap: 20px; 
    }

    .btn-visor i {
        font-size: 2rem; 
    }

    input[type="number"] {
        width: 65px;
        height: 45px;
        font-size: 20px;
    }

    .totalmedia, #barra_sep {
        font-size: 22px;
    }
}