.w3-button{
    font-family: "Montserrat", sans-serif;
}


.rice-blue{
    background-color: #00205B;
    color: white;
}

a.links:link {
    text-decoration: none;
}
  
a.links:visited {
    text-decoration: none;
}
  
a.links:hover {
    text-decoration: underline;
}
  
a.links:active {
    text-decoration: underline;
}
.accordionMenu{
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.accordionMenu input[type=checkbox]{
    display: none;
}

.accordionMenu label {
    display: flex;
    min-height: 60px;
    align-items: center;
    padding: 0 25px 0 10px;
    background-color: #f1f1f1;
    font-size: 18px;
    color: black;
    position: relative;
    cursor: pointer;
}

/* Rotate arrow when checked */
.accordionMenu input[type=checkbox]:checked + label:after {
    transform: rotate(90deg);
}

.accordionMenu label::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 12px;
    border-color: transparent transparent transparent #00205B;
    position: absolute;
    right: 10px;
    top: 20px;
    z-index: 10;
    transition: all 0.1s ease-in-out;
}

.accordionMenu .content{
    max-height: 0;
    align-items:center;
    height: 0;
    width: auto;
    font-size: 18px;
    overflow: hidden;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}

/* Show content when checked */
.accordionMenu input[type=checkbox]:checked + label + .content {
    max-height: 2000px;
    height: auto;
    padding: 32px;
    overflow: visible;
}

.accordionMenu .content .inner{
    font-size: 18px;
    color:black;
    line-height: 1.5;
    background: white;
    padding: 10px 10px;
}

.accordionMenu input[type=radio]:checked + label:after{
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.accordionMenu input[type=radio]:checked + label + .content{
    max-height: 2000px;
    align-items:center;
    height:auto;
    width: auto;
    padding: 32px;
}

*{
    box-sizing:inherit;
}

.column{
    float:left;
    width: 50%
}

.row:after{
    content:"";
    display:table;
    clear:both;
}

.tab{
    display:inline-block;
    margin-left:40px;
  }

  .links.highlighted {
  font-size: 1.1em;
  font-weight: bold;
  color: #00205B;
}

.FAQ-box {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  margin: 6px 0;
  background: #f9f9f9;
  border: 1px solid #ccc;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.FAQ-box {
  display: block; /* Required to allow width to apply on labels */
}

.mist-publication-box {
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 1.5rem 0;
  background: #f9f9f9;
  position: relative;
  transition: all 0.3s ease;
}

.mist-publication-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mist-publication-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  user-select: none;
  line-height: 1;
  padding-left: 1rem;
  transition: transform 0.3s ease;
}

.mist-publication-box.expanded .mist-publication-toggle {
  transform: rotate(45deg); /* Plus to X */
}

/* Abstract animation container */
.abstract-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  margin-top: 0;
}

.abstract-wrapper.open {
  margin-top: 20px; /* add gap when open */
}

.mist-publication-box.expanded .abstract-wrapper {
  max-height: 800px; /* sufficiently large to accommodate any abstract */
}

.abstract {
  margin-top: 6px;
  font-size: 0.9em;
  color: #333;
  padding-right: 2rem;
}

.mist-publication-box {
  background: #f9f9f9; /* pastel peach */
}
.mist-publication-toggle {
  color: #00205B; /* warm accent */
}

.title {
  font-size: 1.3em;
  font-weight: 700;
  color: #00205B; /* Your rice-blue */
  margin-bottom: 6px;
}

.authors {
  font-size: 1em;
  color: #444;
  margin-bottom: 6px;
}

.meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 4px;
}

.doi {
  font-size: 0.9em;
  color: #00205B;
  margin-bottom: 10px;
}


.abstract-label {
  font-weight: 600;
  font-size: 1em;
  margin-top: 10px;
  margin-bottom: 0px;
  color: #00205B;
}


.submitted-section {
  border: 3px solid black;
  padding: 1rem 2rem;
  margin: 2rem 2rem 2rem 2rem; 
  background-color: #f9f9f9;
  border-radius: 6px;
}

.submitted-heading {
  margin-top: 0;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

.year-header {
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
}

#step1, #step2, #step3, #step4, #myupload, #myrun, #runbutton, #outputs {
  display: none;
}

/* === Error message style === */
.error {
  color: #FF0000;
  margin-left: 4px;
}

/* === Buttons style === */
button, input[type="submit"] {
  background-color: #003366;      /* Rice-blue */
  color: white;
  padding: 4px 10px;              /* Just enough padding */
  font-size: 20px;
  border: none;
  border-radius: 3px;
  text-align: left;
  display: inline-block;
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 10px;
  cursor: pointer;
}

a.button-like {
  background-color: #003366;
  color: white;
  padding: 4px 10px;
  font-size: 20px;
  border: none;
  border-radius: 3px;
  text-align: left;
  display: inline-block;
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: none;  /* remove underline */
}

button:hover, input[type="submit"]:hover {
  background-color: #002244;
}

.w3-container button,
.w3-container input[type="submit"] {
  margin-left: 0;   /* Ensure left alignment */
}

/* === Container spacing === */
.w3-container.w3-margin, .w3-container.w3-padding {
  margin-bottom: 1.5em;
}

/* === Link styles === */
a.links, a.links:visited {
  color: #00205B;
  text-decoration: underline;
}

a.links:hover {
  color: #003577;
  text-decoration: none;
}

/* === Inputs === */
input[type="text"], input[type="email"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  width: 250px;
  max-width: 90%;
  margin-left: 4px;
}

/* === Radio buttons spacing === */
input[type="radio"] {
  margin-left: 10px;
  margin-right: 4px;
  vertical-align: middle;
}

/* === Responsive fixes === */
@media (max-width: 600px) {
  button, input[type="submit"], input[type="button"] {
    max-width: 100%;
  }

  .FAQ-box {
    font-size: 16px;       /* Optional: shrink font a bit */
    padding: 0.75rem;
  }

  input[type="text"], input[type="email"] {
    width: 100%;
    max-width: 100%;
  }
}

.w3-button.rice-blue {
  font-size: 0.9em !important;  /* smaller font */
  padding: 6px 12px !important; /* smaller padding */
  width: auto !important;       /* let width fit content */
  display: inline-block !important; /* inline for left align */
  text-align: left !important;  /* left text alignment */
  margin-left: 0 !important;    /* remove auto/margin */
}

.w3-button.small {
  font-size: 0.6em !important;  /* smaller font */
  padding: 6px 12px !important; /* smaller padding */
  width:min-content; 
  text-align: left !important;  /* left text alignment */
  margin-left: 0 !important;    /* remove auto/margin */
}
input[type="radio"] {
  margin-left: 10px;
}
input[type="radio"]:first-of-type {
  margin-left: 0;
}

  @media screen and (min-width: 601px) {
    .w3-hide-medium.w3-hide-large {
      display: none !important;
    }
  }

