/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body Styling */
  body {
    font-family: 'Arial', sans-serif;
    /*-webjkit-font-smoothing: antialiased;*/
    color: #E1E1E1;
    background-color: #1C1E22;
    min-height: 100vh;
  }

  /* Header */
  header {
    text-align: center;
    padding: 40px 20px;
  }
  
  /*.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }*/
  
  header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    color: #FFFFFF;
  }

  header .strapline {
    color: #A0A3A8;
    font-size: 1.2em;
    margin-top: 10px;
  }

  header a {
    color: #FFFFFF;
    text-decoration: none;
  }

  header a:hover {
    color: #A0A3A8;
  }
  
  /* Navigation Bar */


  /* Footer */
    footer {
      margin-top: auto;
      padding: 20px;
      text-align: center;
      color: #A0A3A8;
      font-size: 0.9em;
      background-color: #1C1E22;
      width: 100%;
    }
  
    footer p {
      margin: 0;
    }

  
  /* Container */
  .container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    display: flexbox;
    justify-content: center; /* Center horizontally */
  }
  
  /* Main Content */
  /*main {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
  }*/

  /*.split-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }*/

  /* Fonts and Styling */
  main h2 {
    margin-bottom: 20px;
    font-weight: semi-bold;
    font-size: 24px;
    margin-bottom: 0;
  }
  
  main p {
    margin-bottom: 10px;
  }

  div#not-tracked {
    padding: 20px;
    background-color: #2A2D35;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  div.message, div.message-warn {
    background-color: #EAF1F3;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
  }

  div.message-warn {
    background-color: #F44336;
  }

  main.portfolio-content {
    display: flex;
    justify-content: center;
  }

  /* Larger screens */
  @media (min-width: 768px) {
    main.portfolio-content .portfolio {
      min-width: 768px;
    }
  }

  /* Summary Card */
  .summary-card,
  .total-value-card {
    background-color: #2A2D35;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .total-value-card {
    text-align: center;
  }

  .total-value-card h2 {
    font-size: 1.5em;
    color: #A0A3A8;
  }

  .total-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
  }

  .total-amount .amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #E1E1E1;
  }

  .total-amount .change {
    margin-top: 5px;
    font-size: 1.2em;
    font-weight: bold;
  }

  /* TODO: Wrap up all these positive negatives into a single style */
  .change.positive {
      color: #4CAF50;
  }

  .change.negative {
      color: #F44336;
  }

  .performance-tag {
    margin-top: 10px;
    font-size: 0.9em;
    color: #C1C4C9;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 12px;
    display: inline-block;
  }

  /* Metrics Cards */
.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric-card {
  background-color: #2A2D35;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.metric-title {
  font-size: 1em;
  color: #A0A3A8;
}

.metric-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #E1E1E1;
  margin: 5px 0;
}

.metric-sub {
  font-size: 0.9em;
  color: #C1C4C9;
}

  /* Summary Card->Grid */
  .summary-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .summary-item {
    flex: 1 0 21%; /* Adjust the width percentage as needed */
    margin: 10px;
  }

  @media (max-width: 768px) {
    .summary-grid {
        display: block;
    }

    .summary-item {
        width: 100%;
        margin: 10px 0;
    }
  }

  .summary-item .title {
    color: #666;
  }

.summary-item .value {
    font-weight: bolder;
    font-size: 1.6em;
    margin-bottom: 0;
    color: #000;
  }

.summary-item .sub {
  color: #999;
}

.summary-item .highlight-value {
    font-size: 18px;
    font-weight: bold;
    color: #d17a22;
  }

  .tweet {
    flex: 0 0 30%;
    box-sizing: border-box;
    max-width: 300px;
    padding: 10px;
  }

  /* Tweet List */
  .item-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }

  .perf-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    width: 75px;
    min-width: 75px;
    height: 75px;
    min-height: 75px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.positive-icon, .negative-icon {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-bottom: 5px;
}

.positive-icon {
  border-bottom: 15px solid green;
}

.negative-icon {
  border-top: 15px solid red;
}

.text-container {
  display: flex;
  flex-direction: column;
}

.perf-number {
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
}

/* Tweet Grids */
ul.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns by default */
  grid-gap: 20px; /* Space between the columns */
  list-style-type: none; /* Remove bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

ul.list-grid li {
  margin: 0; /* Ensure no extra margins between list items */
}

@media (max-width: 1024px) {
  ul.list-grid {
      grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
  }
}

@media (max-width: 768px) {
  ul.list-grid {
      grid-template-columns: 1fr; /* Single column on small screens */
  }
}

.portfolio-link {
  text-decoration: none;
}



/* Tweet-Containers */

.tweet-container {
  padding: 20px;
  overflow: hidden;
}

a.portfolio-link {
  text-decoration: none;
  color: inherit;
}

.stat-card {
  background-color: #2a2d35;
  color: #C1C4C9;
  border-radius: 10px; /* Rounded corners for modern look */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
  padding: 20px; /* Spacing inside the container */
  margin-top: 20px; /* Spacing between cards */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  overflow: hidden; /* Hide overflowing content */
}

.portfolio-link .stat-card:hover {
  transform: scale(1.05);
}

.portfolio-link .stat-card {
  max-width: 600px; /* Constrain width for readability */
  height: 400px; /* Set a fixed height */
}

.stat-card .date-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #A0A3A8;
  font-size: 0.9em;
  text-align: center;
}

.stat-card .date-section .date {
  color: #A0A3A8;
}

.stat-card .date-section .divider {
  flex-grow: 1;
  border: none;
  border-top: 1px solid #3A3E45;
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: space-between; /* Aligns percentage to the right */
}

.stat-icon {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.stat-info {
  flex-grow: 1; /* Allows stat-info to take up remaining space */
}

.stat-info h3 {
  margin: 0;
  font-size: 1.2em;
  color: #E1E1E1;
}

.stat-info p {
  margin: 0;
  color: #888;
  font-size: 0.9em;
}

.stat-header a {
  color: #1da1f2;
  text-decoration: none;
  text-align: center;
}

.stat-header a:hover {
  text-decoration: underline;
}


.stat-content {
  font-size: 0.95em;
  line-height: 1.4;
}

.stat-percentage {
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-percentage.positive {
  color: #4caf50;
}

.stat-percentage.negative {
  color: #f44336;
}

.arrow {
  font-size: 1.2em;
}

.twitter-tweet p {
  margin: 0 0 10px;
}

.twitter-tweet p a::before {
  content: "\A"; /* Inserts a line break */
  white-space: pre; /* Ensures that the line break is respected */
}

.twitter-tweet a {
  color: #1da1f2; /* Twitter's link blue */
  text-decoration: none;
  font-weight: bold;
}

.twitter-tweet a:hover {
  text-decoration: underline;
}

.twitter-tweet a  {
  pointer-events: none; /* Disables the link from being clicked */
  cursor: default; /* Changes the cursor to a default arrow instead of a hand */
  color: gray; /* Change the link color to indicate inactivity */
  text-decoration: none; /* Remove underline if any */
  opacity: 0.6; /* Optional: Reduce opacity to show that the link is inactive */
}

.twitter-tweet blockquote {
  margin: 0;
}

  /* Remove bullet points from the list */
ul.list-unstyled {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  /* Remove default link styling */
  ul.list-unstyled li a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Define hover styling for links */
  ul.list-unstyled li a:hover {
    text-decoration: underline;
    color: #999; /* Change this to your desired hover color */
  }

  ul.list-unstyled li time {
    color: #999;
    font-size: 0.9em;
    font-weight: lighter;
  }
  
  /* Utility Classes */
  .text-center {
    text-align: center;
  }
  
  .mt-20 {
    margin-top: 20px;
  }
  
  .mb-20 {
    margin-bottom: 20px;
  }

  /* Responsive Table */
  /* Basic table styling */
  table.simple-table {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
    background-color: #2A2D35;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /*text-align: left; TODO: remove? */
  }

  .simple-table th, 
  .simple-table td {
    padding: 15px;
    text-align: center;
    color: #E1E1E1;
  }

  .simple-table th {
    background-color: #333;
    font-weight: bold;
    color: #A0A3A8;
  }

  .simple-table td {
    background-color: #2A2D35;
  }

  .simple-table .positive {
    color: #4CAF50;
    font-weight: bold;
  }

  .simple-table .negative {
    color: #F44336;
    font-weight: bold;
  }

.simple-table tr:nth-child(even) td {
    background-color: #2D3038;
}
  
  .simple-table td:first-child span {
    display: block;
  }

  .simple-table td span.sub {
    font-size: 0.8em;
  }
  
  /* Responsive table */
  @media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    thead tr {
      display: none;
    }
  
    tr {
      margin-bottom: 15px;
    }
  
    td {
      text-align: right;
      padding-left: 50%;
      position: relative;
    }
  
    td::before {
      content: attr(data-label);
      position: absolute;
      left: 0;
      width: 50%;
      padding-left: 15px;
      font-weight: bold;
      text-align: left;
    }
  }