body {
  font-family: Barlow, sans-serif;
  background-color: #fafafa;
  margin: 0;
  height: 100%;
}

.line {
  border-bottom: 1.5px solid #000000;
  margin-inline: 20rem;
  padding-top: 1rem;
}

header {
  background-color: #e79e8f;
  color: #000000;
  padding: 0.6rem;
  font-size: 2.4rem;
}

header h1 {
  text-align: center;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
}

h2 {
  text-align: center;
  font-size: 1.2rem;
}


footer {
  align-self: center;
  background-color: #000000;
  color: #fafafa;
  padding: 0.2rem;
  flex-shrink: 0;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #ff4d2a;
}

nav {
  align-self: center;
  background-color: #000000;
  color: #fafafa;
  padding: 0.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  justify-content: center;
  gap: 3rem;
}

nav ul li a {
  color: #fafafa;
  text-decoration: none;
  padding: 1rem;
  font-size: large;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #e79e8f;
  color: #000000;
  padding: 1rem;
}

nav a i {
  margin-right: 0.2rem;
}

.project-card {
  border: 1px solid #cccccc;
  padding: 1rem;
  width: 50%;
  margin: 0 auto;
  justify-content: center;
  margin-bottom: 2%;
  transition: background-color 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-card:hover {
  background-color: #ffe1dc;
  color: #000000
}

.project-card-title {
  color: #000000;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5%;
}

.project-card-desc {
  color: #000000;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1%;
}

.text-block {
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  margin-inline: 20%;
}

.inline-image {
  justify-content: center;
  text-align: center;
  display: flex;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.inline-image img {
  max-width: 60%;
  height: auto;
  border: 1px solid #000000;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-left: 12.5%;
  margin-right: 12.5%;
  justify-items: center;
}

.image-grid figure {
  margin: 0;
  text-align: center;
}

.image-grid img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

figcaption {
  font-size: 0.9rem;
  font-style: italic;
  margin: 5%;
  padding-top: 2%;
  padding-bottom: 5%;
}

.date {
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  padding-bottom: 1%;
}

table {
  margin-left: auto;
  margin-right: auto;
  margin-top: 1%;
  width: 80%;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
  text-align: center;
  padding: 1%;
  font-size: 0.75rem;
  table-layout: fixed;
}

.center-list {
  list-style-position: inside; 
  text-align: center;          
  padding-left: 0;             
}

.contents {
  border: 1px solid #000000;
  padding: 0 0 1% 0;  
  width: 500px;          
  margin: 0 auto;         
  text-align: center;
}

#elo-table {
  border-collapse: collapse;
  border: none;
  width: 60%;
  table-layout: fixed;
}

@media (max-width: 920px) {
  #elo-table {
    width: 90%;
  }
}

#elo-table thead {
  display: none;
}

#elo-table tr {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 1em;
  margin-bottom: 0.5em;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#elo-table td {
  font-size: 0.9rem;
  background: none;
  padding: 0;
  border: none;
}

#elo-table .flag {
  height: 1.6rem;
  width: auto;
  margin-right: 0.5em;
  vertical-align: middle;
}

.rank-col {
    font-weight: 600;
    flex: 0 0 5%;
    text-align: left;
    white-space: nowrap;
}

.rank-change-col {
    font-weight: 600;
    flex: 0 0 10%;
    text-align: left;
    white-space: nowrap;
}

.elo-col {
    font-weight: 600;
    flex: 0 0 8%;
    text-align: left;
}

.elo-change-col {
    font-weight: 600;
    flex: 0 0 15%;
    text-align: left;
}

.year-col {
    font-weight: 600;
    flex: 0 0 5%;
    text-align: left;
}

.club-col {
    font-weight: 600;
    text-align: left;
    vertical-align: center;
    flex: 0 0 50%;
}

.club-name {
    font-weight: 600;
    color: #000;
}

.club-country {
    font-weight: 600;
    color: #808080;
    margin-left: 0.5em;
}

.rank-change-col .icon {
    width: auto;
    height: 0.5rem;
    vertical-align: middle;
    margin-right: 4px;
}

.elo-change-col .icon {
    width: auto;
    height: 0.5rem;
    vertical-align: middle;
    margin-right: 4px;
}

.rank-change-new {
    color: #808080;
    font-weight: 600;
}

.elo-change-new {
    color: #808080;
    font-weight: 600;
}

.league-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.league-card {
  flex: 1 1 20rem;
  max-width: 20rem;
  justify-content: space-between;
  padding: 0.5em 1em;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.league-card .ucl {
  font-size: 1.2rem;
  color: #00004B;
  font-weight: bold;
  text-align: center;
}

.league-card .uel {
  font-size: 1.2rem;
  color: #FD6C01;
  font-weight: bold;
  text-align: center;
}

.league-card .uecl {
  font-size: 1.2rem;
  color: #01B61F;
  font-weight: bold;
  text-align: center;
}

.league-card p {
  font-size: 0.9rem;
}

.info-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 20rem;
  max-width: 20rem;
  justify-content: space-between;
  padding: 0.75em 1em;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.info-card .info-title {
  font-size: 1.2rem;
  color: #000000;
  font-weight: bold;
  text-align: center;
}

.info-card p {
  font-size: 0.9rem;
}

.flag {
  height: 1.6rem;
  width: auto;
  margin-right: 0.5em;
  vertical-align: middle;
}

.country-abbr {
    font-weight: 600;
    color: #808080;
    margin-left: 0.5em;
}

.precln {
    font-weight: 600;
    color: #808080;
    margin-right: 0.7em;
    text-align: left;
}

.info-card .icon {
    width: auto;
    height: 0.5rem;
    vertical-align: middle;
    margin-right: 4px;
}

.info-card .info-change {
  font-size: 1rem;
  color: #000000;
  font-weight: 600;
  text-align: center;
}

.elo-header {
  display: flex;
  justify-content: space-between;
  width: 60%;
  align-items: flex-end;
  margin: 0 auto 0.5em auto;
  font-weight: 700;
  color: #666;
}

.elo-header span {
  flex: 0 0 auto;
}
.elo-header .rank-col {
  flex-basis: 0%;
  text-align: left;
}
.elo-header .rank-change-col {
  flex-basis: 10%;
  text-align: left;
}
.elo-header .club-col {
  flex-basis: 55%;
  text-align: left;
}
.elo-header .elo-col {
  flex-basis: 8%;
  text-align: left;
}
.elo-header .elo-change-col {
  flex-basis: 10%;
  text-align: left;
}
.elo-header .year-col {
  flex-basis: 5%;
  text-align: left;
}

@media (max-width: 920px) {
  .elo-header {
    width: 90%;
  }
  .text-block {
    margin-inline: 10%;
  }
  .inline-image img {
    max-width: 90%;
  }
}