@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&display=swap");

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}


h1 {
    font-size: 35px;
    color: black;
}
h2 {
    font-size: 25px;
    padding-top: 18px;
}
h3 {
    font-size: 20px;
} 
p {
    word-break: break-word;
    color: black;
}
a {
    color: black;
}

html{
  font-size: 18px;
  font-family: 'Martel', serif;
  word-break: break-word;
  -ms-overflow-style: none;
  scrollbar-width: none; 
}

body {
  font-family: 'Playfair Display', sans-serif;
  text-align: left;
  background-color: #f2f2f2;
  margin-top: 0;
  color: #333;
}

.main{
  text-align: center;
  width: 100%;
  display: inline-block;
}

/* Updated Tab Wrapper and Tab Styling */
.tab-wrapper {
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  background-color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
}

.tab {
  padding-left: 50px;
  padding-right: 50px;
  overflow-x: auto;
  white-space: nowrap;
  background-color: #333;
  scrollbar-width: none; /* Firefox */
}
.tab a {
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab a:hover, .tab a.active {
  background-color: #555;
  border-bottom: 3px solid #ffcc00; /* Aesthetic underline */
}

/* Smooth transitions for hover effects */
.tab a {
  transition: background-color 0.3s, border-bottom 0.3s;
}

/* Hide scrollbar in tab */
.tab::-webkit-scrollbar {
  display: none;
}

.active {
  text-decoration: underline;
  color: black;
}

.share img {
    width: 32px;
    height: 32px;
    padding: 4px;
    margin: 0;
}

.wrap {
    overflow: hidden;
    position: relative;
}

.slices {
  height: auto;
  text-align: center;
  padding: 20px 0 0px 0;
}

.slices img {
  width: 120px;
}
  
.content {
  width: 60%;
  max-width: 600px;
  margin: 30px auto 50px auto;
}

.title {
  text-align: center;
  margin: 0 auto 50px;
  padding-left: 5%;
  padding-right: 5%;
}

.title h1 {
  margin-bottom: 0;
  padding-bottom: 10px;
}

.title h3 {
  width: 60%;
  margin: 0 auto;
  padding-top: 0;
}

.new-datapoint {
  background-color: rgb(243, 238, 229);
  padding: 10px 20px 30px;
  border: 1px solid #c2c2c2;
  border-radius: 10px;
  margin-bottom: 30px;
}

.statistics {
  margin-bottom: 50px;
}

.statistics table, .statistics table tbody, .statistics table tbody tr {
  width: 100%;
}

.statistics table, .statistics th, .statistics td {
  border: 2px solid black;
  border-collapse: collapse;
  border-spacing: 0px 0em;
  padding: 7px;  
  /* background-color: rgb(243, 238, 229); */
}

.statistics table td {
  width: 50%;
}

.lists{
    position: relative;
    white-space:nowrap;
}

#form input {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  border: 2px solid #e59400;
}

#form input#input0 {
  padding:  6px 10px 8px;
}

#form input.submit-buttom {
  background-color:  #ffb732;
  border: none;
  border: 1px solid #e59400;
  border-bottom: 3px solid #e59400;
}

#form input.submit-buttom:active {
  padding-bottom: 7px;
  border-bottom: 1px solid #e59400;
}

.footer-wrapper {
  border-top: 1px solid #c2c2c2;
  text-align: center;
}

.footer {
  margin: 0 auto;
  width: 60%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0 30px;
}

/* Add this to your CSS file to improve chart layout */
.chart {
    margin: 20px 0;
    min-height: 400px;
}

details {
    margin-bottom: 20px;
}

details > div {
    padding: 20px 0;
}

.statistics {
    margin-bottom: 30px;
}

/* Ensure plots have enough space */
.plotly-graph-div {
    margin: 10px 0 !important;
}

@media (max-width : 810px) {
  html{
    width: 100%;
  }

  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 25px;
  }

  .content {
    width: 90%;
    overflow: hidden;
    margin: 30px auto 50px auto;
  }

  .tab-wrapper::before, .tab-wrapper::after {
    content: '';
    pointer-events: none;
    z-index: 8;
    width: 125px;
    height: 48px;
    position: absolute;
    top: 0;
    bottom: 0;
  }
  .tab-wrapper::before {
      background: linear-gradient(to right, rgba(27,16,14,0) 0%,  rgba(27,16,14,0.5) 500%);
      right: 0;
  }
  .tab-wrapper::after {
      background: linear-gradient(to left, rgba(27,16,14,0) 0%,  rgba(27,16,14,0.5) 500%);
      left: 0;
  }
  .tab {
      box-shadow: 0 0 1px black;
  }

  .hidebuttonindex {
  font-size: 25px;
  border-left: 0;
  border-right: 0;
  }
  .hideinfoindex {
      margin: 5%;
  }
  h3 {
  font-size: 24px;
  }
  p {
  font-size: 18px;
  }
  .tab {
  font-size: 20px;
  }
  .wholetable {
      height: 500px;
  }
  
  .flex-container{    
      -ms-overflow-style: none;
      scrollbar-width: none;
  }
  img.profile-pic {
      max-width: 50%;
      border-radius: 100%;
  }

  .new-datapoint {
    padding: 10px 20px 30px;
    border: 1px solid #c2c2c2;
    border-radius: 10px;
  }
  
  #form input.submit-buttom:active {
    padding-bottom: 7px;
    border-bottom: 1px solid #e59400;
  }

  .chart {
      width: 100%;
      border: 1px solid #e2e2e2;
  }
}

