body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
}
td {
	font-size: 20px;
}
.page-container {
    width: 1200px;
    min-height: 1000px;
    margin: 0 auto; /* top and bottom, right and left */
    text-align: left; /* top, right, bottom, left */
    padding-top: 0em;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
}



body {
    font-family: 'Noto Sans', sans-serif;
  }


th.afhq {
    width: 200px;  
}
th {
    text-align: center;
}
.intra-link {
    color: #4488ff;
    text-decoration: underline;
}
a:active {
    color: #4488ff;
    text-decoration: underline;
}
a:visited {
    color: #4488ff;
    text-decoration: underline;
}
a:hover {
    color: #ff0000;
    text-decoration: none;
}
.reference {
    font-size: 80%;
}
.emph {
    color: #B1FF00;
}

.comparison-img {
    width: 150px !important;
}

hr {
    background-color: white;
}

/* .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  } */
  
  .video-wrapper {
    display: inline-block;
    position: relative;
    width: 48%;
    /* height: 350px; /* Set the desired width */
    /* padding-bottom: 350px; */
    /* overflow: hidden; */
  }
  
  
  .video-wrapper video {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .video-wrapper .hover-video {
    display: none;
  }
  
  .video-wrapper .overlay-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-family: "Chalkduster";
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
  }
  
  .video-wrapper:hover .default-video {
    display: none;
  }
  
  .video-wrapper:hover .hover-video {
    display: block;
  }
  
  .video-wrapper:hover .overlay-text {
    opacity: 1;
  }
  
  
  .video-wrapper video::-webkit-media-controls {
    display: none !important;
  }
  
  .video-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
  }
  
  .video-wrapper video::-webkit-media-controls-panel {
    display: none !important;
  }
  
  .video-wrapper video::-webkit-media-controls-play-button {
    display: none !important;
  }
  
  
  
  
  .video-grid-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Adjust the number of columns as needed */
    gap: 1px; /* Adjust the gap between videos as needed */
  }
  
  .video-warpper-wide {
    position: relative;
    width: 350px; /* Set the desired width */
    height: 350px;
    overflow: hidden;
  }
  
  .video-warpper-wide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .video-warpper-wide .hover-video {
    display: none;
  }
  
  .caption-vid {
    display: inline-block;
  }
  
  .video-warpper-wide .overlay-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-family: "Chalkduster";
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
  }
  
  .video-warpper-wide:hover .default-video {
    display: none;
  }
  
  .video-warpper-wide:hover .hover-video {
    display: block;
  }
  
  .video-warpper-wide:hover .overlay-text {
    opacity: 1;
  }

/* Add by me */
.container {
    display: block;
    text-align: center;
}
.gif {
    display: block;
    margin: 10px auto;
    max-width: 800px; /* You can change this value to control the width of the video_comparison */
}
.input_image{
  width: 256px; /* Set the desired width */
  height:256px;
}

.input_image_morph{
  width: 340px; /* Set the desired width */
  height:340px;
}

.input_image_morph_rec_small{
  width: 220px; /* Set the desired width */
  height:140px;
}

.input_image_morph_rec{
  width: 340px; /* Set the desired width */
  height:212.5px;
}

.input_image_morph_rec_1{
  width: 340px; /* Set the desired width */
  height:255px;
}

.input_image_ablation1{
  width: 200px; /* Set the desired width */
  height:200px;
}
.input_image_loop{
  width: 512px; /* Set the desired width */
  height:320px;
}
.input_image_frameinterp{
  width: 256px; /* Set the desired width */
}
.input_image_normal{
  width: 340px; /* Set the desired width */
}
.input_image_topdownlayout{
  width: 120px; /* Set the desired width */
}
.input_image_topdownlayout_rectan{
  width: 160px; /* Set the desired width */
}
.input_image_motion{
  width: 200px;
}
.input_image_story{
  width: 150px;
}
.media-border {
  /* border: 1px solid #808080; */
  border: 1px solid rgb(177, 174, 174);

}


.video-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.video-container:hover {
  z-index: 2; /* Add this line to increase the z-index when hovering */
}
.hover-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
}

.video-container:hover .hover-image {
  display: block;
}

.caption {
  display: none;
  position: absolute;
  /* bottom: -30px; Adjust this value to change the position of the caption */
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
  text-align: center;
  font-size: 12px;
}

.video-container:hover .caption {
  display: block;
}

.comparison-video {
    width: 250px !important;
    height: calc(250px * 1080 / 1920) !important;
    object-fit: cover;
    padding: 0; 
    vertical-align: top;
}

/* 修改选择器，让所有comparison表格都生效 */
#comparison_with_baseline_container ~ table {
    margin-left: 0 !important;
    table-layout: fixed;
}

/* 确保所有comparison表格的右侧三列居中对齐 */
#comparison_with_baseline_container ~ table th:nth-child(2),
#comparison_with_baseline_container ~ table th:nth-child(3),
#comparison_with_baseline_container ~ table th:nth-child(4) {
    text-align: center;
}

/* 左侧第一列向左对齐 */
#comparison_with_baseline_container ~ table th:nth-child(1) {
    text-align: center;
    padding-left: 0;
}

/* 所有comparison表格的元素顶对齐 */
#comparison_with_baseline_container ~ table th {
    vertical-align: top !important;
}

/* 所有comparison表格的标题行（第4行）底对齐 */
#comparison_with_baseline_container ~ table tr:nth-child(4) th {
    vertical-align: bottom !important;
}

/* 所有comparison表格的视频行（第5行）顶对齐 */
#comparison_with_baseline_container ~ table tr:nth-child(5) th {
    vertical-align: top !important;
}

.standard-video {
    width: 340px !important;
    height: 191.25px !important;
    object-fit: cover;
    padding: 0; 
    vertical-align: top;
}

/* CFG comparison表格样式 */
#comparison_with_cfg_methods_container ~ table {
    margin-left: auto !important;
    margin-right: auto !important;
    table-layout: fixed;
}

/* 确保CFG comparison表格的列居中对齐 */
#comparison_with_cfg_methods_container ~ table th {
    text-align: center;
    vertical-align: top !important;
}

/* CFG comparison表格使用相同的视频样式 */
#comparison_with_cfg_methods_container ~ table video {
    width: 400px !important;
    height: calc(400px * 1080 / 1920) !important;
    object-fit: cover;
}

/* 新的布局样式 */
.result-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: white;
    max-width: 1500px;
    min-height: 500px;
    margin-left: auto;
    margin-right: auto;
}

.reference-section {
    flex: 0 0 300px;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.task-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.reference-video-wrapper {
    position: relative;
}

.reference-video {
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 280px;
    height: auto;
}

.generated-videos-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 100%;
}

.generated-video {
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generated-video:hover {
    transform: scale(1.02);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .result-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .reference-section {
        flex: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .generated-videos-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .generated-video {
        width: 100%;
    }
}

/* 新的比较布局样式 - 两行三列网格 */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.main-video-item,
.comparison-video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-title,
.comparison-video-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.main-video,
.comparison-video-small {
    width: 380px;
    height: 214px;
    object-fit: cover;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.main-video:hover,
.comparison-video-small:hover {
    transform: scale(1.02);
}

/* 清理后的tooltip样式 */
.video-tooltip {
    position: relative;
}

/* Sample section和prompt按钮样式 */
.sample-section {
    max-width: 1400px;
    margin: 0 auto 10px auto;
    text-align: center;
}

.prompt-toggle-btn {
    background-color: hsl(204, 86%, 53%);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.prompt-toggle-btn:hover {
    background-color: hsl(204, 86%, 48%);
}

.prompt-toggle-btn:active {
    background-color: hsl(204, 86%, 43%);
}

.prompt-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid hsl(204, 86%, 53%);
    margin-bottom: 15px;
    text-align: left;
}

.prompt-display p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* 响应式设计 - 比较布局 */
@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 15px;
    }
    
    .main-video,
    .comparison-video-small {
        width: 100%;
        height: auto;
    }
}

/* 新的比较布局样式 - 类似Showcases */
.comparison-result-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: white;
    max-width: 1500px;
    min-height: 500px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-reference-section {
    flex: 0 0 300px;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comparison-task-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.comparison-reference-videos-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-reference-video-wrapper {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-reference-video {
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 280px;
    height: auto;
}

.comparison-generated-videos-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 100%;
}

.comparison-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comparison-method-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.comparison-generated-video {
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-generated-video:hover {
    transform: scale(1.02);
}

/* 响应式设计 - 新比较布局 */
@media (max-width: 768px) {
    .comparison-result-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .comparison-reference-section {
        flex: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .comparison-generated-videos-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .comparison-generated-video {
        width: 100%;
    }
}