html, body {
    margin: 0px;
    height: 100%;
    background: #4f7986;
    color: #fff;
    font-family: 'Open Sans', HelveticaNeue, Helvetica, Arial;
    box-sizing: border-box;
}
* {
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}

#container {
    display: flex;           /* establish flex container */
    flex-direction: column;  /* make main axis vertical */
    justify-content: center; /* center items vertically, in this case */
    align-items: center;     /* center items horizontally, in this case */
    height: 100%;
}

.box {
    width: 550px;
    text-align: left;
}

h1 {
    font-size: 3em;
    margin: 0;

}

label {
    font-weight: 600;
}

p {
    margin: 20px 0 40px;
    line-height: 1.4em;
}
.vertical-space {
    margin-bottom: 15px;
}
.box a {
    font-size: 1em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #35515a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin: 5% 0 0 0;
    padding: 1em;
    font-weight: 800;
    float: left;
}


.box a:hover {
    opacity: 0.7;
}

.bottom-logo {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 50px;
    width: 300px;
    background:url('../images/tieto.png');
}
@media (min-width: 767px) {
    .box a:nth-child(even) {  
        float: right;
    }
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none;
    }
   
    h1 {
        font-size: 2em;

    }

    .box {
        width: auto;
        margin: auto 10%;
    }
    .box a {
        width: 100%;
        float: none;
    } 

    .bottom-logo {
        display: none;    
    }
    #container {
        margin-top: 50%;
    }

    .top-logo {

        position: fixed;
        top: 0;
        left: 0;
        height: 50px;
        width: 300px;
        background:url('../images/top-left-patch.png');

    }
}
@media (max-width: 320px) {
    #container {
        display: block;
    }
    .top-logo {
        height: 68px;
        width: 100px;
        background-size: 100px;
    }
}