#user {
    position: fixed;
    top: 10px;
    right: 20px;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    color: #05597C;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 14px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    opacity: 40%;
    z-index: 100;
}
#user:hover {
    width: fit-content;
    height: fit-content;
    min-width: 40px;
    opacity: 100%;
}

#user .line-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    height: 100%;
}
#user:hover .line-container {
    display: none;
}
#user .line{
    width: 50%;
    height: 4px;
    background-color: #1b1d21;
    border-radius: 2px;
}

#user .content{
    display: none;
}
#user:hover .content {
    display: flex;
}
#user .content .btn {
    padding: 10px 20px;
    text-decoration: underline;
    cursor: pointer;
}
#user .content .btn:hover {
    background-color: rgb(140,181,199);
}
#user .content .username {
    padding: 10px 20px;
}
#user .content .btn.logout, #user .content .username {
    display: none;
}
#user .content.logined .btn.logout, #user .content.logined .username {
    display: block;
}
#user .content .btn.login {
    display: block;
}
#user .content.logined .btn.login {
    display: none;
}

#container {
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 100%;
    background-color: #1b1d21;
}

#nav {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: #05597C;
    font-size: 16px;
    text-align: center;
    text-rendering: optimizeLegibility;
}
.nav-item {
    margin: 40px;
    width: 220px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.nav-item:hover {
    box-shadow: 0px 0px 15px 0px rgba(178, 232, 255, 0.2);
}
.nav-item .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 25px 0 25px;
    width: 100%;
    height: 170px;
}
.nav-item .logo>img {
    max-width: 100%;
    max-height: 100%;
}
.nav-item .name {
    display: block;
    padding-bottom: 25px;
    line-height: 50px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

#bg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#bg {
    margin: -100px 0;
    width: 800px;
    height: 300px;
}

#padding {
    flex-grow: 1;
}

#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    line-height: 1.5em;
    text-align: center;
}

#footer>div {
    margin: 0 10px;
}

#footer * {
    color: #000;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    vertical-align: middle;
}

#footer img {
    opacity: 0.25;
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 1200px) {
    .nav-item {
        margin: 5px;
        width: 190px;
    }
    .nav-item .logo {
        height: 165px;
    }
    .nav-item .name {
        line-height: 40px;
    }
    
    #footer {
        height: 80px;
    }
}

@media screen and (max-width: 800px) {
    #nav {
        font-size: 14px;
    }
    .nav-item .logo {
        padding: 13% 13% 0 13%;
        height: auto;
    }
    .nav-item .logo::after {
        content: '';
        display: block;
        margin-top: 100%;
    }
    .nav-item .name {
        padding-bottom: 13%;
        line-height: 2em;
    }
    
    #bg {
        margin: -62.5px 0;
        width: 500px;
        height: 187.5px;
    }
}

@media screen and (max-width: 500px) {
    #nav {
        flex-wrap: wrap;
        font-size: 18px;
    }
    .nav-item {
        width: calc(100% - 10px);
        padding: 10px 10px;
    }
    .nav-item>a {
        display: flex;
    }
    .nav-item .logo {
        margin: 0 10px;
        padding: 0;
        width: 100px;
        height: 100px;
    }
    .nav-item .logo::after {
        content: '';
        margin-top: 0;
    }
    .nav-item .name {
        flex-grow: 1;
        margin: 0 0 0 20px;
        padding: 0;
        line-height: 100px;
        text-align: left;
    }
    
    #bg {
        margin: -40px 0;
        width: 320px;
        height: 120px;
    }
    
    #footer {
        flex-direction: column;
    }

}
