/* styles.css */

/* General body styling */
body {
  color: #29235C;
  
  a {
    color: #29235C !important;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow-x: auto;
}

.header-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
}

.header-logos img {
  height: 120px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

.cta-button {
  background-color: #f8b337;
  color: black;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.cta-button:hover {
  background-color: #e09e29;
  color: black !important;
}


/* Modal overwrite styling */

.modal-dialog {
  width: 90%;
}

.modal-body {
  width: 90%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.modal-body--wide {
  width: 90%;
  max-width: 2000px;
}

.main-content {
  padding: 20px;
}

.nav-tabs img {
  margin-right: 4px;
}

.study-info {
  display: flex;
  margin-bottom: 24px;
}

.study-info__title {
  margin-right: 16px;
}

.study-info__tags {
  margin-left: 8px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0 48px;
}

.card {
    flex: 1 1 calc(33% - 20px); 
    min-width: calc(33% - 20px); 
    max-width: calc(33% - 20px); 
    border-radius: 8px;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 10px;
    cursor: pointer;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Media query for screens smaller than 1024px */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(100% - 20px); /* Full width on small screens */
        min-width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.card--full-width {
    flex: 1 1 100%; 
    max-width: 800px; 
}

.card__header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.card__title {
    font-weight: bold;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 80%;
    flex-shrink: 1;
}

.card__tag {
    font-size: 14px;
    border-radius: 16px;
    padding: 8px 16px;
    background-color: #29235C;
    color: white;
    flex-shrink: 0;
    margin-left: 8px;
}

/* https://m2.material.io/design/color/the-color-system.html#tools-for-picking-colors Amber 50 */

.card--study {
  background-color: #f9f9f9;
}

.card--study .card__tag {
    color: black;
    background-color: #FFE082; 
}

.card--Hookworm .card__tag {
    color: black;
    background-color: #FFB300; 
}

.card--Plasmodium .card__tag {
    color: black;
    background-color: #FFCA28; 
}

.card--Schistosoma .card__tag {
    color: black;
    background-color: #FFC107; 
}

/* experiment */
/* color pallet Dark Mint: #D2FBD4FF, #A5DBC2FF, #7BBCB0FF, #559C9EFF, #3A7C89FF, #235D72FF, #123F5AFF */

.card--experiment {
  background-color: #f9f9f9;
}

.card--experiment.card--CyTOF .card__tag {
    background-color: #123F5AFF; 
}

.card--experiment.card--ELISA .card__tag {
    background-color: #3A7C89FF; 
}

.card--experiment.card--Aurora .card__tag {
    background-color: #235D72FF; 
}

.card--experiment.card--GlycanArray .card__tag {
    background-color: #7BBCB0FF; 
}

.card--experiment.card--array .card__tag {
    background-color: #559C9EFF; 
}

/* analysis */
/* color palet blues9 #F7FBFFFF, #DEEBF7FF, #C6DBEFFF, #9ECAE1FF, #6BAED6FF, #4292C6FF, #2171B5FF, #08519CFF, #08306BFF*/
.card--analysis {
  background-color: #f9f9f9;
}

.card--analysis.card--ELISA .card__tag {
  background-color: #4292C6FF; 
}

.card--analysis.card--CyTOF .card__tag {
  background-color: #08519CFF; 
}

.card--analysis.card--Array .card__tag {
  background-color: #2171B5FF;
}

.card--analysis.card--OMIQ .card__tag {
  background-color: #08306BFF;
}

.card--analysis.card--egg_output .card__tag {
  background-color: #6BAED6FF;
}

.shiny-text-output {
  max-width: 800px;
}
