/* Remove browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 30px;
}
.dashboard-title {
    background-color: black;
    text-align: center;
    height: 70px;
}
.title {
    color: white;
    position: relative; 
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%);
}
/* left column width for search and list of searched cities */
.city-container {
    width: 28%;
}

label {
    font-size: 20px;
    display:block;
    margin-top: 5px;
    margin-left: 10px;
    font-weight: bolder;
}

/* Input box */
form.input-box input[type=text] {
    height: 45px;
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 0px;
    padding: 15px;
    width: 72%;
    border: 1px solid lightgray;
}
form.input-box button {
    background-color: dodgerblue;
    border: 1px solid grey;
    border-left: none;
    color: white;
    padding: 9px 14px;
    font-size: 15px;
    margin-top: 5px;
    margin-left: 0px;
    width: 20%;
    height: 45px;
}
.btn:hover {
    background-color: royalblue;
}

/* Search history of cities */
.history-container {
    margin-top: 15px;
    margin-left: 10px;
}
.list-group-item {
    margin-right: 15px;
}

.list-group-item:hover {
    background-color: dodgerblue;
    color: white;
    font-size: large;
    font-weight: bolder;
}

/* Weather content display container */
.weather-content {
    width: 72%;
}
.current-weather {
    margin-top: 20px;
    margin-left: 15px;
    padding-top: 15px;
    padding-left: 20px;
    min-height: 250px;
    border: 1px solid lightgray;
}
#display-cityname {
    font-weight: bolder;
}
#uv-color {
    padding: 10px;
    border-radius: 6px;
}
#weatherIcon {
    background-color: dodgerblue;
    padding: 5px 10px;
    min-width: 50px;
    border-radius: 5px;
}
.temp-stat {
    font-size: medium;
}

/* Weather forecast container */ 
.weather-forecast {
    margin-top: 20px;
    margin-left: 15px;
    min-height: 240px;
}
.weather-forecast h3 {
    display: block;
    font-weight: bolder;
}
/* 5 cards within flex to wrap cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
.card-title {
    font-weight: bolder;
}
.card-container .card {
    width: 150px;
    background-color: dodgerblue;
    color: white;
    min-height: 180px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* MEDIA QUERY FOR smaller screen size */
@media screen and (max-width: 1200px) {

    form.input-box input[type=text] {
        width: 91%;
    }
    form.input-box button {
        margin-left: 10px;
        width: 91%;
    }
    .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: left;
        width: 100%;
    }
    .card {
        margin-right: 15px;
    }
}