:root {
    --IlliniOrange: #ff5f05;
    --IlliniBlue: #13294b;
    --TsinghuaPurple: #660874;
}

header {
    background-color: #0077be;
    width: 100%;
    height: 3em;
    position: fixed;
    top: 0;
    left: 0;
}

header p{
    color: #fff;
    margin-top: 0.7em;
    margin-left: 0.7em;
}

nav {
    margin-top: 3em;
    height: 100%;
    width: 9em;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #000;
    background-image: linear-gradient(to right,#000 70%,#000,#777);
    overflow: hidden;
    padding-top: 5%;
}

nav a {
    padding: 0.5em;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    display: block;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main {
    max-width: 1000px;
    margin-left: 10em;
    padding-top: 2rem;
}

body {
    background-color: #ffe4e105;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

section {
    margin: auto;
    border-bottom: 3px solid #222;
}

a:hover {
    text-decoration: underline;
}

.gallery {
    width: 800px;
    display: flex;
    flex-wrap: wrap;
}
.gallery .figure {
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 15px;
    border: 1px solid #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gallery .figure img {
    max-width: 100%;
    height: auto;
}

.gallery .figure .image-container {
    display: flex; 
    flex-direction: row;
    max-width: 100%;
}


.gallery .figure p {
    margin-top: 0.5em;
    text-align: center;
    font-size: 12px;
}

.research {
    padding-bottom: 1.5em;
}

.activity {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 5px;
}

.activity img{
    align-self: flex-start;
    margin-right: 20px;
    width: 64px;
    object-fit: contain;
}

.activity .description h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}
  
.activity .description h5 {
    margin: 5px 0;
    font-size: 15px;
    font-style: italic;
    font-weight: normal;
}
 
.activity .description p {
    margin: 5px 0;
    font-size: 14px;
    font-weight: normal;
}

.icon {
    margin-bottom: 15px;
}

.icon a {
    display: inline-block;
    transition: transform 0.3s;
    text-decoration: none;
}

.icon a {
    display: inline-block;
    margin-right: 1em;
    transition: transform 0.3s;
}

.icon a:hover {
    transform: scale(1.1);
}

footer p {
    color: #777;
    font-size: small;
    text-align: center;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    margin-left: 10em;
}
    