:root {
  --borderWidth: 3px;
  --collapseHeight: 60px;
  --extendHeight: 300px;
  --collapseBorderRadius: 32px;
  --extendBorderRadius: 16px;
}

* {
  /* white-space: nowrap; */
  margin: 0;
  padding: 0;
}

table,
tr,
td {
  padding: 0;
  border-spacing: 0;
  outline: none;
  border: none;
}

html, body {
  scroll-padding-top: 150px;
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
  position: relative;
}

main {
  display: flex;
  gap: 20px;
  margin-top: -900px;
  padding: 930px 30px 30px 30px;
  overflow-x: scroll;
  white-space: nowrap;
}

header,
footer {
  background: #007bff;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 1.2em;
  padding: 10px;
}

header a,
footer a {
  color: white;
}

header {
  min-height: calc(1.2em + 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#mainTitle {
  font-size: 20px;
}

footer {
  text-align: left;
}

footer li {
  margin-left: 20px;
  /* word-wrap: break-word;
  white-space: wrap; */
}

/* footer p {
  word-wrap: break-word;
  white-space: wrap;
} */

/* #info {
  padding: 30px;
  font-size: larger;
} */

#info-section {
  padding: 30px;
  font-size: larger;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.collapsible {
  overflow: hidden;
  min-height: 50px;
  border: 3px solid #ddd;
  border-radius: 12px;
  width: 48%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: height 0.8s ease,
  border-radius 0.8s ease;
}
.collapsible1 {
  overflow: hidden;
  min-height: 50px;
  border: 3px solid #ddd;
  border-radius: 12px;
  width: 98%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: height 0.8s ease,
  border-radius 0.8s ease;
}
.cTitle {
  background-color: #007bff;
  /* border-bottom: 3px dashed #ddd; */
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23DDDDDDFF' stroke-width='8' stroke-dasharray='10%2c 30' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  background-size: 200% 100vh;
  background-position: 50% 100%;
  color: white;
  font-size: 1.5em;
  padding: 5px 3% 15px 3%;
  min-height: 60px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cInner {
  padding: 10px 5%;
  overflow-y: scroll;
  flex-grow: 1;
  max-width: 100%;
}
.leaderstats {
  padding: 0;
}
.leaderstats .title {
  font-size: larger;
  width: 100%;
  text-align: center;
  margin: 10px 0;
}
.leaderstats table {
  width: 100%;
  border-width: 0;
}

.card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 21px;
  padding: 10px;
  width: fit-content;
}

.card .title {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}

table {
  min-width: 100%;
  overflow: visible;
  border-radius: 3px;
}

table th,
table td {
  border: var(--borderWidth) solid #ccc;
  border-width: var(--borderWidth) var(--borderWidth) 0 0;
  padding: 10px;
  text-align: center;
}

.subjects td,
.contributors td {
  padding: 11.6px 10px;
}

table tr:last-child td {
  border-bottom-width: var(--borderWidth);
}

table tr td:first-child,
table tr th:first-child {
  border-left-width: var(--borderWidth);
}

table th {
  background: #007bff;
  color: white;
}

tbody tr:nth-child(odd) {
  background: #f8f9fa;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

/*tbody tr td:nth-child(2) {
  border-left-width: 0px;
  border-right-width: 0px;
}*/

.popUpTable {
  position: absolute;
  right: calc(var(--borderWidth) * -1);
  bottom: 100%;
  border-radius: 12px;
}

.popUpTable tr:first-child td:first-child {
  border-top-left-radius: 16px;
}

.popUpTable tr:first-child td:last-child {
  border-top-right-radius: 16px;
}

.popUpTable tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.popUpTable tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

.popUpList {
  position: absolute;
  right: calc(var(--borderWidth) * -1);
  bottom: 100%;
  background-color: #ffffff;
  border: solid var(--borderWidth) #ccc;
  border-radius: 8px;
  padding: 10px 20px;
}

thead tr th:first-child {
  border-top-left-radius: 16px;
}

thead tr th:last-child {
  border-top-right-radius: 16px;
}

tbody .lastTrFirstTd {
  border-bottom-left-radius: 16px;
}

tbody .lastTrLastTd {
  border-bottom-right-radius: 16px;
}

a {
  color: #007bff;
}

.blue {
  color: #007bff;
}

.none {
  display: none;
}

@keyframes popUp {
  0% {
    scale: 0;
  }

  100% {
    scale: 1;
  }
}

.popUpAnim {
  animation: popUp 0.45s forwards cubic-bezier(0.1, 1.4, 0.5, 1);
}

@keyframes lightUp {
  0% {
    background-color: hsl(40, 100%, 50%);
    border-radius: 4px;
  }
  100% {border-radius: 12px;}
}

.lightUpAnim {
  animation: lightUp 1.2s forwards ease;
}

@keyframes collapseanim {
  0% {height: 300px;border-radius: 20px;}
  100% {height: 50px; border-radius: 32px;}
}
.collapseAnim {
  height: 50px;
  border-radius: 32px;
  /* animation: collapseanim 0.5s forwards ease; */
}

@keyframes extendanim {
  0% {border-radius: 32px;}
  100% {height: 300px;border-radius: 20px;}
}
.extendAnim {
  height: 450px;
  border-radius: 20px;
  /* animation: extendanim 0.8s forwards ease; */
}

@keyframes fadeOutanim {
  0% {opacity: 1;}
  100% {opacity: 0;}
}

.fadeOutAnim {
  animation: fadeOutanim 0.8s forwards ease;
}

.pointer {
  cursor: pointer;
}

.hideScrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}




tr {
  height: 50px; /* Fixed height for rows */
}

th, td {
  height: 50px; /* Fixed height for cells */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
  box-sizing: border-box; /* Include borders in height */
}



.notification {
  width: 60vw;
  right: 20vw;
  min-height: 20px;
  padding: 8px;
  background-color: #007bff;
  position: fixed;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 0 10px #007bff;
  border: solid 2px #ccc;

  color: #fff;

  bottom: 10%;
}

@media (max-width: 800px) {
  #info-section {
    flex-direction: column;
    gap: 20px;
  }
  .collapsible {
    width: 100%;
  }
  .collapsible1 {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .cTitle {
    font-size: 1.2em;
  }
}
@media (max-width: 300px) {
  .cTitle {
    font-size: 1em;
  }
}
@media (max-width: 260px) {
  #info-section {
    padding: 30px 10px;
    font-size: larger;
  
    display: flex;
    justify-content: space-around;
  }
  main {
    display: flex;
    gap: 20px;
    margin-top: -900px;
    padding: 930px 10px 30px 10px;
    overflow-x: scroll;
    white-space: nowrap;
  }
  .cTitle {
    font-size: 0.8em;
  }
}

@media (max-width: 200px) {
  #info-section {
    padding: 30px 0px;
    font-size: larger;
  
    display: flex;
    justify-content: space-around;
  }
  main {
    display: flex;
    gap: 20px;
    margin-top: -900px;
    padding: 930px 0 30px 0;
    overflow-x: scroll;
    white-space: nowrap;
  }
  .cTitle {
    font-size: 0.7em;
  }
}