@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #B892FF, #D81E5B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.teams-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-y: auto;
}

.add-teams {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.vector-1 {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 30px;
  left: 10px;
}

.vector-2 {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 25px;
  left: calc(100% - 60px);
}

header {
  margin-bottom: 20px;
}

header h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

main {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  padding: 15px;
  text-align: left;
  border: none;
  font-family: 'Oswald', sans-serif;
}

th {
  background: #f3f3f3;
  font-weight: 600;
  font-size: 18px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

td {
  background: #fff;
  font-weight: 600; /* Changed from 300 to 600 */
  font-size: 16px;
  color: #1a237e; /* Teal color for text */
}

/* Differentiate Nationality and FIE Rank */
td.nationality, td.fie-rank {
  font-weight: 600; /* Bold font-weight */
  color: #1a237e; /* Teal color for text */
}

/* Alternate row background colors */
tr:nth-child(even) td {
  background: #e0f7fa; /* Light blue */
}

tr:nth-child(odd) td {
  background: #f3e5f5; /* Light purple */
}

tr:first-child th:first-child {
  border-top-left-radius: 15px;
}

tr:first-child th:last-child {
  border-top-right-radius: 15px;
}

tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

@media (max-width: 600px) {
  .teams-container {
    padding: 20px;
  }
  .vector-1 {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 30px;
    left: 10px;
  }
  
  .vector-2 {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 25px;
    left: calc(100% - 40px);
  }

  th, td {
    padding: 10px;
    font-size: 14px;
  }
}
