* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
}

.container {
    display: flex;
    height: 100%;    
}

/* ---------------- SIDEBAR --------------- */

.sidebar {
    flex: 0 0 300px;
    background-color: gray;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px;
}

.sidebar .logo img {
    width: 4em;
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    padding: 0px 10px;
    flex: 1;
}

.sidebar .menu a {
    text-decoration: none;
    font-size: 1.5em;
    color: black;
    text-align: center;
    line-height: 2em;
}

.sidebar .menu a:hover {
    color: white;
    background-color: black;
}

.sidebar .logout  {
    display: flex;
    justify-content: center;
    align-self: center;
    flex: 0 0 100px;
}

.sidebar .logout a img:hover {
    display: flex;
    justify-content: center;
    align-self: center;
    flex: 0 0 100px;
}

/* ------ navbar --------------- */

.main {
    display: flex;
    flex-direction: column;
    flex: 1;    
}

.main .navbar {
    display: flex;
    justify-content: flex-end;
    background-color: gray; 
    padding: 10px 20px;
}

.main .navbar img {
    width: 2em;
}

.main .content {
    display: flex;  
    flex-wrap: wrap;  
    flex: 1;
    padding: 20px;    
}

.main .content .box {
    flex: 1 1 300px;    
    background-color: gray;
    margin: 10px;    
}

.footer {
    display: none;
    justify-content: space-between;
    background-color: rgb(154, 154, 255);
    padding: 10px 20px;    
    position: fixed;
    bottom: 0;    
    width: 100%;
}

.footer img {
    width: 2em;
}

/* -------- tablet ------- */

@media screen and (max-width: 820px) {
    .sidebar {
        display: none;
    }

    .content {
        flex-direction: column;
    }
}

@media screen and (max-width: 400px) {
    .footer {
        display: flex;
    }
}