/* Custom styles for personal website */

/* Table styles */
table {
    border-collapse: collapse;
}

.smaller-image {
    width: 20%;
}

/* Image container with labels */
.container {
    position: relative;
    display: inline-block;   
}

.image {
    display: block;
    border-radius: 10px;
    max-width: 100%;
}

.video-label {
    position: absolute;
    top: 5px;
    left: 5px;
    color: white;
    padding: 0px 10px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: small;
}

.arxiv-label {
    position: absolute;
    top: 10px;
    left: -5px;
    color: #333333;
    padding: 0px 10px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: x-small;
}

/* Research highlights grid */
.research-hightlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* GitHub corner animation */
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
    0%, 100% {
        transform: rotate(0);
    }
    20%, 60% {
        transform: rotate(-25deg);
    }
    40%, 80% {
        transform: rotate(10deg);
    }
}

@media (max-width: 500px) {
    .github-corner:hover .octo-arm {
        animation: none;
    }
    .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out;
    }
}

/* Section headers */
h2 {
    color: #A5030A;
}

/* Biography section */
.bio-section {
    font-size: 15px;
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(to right, #f5f5f5, #ffffff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #444444;
}

.bio-section p {
    color: #333333;
}

.bio-section p:first-child {
    margin-top: 0;
}

.bio-section p:last-child {
    margin-bottom: 0;
}

/* Education grid */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.education-item {
    display: flex;
    align-items: center;
}

.education-item img {
    margin-right: 20px;
}

.education-item p {
    margin: 0;
}

.education-item div {
    font-size: 12px;
}

/* Publication table */
.paper-box {
    border-radius: 5px;
    margin-bottom: 20px;
}

.paper-box td {
    padding: 15px;
}

.paper-box .paper-title {
    font-size: 16px;
    font-weight: bold;
}

.paper-box .paper-authors {
    font-size: 14px;
    margin: 5px 0;
}

.paper-box .paper-venue {
    font-size: 14px;
    margin: 5px 0;
}

.paper-box .paper-links a {
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
    color: white;
    text-decoration: none;
}

.paper-box .paper-abstract {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

/* Button colors */
.btn-project {
    background-color: #333333;
}

.btn-paper {
    background-color: #444444;
}

.btn-arxiv {
    background-color: #757575;
}

.btn-code {
    background-color: #000000;
}

/* Footer */
#footer {
    background-color: #f8f8f8;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 3px solid #333333;
    text-align: center;
}

#footer a {
    color: #757575;
    font-size: small;
}
