/* fonts */
@font-face {
    font-family: 'playfair';
    src: url('https://static.igem.wiki/teams/5275/fonts/playfair-variable.ttf') format('truetype');
}

@font-face {
    font-family: 'quattrocento';
    src: url('https://static.igem.wiki/teams/5275/fonts/quattrocento-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'quattrocento-bold';
    src: url('https://static.igem.wiki/teams/5275/fonts/quattrocento-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'arsenal';
    src: url('https://static.igem.wiki/teams/5275/fonts/arsenal-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'arsenal-italic';
    src: url('https://static.igem.wiki/teams/5275/fonts/arsenal-italic.ttf') format('truetype');
}

@font-face {
    font-family: 'courier';
    src: url('https://static.igem.wiki/teams/5275/fonts/courierprime-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'courier-italic';
    src: url('https://static.igem.wiki/teams/5275/fonts/courierprime-italic.ttf') format('truetype');
}

/* font sizes */
h1 { font-family: 'playfair'; font-size: 36pt;}
h2 { font-family: 'quattrocento'; font-size: 28pt;}
/* default */
h3 { font-family: 'arsenal'; font-size: 18pt;}
/* use class=color to specify */
h3.blue { font-family: 'arsenal'; font-size: 18pt; color: '5bc0eb'}
h3.pink { font-family: 'arsenal'; font-size: 18pt; color: 'ef798a'}
h3.orange { font-family: 'arsenal'; font-size: 18pt; color: 'f2af29'}
h4, .faq-question { font-family: 'quattrocento-bold'; font-size: 16pt;}
h5 { font-family: 'courier-italic'; font-size: 16pt;}
/* subtitles */
h6 { font-family: 'courier'; font-size: 12pt; text-align: center;}
ul, li { font-family: 'arsenal-italic'; font-size: 12pt;}
p { font-family: 'quattrocento'; font-size: 12pt;}
a { text-decoration: underline;}
a:hover { text-decoration: none; color: #ef798a}

/* color scheme for reference */
/* 

dark blue: 04567e
blue: 5bc0eb
pink: ef798a
orange: f2af29
light green (bkgd): c7efcf

*/

/* aspect ratio */
.responsive-embed {
    width: 60%;            
    aspect-ratio: 4 / 3;   
    height: auto;       
    border: 1px solid #ccc;
}

/* sponsors */
.sponsors-bar {
    width: 100%;               
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-radius: 15px; 
}

.sponsors-wrapper {
    display: flex;          
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: nowrap;
}

.sponsors-wrapper img {
    height: 60px;
    width: auto;
}  
  
/* progress bar */
#progress-container {
    z-index: 9999;
    position: fixed;
    width: 100%;
    height: 8px;
    top: 0;
    left: 0;
    background-color: #f3f3f3;
  }
  
#progress-bar {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    transition: width 0.25s, background-color 0.25s;
}

/* main callouts */

.main {
    padding-top: 200px;
    padding-bottom: 200px;
    /* background-color: white;
    border-radius: 20px; */
}

/* tables */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: 'arsenal';
}
/* headers */
th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #04567e;
}

th {
    background-color: #f2af29;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Slightly different background for alternate rows */
}

tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}

/* other things */
html {
    scroll-behavior: smooth;
}

img .col-lg-4 {
    max-width: 100% !important;
}
  

img {
    max-width: 65%; 
    height: auto;  
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;          /* Wrap the images if they exceed the available width */
  }

.image-row img {
    flex: 1 1 0;                   /* Make the images flexible and take up available space */
    max-width: 500px;              /* Optional: limit the maximum width for large screens */
    min-width: 150px;              /* Optional: set a minimum width to prevent them from shrinking too much */
    height: auto;                  /* Maintain the image aspect ratio */
}

/* other things */
body { padding-top: 56px; background-color: #c7efcf;}

background-color
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #04567e !important; }
.bg-hero { background-color: #5bc0eb; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #f2af29; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom:.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0eb; background-color: white;}
.bd-callout-warning { border-left-color:#f2af29; background-color: white;}
.bd-callout-danger { border-left-color:#ef798a; background-color: white;}

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

/* header */
.logo-container img {
    width: 50px;
    height: auto;
}

/* dropdown template */
.faq {
    margin: 20px;
}

.faq-item {
    margin-bottom: 10px;
    border: 3px solid #f2af29;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
}

.faq-question {
    cursor: pointer;
    padding-left: 20px;
}

.faq-answer {
    margin-top: 10px;
    display: none; /* hidden by default */
    padding-left: 20px;
}

details[open] .faq-answer {
    display: block;
    padding-top: 10px;
}

/* team page */

.team-row {
    display: flex;
    flex-wrap: wrap;      /* Wrap items to a new row if needed */
    justify-content: center;
    gap: 20px;            /* Spacing between the cards */
  }
  
  .team-card {
    flex: 1 1 calc(20% - 20px); /* 20% width per card minus the gap for 5 per row */
    max-width: 220px;     /* You can adjust this based on your design */
    background-color: #c7efcf;
    /* border: 3px solid #f2af29; */
    border-radius: 10px;
    text-align: center;
    padding: 15px;
  }
  
  .team-img {
    max-width: 100% !important;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  .team-name {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .team-role {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .team-bio {
    font-size: 12px;
    color: #666;
  }  


/* drylab data */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 10px; /* space between tiles */
    padding: 5px;
    justify-items: center;
}

.tile-tags-box {
    display: flex;
    justify-content: center; /* center tags horizontally within the tile */
    gap: 10px; /* space between tags */
    flex-wrap: wrap;
}

/* apply to any with tag in class */
[class^="tag"] {
    background-color: rgba(250, 192, 19, 1);
    border-radius: 10px;
    padding: 6px;
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    font-style: bold;
    font-size: 12px;
}

/* Different tag colors */
.tag-default {
    background-color: #8a878a; 
}

/*
.tag-purple {
    background-color: #c436d1;
}
*/

.tag-blue {
    background-color: #04567e;
}

.tag-green {
    background-color: #5bc0eb;
}

.tag-yellow {
    background-color: #ede02b;
}

.tag-orange {
    background-color: #f2af29;
}

.tag-red {
    background-color: #ef798a;
}
  
.tile {
    border: 1px solid #04567e;
    border-radius: 10px;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    /* font-size: 30px; */
    text-align: center;
    width: 100%;
    max-width: 400px;
}
  
.tile img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
  
/* card title */
.tile h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bolder;
}

/* card subtitle */
.tile h5 {
    margin-top: 5px;
    margin-bottom: 5px;
    /* font-size: 16px;
    font-weight: bold; */
}

/* figure captions */
.tile h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    /* color: gray; */
    font-style: italic;
    text-align: right;
}
  
/* sequence */
.tile p {
    margin: 5px 0;
    word-wrap: break-word;
    text-align: left;
}  
