@font-face {
    font-family: icomoon;
    src: url('../fonts/icons-font.woff') format('woff'), url('../fonts/icons-font.ttf') format('truetype')
}

.icon-plus-square:before {
    content: "\e921"
}

.icon-minus-square:before {
    content: "\e91f"
}

.icon-chevron-down:before {
    content: "\e90a"
}

html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
}

[class*=" icon-"],[class^=icon-] {
    font-family: icomoon !important;
    speak: never;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.page {
    position: absolute; /* Added so all pages overlap */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: rgba(19, 19, 19, 0.10) 4px solid;
    border-radius: 7px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack elements vertically */
    padding-bottom: 60px;
    padding-left: 120px;
    padding-right: 120px;
    padding-top: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease; /* Ensure smooth fading and sliding */
}

.page.active {
    opacity: 1;
    pointer-events: auto;
}


.text, .description, .buttons-wrapper, .primary-button, .secondary-button, .button, .container, .content-wrapper, .content, .title {
    box-sizing: border-box;
    color: rgb(91, 97, 122);
    font-size: 1em;
    font-style: normal;
    font-weight: 300;
    text-align: center;
}

.text {
    color: rgb(38, 46, 53);
    font-size: 1.4em;
    font-weight: 500;
}

.description {
    color: rgb(91, 97, 122);
    font-size: 0.7em;
    font-weight: 300;
    margin-top: 24px;
}

.buttons-wrapper {
    margin-top: 32px;
    display: flex !important;
    justify-content: center;
    gap: 16px;
}

.primary-button, .secondary-button {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.primary-button {
    display: flex !important;
    background-color: rgb(24, 24, 24);
    color: rgb(255, 255, 255);
    border-radius: 11px;
}

.secondary-button {
    display: flex !important;
    background-color: rgb(243, 243, 243);
    color: rgb(24, 24, 24);
    border-radius: 11px;
    box-shadow: rgba(33, 32, 52, 0) 0px 5px 10px 0px;
}

.container {
    margin-left: 0;
    margin-right: 0;
    max-width: 1200px;
    width: 780px;
}

.title {
    color: rgb(38, 46, 53);
    font-size: 1.4em;
    font-weight: 500;
}

.buttons {
    align-items: center;
    box-sizing: border-box;
    color: rgb(91, 97, 122);
    column-gap: 24px;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.1em;
    font-style: normal;
    font-weight: 300;
    justify-content: center;
    row-gap: 24px;
    text-align: center;
    visibility: visible;
}

.about-title{
    position: relative;
    align-self: flex-start !important;
/*    clip to the top of the page*/
    justify-self: flex-start !important;
}

.about-me {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Align content to the left */
    gap: 24px;
    margin-top: 48px;
    width: 100%;
    height: auto; /* Make it responsive */
}

.about-card-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    width: fit-content;
    flex-direction: row;
    padding: 24px;
    box-sizing: border-box;
    flex-grow: 1;
    flex-shrink: 1;

}

.about-me-wrapper .about-card-wrapper .about-card{
    width: 300px !important;
    flex-wrap: wrap;
    height:auto;
}

.about-me-wrapper .about-card-wrapper .about-card .card-content{
    height: auto !important;
}

.about-card{
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border-width: 1px;
    border-style: solid;
    padding: 24px;
    background-color: rgb(255, 255, 255);
    border-color: rgb(198, 204, 208);
    overflow: hidden;
}
.card-title{
    color: rgb(38, 46, 53);
    font-size: 22px;
    font-weight: 600;
}

.card-content{
    color: rgb(91, 97, 122);
    font-size: 0.85em;
    font-weight: 300;
    margin-top: 10px;
    height: 0lh;
    overflow: hidden;
    transition: height 200ms ease-in-out;
}
.about-card:hover .card-content{
    height: auto;
}

.about-card:hover{
    background-color: rgb(247, 247, 248);
    border-color: rgb(198, 204, 208);
    box-shadow: rgba(33, 32, 52, 0.8) 0px 10px 20px -10px;
}

.XGB-info{
    width:auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: auto; /* Make it responsive */
    flex-direction: column;
    overflow-y: auto;
}


.subtitle {
    color: rgb(38, 46, 53);
    font-size: 32px;
    font-weight: 600;
}

.description li{
    color: rgb(91, 97, 122);
    font-size: 0.7em;
    font-weight: 300;
    margin-top: 24px;
}

.XGB-info {
    display: block;
    overflow: hidden;
    width: auto;
    height: auto;
}

.subpage {
    position: relative;
    display: block;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: height 6s cubic-bezier(0.5, 0, 0, 1) 5s;
    overflow: visible;
}

.subpage:not(.active) {
    display: none;
}

.info{
    display: flex;
    flex-direction: column;
    width: 40%;
    height: 100%;
}

.displayed-cards{
    display: flex;
    width: 60%;
    height: 100%;
}

.page:has(.AI-description-page-wrapper){
    padding-left: 10px;
    padding-right: 10px;
}

.AI-description-page-wrapper{
    display: flex;
    width: 100%;
    height: 100%;
}

/* Style for the similar works container */
.similar-works {
    border-radius: 16px;
    border: solid rgb(198, 204, 208);
    width:800px;
    height: auto;
    padding: 0 24px 24px 24px;
    hr{
        border: none;
        border-top-color: #c6ccd0;
        border-top-style: solid;
        border-top-width: 1px;
        margin: 0;
    }
}


.similar-work-group{
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.show-collapse-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.similar-work-title{
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    padding-top:24px;
    padding-bottom: 12px;
}

.similar-works-info{
    margin-bottom: 12px;
    height: 0;
    transition: height 1s ease-in-out;
    overflow: hidden;
}

/* Two-column layout for the XGBoost page */
.xgb-page-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    padding: 20px;
}

/* Left Side: Text Panel */
.xgb-text-panel {
    flex: 0 0 35%; /* Adjust width as needed */
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-right: 20px;
}

.xgb-text-panel .title {
    font-size: 2em;
    color: rgb(38, 46, 53);
    margin-bottom: 10px;
    text-align: left;
}

.xgb-text-panel .description,
.xgb-text-panel .additional-info {
    font-size: 1em;
    line-height: 1.5;
    color: rgb(91, 97, 122);
    margin-bottom: 15px;
    text-align: left;
}

/* Right Side: Cards Panel and Subpage Navigation */
.xgb-cards-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* XGB-info container for subpages */
.XGB-info {
    flex: 1;
    overflow-y: auto;
}

/* Maintain original subpage behavior */
.subpage {
    display: none;
}

.subpage.active {
    display: block;
}

/* Use existing styling for card wrappers and cards */
.about-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.about-card {
    flex: 1 1 45%;
    background-color: #fff;
    border: 1px solid rgb(198, 204, 208);
    border-radius: 16px;
    padding: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    background-color: rgb(247, 247, 248);
    box-shadow: rgba(33, 32, 52, 0.8) 0px 10px 20px -10px;
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: rgb(38, 46, 53);
    margin-bottom: 10px;
}

.card-content {
    font-size: 0.9em;
    font-weight: 300;
    color: rgb(91, 97, 122);
    line-height: 1.4;
}

/* Subpage navigation buttons for the cards panel */
.subpage-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.subpage-nav .primary-button {
    padding: 10px 20px;
    background-color: rgb(24, 24, 24);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subpage-nav .primary-button:hover {
    background-color: rgb(40, 40, 40);
}


.bold-text{
    font-weight: 800;
}

/* Research Page Base (inherits .page styling) */
.research-page {
    /* If not already set in your code, ensure it can scroll if content is tall */
    overflow-y: auto;
    display: flex;
    /* Remove or override any center alignment to allow for a two-col approach */
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 120px 60px 120px; /* Adjust spacing as needed */
}

/* Wrapper for two-column layout */
.two-col-layout {
    display: flex;
    gap: 40px; /* Space between the two columns */
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left and right columns */
.left-col,
.right-col {
    flex: 1 1 0;   /* Each column will expand equally */
    min-width: 0;  /* Helps handle overflow within flex items */
}

/* Retain your existing .research-section and text styling */
.research-section {
    margin-bottom: 40px;
    text-align: left;
}

.research-section h2 {
    font-size: 1.6em;
    color: rgb(38, 46, 53);
    margin-bottom: 15px;
}

.research-section p {
    font-size: 1em;
    line-height: 1.6;
    color: rgb(91, 97, 122);
    margin-bottom: 15px;
}

/* Updated graphs container for Research Page 1 */
.graphs {
    display: flex;
    flex-wrap: wrap;         /* Allow items to wrap to the next row */
    gap: 20px;               /* Space between each figure */
    justify-content: flex-start;
}

/* Each figure now has a fixed flexible basis of 200px */
.graphs figure {
    flex: 0 1 390px;         /* Do not grow, allow shrink, 200px basis */
    margin: 0;
    text-align: center;
}


.graphs img {
    max-width: 100%;
    border: 1px solid rgb(198, 204, 208);
    border-radius: 8px;
}

.graphs figcaption {
    font-size: 0.9em;
    color: rgb(91, 97, 122);
    margin-top: 8px;
}

/* Example code-block styling if needed */
.code-block {
    background-color: #f4f4f4;
    border-left: 4px solid rgb(24, 24, 24);
    padding: 15px;
    font-family: monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin-bottom: 15px;
}

.scroll-hint{
    display: flex;
    flex-direction: column;
    margin-top:50px;
    margin-bottom: 40px;
    justify-content: center;
    align-items: center;
}


.slide-out-up {
    animation: slideOutUp 0.8s forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s forwards;
}

.slide-out-down {
    animation: slideOutDown 0.8s forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s forwards;
}

@keyframes slideOutUp {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideOutDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
