* {
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 80px;
    padding-bottom: 52px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: .5em;
    background-color: #AFB0B0;
    border-radius: .5em;

    width: auto;
    position: fixed;
    top: .3em;
    left: .3em;
    right: .3em;
}

.nav {
    display: flex;
    margin: 0px 10px;
    padding: 0;
    list-style-type: none;
}

a {
    color: black;
    text-decoration: none;
}

.nav a {
    margin: 0px 5px;
    font-size: 1em;
    font-weight: 500;
}

.nav a:hover {
    background-color: #a4a6a6;
}

.logo > img {
    margin: 0;
    border-radius: .25em;
    width: 50px;
    height: 50px;
}

#login_container{
    justify-self: center;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    width: 98%;
    max-width: 600px;
    border-radius: .5em;
    background-color: #dddddd;
}

#login_box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login_box .form_boxes{
    margin-top: 10px;
    font-size: medium;
}

#welcome{
    font-weight: bold;
    font-size: large;
    margin-bottom: 10px;
}

#welcome + a{
    color: rgb(12, 164, 215);
}

#login_form{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit_btn_login{
    background-color: #244282;
    font-weight: bold;
    width: 50%;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
}

#login_form ~ a{
    color: rgb(12, 164, 215);
}


@media (max-width: 250px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav > .divider {
        border-bottom: solid;
        width: 100%;
        border-width: .12em;
    }
}

@media (min-width: 250px) {
    .nav > .divider {
        border-left: solid;
        border-width: .12em;
    }
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: .5em;
    margin: 0% 0.2%;
    background-color: #AFB0B0;
    border-radius: .5em;

    width: 100%;
    position: fixed;
    bottom: .5em;

    font-size: 1em;
    font-weight: 500;
}


.content {
    display: flex;
    flex-direction: row;
    
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 10%;
    height: 100%;
    background-color: #AFB0B0;
    border-radius: .5em;
}

.leftside {
    margin-left: 0.2%;
}

.rightside {
    margin-right: 0.2%;
}

#timeline {
    padding: 0% 5%;
    width: 80%;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
}

.post {
    width: 100%;
    background-color: #C6C7C7;
    margin-bottom: 1%;
    border-radius: .5em;
    padding: 0.8% 1%;
}

.postHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.postText {
    margin: 1% 5%;
    text-align: justify;
}

.postImage {
    width: 90%;
    height: auto;
    margin: 1% 5%;
    border-radius: .5em;
}

.postFooter {
    height: 25px;
}

.like {
    font-size: 25px;
}


.main-container {
    width: 100%;
    margin-top: 60px;
    padding: 0 10px;
}

.post-form-container {
  background-color: #dddddd;
  padding: 30px;
  border-radius: .5em;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  margin: auto;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
  

.form-row label {
    min-width: 90px;
    font-weight: bold;
    color: #333;
}
  

.form-row textarea {
    flex: 1;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-size: 1em;
}
  
  
.custom-file-btn {
    background-color: grey;
    width: 100%;
    max-width: 120px;
    padding: 6px;
    cursor: pointer;
    border: none;
    color:white;
}

.custom-file-btn:hover {
    background-color: rgb(100, 100, 100);
}

.create-post-btn {
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 200px;
    margin: auto;
    border-radius: 4px;
}

.create-post-btn:hover {
    background-color: #324b81;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #C6C7C7;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-name,
.dropdown-email {
    margin: 5px 0;
    color: #333;
    font-size: 1em;
    text-align: left;
}

.dropdown-logout {
    display: block;
    color: #333;
    text-decoration: none;
    margin: 5px 0;
    padding: 0;
    text-align: left;
    font-size: 1em;
}

.dropdown-logout:hover {
    text-decoration: underline;
}