* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #e8e8ea;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative; 
}

.content-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; 
    position: relative; 
}

.whitebg {
    position: absolute; 
    top: 328px;
    width: 95vw; 
    height: 6.5rem;
    margin: auto;
}

.cat-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    height: 80%;
}

.cat {
    top: 150px;
    width: 200px;
    height: 200px;
    position: absolute;
}

.subtitle {
    margin: 10px 0;
    font-weight: bold;
}

.input-copy {
    display: flex;
    align-items: center;
    width: 95vw; 
    max-width: 1100px;
    min-height: 50px; 
    padding: 10px; 
    box-sizing: border-box;
    gap: 10px;
    position: absolute;
    top: 355px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white; 
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.input-box {
    flex: 1;
    min-height: 30px; 
    background: #e8e8ea;
    border-radius: 15px; 
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.5; 
    word-wrap: break-word; 
    white-space: pre-wrap;
    overflow-wrap: break-word; 
}

.copy-btn {
    background: #fbb63a;
    border: none;
    border-radius: 50%;
    padding: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    width: 50px; 
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 48vh;
    align-items: center;
    width: 100%;
    max-width: 600px; 
}

.toggle {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle input {
    display: none;
}

.slider {
    width: 40px;
    height: 20px;
    background: #2c3043;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.main-btn {
    margin-top: 30px;
    padding: 15px 30px;
    background: #fbb63a;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    max-width: 100%;
    width: 80%; 
}

footer {
    background: #2c3043;
    color: white;
    align-content: center;
    justify-items: center;
    height: 8vh;
    width: 100%;
    margin-top: auto;
}

.scratch-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.scratch-instruction {
    margin-bottom: 10px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
    .whitebg, .input-copy {
        width: 98vw; 
        max-width: none; 
    }
    
    .input-copy {
        height: 45px; 
    }
    
    .copy-btn {
        width: 45px; 
        height: 45px;
        padding: 0.8rem;
    }
    
    .content-container {
        padding-top: 50vh; 
    }
}

@media (max-width: 480px) {
    .whitebg, .input-copy {
        width: 99vw; 
    }
    
    .input-copy {
        height: 40px; 
        padding: 0 5px; 
    }
    
    .copy-btn {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }
    
    .content-container {
        padding-top: 55vh; 
    }
}