/* Base HTML and body styles */
html {
    background: #000;
}

html, body, p, h1, h2, h3, h4, h5, h6 {
    /* font-family: "Roboto", sans-serif; */
    font-family: "Optimistic Display", sans-serif;
    line-height: 1.4em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* Responsive heading sizes */
/* h1 {font-size: 48px; text-shadow: 2px 2px 10px black;} */
/* h1 {font-size: 36px} */
h1 {
    font-size: calc(min(24px + 3vw, 96px));
}

h2 {
    font-size: calc(min(22px + 0.5vw, 48px));
}

p {
    font-size: 18px; 
    text-align: justify;
}

ol {
    font-size: 18px;
}

hr {
    border-top: 1px solid #ccc;
}

.card {
    border: 1px solid #ccc;
}

img { 
    display: block; 
    margin-bottom: 0px;
}

/* Link styling */
/* a {text-decoration: none; color: #2196F3;} */
a {
    color: #2196F3;
} 

.btn {
    margin-bottom: 4px;
}

/* Background container */
.bkg {
    /* background-image: url("images/gates_night2.jpg"); */
    /* box-shadow: inset 0 0 100px hsla(0,0%,0%,1.0); */
    background-size: 100%, auto;
    background-position: 0 50%;
    background-color: #fff;
}

/* Layout utilities */
.w3-row-padding { 
    padding: 50px 50px;
}

.margin-top { 
    margin-top: 50px;
}

.margin-bottom { 
    margin-bottom: 50px;
}

.head { 
    height: 250px;
}

.container {
    padding: 0; 
}

/* List styling */
ul {
    margin: 0 0 20px 0;
    list-style-type: circle;
}

li {
    margin: 10px 0;
}

/* Flexbox utilities */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

/* Responsive navigation styles */
.topnav .icon {
    display: none;
    font-weight: bold;
}
  
@media screen and (max-width: 768px) {
    .topnav a:not(:first-child) {
        display: none;
        font-weight: bold;
    }
    
    .topnav a.icon {
        float: right;
        display: block;
        padding: 15px 15px;
        font-size: 24px;
        font-weight: bold;
    }
    
    .topnav-links {
        display: none;
        font-weight: bold;
    }
    
    .topnav-links.responsive {
        display: block;
        position: absolute;
        background-color: white;
        width: 100%;
        left: 0;
        top: 60px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        font-weight: bold;
    }
    
    .topnav-links.responsive a {
        float: none;
        display: block;
        text-align: left;
        padding: 15px 20px;
        font-weight: bold;
    }
}

.topnav a {
    float: right;
    color: #333;
    font-size: 18px;
    text-align: center;
    padding: 20px 10px;
    text-decoration: underline;
    font-weight: bold; /* Add this line */
}

/* Button styles */
.button {
    background-color: #2196F3;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 5px 5px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 30px;
}

.button-large {
    padding: 6.5px 13px;  /* 30% larger than original 5px 10px */
    font-size: 1.3em;     /* 30% larger text */
    margin: 6.5px 6.5px;  /* 30% larger margins */
    border-radius: 10px;  /* 30% larger than original 8px */
    margin-top: 39px;     /* 30% larger than original 30px */
}

.button-large.button-black {
    border: 2.6px solid transparent;  /* 30% larger border */
}

/* Gradient border button with hover effect */
.button2 {
    display: inline-block;
    padding: 0.5em 1.2em;
    border: 3px solid transparent;
    border-radius: 10px;
    font-size: 1.3em;
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(#ffffff, #ffffff), 
                     linear-gradient(45deg, #FF0000, #ff9100);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
    cursor: pointer;
}
  
/* Gradient text inside button */
.button2 h5 {
    margin: 10px;
    background: linear-gradient(45deg, #FF0000, #ff9100);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}
  
/* Button hover state */
.button2:hover {
    background-image: linear-gradient(45deg, #FF0000, #ff9100), 
                     linear-gradient(45deg, #FF0000, #ff9100);
}
  
/* Text hover state */
.button2:hover h5 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: white;
    color: white;
    font-weight: bold;
}

/* Black button with gradient border */
.button-black {
    background-image: linear-gradient(#000000, #000000), 
                     linear-gradient(45deg, #FF0000, #ff9100);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    color: #fff;
    transition: all 0.4s ease;
    font-weight: bold;
}

/* Black button hover state */
.button-black:hover {
    background-image: linear-gradient(45deg, #FF0000, #ff9100),
                     linear-gradient(45deg, #FF0000, #ff9100);
}

/* Layout components */
.row {
    width: 100%;
    height: 100%;
    display: table-row;
    background: #ddd;
}

.col-left, .col-right {
    width: 50%;
    display: table-cell;
    vertical-align: middle;
}

/* Video container styling */
.video-container {
    width: 100%;
    position: relative;
    height: 100vh; /* Set full viewport height */
    overflow: hidden;
}

.inline-video-container {
    width: 100%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
    opacity: 1; /* Change from 0 to 1 */
}

.inline-video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    filter: brightness(50%);
}

.video-container .caption {
    z-index: 1;
    position: relative;
    padding: 10px;
    text-color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.video-container .caption .w3-center {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.video-container .caption h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-container .caption h4 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* Paper layer effect */
.layered-paper-big { /* modified from: http://css-tricks.com/snippets/css/layered-paper/ */
    box-shadow:
        0px 0px 1px 1px rgba(0,0,0,0.35), /* The top layer shadow */
        5px 5px 0 0px #fff, /* The second layer */
        5px 5px 1px 1px rgba(0,0,0,0.35), /* The second layer shadow */
        10px 10px 0 0px #fff, /* The third layer */
        10px 10px 1px 1px rgba(0,0,0,0.35), /* The third layer shadow */
        15px 15px 0 0px #fff, /* The fourth layer */
        15px 15px 1px 1px rgba(0,0,0,0.35), /* The fourth layer shadow */
        20px 20px 0 0px #fff, /* The fifth layer */
        20px 20px 1px 1px rgba(0,0,0,0.35), /* The fifth layer shadow */
        25px 25px 0 0px #fff, /* The fifth layer */
        25px 25px 1px 1px rgba(0,0,0,0.35); /* The fifth layer shadow */
    margin-left: 10px;
    margin-right: 60px;
}

/* Navigation styling */
.w3-top {
    z-index: 2;
    vertical-align: middle;
}

/* Top navigation bar */
.topnav {
    background-color: #fff;
    overflow: hidden;
    border-bottom: 1px solid #c0c0c0;
    padding: 0px 10px; 
    font-size: 16px;
    opacity: 90%; 
}

.topnav p {
    float: left;
    color: #333;
    text-align: center;
    margin: 0;
    text-decoration: none;
    font-weight: bold; 
    padding: 20px 20px;
}
    
.topnav a {
    float: right;
    color: #333;
    text-align: center;
    padding: 20px 10px;
    text-decoration: underline;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #f321c6;
    color: white;
}

/* Team member grid layout */
.w3-center > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Author card styling */
.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(25% - 20px);
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
}

/* Author card hover effect */
.author::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(225, 3, 3, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.author:hover {
    background-color: rgba(0,0,0,0.05);
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Responsive author cards */
@media screen and (max-width: 1200px) {
    .author {
        width: calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .author {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .author {
        width: calc(100% - 20px);
    }
}

/* Author photos */
.authorphoto img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.author:hover .authorphoto img {
    transform: scale(1.05);
}

.author a {
    color: black;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* font-weight: bold; */
}

/* Footer styling */
.footer {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    background-color: #ffffff6b !important;
    text-align: center;
}

/* Anchor links for section navigation */
a.anchor {
    display: block;
    position: relative;
    top: -50px;
    visibility: hidden;
}
    
/* Video container background */
#container {
    background-image: url("./assets/preview_frame.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: black;
}

#video {
    opacity: 0;                /* start faded out */
    transition: opacity 2s;    /* css fade in */
}

/* Highlight text for method description */
.highlight-text {
    font-size: 18px;
    line-height: 2.0;
    color: #333;
    display: block;
    margin-bottom: 15px;
}
  
/* Numbered badges for method steps */
.stage-number {
    background: linear-gradient(45deg, #FF0000, #ff9100);
    color: white;
    padding: 4px 10px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    font-weight: bold;
    line-height: 1.2;
    vertical-align: middle;
}
  
/* Gradient arrows for highlighting */
.arrow {
    background: linear-gradient(45deg, #FF0000, hsl(32, 100%, 50%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 5px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 20px;
}

/* Gradient bullet list */
.blue-dot-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    font-size: 1.3em;
    line-height: 1.6em;
}
  
.blue-dot-list li {
    padding-left: 35px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}
  
.blue-dot-list li:hover {
    transform: translateX(10px);
}
  
.blue-dot-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.8em;
    background: linear-gradient(45deg, #FF0000, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bibtex citation container */
.bibtex-container {
    position: relative;
    background: white;
    padding: 2px 10px 2px 20px;
    margin-top: 20px;
    line-height: 1.6;
}

/* Gradient line for bibtex */
.bibtex-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(45deg, #FF0000, #ff9100);
}

/* Code formatting for bibtex */
.bibtex-code {
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    color: #000000;
    white-space: pre-wrap;
    text-align: left;
    word-wrap: break-word;
    margin: 0;
    overflow-x: auto;
    line-height: 1.5;
    font-weight: bold;
    display: block;
    padding-left: 0;
}

.bibtex-code::selection {
    background-color: rgba(0, 0, 0, 0.1);
}

/* PDF viewer container */
.pdf-container {
    position: relative;
    width: 100%;
    height: 700px;
    margin-bottom: 40px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
  
.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive PDF container */
@media screen and (max-width: 768px) {
    .pdf-container {
        height: 500px;
    }
}

@media screen and (max-width: 480px) {
    .pdf-container {
        height: 400px;
    }
}