*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
}

/* Define the self-hosted font using @font-face */
@font-face {
  font-family: 'RobotoRegular';
  src: url('Roboto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-family: 'RobotoRegular', sans-serif;
  font-variant-caps: small-caps;
}

body {
  padding: 1rem 0.1rem;
  /* background: #f9f9f9; */
  background: #000;
  color: #FFF;
}

h1 {
  font-size: 2.5rem;
  font-weight: normal;
  background-color: #323949;
  padding: .5rem 1rem;
  border-radius: .5rem;
  max-width: 1200px;
  text-align: center;
  margin: 0rem auto 1rem auto;
}

.competition-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding:.5rem; 
  background-color: #323949;
  border-radius: .5rem;
}

.competition-header {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: .5rem;
  border-radius: .5rem;
  /* margin-bottom: .5rem; */
}

.competition-header:hover {
  background-color: #4e5764;
}

.competition-collapse-arrow {
  cursor: pointer;
  margin-right: 1rem;
}

.competition-content {
  padding: .5rem;
}

.competition-content.hidden {
  display: none;
}

.phase-header {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.phase-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: #97979F;
  color: #000;
  /* border-bottom: thick solid #FFF; */
  /* border-top: thick solid #FFF; */
}

.phase-table th, .phase-table td {
  /* font-weight: normal; */
  padding: .5rem 1rem;
  text-align: left;
  border-top: 1px solid #000;
  border-bottom: 2px solid #000;
  text-align: left;
}
.phase-table td.name{
  /* font-weight: normal; */
  padding: .2rem 1rem;
}

.phase-table .rank {
  white-space: nowrap;
  width: 1%;
  text-align: center;
}

.phase-table .name {
  font-size: 1rem;
}
.phase-table .club {
  font-size: .7rem;
}

.phase-table .result {
  white-space: nowrap;
  width: 1%;
  text-align: right;
}

.phase-table tr.highlighted {
  background-color: #D1A9A9;
  color: #000;
}

.rotate {
  transform: rotate(-90deg);
  transition: transform .5s ease-in-out;
}

.rotate-back {
  transform: rotate(0deg);
  transition: transform .5s ease-in-out;
}

/* Smaller font size on high DPI screens */
@media (min-resolution: 2dppx), (min-device-pixel-ratio: 2) {
  body {
    font-size: 0.8rem;
    padding: 1rem 0.1rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  .competition-container {
    padding: 0rem;
  }
  .competition-header {
    font-size: 1.1rem;
  }
  .phase-header {
    font-size: 0.9rem;
  }
  .phase-table th, .phase-table td {
  /* font-weight: normal; */
    padding: .2rem .3rem;
  }
  .phase-table td.name {
    font-size: .8rem;
    padding: .1rem .3rem;
  }
  .phase-table .club {
    font-size: .6rem;
  }

}