/* styles for the main page of webBD */

p {
    font-family: Lucida Grande, Helvetica, Arial, sans-serif;
}

a.subtle {
    font-style:normal;
    color:#000;
    text-decoration: none;
}

a.subtle:hover {
    opacity:0.6;
    text-shadow: 1px 2px 6px rgba(0,0,0, 0.4);
}

a.subtle:active {
    opacity:0.4;
}

body {
    padding-left:122px;
}

main {
    
}

.container {
    max-height: 1512px;
}

/*sidebar*/

a.button {
    text-decoration: none;
    color: #000;
    opacity: 1;
}

button.side {
    background-color: #C5CCD4;

    height: auto;
    width: 122px;
    font-family: Lucida Grande, Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    letter-spacing: 0;
    outline: none;
    text-align: center;
    border: none;
    color: #000;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    
}


button.side:hover {
    background-color: #739cba;
    color: white;
    opacity:0.95;

}


button.side:active {
    background-color: #7EABCC;
    color: white;
    opacity:0.4;

}

    h2 {
        font-weight: bold;
        font-size: 30px;
        margin-bottom: 40px;
        padding-left: 0px;
        text-align:center;
    }

    .sidebar {
       
        border-style: solid;
        border-width: 1px;
        border-color: #C5CCD4;
        display:flex;
        flex-direction: column;
        margin-left:-130px;
        width: 122px;
        background-color: #ECF0F2;
        position: fixed;
        top:0%;
        bottom: 0%;
        
        z-index: 20;
    }

    .wrapper {
        
        position:relative;

        max-height: 512px;

        

    }

/*feed*/
    .one-food {
        background-color: white;
        border-style:solid;
        border-color: #000;
        border-width:1px;
        max-width: 99%;
        height: auto;
        width: auto;
        min-height: 216px;
        min-width: 147px;
        overflow:hidden;

    }

    .topfood {
        border: white;
        background-color: white;
        display:flex ;
        flex-direction: row;
        
    }

    .food-profile {
        display: flex;
        vertical-align:top;
        margin-top:0px;
        padding-top: 8px;
        padding-bottom: 0px;
        max-width: 95px;
        max-height: 95px;
        z-index: 10;
        background-color: white;
    }

    .food-text {
        display: inline-block;
        padding-left: 15px;
        background-color: white;
        flex:1;
        
    }

    .food-link {
        display: inline-block;
        background-color: white;
        cursor:pointer;
        width: 95px;
        height: 95px;
        flex: 0.2;
        position: relative;
    }

    .food-link:hover .link-dropdown{
        display:block;
    }

    .img-link {
        position: relative;
        z-index: 15;
        display:flex ;
        flex-direction: column;
        width: 80px;
        height: 80px;
        margin-top: 0px;
        margin-bottom: 0px;
        cursor:pointer;
        border-radius: 40px;
    }

    .img-link:hover {
        cursor:pointer;
        opacity:0.6;
        box-shadow: 0px 2px 6px rgba(0,0,0, 0.2);

    }

    #expand-toggle{
        display:flex;
    }

    #expand-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 11px;
    background-color: #ffff77;
    border: 1px solid;
    border-radius: 3px;
    }

    #expand-toggle:checked~*.link-dropdown{
        display:block;
    }

    #plusButton{
    margin-top: 5px;
    border: none;
    background-color: lightgrey;
    /*background-color: rgba(20, 20, 20, 1.0);*/
    color: grey;
    font-family: monospace;
    font-weight: bold;
    font-size: 60px;
    line-height: 0;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    aspect-ratio: 1/1;
    display:grid;
    place-items: center;
    vertical-align: center;
    }
    #plusButton:hover{
    cursor: pointer;
    transition: 0.05s ease-in-out;
    font-size:70px;
    opacity: 0.5;
    }
    #plusButton:active{
    opacity: 0.3;
    }

    #moreLinks{
    display: none;
    direction: rtl;
    }

    .link_row{
    grid-row: 1;
    display:flex;
    flex-direction: row-reverse;
    }

    .food-content {

        display: block;
        margin: auto;
    }



    .food-preview {

        box-sizing: border-box;
        max-height:256px;
        margin-left: 0px;
        display: flex;
        justify-content: center;
        object-fit: cover;

    }

    .profile {
        width: 80px;
        height: 80px;
        overflow:hidden;
        object-fit: cover;

        border-radius:40px;
        margin-left:10px;
        vertical-align: center;

    }

    img.preview {
        width:100%;

    }

    p.author {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 5px;
        padding-left: 10px;
    }

    p.food-title {
        margin-top:0px;
        font-style: italic;
        font-size: 18px;
    }

    p.invisible {
        opacity: 0;
    }

/*other languages*/
.flag {
    width: 50px;
    height: 50px;
    margin-bottom: 2px;
    cursor:pointer;
    border-radius: 25px;
}

.flag:hover {
    opacity:0.6;
    box-shadow: 0px 2px 6px rgba(0,0,0, 0.2);
}

.flag:active {
    opacity:0.4;
}

.flag-box {
    width: 50px;
    
    vertical-align: top;
    position:fixed;
    z-index:100;
    top:1.6%;
    right:0.6%;
    
}

.dropdown, .link-dropdown{
    display: none;
}



.flag-box:hover .dropdown{
    display:block;
}


/*about*/
.about-box {
    display: flex;
    flex-direction: column;
    text-align: justify;
    padding-right: 16%;
    padding-left: 1%;
    line-height: 1.6;
}

h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

/*contact*/
