html {
    font-family: "Open Sans", sans-serif;
    margin-left:10vw;
    margin-top:5vh;
    margin-right:10vw;
}
.main{
    width:fit-content;
    overflow-wrap: anywhere;
}
.main a {
    color: #333;
}

.extend {
    margin-left:-10vw;
    margin-top:-5vh;
    margin-right:-10vw
}
h1 {
    font-weight: bold;
    font-size:1.5rem;
}
h2 {
    font-size:1.25rem;
}
h3 {
    font-size:0.85rem;
}

.custom-container {
    background-color: #fff;
    border: 1px solid #d8bfd8; /* Thistle */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: block;
}

/* new stuff */
.column {
    flex: 1; /* Make both columns take up equal width */
}

.go-left {
    float:left;
}

.go-right {
    float:right;
}

.majority-third {
    width:60%;
}

.lesser-third {
    width:30%;
}

.small-top-margin {
    margin-top: 1vh;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    font-optical-sizing: auto;
    
    font-size: 0.85rem;
    font-variation-settings:
        "width" 100;
}

footer {
    margin-top:auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar .menu {
    display: flex;
    gap: 1rem;
}
.navbar .menu a {
    text-decoration: none;
    color: #333;
}

.caption {
    color: #333;
    opacity: 0.7;
    font-size:0.5rem;
}

.toggle-button {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.collapsible {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    height:4.5vh;
    white-space: nowrap;
    font-style: normal;
}

.search-bar {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}
.search-bar input {
    width: 50%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.content {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
}
.quick-links {
    width: 30%;
}
.data-visualization {
    width: 65%;
    height:65vh;
    overflow:hidden;
}
.quick-links ul {
    list-style-type: none;
    padding: 0;
}
.quick-links ul li {
    margin: 0.5rem 0;
}
.data-visualization {
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dark-mode {
    background-color: #333;
    color: #f5f5f5;
}

.dark-mode .caption {
    color:white;
}

.dark-mode .tag {
    color: #333;
}

.dark-mode .navbar {
    background-color: #444;
}

.dark-mode .navbar .menu a {
    color: #f5f5f5;
}

.dark-mode footer {
    background-color: #444;
}

.dark-mode footer p {
    color: #f5f5f5;
}

.dark-mode .table-of-content-container {
    background-color:#444;
}

.dark-mode .data-visualization {
    background-color: #444;
}
.vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    position: relative;
}
.nav-item {
    background-color: white;
    color: #333;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.nav-item span {
    display: none;
    z-index: 10;
}
.nav-item:hover {
    background-color: #ccc;
    transform: scale(1.1);
    z-index: 10;
}
.nav-item:hover span {
    display: inline;
    position: absolute;
    transform: translate(3vw, 1vh);
}
.nav-item.selected {
    background-color: #666;
    transform: scale(1.1);
}
img, .thumb, video{
    object-fit: cover;
    width: 30vw;
    height: 30vh;
    border-radius: 5px;
}
.vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: #333; */
    /* padding: 20px; */
    border-radius: 10px;
    position: relative;
}

.spacer {
    margin:5vh;
}

.table-of-content-container {
    width:300px;
    overflow: hidden;
    position: fixed;
    display: none;

    white-space: nowrap;
    overflow-y:scroll;

    background-color: white;
    height:100vh;
    /* z-index:-1; */
    top:0;
    left:0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    anchor-name: --toc;
}
.fixed-button {
    position: fixed;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    transform:translate(200px,5vh);
}


.hide-toc{
    display:None
}

.show-toc{
    display:contents
}

.table-of-content {
    margin-left:3vw;
    overflow-y:auto;
    z-index:1000;
}



.scrollingElem {
    margin-top:12vh
}
.table-of-content ul {
    /* removes the bullet points in list items */
    list-style-type: none;
    /* list item marker is placed within the content area of the list item */
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 12px;
    
}

.menu-sub-heading {
/* styles for sub-heading inside our menu */
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 12px;
}

.sub-menu li {
    margin-bottom: 16px;
}

.dark-mode a{
    color:#ccc;
}

#searchContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:10vw;
    padding:10vw;
}

#searchContainer {
    display: contents;
    align-items: center;
    margin-bottom: 20px;
}
#searchInput {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 300px;
}
#searchButton {
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#searchButton:hover {
    background-color: #ccc;
}

.headerline {
    display:inline;
}

.button-text{
    top:0;
    bottom:0;
    margin:0;
    padding:0;
    font-family:'Open Sans';
    font-size: 0.85rem;
}


/* Adapted from*/
.chart-section {
    
    /* padding: 30px 0 16px 0; */
    position: relative;
    /* margin-top: 3rem;
    margin-bottom: 3rem */
}

.chart-section .chart-title {
    text-align: center;
}

.chart-section .rapper-circles {
    position: relative;
    z-index: 999999999999999999
}

.chart-section .rapper-circles .rapper-circle {
    object-fit: cover;
    background-size: 100%;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    cursor: pointer;
    cursor: hand;
    border: 1px solid rgba(0,0,0,.4);
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%)
}

.chart-section .rapper-circles .rapper-circle:hover {
    border: 2px solid #000
}

.chart-section .rapper-circles .rapper-circle .rapper-name {
    font-family: 'Atlas Grotesk Web';
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    -webkit-transform: translate(0,-100%);
    -ms-transform: translate(0,-100%);
    transform: translate(0,-100%);
    width: 50px;
    margin: 0;
    position: absolute;
    left: -10px;
    top: -10px
}

.chart-section .chart {
    /* z-index:-9999999999999999; */
    position: relative;
    margin: 0 auto
}

.chart-section .chart .central-axis-wrapper {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    position: absolute;
    height: 2px;
    top: 50%
}

.chart-section .chart .central-axis {
    width: auto;
    right: auto
}

.vertical-line {
    position: absolute;
    height: 100%; /* Adjust the height as needed */
    width: 1px; /* Width of the vertical line */
    background-color: #000; /* Line color (you can change this) */
    top: 0; /* Align the line to the top of the container */
    /* You can add more styling properties here (e.g., border, opacity, etc.) */
    z-index:-999999999;
}


.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    /* margin: 16px; */
    margin-top:1.5rem;
    margin-bottom:1.5rem;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .date {
    color: #888;
  }
  
  .tags {
    display: flex;
    gap: 8px;
  }
  
  .tag.t1 { background-color: #ff6666; }  /* dark red */
  .tag.t2 { background-color: #ff8080; }
  .tag.t3 { background-color: #ff9999; }
  .tag.t4 { background-color: #ffb3b3; }
  .tag.t5 { background-color: #d9d9d9; }  /* white */
  .tag.t6 { background-color: #b3ffb3; }
  .tag.t7 { background-color: #99ff99; }
  .tag.t8 { background-color: #80ff80; }
  .tag.t9 { background-color: #66ff66; }
  .tag.t10 { background-color: #4dff4d; }  /* dark green */

  .tag {
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 0.8em;
  }
  

  /* interactive table */
    
  .table-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
table {
    border-collapse: collapse;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
th, td {
    padding: 15px 0px 15px 10px;
    text-align: left;
    border: 1.5px dotted rgba(0, 0, 0, 0.1); 

}
.card-popup-modal {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: #f9f9f9;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.close {
    color: #aaa;
    float: right;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
}

/* instagram and hbo max icons */
.table-icon {
    height:17px;
    width:17px;
    border-radius:3px;
    padding:0%;
}

/* carousel */
.carousel {
    width: 50vw;
    height: 65vh; /* Adjust height according to your content */
    overflow: hidden;
    position: relative;
}
.carousel > div {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}
.carousel > div.active {
    display: block;
    height:fit-content
}

.gallery {
    max-width: 1200px;
    margin: auto;
    padding:10px;
}

.media-container img, video {
    flex: auto;
    height:15vh;
    max-width:15vw;
}

.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}



/* SMALLER SCREENS */
/* Hide TOC and toggle buttons on smaller screens */
@media (max-width: 1000px) { /* Adjust the max-width as needed */
    .table-of-content {
        display: none; /* Hides the TOC */
    }

    .media-container img, video {
        display:inline-block;
        height:30vh;
        max-width:50vw;
    }
    
    button { /* Adjust this selector to match your toggle buttons */
        display: none; /* Hides all toggle buttons */
    }
}

/* Show TOC and toggle buttons on larger screens */
@media (min-width: 1000px) {
    .table-of-content {
        display: block; /* Shows the TOC */
    }
    
    button { /* Adjust this selector to match your toggle buttons */
        display: block; /* Shows all toggle buttons */
    }
}

.tab {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.tab button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin: 0 5px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #bbb;
}

.tab button.active {
    background-color: #007BFF;
    color: #fff;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    max-width: 80%;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-top: none;
}

/* Responsive styling */
@media screen and (max-width: 768px) {
    .tabcontent {
        max-width: 75%;
    }
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.content-container .item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin: 10px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .content-container .item {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 10px 0;
    }
}

/* Styling for images to be responsive */
.content-container img, .content-container iframe {
    width: 100%;
    height: auto;
}