body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

form label {
    font-size: 14px;
    font-weight: bold;
}

form input, button {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #3c3c3c;
    background-color: #2c2c2c;
    color: #ffffff;
}

form input:focus, button:hover {
    border-color: #4caf50;
    outline: none;
    background-color: #333333;
}

button {
    cursor: pointer;
}

.forecast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.forecast-item {
    background-color: #2c2c2c;
    border: 1px solid #3c3c3c;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.forecast-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.forecast-item p {
    margin: 5px 0;
    font-size: 14px;
}

/* Индикатор загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* По умолчанию скрыт */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3; /* Светлый цвет фона */
    border-top: 8px solid #3498db; /* Синий цвет для вращающейся части */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite; /* Плавная анимация */
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6); /* Тень для эффекта современности */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: #333;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    border-radius: 10px;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.close:hover {
    color: #f44336;
}
