@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

body {
    font-family: "Open Sans", sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-image: url(./img/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2rem;
}

.main-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
}

.main-container h1 {
    font-family: "Luckiest Guy", cursive;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
}

.main-container p {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.image {
    width: 35%;
    min-width: 120px;
}

.image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.container-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 60%;
}

.input-area {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.2rem;
}

.input-area label {
    font-weight: 600;
    color: #444;
}

.input-area input[type="text"],
.input-area input[type="number"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

.input-area input[type="text"]:focus,
.input-area input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.input-area input::placeholder {
    color: #999;
}

button {
    background-color: #a32416;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

button:hover {
    background-color: #80190d;
}

#resultado {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    max-width: 400px;
    width: 100%;
}

#resultado p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

#resultado img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.image img:hover,
#resultado img:hover {
    transform: scale(1.06);
}


/* Aplicando responsividade */

@media (max-width: 768px) {
    .main-container {
        width: 90%;
        padding: 1.5rem;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .container-inputs {
        width: 100%;
    }

    .image {
        width: 50%;
    } 
    
    .main-container h1 {
        font-size: 1.6rem;
    }

    .main-container p {
        font-size: 0.95rem;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 100%;
    }

    .main-container h1 {
        font-size: 1.4rem;
    }

    .main-container p {
        font-size: 0.9rem;
    }

    #resultado p {
        font-size: 1rem;
    }

    #resultado img {
        width: 100px;
    }
}