/*********************************************
    STYLE GUIDE
*********************************************/
/* 
Style Guide:
- Primary Font Stack: Roboto, Helvetica, Arial
- Text Colors:
  - Primary: Black (#000)
  - Secondary: Light (#333)
  - Header/Footer: White (#FFF)
  - Footer Light: rgba(255, 255, 255, 0.7)
- Accent Colors:
  - Positive: Gold (#ffa500)
  - Negative/Warnings: Red (#922b21)
- Brand Colors:
  - Primary Blue: #003366
  - Secondary Blue: #005b99
  - Hover Blue: #004080
*/


/*********************************************
    Main Parameters
*********************************************/
html {
    font-size: 16px;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #003366;
    color: #000;
    scroll-behavior: smooth;
}

#page-container {
    padding-top: 0px;
}


/*********************************************
    Typography
*********************************************/
small {
    font-style: italic;
    color:  #566573;
  }  

h1 {
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 5px;
    color: #000000;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 5px;
    color: #000000;
}

h3 {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 5px;
    color: #000000;
}

h4 {
    font-size: 1.0rem;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 5px;
    color: #000000;
}

/* Link Styles */
a.covert:link, 
a.covert:visited,
a.covert:hover,
a.covert:active { 
    color: inherit; 
    text-decoration: none;
}

/* Link Styles */
a.doclink:link, 
a.doclink:visited,
a.doclink:hover,
a.doclink:active { 
    color: #003366; 
    text-decoration: none;
}

a.doclink:hover{
    color: #ffa500;
}

/*********************************************
    Header
*********************************************/
header {
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    position: static;
}

/* Logo and title container */
header .logo-title-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

header .logo img {
    height: 65px;
    margin-right: 20px;
}

header .site-title {
    font-weight: bold;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

header .site-title:hover,
header .site-title:visited,
header .site-title:active {
    color: inherit;
    text-decoration: none;
}

/* Main navigation */
nav {
    margin-right: 20%;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 20px;
    font-weight: bold;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

nav ul li a:hover {
    text-decoration: underline;
}


/*********************************************
    LAYOUT CONTAINERS
*********************************************/
.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    box-sizing: border-box;
}

.filler {
    float: left;
    box-sizing: border-box;

    width: 20%;
    padding: 10px;
}

.panel {
    background-color: white;
    padding: 15px;
    margin: 5px 0;
    border-radius: 8px;   
}


/*********************************************
    FOOTER
*********************************************/
footer {
    background-color: #003366;
    color: white;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}
.footer_container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-evenly;
}
.footer_element {
    padding: 10px;
    min-width: 150px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-link:hover {
    opacity: 1;
}
.footer-link b {
    opacity: 1;
    color: #ffa500;
}
.footer-text {
    opacity: 0.8;
}

/*Style for media icons*/
.fab {
    width: 20px;
}

a.footer:link,
a.footer:visited,
a.footer:hover,
a.footer:active { 
    color: white; 
    text-decoration: none;
}


/*********************************************
 * Navigation Bar - left Panel
 *********************************************/
 .nav-container {
    list-style-type: none;
    padding-left: 20;
}

.nav-container .nav-link {
    font-weight: bold;
    display: list-item;
    list-style-type: disc;
    color: #005b99;
    margin-top: 20px;
    padding-left: 5px;
    text-decoration: none;
}

.nav-container .sub-category {
    font-weight: normal;
    font-size: 0.9em;
    display: list-item;
    list-style-type: circle;
    color: #005b99;
    margin-top: 2px;
    padding-left: 15px;
    text-decoration: none;
}

.nav-container .nav-link:visited,
.nav-container .sub-category:visited {
    color: #005b99;
}


/*********************************************
 * Containers
 *********************************************/

 .spacing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between blocks */
    justify-content: space-evenly;
}
.spacing-block {
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 10px;
    background-color:  #f0f3f4 ;
    min-width: 250px; /* Minimum width to prevent overcrowding on smaller screens */
    margin-bottom: 10px;
}


.img-section{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 0.9rem;
}
.img-container1{
    width: 33%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}




.custom-nucleotides-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between blocks */
    justify-content: space-evenly;
}

.custom-nucleotide-block {
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #f9f9f9;
    width: 48%; /* Set block width to 30% for three blocks per row */
    min-width: 450px; /* Minimum width to prevent overcrowding on smaller screens */
    margin-bottom: 10px;
}

.custom-nucleotide-block h3 {
    background-color: #dfdfdf;
    padding: 5px;
    text-align: center;
}

.custom-nucleotide-block table {
    width: 100%;
}

.unit-cell {
    padding-left: 5px; /* Small padding to create a cozy space */
    white-space: nowrap; /* Prevent the unit from wrapping onto the next line */
}

.label-cell {
    width: 33%; /* Set block width to 30% for three blocks per row */
    min-width: 75px; /* Minimum width to prevent overcrowding on smaller screens */
}

.input-field {
    width: 100%; /* Ensure the input field takes up full width of the td, or adjust as needed */
}

input[type="number"],
input[type="text"] {
padding: 2px;
border: 1px solid #8f8f8f;
border-radius: 5px;
margin-bottom: 0px;
box-sizing: border-box;
}




.colour-preset-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.colour-preset-label{
    width: 33%;
    flex-direction: column;
    text-align: center;
}

.colour-preset-image{
    width: 33%;
}

.colour-preset-button{
    width: 33%;
    flex-direction: column;
    text-align: center;
}



.payment-block {
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 15px;
    background-color:  #f0f3f4 ;
    width: 100%; /* Set block width to 30% for three blocks per row */
    margin-bottom: 10px;
}

.generic-block {
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 15px;
    background-color:  #f0f3f4 ;
    width: 100%; /* Set block width to 30% for three blocks per row */
    margin-bottom: 10px;
}



/*********************************************
    Forms
*********************************************/

/* General Styles for all forms:*/
input[type="submit"] {
    background-color: #003366;
    border: 0px solid #003366;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 20px;
    font-weight: bold;
}
input[type="submit"]:hover {
    background-color: #ffa500;
}
input[type="submit"]:active {
    background-color: #003366;
}
input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 5px;
    border: 1px solid #8f8f8f;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Buttons*/
/* In the new design, buttons are prefered over input type submit*/
.button_big {
    background-color: #003366;
    border: 0px solid #003366;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
}
.button_big:hover {
    background-color: #ffa500;
}
.button_big:active {
    background-color: #003366;
}


.button_small {
    background-color: #003366;
    border: 0px solid #003366;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: bold;
}
.button_small:hover {
    background-color: #ffa500;
}
.button_small:active {
    background-color: #003366;
}

.button_tiny {
    background-color: #003366;
    border: 0px solid #003366;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
    padding: 4px 10px;
    font-weight: normal;
}
.button_tiny:hover {
    background-color: #ffa500;
}
.button_tiny:active {
    background-color: #003366;
}

.button_bad {
    background-color: #922b21;
    border: 0px solid #922b21;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
}
.button_bad:hover {
    background-color: #c0392b;
}
.button_bad:active {
    background-color: #922b21;
}

.button_bad_small {
    background-color: #922b21;
    border: 0px solid #922b21;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: bold;
}
.button_bad_small:hover {
    background-color: #c0392b;
}
.button_bad_small:active {
    background-color: #922b21;
}

.button_bad_tiny {
    background-color: #922b21;
    border: 0px solid #922b21;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
    padding: 4px 10px;
    font-weight: normal;
}
.button_bad_tiny:hover {
    background-color: #c0392b;
}
.button_bad_tiny:active {
    background-color: #922b21;
}


/* Class main-form*/
.main-form input[type="text"],
.main-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid grey;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.main-form input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}
.main-form input[type="submit"] {
    width: 100%;
}


/*********************************************
 * TABLES
 *********************************************/

/* Results Table */
/* To be used for math calculations on the main forms for instance*/
.result-table {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
.result-table td, 
.result-table th {
    border: none;
    text-align: left;
    vertical-align: top;
}
.result-table th:first-child {
    width: 30%;
}
.result-table th:nth-child(2) {
    width: 70%;
}
.result-table tr:nth-child(even) {
    background-color: #dfdfdf;
}


/* Feature Table for Subscription tier advert*/
.feature-table-container {
    margin: 20px auto;
    width: 90%;
    overflow-x: auto;
}
.feature-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}
.feature-table th,
.feature-table td {
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #ccc;
}
.feature-table thead {
    background-color: #005b99;
    color: #FFF;
}
.feature-table td {
    font-size: 16px;
}
.available {
    color: #000000;
}
.limited {
    color: #000000;
}
.unavailable {
    color: #000000;
}
.feature-table th {
    font-size: 18px;
    font-weight: bold;
}


.pricing-table_container{
    text-align: center;
    margin: 5px auto;
    width: 50%;
    min-width: 375px;
    overflow-x: auto;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

.pricing-table th {
    text-align: right;
    padding: 5px;
    border-bottom: 2px solid #1b1919;
}

.pricing-table td {
    text-align: right;
    padding: 5px;
    border-bottom: 1px solid #3f3f3f;
}


/*********************************************
    MISC
*********************************************/
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #005b99;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}
#backToTop:hover {
    background-color: #004080;
}


/*********************************************
 * LANDING PAGE
 *********************************************/
 .landing-container {
    margin: 0 auto;    
    padding: 20px;
    text-align: center;
}

.landing-description {
    margin-bottom: 20px;
    color: #003366;
}

.landing-description h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #003366;
}

.landing-description p {
    font-size: 1.2rem;
    color: #003366;
    line-height: 1.6;
}

/* Tools Grid */
.tools-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;


}
.tool-button {
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.6s ease;
}
.tool-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 1;
}
.tool-button:hover {
    transform: scale(1.06);
}
.tool-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 2;
    text-align: center;
}

