* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem; */

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    padding-bottom: 60px; /* espaço para o rodapé */
}

.title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1.2rem, 5vw, 2.5rem); /* Mín: 1.2rem, Máx: 2.5rem, escalar com 5vw */
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.image-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    max-height: 70vh;
}

#displayImage {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    display: none;
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timer-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer {
    position: absolute;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
}

.step-counter {
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.timer-ring {
    position: absolute;
    width: 140px;
    height: 140px;
}

svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke: #00ff88;
    stroke-width: 8;
    stroke-linecap: round;
    /* stroke-dasharray: 377;
    stroke-dashoffset: 377;
    animation: countdown 20s linear forwards; */
}

#retryButton {
    background-color: #00ff88;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.4);
    transition: transform 0.2s ease;
}

#retryButton:hover {
    transform: scale(1.05);
}

.neon-button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #09844a;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(7, 100, 57, 0.765);
    transition: transform 0.2s ease;
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

.neon-button:hover {
    transform: scale(1.05);
}

.input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 300px;
    text-align: center;
    outline: none;
    transition: box-shadow 0.2s ease;
    backdrop-filter: blur(5px);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input:focus {
    box-shadow: 0 0 8px #00ff88;
    border-color: #00ff88;
}

#logo {
    margin-top: 80px;
    max-width: 350px;
}
  
.form-field {
    position: relative;
    margin-top: 20px;
    margin: 16px auto;
    width: 90%;
    max-width: 800px;
}

/* .form-field input:focus {
    outline: none;
    border-color: #3f51b5;
    color: rgba(255, 255, 255, 0.6);
} */

.form-field label {
    position: absolute;
    top: 50%;
    left: 47px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
    transition: 0.2s ease all;
    pointer-events: none;
}

/* .form-field input:focus + label, */
.form-field input:not(:placeholder-shown) + label {
    top: -11px;
    left: 30px;
    font-size: 1.00rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.6);
}

.copy-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.copy-btn:hover {
    background: #2c3a8c;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.4); /* bem suave */
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    pointer-events: none; /* evita clique acidental */
}  
  
@keyframes countdown {
    to {
        stroke-dashoffset: 0;
    }
}    