* {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #111;
}

h1, h3 {
    font-weight: 400;
}

.weather-app {
    background: url('images/img4.jpg') no-repeat center/cover;
    min-height: 100vh;
    color: #fff;
    position: relative;
    opacity: 1;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}

.weather-app::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
    z-index: 0;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    padding: 2em 3em 4em 3em;
}

.container > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather, .temp, .city-time {
    margin: 0 1em;
}

.city-time h1 {
    margin: 0;
    margin-bottom: .2em;
    font-size: 3em;
}

.temp {
    font-size: 7em;
    margin: 0;
}

.weather i {
    display: block;
    margin: .5em 0;
}

.panel {
    position: absolute;
    width: 40%;
    height: 100%;
    top: 100%;
    top: 0;
    right: 0;
    background: rgba(110, 110, 110, .2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, .3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    z-index: 1;
    padding: 3em 2em;
    overflow-y: scroll;
}

.panel form {
    margin-bottom: 3em;
}

.submit {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.5em;
    margin: 0;
    border: none;
    outline: none;
    background: #fa6d1b;
    color: #fff;
    font-size: 1.2em;
    transition: .4s;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    -ms-transition: .4s;
    -o-transition: .4s;
}

.submit:hover {
    background: #fff !important;
    color: #000;
}
.search {
    background: none;
    border: none;
    border-bottom: 1px #ccc solid;
    padding: 0 1em .5em 0;
    width: 80%;
    color: #fff;
    font-size: 1.1em;
}
.search:focus {
    outline: none;
    border-bottom: 1px #ccc solid;
}
.search::placeholder {
    color: #ccc;
}

.panel ul {
    padding: 0 0 1em 0;
    margin: 2em 0;
    border-bottom: 1px #ccc solid;
}

.panel ul li {
    color: #ccc;
    font-weight: 300;
    margin: 2.5em 0;
}

.panel ul h4 {
    margin: 3em 0;
}

.city {
    display: block;
    cursor: pointer;
}

.city:hover {
    color: #fff;
}

.details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media screen and (max-width: 800px){
    .panel, .container {
        position: relative;
        width: 100%;
        top: initial;
    }
}
@media screen and (max-width: 500px){
    html {
        font-size: 12px;
    }
}
@media screen and (max-width: 300px){
    .weather-app {
        min-height: 40em;
    }
}