/* base style */

@font-face {
    font-family: 'SourceSans';
    src: url('fonts/SourceSans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RussoOne';
    src: url('fonts/Russo One.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

footer{
    grid-area: footer;
    place-items: center;
    display: grid;
    height: 100px; /* Set the height of the container */

    font-family: 'RussoOne', sans-serif;
    color: #1378c0;
}

header {
    grid-area: menu;
    padding: 10px 0;
}

h2, h1 {
    font-family: 'RussoOne', sans-serif;
    color: #1378c0;
}

p, li{
    font-family: 'SourceSans', sans-serif;
}

a {
    font-family: 'SourceSans', sans-serif;
    color: #4b93f9;
}

main {
    width: 70%;
    margin: auto;
}

/* navigation menu style */
.menuContainer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 20px;
}

.logoMenu img {
    height: 50px;
}

nav {
    margin-left: 20px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu li {
    margin-right: 20px;
    
}

.menu li a {
    color: #4b93f9;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #77d4fc;
    border-radius: 5px;
}


/* index style */
.grid-container{
    display: grid;   
    grid-template-areas: 
    'menu menu'
    'head head'
    'about news'
    'footer footer'
    ;
}

.centerTitles{
    display: flex;
    justify-content: center;
    align-items: center;
}

#headerContainer{
    grid-area: head;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

#headerContainer img {
    max-width: 100%;
    max-height:100%;
}

#about{
    grid-area:about;
    width: 80%;
    margin: auto;
}

.centerTitles h2 {
    border-radius: 10px;
    box-shadow: 0 10px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    background-color: #77D4FC;
}



#news{
    grid-area: news;
    width: 80%;
}


/* pictures style */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.galleryText {
    padding-right: 30px;
    padding-left: 30px;
    text-align: justify;
    text-justify: inter-word;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    display: block;
    max-width: 400px;


}

.gallery-item h3 {
    margin: 10px 0;
    padding: 10px;
    background-color: #1378C0;
    text-decoration: none;
}

.gallery-item h3 a {
    text-decoration: none;
    color: #77D4FC;
}

/* research projects gallery style */

.gallery-RP {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item h2 {
    margin: 10px 0;
    padding: 10px;
    background-color: #1378C0;
    color: #77D4FC;
}


/* animated gallery style */
.gallery-Animation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: auto;
    height: 400px;
    outline: #77D4FC solid 10px;
}

.gallery-item-Animation {
    display: none;
    text-align: center;
    height: 100%; /* Make the gallery item take full height of the gallery */
    overflow: hidden; /* Hide overflow */
}

.gallery-item-Animation.active {
    display: block;
}

.gallery-item-Animation img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {

    .gallery-RP {
        display: grid;
        grid-template-columns: 1fr;
        /*grid-template-rows: repeat(2, minmax(200px, 1fr));*/
        gap: 20px;
}

}

/* search container style */
.search-container {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: #4b93f9;
    border-radius: 5px 0 0 5px;
    width: 300px;
}

.search-container button {
    padding: 10px;
    font-size: 16px;
    background-color: #4b93f9;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #77d4fc;
}

/* papers list style */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 10px;
    border: 1px solid #4b93f9;
    text-align: center;
    font-family: 'SourceSans', sans-serif;
}

tr th {
    background-color: #4b93f9;
    color: white;
}

tr:nth-child(even) {
    background-color: #4b93f9;
    color: white;
}

th:hover {
    background-color: #77d4fc;
}

tbody tr:hover {
  background: #77D4FC;
}