html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(
      -45deg,
      rgb(137, 58, 150),
      rgba(0, 119, 255, 0.7),
      rgb(137, 58, 150)
    );
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}


/* ================================================================== */
/* Main content GRID SYSTEM*/
/* ================================================================== */

main {
    padding: 0;
    margin-top: 70px;  /* IMPORTANT for the fixed header */
    display: grid;
    grid-template-rows: 3rem 1fr;
    gap: 0.5rem;
    justify-items: center;
    flex-direction: column;
    flex: 1 0 auto;
}

/* ================================================================== */
/* Description | Genome view */
/* ================================================================== */
#desc-genome-selector {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    border-bottom: 5px solid rgb(191, 12, 204);
}

#desc-genome-selector a {
    color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 4px 4px;
    transition: 0.3s;
    text-decoration: none;
    width: 50%;
    text-align: center;
}

#selector-2 {
    background-color: rgb(137, 58, 150);
    border-top: 10px solid rgb(137, 58, 150);
    border-left: 10px solid rgb(137, 58, 150);
    border-right: 10px solid rgb(137, 58, 150);
    border-bottom: 10px solid rgb(191, 12, 204);
}

#selector-1 {
    background-color: rgb(88, 41, 95);
    border: 10px solid rgb(88, 41, 95);
}

#desc-genome-selector a:hover {
    background-color: rgb(191, 12, 204);
    border: 10px solid rgb(191, 12, 204);
}

/* ================================================================== */
/* Browser section */
/* ================================================================== */
#browser-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 90vw;  /* 90% of the viewport width IMPORTANT*/
}

#top-scroll-container {
    width: 100%;
    overflow-x: scroll;
    margin-bottom: -16px; /* Adjust this to match the height of the scrollbar */
    height: 16px; /* Adjust this to match the height of the scrollbar */
}

#top-scroll {
    height: 1px;
}

#results-container {
    border: 1px solid #ddd;
    width: 100%;
    overflow-x: scroll;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* ================================================================== */
/* Media queries */
/* ================================================================== */
/* Smartphones */
/* ================================================================== */
@media only screen and (max-width: 480px) {
  main {
    margin-top: 140px;
  }
}