html { font-family: sans-serif; background: #eee; padding: 1rem; }
body { margin: 0px auto ; background: white; }
h1 { font-family: serif; color: #377ba8; margin: 1rem 0; }
a { color: #377ba8; }
hr { border: none; border-top: 1px solid lightgray; }
nav { background: lightgray; display: flex; align-items: center; padding: 0 0.5rem;}
nav h1 { flex: auto; margin: 0;}
nav h1 a { text-decoration: none; padding: 0.25rem 0.5rem; }
nav ul  { display: flex; list-style: none; margin: 0; padding: 0;}
nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem;}

.my-nav { color: #0F4391; }
.my-panel { background: #bcd4e6; color: #0F4391;}
/* desc_list panel */
.my-panel2 {background: #bcd4e6; color: #0F4391;}


.content { padding: 0 1rem 1rem; }
.content > header { border-bottom: 1px solid lightgray; display: flex; align-items: flex-end; }
.content > header h1 { flex: auto; margin: 1rem 0 0.25rem 0; }
.flash { margin: 1em 0; padding: 1em; background: #cae6f6; border: 1px solid #377ba8; }
.post > header { display: flex; align-items: flex-end; font-size: 0.85em; }
.post > header > div:first-of-type { flex: auto; }
.post > header h1 { font-size: 1.5em; margin-bottom: 0; }
.post .about { color: slategray; font-style: italic; }
.post .body { white-space: pre-line; }
.content:last-child { margin-bottom: 0; }
.content form { margin: 1em 0; display: flex; flex-direction: column; }
.content label { font-weight: bold; margin-bottom: 0.5em; }
.content input, .content textarea { margin-bottom: 1em; }
.content textarea { min-height: 12em; resize: vertical; }
input.danger { color: #cc2f2e; }

input[type=submit] { align-self: start; min-width: 10em; margin: 8px 0; }
input[type=range] { align-self: start; min-width: 10em; margin: 8px 0; color: #0F4391;}

.counter {
    display: inline-block;
    margin-top: -4px;
    margin-left: auto;
    margin-right: auto;
}

.main-example-mol-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* scale the nanostructure container in explore page */
.example-mol-container {
    width: 222px;
    height: 200px;
    margin-bottom: 15px;
    position: relative;
}

.mol-container {
    width: 100%;
    height: 400px;
    position: relative;
}
.list-inline {
    padding-left: 0;
    margin-left: -5px;
    list-style: none;
}
.assay-list-item {
    padding-left: 0;
    margin-bottom: 10px;

    list-style: none;
}

input[type=text] {
  width: 15%;
  -webkit-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
    margin: 8px 0;
}

/* When the input field gets focus, change its width to 100% */
input[type=text]:focus {
  width: 40%;
}
ul {
    list-style-type: disc;
}

/* for the dropdown nav box */
#myTopnav {
    display: inline-block;
}
#myDropdown1, #myDropdown2, #myDropdown3, #myDropdown4 {
    display: inline-block;
    vertical-align: -3.3px;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.w3.my-nav .icon {
  display: none;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  color: #0F4391;
  padding-top: 8.5px;
  padding-right: 15px;
  padding-bottom: 8.5px;
  padding-left: 15px;
  background-color: inherit;
  font-family: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.sub-1 {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 279px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a, .sub-1 a {
  float: none;
  color: #0F4391;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.w3.my-nav a:hover, .dropdown:hover .dropbtn {
  background-color: lightgray;
  color: black;
}


.dropdown:hover .dropdown-content {
  display: block;
}

.sub-1:hover, .dropdown .dropdown-content a:nth-child(3):hover + .sub-1 {
        background-color: inherit;
        display: inherit;
        margin-left: 0em;
        margin-top: -0.1em;
}

@media screen and (max-width: 600px) {
  .w3.my-nav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .w3.my-nav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .w3.my-nav.responsive {position: relative;}
  .w3.my-nav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .w3.my-nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .w3.my-nav.responsive .dropdown {float: none;}
  .w3.my-nav.responsive .dropdown-content {position: relative;}
  .w3.my-nav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* for addtolist and backtogroup are same line with PDB and Desc*/
.addtolist {
    display:inline-block;
}
.backtogroup {
    display:inline-block;
    float:right;
}

/* for desc table render*/
table.dataframe, .dataframe th, .dataframe td {
  border: none;
  border-bottom: 1px solid #C8C8C8;
  border-collapse: collapse;
  text-align:left;
  padding: 10px;
  margin-bottom: 40px;
  font-size: 0.9em;
}

.ENM td {
  background-color: #add8e6;
  color: white;
}

#table-wrapper {
  position:relative;
}
#table-scroll {
  height:300px;
  overflow:auto;
  margin-top:10px;
  margin-bottom:0px;
}
#table-wrapper table {
  width:100%;

}
#table-wrapper table * {
  background:#eee;
  color:black;
}

#table-wrapper th {
  background-color: #8d9eff;
  color: white;
}

#table-wrapper table .text {
  position:absolute;
  top:-20px;
  z-index:2;
  height:20px;
  width:35%;
  border:1px solid red;
}

/* upload instruction image*/
#desc_prep {
    width: 90%;
}

.desclist_center, .descupload_center {
    text-align: center;
}

#desclist_prep {
    width: 86%;
    text-align: center;
}

/* desc_upload makeup (two buttons)*/
#file_block {
    display:inline-block;
}
#upload_block {
    display:inline-block;
}

.upload_button {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.upload_button:hover {
    background: #4CAF50;
}

input[type=file]::file-selector-button {
  margin-right: 10px;
  border: none;
  background: #3A85FD;
  padding: 10px 20px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background .2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  background: #4CAF50;
}

/* assay download and back to assay list button makeup*/
.downloadassay {
    display:inline-block;
}
.backtoassaylist {
    display:inline-block;
    float:right;
}

/* desc_home img setting */
#deschome_img {
  width: 80%;
  height: auto;
  margin-top:15px;
}

/* Slideshow setting */
.mySlides {display: none;}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: black;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.deletebutton {
    display: inline-block;
}

/* for desc list render (scrollbar)*/
table.dataframe, .dataframe th, .dataframe td {
  border: none;
  border-bottom: 1px solid #C8C8C8;
  border-collapse: collapse;
  text-align:left;
  padding: 10px;
  margin-bottom: 40px;
  font-size: 0.9em;
}

#table-wrapper1 {
  position:relative;
  border:5px solid #8d9eff;
}
#table-scroll1 {
  height:200px;
  overflow:auto;
  margin-top:0px;
  margin-bottom:1px;
}
#table-wrapper1 table {
  width:100%;

}
#table-wrapper1 table * {
  background:lightgray;
  color:black;
}
#table-wrapper1 table .text {
  position:absolute;
  top:-20px;
  z-index:2;
  height:20px;
  width:35%;
  border:1px solid red;
}

.list_div {
    margin-left:25px;
}

#cal_button {
    margin-top:15px;
}

.list_button {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.list_button:hover {
    background: #4CAF50;
}

/* for about us, deposit data, and calculation service templates */
#zhulabinfo, #aboutusinfo, #aboutusinfo2, #depositdata, #calculation_service {
    max-width: 100%;
    margin-left: 50px;
    margin-right: 0px;
}

form input#materialtype,
#service_type,
#material_type,
#emailaddress,
form input#title,
form input#shape,
form input#core,
form input#size,
form input#ligand,
form input#ref,
form input#content
form input#request_detail {
  width: 300px;
  background-color: #fafafa;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  border: 1px solid #cccccc;
  padding: 3px;
  font-size: 1.1em;
}

form textarea#content {
  width: 600px;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  background-color: #fafafa;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  border: 1px solid #cccccc;
  margin-bottom: 0px;
  padding: 5px;
  font-size: 1.1em;
}

form textarea#request_detail {
  width: 500px;
  height: 100px;
  max-width: 100%;
  object-fit: cover;
  background-color: #fafafa;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  border: 1px solid #cccccc;
  margin-bottom: 0px;
  padding: 5px;
  font-size: 1.1em;
}

.depositbutton {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 11px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.depositbutton:hover {
    background: #4CAF50;
}

.request_button {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 11px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.request_button:hover {
    background: #4CAF50;
}

/* for developed_models templates*/
#chart1, #chart2, #chart3, #chart4, #chart8 {
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 600px;
    display: inline-block;
}

#chart5, #chart6, #chart7 {
    width: 90%;
    height: 100%;
    max-width: 700px;
    max-height: 600px;
    display: inline-block;
}

#aid9_model_dev, #aid12_model_dev, #aid15_model_dev, #aid16_model_dev,
#aid19aid20_model_dev, #aid21aid22_model_dev, #aid23aid24_model_dev, #aid25_model_dev, #aid26_model_dev {
    border-style: solid;
    border-color: #D3D3D3;
    border-width: 2px;
}

#aid9_model_deploy, #aid12_model_deploy, #aid15_model_deploy, #aid16_model_deploy,
#aid19aid20_model_deploy, #aid21aid22_model_deploy, #aid23aid24_model_deploy, #aid25_model_deploy, #aid26_model_deploy {
    padding:20px;
    display:inline-block;
    vertical-align: top;
}

.model_button {
    transition-duration: 0.4s;
    margin: 3px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.model_button:hover {
    background: #4CAF50;
    color: white;
}

#NMDescFile_block, #aid9_NMDescFile_block, #aid12_NMDescFile_block, #aid15_NMDescFile_block, #aid16_NMDescFile_block,
#aid19aid20_NMDescFile_block, #aid21aid22_NMDescFile_block, #aid23aid24_NMDescFile_block, #aid25_NMDescFile_block, #aid26_NMDescFile_block {
    display:inline-block;
}
#NMDescUpload_block, #aid9_NMDescUpload_block, #aid12_NMDescUpload_block, #aid15_NMDescUpload_block, #aid16_NMDescUpload_block,
#aid19aid20_NMDescUpload_block, #aid21aid22_NMDescUpload_block, #aid23aid24_NMDescUpload_block, #aid25_NMDescUpload_block, #aid26_NMDescUpload_block {
    display:inline-block;
}

/* login system 3 templates*/
#login_fig, #register_fig, #reset_request, #reset_password {
    margin-left: 40px;
    width: 80%;
    height: 90%;
}

/* deposit data templates*/
#deposit_data_fig {
    min-width: 450px;
    width: 75%;
    height: 75%;
}

/* calculation service templates*/
#calculation_service_fig {
    margin-top:20px;
    min-width: 450px;
    width: 75%;
    height: 75%;
}

/* custom_model template*/
.custom_model_button {
    transition-duration: 0.4s;
    margin: 3px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.custom_model_button:hover {
    background: #4CAF50;
    color: white;
}

#custom_model_fig {
    min-width: 80%;
    max-width: 80%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#CV_method,
#Scaler_method {
  width: 150px;
  background-color: #fafafa;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  border: 1px solid #cccccc;
  padding: 5px;
}

#model_custom_tune_panel, #model_custom_result_panel {
    background-color:#E6E6FA;
    padding:20px;
    border-radius:20px;
    border:none;
}

.model_hide {
  display: none;
}

/* model_home_img setting */
#model_home_img {
  width: 80%;
  height: auto;
  margin-top:15px;
}

/* library_home_img setting */
#library_home_img1, #library_home_img2 {
  width: 90%;
  height: auto;
  margin-top:-30px;
}

/* library_pca_img setting */
#library_pca_img {
  width: 85%;
  height: auto;
  margin-top:-30px;
}

#library_single_fig {
  width: 60%;
  height: auto;
  margin-top:-15px;
}

/* library record */
#lib_metaList {
  margin-top: 50px;
}

.basicInfo-list-item {
    padding-left: 0;
    margin-bottom: 10px;
    list-style: none;
}

/* for loading; style also in template to avoid this page flash */
#loading {
    margin: 0 auto;
    height: 45%;
    width: 100%;
    display: none;
    background: white;
    cursor: wait;
}

#loading_fig1, #loading_fig2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* file download and back page button*/
.download_and_back {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.download_and_back:hover {
    background: #4CAF50;
    color: white;
}

#file::file-selector-button {
    background-color: #2D5DC4;
}

#AID9Pred_file::file-selector-button, #AID12Pred_file::file-selector-button,
#AID15Pred_file::file-selector-button, #AID16Pred_file::file-selector-button,
#AID19AID20Pred_file::file-selector-button, #AID21AID22Pred_file::file-selector-button,
#AID23AID24Pred_file::file-selector-button, #AID25Pred_file::file-selector-button, #AID26Pred_file::file-selector-button {
    background-color: #2D5DC4;
}

#custom_desc_file::file-selector-button {
    background-color: #2D5DC4;
}

#custom_ep_file::file-selector-button {
    background-color: #2D5DC4;
}

#Pred_file::file-selector-button {
    background-color: #2D5DC4;
}


/* virtual nanomaterials render*/
#vNMs_select {
    width: 260px;
    background-color: #fafafa;
    -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
    border: 1px solid #cccccc;
    padding: 3px;
    font-size: 1.1em;
}

#vNMs_load {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

#vNMs_load:hover {
    background: #4CAF50;
}


/* predeveloped model render*/
#model_select {
    width: 280px;
    background-color: #fafafa;
    -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
    border: 1px solid #cccccc;
    padding: 3px;
    font-size: 1.1em;
}

#model_load {
    transition-duration: 0.4s;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: #2D5DC4;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0px 0px 0 rgba(0,0,0,0.2), 0 0px 0px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: background .2s ease-in-out;
}

#model_load:hover {
    background: #4CAF50;
}

.tutorial-iframe {
    width: 70vw;
    height: 82vh;
    border: none;
}

@media (max-width: 768px) {
    .tutorial-iframe {
        width: 100vw;
        height: 50vh;
    }
}

.video-responsive {
    width: 70vw;
    height: 39.375vw;
    max-height: 90vh;
    border: none;
}

@media (max-width: 768px) {
    .video-responsive {
        width: 100vw;
        height: 56.25vw;
        max-height: 50vh;
    }
}

.tutorial_index {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.tutorial_row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* This ensures that the two columns have some space between them */
}

.tutorial_column {
    flex: 1;
    min-width: 150px; /* Minimum width of each column */
}

.tutorial_column ul {
    list-style-type: none; /* Removes the default list styling */
    padding: 0; /* Removes the default padding */
}

.tutorial_column li {
    color: #00BFFF;
    margin-bottom: 10px; /* Space between list items */
}

.tutorial_column a {
    text-decoration: none; /* Removes the underline from links */
    color: #00BFFF; /* Sets the link color */
}

.tutorial_column a:hover {
    text-decoration: underline; /* Underline on hover for better user experience */
}

.video-container h4 {
    text-align: left;
    margin-left: 75px;
}
