body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    justify-content: center;
}

.home-main-content {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    min-height: 100vh;
    background-color: #FCFCFC;
}

.home-cities-container, .weather-container {
    width: 100%;
    box-sizing: border-box;
}

.main-weather, .secondary-weather {
    width: 100%;
    box-sizing: border-box;
    min-height: 400px;
}

.weather-content {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.third-container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.third-layout {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.weather-map, .additional-info {
    width: 100%;
    box-sizing: border-box;
    min-height: 300px;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

* {
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .home-main-content {
        width: auto;
        flex-grow: 1;
    }

    .weather-container {
        display: flex;
        flex-wrap: wrap;
    }

    .main-weather, .secondary-weather {
        width: 50%;
        min-height: 400px;
    }

    .third-layout {
        flex-direction: row;
    }

    .weather-map, .additional-info {
        width: 50%;
        min-height: 300px;
    }
}

.home-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 400px;
}

.home-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.home-loading-text {
    font-size: 1rem;
}

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

.weather-container-placeholder {
    width: 100%;
    min-height: 800px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}
