:root{
    --main_color_begin: #363696;
    --main_color_end: #8585ca;
    --main_color: #fff;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background-image: linear-gradient(var(--main_color_begin), var(--main_color_end));
    color: var(--main_color);
    min-height: 100vh;
    font-family: 'Ubuntu', sans-serif;
}

.header{
    min-height: 8vh;
    padding-top: 1em;
    display: -webkit-box;/* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;/* TWEENER - IE 10 */ 
    display: -webkit-flex;/* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex; 
    text-align: center;
    position: relative;
}

.header .clockbox {
    padding: 2em;
    font-size: 1.2em;
}

.header .clockbox #clock {
    font-weight: bolder;
    font-size: 1.5em;
    font-family: 'Roboto Mono', monospace;
}

.header .clockbox #calender {
    color: #fff;
}

.header .title {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.header .title-text {
    font-size: 3em;
    font-weight: bold;
    text-decoration: none;
    color: var(--main_color);
    text-shadow: 3px 3px 10px rgba(0, 0, 0);
}

.header .icons canvas{
    margin-top: 1em;
    padding: 0.5em;
}

.container{
    min-height: 50vh;
    margin: 1vh 40vh;
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.25);
    box-shadow: 0px 2px 10px var(--main_color);
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--main_color);
    border-radius: 20px;
}

.subtitle {
    margin: 2em;
}

.form{
    width: 70%;
    display: flex;
}

#textView{
    width: 80%;
    height: 3em;
    margin-right: 2em;
    border: 2px solid var(--main_color);
    border-radius: 10px;
    font-family: 'Ubuntu', sans-serif;
}

#button {
    width: 30%;
    height: 3em;
    text-align: center;
    border: 2px solid var(--main_color_end);
    border-radius: 10px;
    font-weight: bolder;
    background-color: var(--main_color_end);
    font-family: 'Ubuntu', sans-serif;
    color: var(--main_color);
    -webkit-transition-duration: 0.2s;  
    transition-duration: 0.2s;
    letter-spacing: 0.1em;
}

#button:hover {
    color: #000;
    opacity: 0.65;
}
#button:active{
    opacity: 0.5;
    box-shadow: 0 5px #666;
    transform: translateY(5px);
}

.city-data {
    display: inline-block;
}

#city-name  {
    font-size: 3em;
    font-weight: 700;
    margin: 0.5em;
}

.data   {
    list-style-type: none;
    display: block;
}

#main-data li   {
    display: inline-block;
}

#description    {
    vertical-align: 50%;
    font-size: 1.5em;
}

#temperature, #unit   {
    vertical-align: 40%;
    font-size: 2em;
    font-weight: 900;
}

.additional-data {
    list-style-type: none;
    margin: 2em;
    text-align: center;
    align-content: center;
    align-items: center;
}

.additional-data li {
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */ 
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    margin: 10px;
    align-items: center;
}

.additional-data li:nth-last-child(1) {
    display: inline;
}

@media only screen and (max-width: 1000px) {
    .header {
        min-height: 40vh;
        display: block;
        text-align: center;
    }

    .header .clockbox {
         padding: 1em;
    }

    .header .title {
        position: static;
    }

    .title-text {
        font-size: 2em;
        font-weight: bold;
        text-decoration: none;
        color: var(--main_color);
    }
    .container{
        flex-wrap: wrap;
        margin: 3vh 5vh;
    }
    .subtitle {
        margin: 1em;
    }
    .form {
        width: 90%;
        display: inline-block;
        margin: 0;
    }
    #textView {
        width: 80%;
        height: 3em;
        margin: 0.5em;
        border-radius: 10px;
    }
    .city-data {
        margin: 2em;
    }
    .additional-data {
        margin: 1em;
    }
}