body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.topbar {
    background-color: #3F48CC;    /* same blue as the logo */
}
.logo {
    display: block;
}
.nav-links {
    background-color: #E9EAF7;
    padding: 8px 20px;
}
.nav-links a {
    margin-right: 15px;
}

.login-page {
    padding: 40px;
}
.welcome {
    float: left;
    margin-left: 100px;
    margin-top: 60px;
}
.loginform {
    float: right;
    width: 380px;
    padding: 20px;
    margin-right: 150px;
    margin-top: 40px;
    border-radius: 30px;
    box-shadow: 1px 2px 22px 0px rgba(89,87,87,0.85);
}

.form-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    margin-bottom: 10px;
}
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    font-family: inherit;  
}
.button {
    padding: 6px 16px;
}
.center {
    text-align: center;
}
.message {
    color: blue;
    margin-bottom: 10px;
}

.feed {
    width: 600px;
    margin-left: 40px;
}
.card {
    border-bottom: 1px solid #CCCCCC;  
    padding: 12px 0;
}
.avatar {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.avatar-big {
    width: 150px;
    height: 150px;
}
.post-header,
.person {
    display: flex;
    align-items: center;
    gap: 10px;
}
.person-name {
    flex: 1;   
}
.date {
    color: gray;
    font-size: 13px;
}
.post-image {
    max-width: 400px;
    display: block;
}
.like-button {
    margin-top: 6px;
}
.search {
    margin-bottom: 10px;
}
.search input[type="text"] {
    width: 300px;
}


/* Interface for phone! (screens 700px wide or smaller)*/

@media (max-width: 700px) { 

    /*login + register: stack the text and the box, no big side margins */
    .welcome,
    .loginform {
        float: none;
        margin: 20px auto;
    }
    .login-page {
        padding: 15px;
    }
    .loginform {
        width: auto;
    }

    /* label on top of its box instead of next to it */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* feed, profile, friends: use the full screen width */
    .feed {
        width: auto;
        margin: 0 15px;
    }
    .post-image {
        max-width: 100%;
    }
    .search input[type="text"] {
        width: auto;
        flex: 1;
    }

    /* logo shrinks to fit the screen */
    .logo {
        max-width: 100%;
        height: auto;
    }
}