/*TEXT ELEMENTS*/

@font-face {
    font-family: "ElinaWeather";
    src: url("https://moonelxna.github.io/weather-app/font/Elinaweather-Regular.ttf") format("truetype");
    font-display: block;
}

/* ADD at the very TOP of your CSS */
html {
    font-size: 16px;
}

h1 {
    font-size: 2.2rem;
    /* 35 ÷ 16 = 2.1875 */
    margin-left: 20px;
    margin-top: 0px;
    font-family: "ElinaWeather";

}

p {
    color: black;
    font-family: "ElinaWeather";
}

p#temp {
    font-size: 2.25rem;
    font-weight: bolder;
    margin-left: 20px;
}

p#appTemp {
    font-size: 1.375rem;
    font-weight: normal;
    margin-left: 20px;
    margin-top: -20px;

}

p.more {
    font-size: 1.125rem;
}

p.moreTitle {
    font-size: 1.125rem;
    font-weight: bold;
    text-transform: uppercase;
    /* ADD THIS */
    letter-spacing: 0.5px;
    /* ADD THIS */
}

p#timex {
    margin-left: 1.25rem;
}

/*OTHER ELEMENTS*/

button#btn1 {
    cursor: pointer;
    border-radius: 2px;
    border-width: 0px;
    font-size: 1.25rem;
    font-weight: normal;
    font-family: "ElinaWeather";
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

button#btn1:hover {
    transform: translateY(-2px);
    /* Lift up */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

input#inputSearch {
    cursor: pointer;
    border-radius: 2px;
    border-width: 0px;
    font-size: 1.25rem;
    font-weight: normal;
    font-family: "ElinaWeather";
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

input#inputSearch:focus {
    transform: translateY(-1px);
    /* Slight lift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    /* Remove default browser outline */
}


img {
    max-width: 150px;
    padding: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    /* ADD THIS */
}


/*DIV*/

body {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    /* ADD THIS for vertical centering */
    min-height: 100vh;
    /* ADD THIS to use full viewport */
}

div#app {
    display: flex;
    flex-direction: column;
    padding: 12.5px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* ADD THIS */
    background-color: #ffffff9c;
    /* Semi-transparent white */
}

div#searchBox {
    margin-left: 20px;
    margin-top: -10px;
    margin-bottom: 10px
}

div#searchResults {
    animation: fadeIn 0.4s ease;
}

div#searchResultsSelection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

div.cityCountry {
    cursor: pointer;
    padding-left: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

div.cityCountry:hover {
    transform: translateX(5px);
    /* Slide right */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Bigger shadow */
}

div#cityCountry0 {
    grid-area: 1 / 1 / 2 / 2;
}

div#cityCountry1 {
    grid-area: 1 / 2 / 2 / 3;
}

div#cityCountry2 {
    grid-area: 2 / 1 / 3 / 2;
}

div#cityCountry3 {
    grid-area: 2 / 2 / 3 / 3;
}

div#cityCountry4 {
    grid-area: 3 / 1 / 4 / 2;
}

div#cityCountry5 {
    grid-area: 3 / 2 / 4 / 3;
}

div#cityCountry6 {
    grid-area: 4 / 1 / 5 / 2;
}

div#cityCountry7 {
    grid-area: 4 / 2 / 5 / 3;
}

div#cityCountry8 {
    grid-area: 5 / 1 / 6 / 2;
}

div#cityCountry9 {
    grid-area: 5 / 2 / 6 / 3;
}

div#weather {
    animation: fadeIn 0.4s ease;
}

div#weather1 {
    display: flex;
    flex-direction: row;

}

div#currentWeather {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    align-items: center;
}

div#moreWeather {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

div#more1 {
    grid-area: 1 / 1 / 2 / 2;
}

div#more2 {
    grid-area: 1 / 2 / 2 / 3;
}

div#more3 {
    grid-area: 2 / 1 / 3 / 2;
}

div#more4 {
    grid-area: 2 / 2 / 3 / 3;
}

div.more {
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

div.more:hover {
    transform: translateY(-3px);
    /* Lift up */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    /* Bigger shadow */
}

/*MEDIA QUERY*/

@media (max-width: 700px) {
    p#timex {
        margin-left: 0px;
    }

    div#weather1 {
        display: flex;
        flex-direction: column;
    }

    div#searchResultsSelection {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 10px;

    }

    div#cityCountry0 {
        grid-area: 1 / 1 / 2 / 2;
    }

    div#cityCountry1 {
        grid-area: 2 / 1 / 3 / 2;
    }

    div#cityCountry2 {
        grid-area: 3 / 1 / 4 / 2;
    }

    div#cityCountry3 {
        grid-area: 4 / 1 / 5 / 2;
    }

    div#cityCountry4 {
        grid-area: 5 / 1 / 6 / 2;
    }

    div#cityCountry5 {
        grid-area: 6 / 1 / 7 / 2;
    }

    div#cityCountry6 {
        grid-area: 7 / 1 / 8 / 2;
    }

    div#cityCountry7 {
        grid-area: 8 / 1 / 9 / 2;
    }

    div#cityCountry8 {
        grid-area: 9 / 1 / 10 / 2;
    }

    div#cityCountry9 {
        grid-area: 10 / 1 / 11 / 2;
    }

}

/* Add at the END of your CSS file */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
