/*---------------------------------------*\ 
    AUTHOR: A.M.M. Elsayed   
    * ALL RIGHTS RESERVED *
\*---------------------------------------*/

/*  this is for all the elements in the html file 
    Here we chose to set zero distance between the
    browser borders and the elements borders
*/

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

html, body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Items are placed left to right. */
    background-color: white;
}

body main {
    margin: 10px;   /* Space outside the border */
    padding: 10px;  /* Space inside the border, between content and border */
    flex: 1; /* Fills available space */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;   
    align-items: center; 
}

.navigations nav ul li #publications {
    font-weight:350;
}

.page-top {
    width: 100%;
    height: 150px;
    max-width: 1000px;
    min-width: 0;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;   
}

.page-top h1 {
    font-size: 45px;
}

.page-content {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    /* max-height: 40px;
    min-height: 0; */
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    align-items: flex-start;   
}

#publications-list {
    max-width: 1000px;
    min-width: 0;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: center;  
}

#publications-list .publication {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;   
    margin: 20px 0px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#publications-list .publication:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transform: scale(1.001);
}


#publications-list .publication .content {
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#publications-list .publication img {
    margin: 20px;   
    width: 95%;
    max-width: 350px;
    height: auto;
}

#publications-list .publication .content p {
    margin-bottom: 5px;   
}

#publications-list .publication .content h2 {
    margin-bottom: 20px;   
}


#publications-list .publication .content #abstract{
    font-size: 15px;
    text-align: justify;
    margin-bottom: 10px;  
}


/* Styles for screens below 1000px */
@media screen and (max-width: 1000px) {
    #publications-list .publication {
        flex-direction: column;
    }
}

/* Ensure text wraps */
#publications-list .publication .content p,
#publications-list .publication .content h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#publications-list .publication .content #doi-link a {
    word-break: break-all;
}

/* %-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-% */
/*   Special Styling Search Bars   */
/* %-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-% */

.search-bar {
    display: flex;
    align-items: center;
    position: relative;
    width: 400px; /* Add this line to set the desired width */
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #666;
    transition: fill 0.3s ease;
}

.search-button:hover .search-icon {
    fill: #007bff;
}

@media screen and (max-width: 1000px) {
    .search-bar {
        display: none;
    }
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

