
.viewport div div {
    opacity: 0.9;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fundo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Garante que ficará por cima de tudo */
}
.loader-content {
  text-align: center;
  color: white;
  font-family: sans-serif;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 15px auto; /* Centraliza a rodinha e afasta o texto em baixo */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
html{
    width: 100%;
    height: 100%;
    overscroll-behavior-y: contain; 
    position: relative;
    overflow: hidden;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

/* Caixa principal */
#loading-overlay {
    margin-top: 30px;
    width: min(95%, 480px);
    padding: 35px 30px;
    touch-action: none;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    animation: aparecer 0.6s ease;
}

/* Títulos */
#loading-overlay h1 {
    margin: 0 0 15px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#loading-overlay h1:nth-of-type(2) {
    margin-top: 30px;
    font-size: 19px;
}

/* Texto de status */
#status {
    margin-bottom: 20px;

    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.5;
}

/* IP */
#ip-display {
    margin: 10px 0 25px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #38bdf8;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* IP */
#ip-display6 {
    margin: 10px 0 25px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #38bdf8;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: none;
}

/* Container da barra */
.progress-container {
    width: 100%;
    height: 10px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

/* Barra de progresso */
#progress {
    width: 0%;
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1
    );

    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);

    transition: width 0.4s ease;
}


/* Animação de entrada */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsividade */
@media (max-width: 500px) {
    #loading-overlay {
        padding: 28px 20px;
        border-radius: 16px;
    }

    #loading-overlay h1 {
        font-size: 22px;
    }

    #ip-display {
        font-size: 16px;
    }
}


.control-panel{
    font-family: system-ui, -apple-system, 'HelveticaNeue', BlinkMacSystemFont, "Roboto", "Segoe UI";

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0;
}
.control-panel header{
    font-size: 0;
    display: flex;
    gap: 5px;
    margin: 0px 15px;
    margin-top: 15px;
}
.control-panel header img{
    opacity: 0.5;
}
.control-panel header img:hover{
    opacity: 1;
}

.control-panel fieldset:hover{
    z-index: 10;
    /background-color: rgba(255, 255, 255, 0.25);
}
.control-panel fieldset{
    color: #fff;
    
    border-color: #FFF;
    border-style: dotted;
    padding: 5px;
}
.control-panel > fieldset{
    opacity: .5;
    margin: 15px;
}
.control-panel fieldset:hover{ 
    opacity: 1;
}

.control-panel textarea{
    color: #fff;
    background: transparent;
    min-width: 300px;
    border: transparent;
}
.control-panel button, .control-panel input{
    background: transparent;
    color: #fff;
    border-radius: 3px;
    border: 1px solid #fff;

    padding: 5px 10px;
    margin: 3px;
}
.mfs{
left: 0; 
top: 0;
width: 100%; 
height: 100%;
position:absolute;
margin-right: auto;
}
input::placeholder{
    color: #fff;
}
input + br + input {
    margin-top: 5px;
}
input[type="checkbox"]{
    margin-top: 10px;
}


.control-panel button:hover{
    background-color: rgba(255, 255, 255, 0.5);
}

.control-panel hr{
    border: 2px dotted #fff;
    border-bottom: none;
    margin: 5px;
}

label + fieldset {
    margin-top: 5px;
}

label, legend {
    font-size: 14px;
}


#contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 55px;
    height: 55px;

    margin-right: 5px;

    border-radius: 14px;

    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);

    color: #38bdf8;

    font-size: 26px;
    font-weight: bold;

    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition: all 0.3s ease;
}


h1 {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 20px;
    margin-top: 10px;
}



@media (max-width: 500px) {
    #contador {
        min-width: 48px;
        height: 48px;
        font-size: 22px;
    }
}