


.weather-container {
    max-width: 1200px;
    margin: 20px auto; 
    padding: 20px;
    background: #c4a354;
    border-radius: 8px;
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.9);
}


.weather-header {
    text-align: center;
    margin-bottom: 30px;
    background: #d0b678;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.weather-header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.weather-header-top .button {
    background: linear-gradient(45deg, #c4a354, #d0b678);
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(72, 163, 64, 0.4);
    text-decoration: none;
    display: inline-block;
}

.weather-header-top .button:hover {
    background: linear-gradient(45deg, #c4a354, #d0b678);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 37, 37, 0.6);
    text-decoration: none;
    color: #000000;
}

.weather-title {
    color: #050505;
    font-size: 28px;
    margin: 0 auto;
    text-align: center;
    flex-grow: 1;
}


.current-weather-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.current-icon {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

.current-temp {
    font-size: 36px;
    font-weight: bold;
}

.current-desc {
    font-size: 18px;
    color: #333;
}

.current-feelslike {
    font-size: 16px;
    color: #666;
}

/* Стили  блока с датой и днем недели */
.current-date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.current-day {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.current-date {
    font-size: 16px;
    color: #666;
}

/* Цвета температур */
.temp-positive {
    color: #ff0000 !important;
    font-weight: bold;
}

.temp-negative {
    color: #0000ff !important;
    font-weight: bold;
}

/* прогноз */
.forecast-section {
    background: #d0b678;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.section-title {
    color: #050505;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #c4a354;
    padding-bottom: 10px;
}

/* 10 дневный прогноз */
.detailed-forecast {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forecast-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.forecast-day {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.forecast-day:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.day-header {
    margin-bottom: 10px;
}

.day-date {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.day-week {
    color: #666;
    font-size: 14px;
}

.day-icon {
    font-size: 36px;
    margin: 10px 0;
    animation: bounce 2s ease-in-out infinite;
}

.day-temps {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.temp-day, .temp-night {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temp-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.temp-label {
    font-size: 12px;
    color: #666;
}

/* месячный прогноз */
.monthly-forecast {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.monthly-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.month-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.month-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.month-header {
    margin-bottom: 10px;
}

.month-name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.month-year {
    color: #666;
    font-size: 14px;
}

.month-icon {
    font-size: 36px;
    margin: 10px 0;
    animation: bounce 2s ease-in-out infinite;
}

.month-temps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.month-temp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-temp .temp-label {
    font-size: 12px;
    color: #666;
    text-align: left;
}

.month-temp .temp-value {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Стили  иконок погоды */
.weather-sunny {
    color: #FFD700;
}

.weather-cloudy {
    color: #B0B0B0;
}

.weather-rain {
    color: #4169E1;
}

.weather-snow {
    color: #F0F8FF;
}

.weather-thunder {
    color: #FFA500;
    animation: flash 1s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/*  мобильный */
@media (max-width: 768px) {
    .current-weather-inline {
        flex-direction: column;
        gap: 10px;
    }
    
    .current-date-info {
        order: 2;
    }
    
    .current-icon {
        order: 3;
    }
    
    .current-temp {
        order: 4;
    }
    
    .current-desc {
        order: 5;
    }
    
    .current-feelslike {
        order: 6;
    }
    
    .forecast-row,
    .monthly-row {
        flex-direction: column;
    }
    
    .forecast-day,
    .month-item {
        margin-bottom: 10px;
    }
    
    .weather-container {
        padding: 10px;
    }
    
    .weather-title {
        font-size: 24px;
    }
    
    .current-temp {
        font-size: 28px;
    }
    
    .weather-header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .weather-header-top .button {
        align-self: flex-start;
    }
    
    .current-day {
        font-size: 16px;
    }
    
    .current-date {
        font-size: 14px;
    }
    
    .current-icon {
        font-size: 40px;
    }
    
    .current-temp {
        font-size: 32px;
    }
    
    .current-desc {
        font-size: 16px;
    }
    
    .current-feelslike {
        font-size: 14px;
    }
}