@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #ffffff, #8a8b8d);
    background: url(image.jpg);
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    min-height: 100vh;
    animation: gradientChange 10s infinite;
}

.container {
    position: relative;
    width: 60rem;
    color: #ffffff;
    background: rgba(40, 44, 52, 0.9);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.container:hover {
    transform: translateY(-7px);
}

h1 {
    font-size: 32px; 
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.5s;
}

p {
    font-size: 18px;
    color: #f5f5f5;
    line-height: 1.8rem;
    text-align: justify;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.gen-form {
    margin-top: 30px; 
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 15px;
    width: 100%;
}

input, button {
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease, transform 0.2s ease;
}

input {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 1px solid #ff6347;
}

input:hover, input:focus {
    border-color: #ff7f50;
    transform: scale(1.02);
}

button {
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffa07a, #ff7f50);
    cursor: pointer;
    border: none;
}

button:hover {
    background: linear-gradient(135deg, #ff7f50, #ffa07a);
    transform: scale(1.05);
}

button:focus {
    animation: pulse 1.5s infinite;
}

.result {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s;
}

#image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    max-width: 85%;
}

#image-grid img {
    max-width: 100%;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: filter 0.3s ease;
}

#image-grid img:hover {
    filter: brightness(0.8) contrast(1.2);
    border-color: #ff7f50;
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background: linear-gradient(45deg, #AEDFF7, #FFEBD3);
    height: 100vh;
    overflow: auto;
}
.content {
    padding: 2em;
}
