/* css reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modalità notte 🌙 */
body.night-mode {
    background-color: #0a0a23;
    /* blu notte */
    color: #ffffff;
}

body.night-mode .panel {
    background-color: #1a1a40;
    color: #ffffff;
    border: 1px solid #444;
}

body.night-mode .meteo-suggerimenti {
    color: #ffd700;
    /* oro stellare */
}

/* Effetto luce sull’icona */
body.night-mode .meteo-icona {
    filter: drop-shadow(0 0 6px #fff);
}

body.night-mode {
    transition: background-color 0.4s, color 0.4s;
}

.container {
    margin: 0 auto;
    /* centra la schermata */
    max-width: 540px;
}

.panel {
    margin: 16px;
    padding: 16px;
    border-radius: 16px;
    background-color: rgb(184, 211, 255);
}

.logo {
    width: 64px;
    height: 64px;
}

body {
    background-color: rgb(76, 100, 242);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 31px;
    text-transform: uppercase;
}

.change-theme {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.theme-toggle-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4c64f2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.theme-toggle-button:hover {
    background-color: #3a52d1;
}

main {
    text-align: center;
}

/*stili sezione meteo */
.meteo-info {
    min-height: 450px;
}

.meteo-location {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.meteo-icona {
    max-width: 90%;
    transition: opacity 0.5s, translate 1s;
}

.meteo-icona {
    opacity: 0;
}

.meteo-icona[src] {
    opacity: 1;
}

.meteo-temperatura {
    font-size: 120px;
    font-weight: 500;
}

.meteo-suggerimenti {
    font-size: 24px;
    font-weight: 700;
    transition: transform 1s ease;
    transform: scale(1);
}

.js-loading .meteo-suggerimenti {
    transform: scale(0);
}

.search-city {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-right: 10px;
    width: 60%;
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4c64f2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #3a52d1;
}

#city-input {
    padding: 8px;
    font-size: 18px;
    width: 70%;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-right: 8px;
}

#city-search-btn {
    padding: 8px 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#city-search-btn:hover {
    background-color: #0056b3;
}