* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://i.postimg.cc/TY28jTqJ/bg4-ia.jpg') center/cover fixed;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 730px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #e74c3c;
    text-align: center;
}

p {
    font-size: 1.2rem;
}

.custom-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.custom-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.game-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    gap: 2rem;
}

.botoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #e74c3c;
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

button:hover {
    background: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Estilo do resultado */
.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    /* border: 2px solid #e74c3c; */
    max-width: 300px;
    width: 300px;  
    height: 350px; 
    overflow: hidden;
}

.result-content img {
    width: 80%;  
    max-width: 220px;
    height: auto;
    object-fit: contain;  
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
}


.result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    font-size: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

/* Estilização do título e do texto dentro do result-content */
.result-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
}

.result-text {
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

result-title, 
.result-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona "..." se o texto for muito longo */
}

/* Espaçamento vertical entre o título e o texto */
.result-content h3,
.result-content p {
    margin-bottom: 10px; 
}



/* Input Container */
.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Botão de adicionar */
.add-btn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: #c0392b;
}


/* 🔹 Responsividade para tablets e telas menores */
@media (max-width: 768px) {
    .game-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .botoes {
        align-items: center;
    }

    .result-content {
        max-width: 100%;
    }

    button {
        width: 80%;
        max-width: 170px;
    }

    h1 {
        font-size: 1.4rem;
    }
}

/* 🔹 Responsividade para celulares pequenos (abaixo de 480px) */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        border-radius: 12px;
        width: 90%;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 1rem;
        text-align: center;
    }
    
    .game-wrapper {
        gap: 1rem;
    }
    
    button {
        width: 50%;
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .result-content {
        width: 100%;
        padding: 1rem;
    }

    .result-content img {
        width: 70%;
        max-width: 180px;
    }

    .input-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px; /* Menor espaçamento */
        width: 100%;
    }

    .custom-input {
        flex-grow: 1; /* Faz o input ocupar mais espaço */
        max-width: none;
        padding: 12px 15px; 
        font-size: 1rem;
    }

    .add-btn {
        width: 80px; /* Reduz a largura do botão */
        padding: 10px 12px; 
        font-size: 0.9rem;
        min-width: 30px;
    }
}
