* {

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


body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 2s ease-in-out;
    animation: changeBackground 50s infinite;
    position: relative;
}

@keyframes changeBackground {
    0%, 16% {
        background-image: url('https://images.pexels.com/photos/2014422/pexels-photo-2014422.jpeg');
    }
    20%, 36% {
        background-image: url('https://images.pexels.com/photos/1287145/pexels-photo-1287145.jpeg');
    }
    40%, 56% {
        background-image: url('https://images.pexels.com/photos/618833/pexels-photo-618833.jpeg');
    }
    60%, 76% {
        background-image: url('https://images.pexels.com/photos/147411/italy-mountains-dawn-daybreak-147411.jpeg');
    }
    80%, 96% {
        background-image: url('https://images.pexels.com/photos/1166209/pexels-photo-1166209.jpeg');
    }
    100% {
        background-image: url('https://images.pexels.com/photos/2014422/pexels-photo-2014422.jpeg');
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}


.caixa-maior {
    background-color: black;
    width: 430px;
    opacity: 0.8;
    padding: 20px;
    border-radius: 25px;
}

.caixa-menor {
    color: white;
    font-family: 'Arial', sans-serif;
    margin-top: 30px;
    text-align: left;
    padding-left: 20px;
}

.caixa-menor h2 {
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.caixa-menor p {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 10px;
}

.temperature {
    font-weight: bold;
    margin-top: 5px;
    border-left: 3px solid #ff6b6b;
    padding-left: 15px !important;
}

.condition {
    font-style: italic;
    margin: 20px 0;
    border-left: 3px solid #4ecdc4;
    padding-left: 15px !important;
}

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

.icone-clima {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.humidity {
    opacity: 0.8;
    border-left: 3px solid #45b7d1;
    padding-left: 15px !important;
}

input {
    padding: 10px;
    border: none;
    border-radius: 24px;
    margin-right: 10px;
    width: 70%;
    outline: none;
    font-size: 20px;
    background-color: #7c7c7c2b;
    color: #ffffff;
}

input::placeholder {
    color: #ffffff8c;
}

.lupa {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    display: block;
}

button {
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 50px;
    background-color: #7c7c7c2b;
    float: right;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7c7c7c6b;
}

button:hover .lupa {
    transform: scale(1.2);
}
