@import "./styles.css";

/* Removed Open Sans import */

:root{
    --h-title-color:#000000;
    --bs-black: #000000;
    --bs-gray-300: #d9d9d9;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
}

h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
}

h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

h4 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Make h4 in call for participation more prominent */
.call-for-participation h4 {
    font-size: 1.5rem;
    color: #333333;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h5, h6 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--bs-black);
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.header {
    border-bottom: solid 2px var(--bs-gray-300);
    z-index: 10000;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--bs-black);
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    margin: 0;
    padding: 2rem 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 400px;
    overflow: hidden;
    margin-top: 1rem;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 3rem;
}

/* Paragraph styling */
p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

/* Call for participation section paragraphs */
.call-for-participation p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Call for participation section lists */
.call-for-participation ol, .call-for-participation ul {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.call-for-participation li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Style for text inside list items */
.call-for-participation ol li, .call-for-participation ul li {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Reduce line spacing for annotate paper section */
#publications p {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#publications ul, #publications ol {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#publications li {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.text-red {
    color: #ff0000;
}

/* Make h4 headings blue in publications section */
#publications h4 {
    color: #0d47a1;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

#publications h4 a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Add spacing after h5 headings */
#publications h5 {
    margin-bottom: 1.2rem;
}

/* Add spacing after br tags */
#publications br {
    display: block;
    margin: 1rem 0;
}

/* Link styles */
a {
    color: #0d47a1;
    text-decoration: none;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Style for author list */
#publications > div > p {
    font-size: 0.9em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Style for author roles */
#publications > div > p span {
    font-weight: 500;
}

/* Gitalk Comment Box Styling */
#gitalk-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.gitalk {
    font-family: 'Crimson Text', serif;
}

.gitalk-comment {
    margin-top: 1rem;
}

.gitalk-comment textarea {
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.6;
}

.gitalk-comment input {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Crimson Text', serif;
}

.gitalk-comment button {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gitalk-comment button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gitalk-comment .gitalk-comment-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.98);
}

.gitalk-comment .gitalk-comment-list {
    padding: 1rem;
}

.gitalk-comment .gitalk-comment-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gitalk {
    font-family: 'Crimson Text', serif;
}

.gitalk-comment {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.gitalk-comment textarea {
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100px;
}

.gitalk-comment input {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
}

.gitalk-comment button {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--bs-black);
    color: white;
}

.gitalk-comment button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gitalk-comment .gitalk-comment-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.98);
}

.gitalk-comment .gitalk-comment-list {
    padding: 1rem;
}

.gitalk-comment .gitalk-comment-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-black);
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-date {
    font-size: 0.75rem;
    color: #666;
    margin-left: 0.5rem;
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Hide all Gitalk icons and logos */
.gitalk .octicon {
    display: none !important;
}

.gitalk .gitalk-logo {
    display: none !important;
}

.gitalk .gitalk-github-logo {
    display: none !important;
}

.gitalk .gitalk-comment-item .gitalk-comment-item-reactions {
    display: none !important;
}

.gitalk .gitalk-comment-item .gitalk-comment-item-avatar {
    display: none !important;
}

.gitalk .gitalk-comment-header {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.gitalk .gitalk-comment-header .gitalk-comment-header-title {
    font-size: 1.25rem !important;
    margin: 0 !important;
}

.gitalk .gitalk-comment-header .gitalk-comment-header-description {
    display: none !important;
}

.gitalk .gitalk-comment-header .gitalk-comment-header-actions {
    display: none !important;
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-content {
    font-size: 1rem;
    line-height: 1.6;
}

.gitalk-comment .gitalk-comment-item .gitalk-comment-item-footer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.main-body p {
    line-height: 1.4;
}

h2 {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
    font-size: 2rem;
}

h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .top-section {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .top-section {
        height: 200px;
    }
}


.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    height: max(130px,min(200px,calc(100vw/6)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .header {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .top-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 1rem;
        padding: 0.25rem;
    }

    .top-section {
        padding: 2rem 0;
    }
}
