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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.cointainer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#titulo {
    color: #333;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
}

.form {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

#input-name {
    flex: 1;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#input-name:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#search {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#search:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#search::before {
    content: "🔍";
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    border-radius: 15px;
}

.carousel-item img {
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background: none;
    position: relative;
}

.carousel-control-prev-icon:after {
    font-size: 25px;
    color: #667eea;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-control-next-icon:after {
    font-size: 25px;
    color: #667eea;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.data {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    color: white;
}

#city {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

#temp, #description, #umidity, #wind, #description {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#temp span, #umidity span, #wind span {
    font-weight: 600;
    color: white;
}

#descSpan {
    font-style: italic;
    color: #9fadeb;
    font-size: 1.2rem;
}

.alt-text {
    position: absolute;
    bottom: 42.5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .cointainer {
        padding: 30px 20px;
        margin: 20px;
    }
    
    #titulo {
        font-size: 2rem;
    }
    
    .form {
        flex-direction: column;
        align-items: center;
    }
    
    #input-name {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    .data {
        padding: 20px;
    }
    
    #city {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #titulo {
        font-size: 1.5rem;
    }
    
    .carousel-item img {
        height: 150px;
    }
    
    #city {
        font-size: 1.3rem;
    }
    
    #temp, #description, #umidity, #wind {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon:after,
    .carousel-control-next-icon:after {
        font-size: 20px;
    }
}